Xmanager远程连接centos桌面
1.安装epel
yum install -y epel-release
2.安装lightdm
yum install -y lightdm
3.安装xfce
yum groupinstall -y xfce
4.修改配置/etc/lightdm/lightdm.conf
[XDMCPServer] enabled=false port=177
5.将Display Manager切换为lightdm
systemctl disable gdm && systemctl enable lightdm
6.启动lightdm服务
systemctl start lightdm
7.防火墙添加177端口放行
iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 177 -j ACCEPT
service iptables save
iptables -nvL