一、xrdp简介
Xrdp是Microsoft远程桌面协议(RDP)的一个开源实现,它允许以图形方式控制远程系统。使用RDP,您可以登录到远程计算机并创建一个真正的桌面会话,就像您登录到本地计算机一样。本博文以通过xrdp安装脚本为例安装该服务,xRDP安装程序脚本可以简化Ubuntu机器上xRDP包的安装。xRDP安装程序脚本执行额外的配置后操作,以提供最佳的远程桌面用户体验。这些脚本是专门为标准Ubuntu版本构建的。实验环境说明:
- 操作系统:Ubuntu20.04
- xrdp版本:xrdp 0.9.12
- xrdp安装脚本版本:1.2.3
二、安装步骤
0、安装桌面
ubuntu@s162:/tmp$ sudo apt-get install ubuntu-desktop -y
…
Processing triggers for sgml-base (1.29.1) …
ubuntu@s162:/tmp$ apt list --installed |grep ubuntu-desktop
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ubuntu-desktop-minimal/focal-updates,now 1.450.2 amd64 [installed,automatic]
ubuntu-desktop/focal-updates,now 1.450.2 amd64 [installed]
1、下载安装脚本
打开下载链接xrdp安装脚本下载地址下载xrdp安装脚本。
ubuntu@s162:/tmp$ wget https://c-nergy.be/downloads/xRDP/xrdp-installer-1.2.3.zip
2、解压软件包
ubuntu@s162:/tmp$ unzip xrdp-installer-1.2.3.zip
3、给安装脚本添加执行权限
ubuntu@s162:/tmp$ chmod u+x xrdp-installer-1.2.3.sh
4、执行安装脚本
ubuntu@s162:/tmp$ ./xrdp-installer-1.2.3.sh
5、 查看xrdp服务状态
ubuntu@s162:/tmp$ systemctl status xrdp