yum install -y epel-release # 安装epel源
yum install -y lightdm && yum groupinstall -y xfce # 安装lightdm和Xfce
修改lightdm.conf文件
vim /etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true
port=177
systemctl disable gdm && systemctl enable lightdm # 将Display Manager切换为lightdm
systemctl start lightdm # 启动lightdm
sudo systemctl stop firewalld # 关闭防火墙
参考博客:
https://blog.csdn.net/lyfqyr/article/details/89041929