You are not logged in.

#1 2015-07-16 13:38:27

mxx
Member
Registered: 2012-11-23
Posts: 27

How to make GDM start X with "-listen tcp"?

Edit: changed topic title to be more accurate and added some more infos.

Hi,

I'm trying to get this to work since a few days without any success.
I've read that it's now required to not only start X without "-nolisten tcp", but to explicitly add "-listen tcp".

So I changed /etc/X11/xinit/xserverrc to read:
exec /usr/bin/X -listen tcp "$@"

It does work now when I start x manually with startx.

For GDM, I also changed /etc/gdm/custom.conf to
[security]
DisallowTCP=false

But it still doesn't work. Even "-nolisten tcp" is added to the first instance, the 2nd is just missing the "-listen tcp".
Being desperate and basically without any knowledge about all this, I also did a full grep on /etc and /usr and couldn't find anything containing "nolisten" except for documentation and binaries.

I also changed WaylandEnable to false to see whether it makes any difference or not on how X is started.
I couldn't figure out where the X parameters GDM uses to start X come from. It seems xserverrc isn't used?

When X is started via gdm, I have the following processes:
root      4637  0.0  0.1 201432 89204 tty1     S+   Jul15   0:09 /usr/lib/xorg-server/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -nolisten tcp -background none -noreset -keeptty -verbose 3
root      4849  0.2  0.2 550492 156220 tty5    S+   Jul15   2:44 /usr/lib/xorg-server/Xorg vt5 -displayfd 3 -auth /run/user/500/gdm/Xauthority -background none -noreset -keeptty -verbose 3

I'm unable to figure out where else to look for a solution.

It would be great if someone could help me out.

Thanks a lot!

Cheers,

Max

Last edited by mxx (2015-07-18 12:25:10)

Offline

#2 2015-07-18 12:17:28

mxx
Member
Registered: 2012-11-23
Posts: 27

Re: How to make GDM start X with "-listen tcp"?

In the meanwhile, I gave up and switched to lightdm.

After changing /etc/lightdm/lightdm.conf

[SeatDefaults]
xserver-allow-tcp=true
xserver-command=X -listen tcp

it works as expected.

Not marking the topic solved as the issue with GDM is still there.

Offline

Board footer

Powered by FluxBB