Wednesday, July 9, 2008

Remote desktop on Linux and solaris

In Solaris and Linux both, there is a command/utility called "rdesktop" which can be used to connect a windows box which has Terminal services enabled. In Solaris, the 'rdesktop' can be installed by following packages:

rdesktop-1.5.0-sol9-sparc-local (main package)
libgcc-3.4.6-sol9-sparc-local (dependency package)
libiconv-1.11-sol9-sparc-local (dependency package)
openssl-0.9.8h-sol9-sparc-local (dependency package)

The above list of package is good for Solaris 9 on Sparc platform. Once the above packages are installed, the rdesktop command can be found at /usr/local/bin/rdesktop.

To use rdesktop, simply type the following command:
# rdesktop -T "Remote desktop" -g1024x768 -b windows-hostname-to-connect

The "windows-hostname-to-connect" is the name of windows server/ workstation to which we want to connect.

On Linux, the package seems to be installed by default. Hence we just need to run the rdesktop command with correct syntax.

Note: If this command doesn't bring window's system desktop, then check:
1) if the windows system has terminal services enabled
2) and you have X-client running on local machine and the X-11 forward is enabled. You may try to run "xterm" to test if X-client is running.

No comments: