Install Xfce & Lightdm

Instead of GNOME desktop with GDM which is configured by default in Redhat, I’m told that xfce+lightdm is much more lighted and efficient. So I tried that out today. Let’s see how to deply xfce+lightdm in CentOS7.9.

Install EPEL (Extra Package for Enterprise Linux)

1
2
3
# yum install epel-release
//if above command doesn't work, try this
# yum install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install xfce & lightdm

1
2
# yum groupinstall xfce
# yum install lightdm

Configure lightdm.conf

1
2
3
4
5
6
# cat /etc/lightdm/lightdm.conf
...
[XDMCPServer]
enabled=true
port=177
...

Stop & disable GDM

1
2
# systemctl disable gdm
# systemctl stop gdm

Start & enable lightdm

1
2
# systemctl enable lightdm
# systemctl start lightdm

Reboot and it’s done

1
# reboot

If successfully, you’ll see there is an option of Xfce Session on login screen.