Use rdesktop in Linux to connect to Windows Remote Desktop
First download a source package to the http://www.rdesktop.org of rdesktop official website. Download the package locally and decompress it. Run the following command to install the package:
./Configure;
Make;
Make install
Installed in/usr/local/by default.
After installation, run the following command to connect to Windows Server 2008.
Rdesktop-u username-D Domain Name Server IP: 3389
For example:
Rdesktop-u tom-D x 10.10.xx.xx: 3389
When connecting to a Windows Server 2003 server, you must add the-0 option, for example
Rdesktop-u tom-D x-0 10.10.xx.xx: 3389
Error highlights:
(0) if an error occurs during make: xwin. C: 22: 22: Error: X11/xlib. h: no such file or directory
Then use Yum to install the libX11-devel package and then make
(1) do not add the-0 option when connecting to Windows Server 2008; otherwise, the "session denied" error occurs during logon.
(2) An error occurs during connection: disconnect: internal licensing error. The solution is RM-f ~ /. Rdesktop/licence. * file.
We recommend that you do the following in Bash: alias yczm = 'rm-f ~ /. Rdesktop/licence. *; rdesktop 10.10.xx.xx: 3389'
(3)./configure:
Error: cocould not find X Window System headers/libraries.
Probably you need to installLibX11-develPackage.
To specify paths manually, use the options -- X-nodes des and -- X-libraries.
Install with yumLibX11-devel package can solve the problem:
Add the yum configuration file content:/Etc/yum. Repos. d/CentOS-Base.repo
[Base]
Name = centos-$ releasever-Base
Baseurl=Http://vault.centos.org/5.5/ OS /x86_64/
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY-CentOS-5