1.安裝epel源
#yum install epel-release
2.安裝 lightdm
# yum install lightdm
3、配置 lightdm,如果不存在,則創建
# vi /etc/lightdm/lightdm.conf
內容如下:
[XDMCPServer] enabled=true port=177
4、修改默認 display manager 為 lightdm
# systemctl disable gdm Removed symlink /etc/systemd/system/display-manager.service. # systemctl enable lightdm Created symlink from /etc/systemd/system/display-manager.service to /usr/lib/systemd/system/lightdm.service.
5、
# systemctl start lightdm
6、
# yum groupinstall xfce
7、關閉防火牆,或自行開啟177端口
#systemctl stop firewalld.service
8、xmanager選項
打開xstart登陸,配置如下圖:
命令:/usr/bin/xfce4-session
9、點運行登陸,要等一會