Linux下使用rdesktop连接Windows远程桌面

Linux下使用rdesktop连接Windows远程桌面

首先到rdesktop官网 http://www.rdesktop.org下载一个源码包。下载到本地后解压,使用如下命令进行安装:
./configure;
make;
make install
默认安装在/usr/local/下。
安装完毕,使用如下命令即可连接Windows Server 2008.
rdesktop -u 用户名 -d 域名  服务器IP:3389
例如:
rdesktop -u tom -d X 10.10.xx.xx:3389
连接 Windows Server 2003服务器时,需要加上 -0 选项,例如
rdesktop -u tom -d X -0 10.10.xx.xx:3389

错误集锦: 

(0) make时若出现错误:xwin.c:22:22: error: X11/Xlib.h: No such file or directory

    则使用yum 安装上 libX11-devel 包再 make


(1) 连接 Windows Server 2008 时不要加上 -0 选项,否则登陆时出现"会话被拒绝"错误。

(2) 连接时出现错误: disconnect: Internal licensing error. 解决办法是 rm -f ~/.rdesktop/licence.* 文件。

建议在在bash中如下做:  alias yczm='rm -f ~/.rdesktop/licence.*; rdesktop 10.10.xx.xx:3389'

(3) ./configure 时出现如下错误:

ERROR: Could not find X Window System headers/libraries.
Probably you need to install the libX11-devel package.
To specify paths manually, use the options --x-includes and --x-libraries.

使用 Yum 安装 libX11-devel 包可解决问题:

附上 yum 配置文件内容:/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


你可能感兴趣的:(windows,linux,server,服务器,File,licensing)