You are not logged in.

#1 2005-03-26 22:19:53

Michel
Member
From: Belgium
Registered: 2004-07-31
Posts: 286

X is listening while using "-nolisten tcp"-option

Heya all,

I don't know which upgrade did it, bit I think this wasn't the case earlier. In my "/opt/kde/share/config/kdm/Xservers"-file I have added the "-nolisten tcp"-option to the X-startup-commands. However, when I do a "netstat -lp" it still says X is listening on a tcp-port (twice .. which seems strange):

tcp        0      0 *:6000                  *:*                     LISTEN      -                                     
tcp        0      0 *:6000                  *:*                     LISTEN

Anyway an idea why it does this (and how to fix it)?

Thanks,

Michel

Offline

#2 2005-03-26 22:38:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: X is listening while using "-nolisten tcp"-option

hmm, good question... looks like mine is doing it as well... hrrrmmm

Offline

#3 2005-03-27 00:16:13

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: X is listening while using "-nolisten tcp"-option

Mine's not doing it.
I've only added "-dpi 96" param to KDM and "netstat -ltp" doesn't show anything (nor "netstat -lp").

Offline

#4 2005-03-27 01:38:41

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: X is listening while using "-nolisten tcp"-option

I added -nolisten tcp into my defaultserverargs in whatever script that was... seems like its doesn't work... I'm going to make a ~/.xserverrc and try that

Offline

#5 2005-03-27 02:34:02

puntmuts
Member
Registered: 2005-02-22
Posts: 138

Re: X is listening while using "-nolisten tcp"-option

The script probably was startx, but the .xserverrc file in your home dir works fine.

 X -nolisten tcp

Maybe AL should provide a more secure sitewide default configuration.


Out / Gone
Mirgrating all my machines off ArchLinux . No longer part of the ArchLinux community / users .
Done. Goodbye.

Offline

#6 2005-03-27 02:35:46

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: X is listening while using "-nolisten tcp"-option

yeah, it works great in the ~/.xserverrc

Offline

#7 2005-03-27 02:45:12

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: X is listening while using "-nolisten tcp"-option

I believe the initial poster didn't put the option right.

Using KDM, I have it working with:
"ServerArgsLocal=-nolisten tcp -dpi 96" in /opt/kde/share/config/kdm/kdmrc.

Note that KDE comes with "-nolisten tcp" already set. I only had to add -dpi 96 to the config variable.

Offline

#8 2005-03-27 03:23:30

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: X is listening while using "-nolisten tcp"-option

i edit /usr/X11R6/bin/startx, it works with xfce4, at least.

defaultserverargs="-nolisten tcp"

Offline

#9 2005-03-27 09:22:32

Michel
Member
From: Belgium
Registered: 2004-07-31
Posts: 286

Re: X is listening while using "-nolisten tcp"-option

Heya all,

thanks for all the nice tips.

Michel

Offline

Board footer

Powered by FluxBB