GDM can be configured to allow remote access via XDMCP (X Display Manager Control Protocol). We can use Cygwin-X or Exceed, to connect remotely to a server and get a complete desktop GUI.
1. Edit the file /etc/gdm/custom.conf and make sure below parameters are added/set.
1 | % cat /etc/gdm/custom.conf |
2. Restart the gdm service.
1 | % sudo systemctl restart gdm |
3. Additionally, it will be required to allow connections from remote clients’ tcp ports in the 6000 range (since the clients will be acting as an X server, using port 6000/tcp and above).
1 | % sudo firewall-cmd --permanent --zone=public --add-port=6000-6010/tcp |
4. Confirm gdm is listening on UDP port 177
1 | % sudo netstat -anu|grep 177 |