Fedora 9 - how to replace gdm with kdm

11:48:00 AM 0 Comments

It took me some time googling to find out how to do this on F9, so I
thought I'd share it - how to configure the system to use kdm as the
display manager instead of gdm - in case it saves time for someone else.

In Fedora 9 there appears to be no GUI-based way of configuring this
(e.g., via 'System Settings'). Nevertheless, it is pretty easy.

You do need to become root to do it (e.g., 'sudo su').

The script:

/etc/X11/prefdm

is run at startup time; it looks for /etc/sysconfig/desktop and if
it exists, 'sources' it. It then checks to see if the DISPLAYMANAGER
variable is set and, if so, uses its value to try to determine which
display manager to use (expecting it to be one of: GNOME, KDE, WDM,
XDM). If this variable is not set, it tries to execute, in this order:

gdm
kdm
wdm
xdm

So the first of these that runs successfully is the one that will be
used, if the DISPLAYMANAGER variable is not set.

On my system /etc/sysconfig/desktop did not exist, so prefdm was
executing gdm. The solution, of course, is to create
/etc/sysconfig/desktop and simply put this line in it:

DISPLAYMANAGER=KDE

If the file exists, of course, just make sure DISPLAYMANAGER is set as
above.

(Reference:

http://mail.gnome.org/archives/garnome-list/2002-September/msg00028.html
)

Note: I used this solution to solve another irritating problem: gdm on
F9 always defaults to gnome - you have to explicitly tell it to use kde
each time if you're a KDE user.

Some say he’s half man half fish, others say he’s more of a seventy/thirty split. Either way he’s a fishy bastard.