X -nolisten tcp

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Current revision (18:37, 22 May 2008) (edit) (undo)
 
(2 intermediate revisions not shown.)
Line 4: Line 4:
8821 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth '''-nolisten tcp''' vt7
8821 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth '''-nolisten tcp''' vt7
-
To enable the X server to LISTEN on port 6000, change the following in ''/etc/gdm/gdm.conf'':
+
To enable the X server to LISTEN on port 6000, change '''DisallowTCP=true''' to '''DisallowTCP=false''' in ''/etc/gdm/gdm.conf'', reload GDM with '''invoke-rc.d gdm reload''' and restart X for the change to take effect.
-
From:
+
-
DisallowTCP=true
+
-
 
+
-
To:
+
-
DisallowTCP=false
+
-
 
+
-
Reload GDM with '''invoke-rc.d gdm reload''' and restart X for the change to take effect.
+
$ '''pgrep -fl X'''
$ '''pgrep -fl X'''
7440 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth vt7
7440 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth vt7

Current revision

On my Ubuntu 8.04 system, I'm running Gnome Display Manager, and want the X server to listen on localhost:6000. By default, the X server is run with -nolisten tcp.

$ pgrep -fl X
8821 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7

To enable the X server to LISTEN on port 6000, change DisallowTCP=true to DisallowTCP=false in /etc/gdm/gdm.conf, reload GDM with invoke-rc.d gdm reload and restart X for the change to take effect.

$ pgrep -fl X
7440 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth vt7
Personal tools