1、配置repo
1.1、配置Centos Repo
参考 https://blog.csdn.net/weixin_43905458/article/details/103629308
1.2、配置Epel Repo
[root@openstack-magnum-k8s ~]# cat /etc/yum.repos.d/epel.repo
[epel]
name=epel
baseurl=https://http://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/
gpgcheck=0
2、安装rpm包
yum -y groupinstall "X Window System"
yum -y groupinstall "GNOME Desktop"
yum install -y xrdp --enablerepo=epel
yum install -y tigervnc-server
3、启动服务并关闭防火墙
systemctl enable xrdp
systemctl start xrdp
systemctl stop firewalld
4、TroubleShooting
使用mstsc链接时,报以下错误
VNC error - only supporting 8,15,16 and 24 bpp rdp connections
可以通过如下方法解决