How do I use KDM to start X without '-nolisten tcp'

Asked by Alvin

I want to be able to run remote X applications on my X server through rsh, so I commented the line "ServerArgsLocal=-nolisten tcp" in /etc/kde3/kdm/kdmrc en restarted X.
However, ps -ef | grep /usr/bin/X still shows X running with -nolisten tcp:

root 6190 6176 2 13:38 tty7 00:01:34 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-6NUNwc

So, that does not work. This is the development version of Kubuntu 7.10. Am I forgetting something or should I file a bug?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Alvin
Solved:
Last query:
Last reply:
Revision history for this message
Jonathan (jonathan-hipkiss) said :
#1

Hi Alvin,

I found your post because I was trying to find out where to disable nolisten myself. I've done what you've done and it has worked fine. I'm using Kubuntu 0710 myself.

The only thing I can think of is after you changed kdmrc did you restart X? The best way to do that is to log off and then do a CTRL+ALT+Backspace, then log back in and check the X process again with PS.

Not much help but you never know.

Jonathan

Revision history for this message
Alvin (alvind) said :
#2

Well, it should work fine like it does for you, but I did restarted X. Even a reboot does not change the fact that X starts with -nolisten tcp. I will investigaten this further. Maybe there are more settings to be changed?

Revision history for this message
Alvin (alvind) said :
#3

My problem is solved by changing /var/run/kdm/kdmrc. However, this raises question #14497. Why?

Revision history for this message
Alvin (alvind) said :
#4

Err... I meant #question 14552.

Revision history for this message
Alvin (alvind) said :
#5

Not good. I did some fresh installs of Kubuntu 7.10 on different pc's and they all have the following problem:

I commented "ServerArgsLocal=-nolisten tcp" in /etc/kde3/kdm/kdmrc AND in /var/run/kdm/kdmrc.
After restarting kdm, the line in /var/run/kdm/kdmrc is uncommented again, so X still does not listen to connections.

The solution: change /var/run/kdm/kdmrc, copy it to /etc/kde3/kdm/kdmrc and restart kdm. Now it is working.
The question remains why two files have to be changed and why a change gets overwritten.

Should I create a bug out of this?