打开终端,切换root帐号
# su -
2.安装 lightdm
# yum install lightdm
3.配置 lightdm,如果不存在,则创建之
# vi /etc/lightdm/lightdm.conf
[XDMCPServer]
enabled=true
port=177
4.修改默认 display manager 为 lightdm
# systemctl disable gdm ; systemctl enable lightdm
5.开始 lightdm,注意,有风险,有可能会黑屏,重启一般会恢复,至少我测试时是恢复了
# systemctl start lightdm
6.关闭防火墙,或自行开启177端口
# systemctl stop firewalld.service
1. 安装 Xfce
# yum groupinstall xfce
2.重启 lightdm
# systemctl restart lightdm
3.使用 Xmanager连接
远程执行处填写执行命令 /usr/bin/xfce4-serssion
1.for i in `yum list installed|grep gnome|grep -v -E 'libgnome|gnome-icon-theme|gnome-keyring|gnome-themes-standard'|awk '{print 1}'`; do yum -y remove i; done
2. sudo yum -y install epel-release
3. sudo yum -y groupinstall "X Window system"
4. yum -y groupinfo "MATE Desktop"
5. sudo yum -y groupinstall "MATE Desktop"
6. sudo yum -y groupinstall xfce
7. sudo systemctl isolate graphical.target