先装 xrdp
$ sudo yum install -y epel-release
$ sudo yum install -y xrdp
$ sudo systemctl enable xrdp
$ sudo systemctl start xrdp
开防火墙端口
$ sudo firewall-cmd --add-port=3389/tcp --permanent
$ sudo firewall-cmd --reload
比较喜欢 GNOME
$ sudo yum groupinstall "GNOME DESKTOP" -y
装完后设置
sudo systemctl set-default graphical.target
sudo systemctl isolate graphical.target
参考
https://draculaservers.com/tutorials/install-xrdp-centos/