Bug 101163 - kdm always starts X-Server
Summary: kdm always starts X-Server
Status: RESOLVED WORKSFORME
Alias: None
Product: kdm
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 11:31 UTC by Ernst Bachmann
Modified: 2009-10-26 06:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst Bachmann 2005-03-09 11:31:14 UTC
Version:           ConfigVersion=2.3 (using KDE KDE 3.3.92)
Installed from:    Gentoo Packages
OS:                Linux

It seems that with ConfigVersion=2.3 of kdmrc, the "Xservers" file has been merged into kdmrc.
The Problem now is that I can't set up kdm to run as XDMCP server only, it always tries to start an local X-Server.
In the old config one could simply comment all lines of the XServers config file to prevent that, but with the new config it seems that even 'StaticServers=""' defaults to 'StaticServers=":0"'.
With the box in question sitting in a rack with no monitor attached, it's quite useless to start a local X, even worse, the unconfigured X kdm tries to start causes the machine to lock up upon hardware detection.
Comment 1 Stephan Kulow 2005-03-09 11:52:28 UTC
you tried really hard, did you? There are plenty of ways to disable the X server startup. The most obvious setting the ServerAttempts to 0
Comment 2 Oswald Buddenhagen 2005-03-09 17:55:55 UTC
> The most obvious setting the ServerAttempts to 0
>
incidentally, this does not work. ;)

but, indeed, StaticServers= WORKSFORME (without quotes, of course - no key in whichever kconfig file needs/groks them).
Comment 3 Ernst Bachmann 2005-03-09 18:41:54 UTC
Yep, you're right, there was probably something else wrong...

I got it working with the following changes to kdmrc (not sure which one actually did the trick)

[General]
StaticServers=
...
[X-:*-Core]
ServerAttempts=0
ServerCmd=/bin/true
...
and I removed the [X-:0-Core/Greeter] sections (they were empty).

Thanks for your time, and next time I'll try a bit harder before bugging you.
Comment 4 Charlweed 2009-10-25 23:38:34 UTC
As of Sun Oct 25 15:23:24 PDT 2009

kdm still creates a softlink
 Xservers -> ../../X11/xdm/Xservers

 in ${kde_confdir}, and text is written into the file.

The README mentions that Xservers exists, but it doesn't mention that the file is useless.

Finally, googling for how to setup XDMCP with KDE all yields incorrect instructions on how to prevent X startup. This bug report is the only place I have seen that correctly shows how to prevent the X server from starting.
Comment 5 Kevin Kofler 2009-10-26 06:03:46 UTC
That symlink is created by the Fedora kde-settings-kdm package, it's not a bug in upstream KDM.