It seems every version of Ubuntu has a different way to enable remote connections to the local X server.
I'm asking this question, while I do my own research: how can I enable the X server listening to TCP port 6000 on my machine, thus allowing remote X clients to connect to said port and use my display?
Based on information found in this page about enabling XDCMP and the file /etc/gdm/gdm.schemas, I managed to create the following file:
I also changed the /etc/X11/xinit/xserverrc file to:
i.e. I removed the
-nolisten tcp
options to the X executable. I don't know if I needed to. You might want to try avoiding this edit.After that, all that is needed is a restart of the gdm process:
You can verify the success as:
if found it in /etc/gdm/gdm.schemas
converted true to false, now it works
http://supermanhelp.com
In later versions of ubuntu the procedure above no longer works due to a new display manager LightDM. To check this execute the shell command:
and check for lightdm and the notcp switch. If found update your system by adding to /etc/lightdm.conf the following entry in the [SeatDefaults] section:
Finally restart your computer and check it works with
as shown above.
As every configuration is different, I found mine with:
If you don't find a file, you can try expanding the search by changing
'/etc/'
to'/'
Once you locate your file add what others suggested under the
[SeatDefaults]
section:Save the file and restart the computer. You may need to use the
xauth
on the server you want to access (full info here), e.x.:You may also need to use
xhost
(here). Finally in a new console Ctrl+Alt+F1 use: