转至:https://blog.csdn.net/u014008779/article/details/90724651
XDMCP远程连接Linux桌面
1、安装epel源(不安装会找不到lightdm安装包)
yum install -y epel-release
2、安装lightdm和xfce(xfce桌面环境替代gnome)
yum install -y lightdm && yum groupinstall -y xfce
3、修改lightdm.conf文件
4、编辑/etc/gdm/custom.conf文件
5、将Display Manager切换为lightdm
systemctl disable gdm && systemctl enable lightdm
6、启动lightdm
systemctl start lightdm
7、删除和gonme相关的文件(必须)
cd /usr/share/xsessions/ mkdir bak mv gnome* bak systemctl restart lightdm
8、测试远程连接