Gnome in CentOS 7 tries to use local hardware acceleration and this becomes a problem when trying to connect remotely using XDMCP. To avoid this problem, you have to use an alternative display manager (other than ‘gdm’) and desktop environment.
Switching Display Manager from gdm to lightdm
Switch to root account and install lightdm:
Code Block # yum install lightdm
If lightdm cannot be installed because of the system's default repository, extra repository information, EPEL (Extra Packages for Enterprise Linus), is required.Code Block # yum install http://download.netsarang.com/files/etc/epel-release-7-0.2.noarch.rpm
Configure the lightdm config file. If file does not exist, create it:
# vi /etc/lightdm/lightdm.confCode Block [XDMCPServer] enabled=true
Change the default display manager to lightdm:
Code Block # systemctl disable gdm ; systemctl enable lightdm
Start lightdm:
Code Block # systemctl start lightdm
Temporarily disable firewall to test connection. It is recommended that you allow incoming UDP port 177
Code Block # systemctl stop firewalld.service
Add Xfce and Configure as Default Desktop Environment
Add a new source repository:
Code Block # yum install http://download.netsarang.com/files/etc/epel-release-7-0.2.noarch.rpm
Install an alternative desktop environment:
Code Block # yum groupinstall xfce
Restart lightdm:
Code Block # systemctl restart lightdm
- Connect with Xmanager and select Xfce
...