Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
What purpose you need /etc/gdm dir? 11.10 uses LightDM instead of GDM thats way there is not such folder. – Guria Oct 27 '11 at 14:10
Note: "I want to run an x-app from another system." While I'm all in favor of modifying your nolisten parameter, for 99% of the use cases, simply ssh'ing to the remote host (possibly with the "-X" parameter, and definitely with "xauth" installed on the remote system) is by far the easiest way to fire up a remote X application. ssh even compresses the transaction, so you might see a slight speed boost. – user995746 May 21 '13 at 18:15

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
share|improve this answer

edit /usr/share/gdm/gdm.schemas, setting the key security/DisallowTCP to false

share|improve this answer

As of Ubuntu 16.04, it seems to be /usr/share/lightdm/lightdm.conf.d/100-custom.conf

and it wants to contain:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.