Click to See Complete Forum and Search --> : X server - how to disable the -nolisten tcp startx default?
lugoteehalt
04-30-2004, 10:56 AM
Understand Debian has as default the '-nolisten tcp' option set when it starts the X server. Have tried various stuff, for instance made a ~/.xserverrc file with 'exec X :0' in it, but seem uable to countermand this. For example if I do:
xfstt &
on a remote computer (trying to use the X server on the local computer) it says: 'Cannot open TCPIP port 7107'
Thanks any help.
they have the setting in:
/etc/X11/xinit/xserverrc
(afaik)
lugoteehalt
04-30-2004, 11:24 AM
Thanks, but the file doesn't exist on Debian (at least Potato) by default.
Could you perhaps suggest how I could find it (the -nolisten tcp), so that it can be commented out or whatever?
you could use the grep command
grep -rl "nolisten" /etc/X11/*
You have to edit the startx script (/usr/X11R6/bin/startx).
lugoteehalt
05-04-2004, 08:27 AM
Thanks. Have looked in the startx script but nothing about -nolisten tcp. There is a lot of variables that are used as arguments for xinit but am not clever enough to find out what generates the variables. Appreciate any suggestions, no filth.:)
I did remove .xinitrc and .xsession and then started X 'naked' with xinit but the xfstt server (which is what I'm trying to get to give fonts from a remote computer) still did not work. Would doing this have avoided the -nolisten??
Thanks again.
:)
mdwatts
05-04-2004, 02:04 PM
Originally posted by lugoteehalt
Thanks. Have looked in the startx script but nothing about -nolisten tcp.
Edit /usr/X11R6/bin/startx and add '-nolisten tcp' to the following
clientargs="-nolisten tcp"
serverargs="-nolisten tcp"
<edit>
Just reread your question. You should check to see if /usr/X11R6/bin/startx has
clientargs="-nolisten tcp"
serverargs="-nolisten tcp"
and remove '-nolisten tcp' if found.
SuperNu
05-05-2004, 12:05 AM
I don't know if this will help you out or not, but depending on which login manager you have setup to start (xdm, kdm or gdm) you are going to have to edit different files. For xdm, the file is /etx/X11/xdm/Xservers and for kdm the file is /etc/kde3/kdm/Xservers. For gdm, you are going to have to edit /etd/gdm/gdm.conf. Just search for -nolisten tcp and remove it. Be sure to back up your config files before editing just in case. Good luck. By the way, I am running Debian unstable with all updates applied as of 05-04-2004.
--SN