By default Linux disallows TCP connections from remote hosts. It prevents applications from running on a remote host and being able to be displayed on the local x server.
To enable the X server to display remote applications open /usr/share/gdm/defaults.conf file. Set DisallowTCP=true to false
# vi /usr/share/gdm/defaults.conf
Set DisallowTCP=true to false
Setting DisallowTCP to false will allow remote clients to connect.
If you don't know exact location of GDM defaults.conf conf file use find command
find / -name "defaults.conf"
Now restart GNOME aka GDM.
# init 3
# init 5
How do I test new setup?
Type any one of the following command on the client
Now SSH into the remote client and type any one of the command:
xeyes -display remote-ip:0
xeyes -display remotehost:0
xeyes -display remoteserver.com:0
xeyes should popup on client system. Enjoy!Share this on: