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
亦可以在实例内部直接通过命令行下载:
wget https://github.com/rdesktop/rdesktop/releases/download/v1.8.3/rdesktop-1.8.3.tar.gz
下载完成后解压
tar -xvzf rdesktop-1.8.3.tar.gz
按照一般的路径,此时进入 rdesktop 目录中,配置,编译,安装。
果真如此简单么?写踩坑指南的我,怎么能这么顺利就安装成功呢……各位看官您且往下看:
cd rdesktop-1.8.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.
这个看报错比较好解决,我们用下边的命令,安装一下 libX11-devel 即可
yum install libX11-devel
rdesktop requires libXcursor, install the dependency
看报错也还 OK ,我们要安装一个叫做 libXcursor 的依赖,试试这个命令:
yum install libXcursor
emm……
"No God, please no! "
这个问题很奇怪,我也是又重新走了一遍,结果顺利通关的……还是建议在配置前挨个检查下依赖的安装情况吧。
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
CredSSP support requires libgssglue, install the dependency
or disable the feature using --disable-credssp.
嗯嗯,这个好办,它已经给我们提供建议了:
./configure --disable-credssp
SmartCard support requires PCSC, install the dependency
or disable the feature using --disable-smartcard.
和上边一样,再拼一句:
./configure --disable-credssp --disable-smartcard
激动的心,颤抖的手
搞定,现在可以开始编译、安装了:
make && make install
打完收工,如果不放心,可以再执行一下 rdesktop 确认是否安装成功:
rdektop
如果出现下图所示的内容,说明搞定了,现在开始连接你的Windows吧!
什么?你问我怎么用 rdesktop?我只能告诉你:
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。