Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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

[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
xserver-allow-tcp=true

[XDMCPServer]
enabled=true

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
add comment

Your Answer

 
discard

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.