rdesktop is an open source UNIX client for connecting to Windows Remote Desktop Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user's Windows desktop. rdesktop is known to work with Windows server versions ranging from NT 4 terminal server to Windows Server 2016.
环境:
服务器配置:CPU: 2核 内存: 2GB
操作系统:CentOS 7.6 64bit
rdesktop官方提供的下载地址为:https://github.com/rdesktop/rdesktop/releases/latest
亦可以在实例内部直接通过命令行下载:
代码语言:javascript
wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.tar.gz
下载完成后解压
代码语言:javascript
tar -xvzf rdesktop-1.8.3.tar.gz
按照一般的路径,此时进入 rdesktop 目录中,配置,编译,安装。
果真如此简单么?写踩坑指南的我,怎么能这么顺利就安装成功呢……各位看官您且往下看:
代码语言:javascript
cd rdesktop-1.8.3
代码语言:javascript
./configure
坑 No.1
代码语言:javascript
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.
这个看报错比较好解决,我们用下边的命令,安装一下 libX11-devel 即可
代码语言:javascript
yum install libX11-devel
坑 No.2
代码语言:javascript
rdesktop requires libXcursor, install the dependency
看报错也还 OK ,我们要安装一个叫做 libXcursor 的依赖,试试这个命令:
代码语言:javascript
yum install libXcursor
emm……
"No God, please no! "
这个问题很奇怪,我也是又重新走了一遍,结果顺利通关的……还是建议在配置前挨个检查下依赖的安装情况吧。
代码语言:javascript
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package libXcursor-1.1.15-1.el7.x86_64 already installed and latest version
Nothing to do
坑 No.3
代码语言:javascript
CredSSP support requires libgssglue, install the dependency
or disable the feature using --disable-credssp.
嗯嗯,这个好办,它已经给我们提供建议了:
代码语言:javascript
./configure --disable-credssp
坑 No.4
代码语言:javascript
SmartCard support requires PCSC, install the dependency
or disable the feature using --disable-smartcard.
和上边一样,再拼一句:
代码语言:javascript
./configure --disable-credssp --disable-smartcard
激动的心,颤抖的手
激动的心,颤抖的手
搞定,现在可以开始编译、安装了:
代码语言:javascript
make && make install
打完收工,如果不放心,可以再执行一下 rdesktop 确认是否安装成功:
代码语言:javascript
rdektop
如果出现下图所示的内容,说明搞定了,现在开始连接你的Windows吧!
安装成功.jpg