X server started with “-nolisten tcp” in spite of DisallowTCP=false in /etc/gdm/custom.conf

Howdy folks, i needed to start my X.server on Ubuntu LTS Gnome, which should be able to listen for remote connection on port 6000, the gdm has been configured.

Modified /etc/X11/xinit/xserverrc as

#!/bin/sh
exec /usr/bin/X "$@"

Set DisallowTCP=false in /etc/gdm/custom.conf

[security]
DisallowTCP = false
[xdmcp]
[greeter]
[chooser]
[debug]

Restarted gdm

sudo service gdm restart

Check wether gdm listening on 6000

sudo netstat -tlnp | grep 6000

but result is empty

sudo ps lf -C Xorg command gives

F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  1362  1342  20   0 176672 61764 poll_s Ss+  tty7       0:02 /usr/bin/X :0 -background none -noreset -verbose -auth /var/run/gdm/auth-for-gdm-XkGfsT/database -seat seat0 -nolisten tcp vt7

Solution:

After modifying /etc/gdm3/custom.conf content by adding ServerArguments=-listen tcp. I got xserver running on port 6000

[security]
DisallowTCP=false
[xdmcp]
ServerArguments=-listen tcp

Note:

I get this too. I made a similar change in /usr/share/gdm/gdm.schemas as well, rebooted, and no X11 server listening on port 6000 🙁 I even see this: shell /usr/lib/gdm3/gdm-x-session --run-script --allow-remote-connections env GNOME_SHELL_SESSION_MODE=pop gnome-session --session=pop Note the use of –allow-remote-connections

Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

5 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

5 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

10 months ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

10 months ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

10 months ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

10 months ago