Ubuntu – How to disable -nolisten


I just installed ubuntu 11.10. I want to run an x-app from another system.

I updated ./xinit/xserverrc and removed the -nolisten option. I rebooted.

I can see that X is started with the nolisten option.

I don't have /etc/gdm subdir.

Best Answer

You need to edit /etc/lightdm/lightdm.conf and add xserver-allow-tcp=true to it. Here's what mine looks like:



After that, run this:

sudo restart lightdm

If you have problems restarting, just 'ps ax | grep lightdm' and kill all the associated processes, then:

sudo start lightdm

I haven't researched yet, but I'm sure there are lots of configuration options for lightdm, I'm just not certain that they all work at the moment. But this one does. Here's what my X server process looks like now:

2981 tty7     Ss+    0:00 /usr/bin/X :1 -auth /var/run/lightdm/root/:1 vt7 -novtswitch