You are not logged in.

#1 2010-09-26 15:33:06

Joerg
Member
Registered: 2010-09-26
Posts: 4

disable "-nolisten tcp" using GDM

Hi there,

using GDM it looks like the X server is started with "nolisten tcp" per default. How can I change this ?

Joerg

Offline

#2 2010-09-26 16:09:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: disable "-nolisten tcp" using GDM

Try /etc/X11/xinit/xserverrc
Even w/o GDM startx uses "-nolisten tcp".


Edit: How I figured it out:
I start with 'startx', so let's see what exactly is it:

[karol@black ~]$ type startx
startx is /usr/bin/startx
[karol@black ~]$ less /usr/bin/startx

#!/bin/sh

#
# This is just a sample implementation of a slightly less primitive
# interface than xinit.  It looks for user .xinitrc and .xserverrc
# files, then system xinitrc and xserverrc files, else lets xinit choose
# its default.  The system xinitrc should probably do things like check
# for .Xresources files and merge them in, startup up a window manager,
# and pop a clock and serveral xterms.
#
# Site administrators are STRONGLY urged to write nicer versions.
#

unset DBUS_SESSION_BUS_ADDRESS
unset SESSION_MANAGER


userclientrc=$HOME/.xinitrc
sysclientrc=/etc/X11/xinit/xinitrc


userserverrc=$HOME/.xserverrc
sysserverrc=/etc/X11/xinit/xserverrc

The file is longer, but let's stop here.
I'm looking for '-nolisten tcp' and I'm sure I don't have it set up in my ~/.xinitrc and I don't have ~/.xserverrc at all.
/etc/X11/xinit/xinitrc is not what I'm looking for, but /etc/X11/xinit/xserverrc sure is! :-)

Last edited by karol (2010-09-26 16:22:54)

Offline

#3 2010-09-27 17:55:18

Joerg
Member
Registered: 2010-09-26
Posts: 4

Re: disable "-nolisten tcp" using GDM

I already removed "-nolisten tcp" from /etc/X11/xinit/xserverrc, it doesn't make a difference.

Offline

#4 2010-09-27 17:57:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: disable "-nolisten tcp" using GDM

Joerg wrote:

I already removed "-nolisten tcp" from /etc/X11/xinit/xserverrc, it doesn't make a difference.

Either you have it also in some other place like .xinitrc or GDM uses some extra configs. What happens if you run '/usr/bin/X'? Does it magically pick some options?

Last edited by karol (2010-09-27 18:01:28)

Offline

#5 2010-09-27 18:34:32

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: disable "-nolisten tcp" using GDM

/etc/gdm/custom.conf

[security]
DisallowTCP=false


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2010-09-27 18:41:26

Joerg
Member
Registered: 2010-09-26
Posts: 4

Re: disable "-nolisten tcp" using GDM

karol wrote:

Either you have it also in some other place like .xinitrc or GDM uses some extra configs.

There's no related config in .xinitrc and so on, so I'm pretty sure it's somewhere in GDM's config, but I don't know how to get there. I checked the GDM options in the Gnome config editor, but couldn't find anything relevant.

karol wrote:

What happens if you run '/usr/bin/X'? Does it magically pick some options?

Actually the X server exits complaining about a missing touchpad driver, but as far as I could see it tried to start without "-nolisten tcp"

Offline

#7 2010-09-27 18:43:31

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: disable "-nolisten tcp" using GDM

...did my suggestion not work?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2010-09-27 18:47:07

Joerg
Member
Registered: 2010-09-26
Posts: 4

Re: disable "-nolisten tcp" using GDM

graysky wrote:

...did my suggestion not work?

Yes, that did the trick ! Many thanks.

Offline

Board footer

Powered by FluxBB