Thursday, February 28, 2008

Switching from GDM to KDM.

For some reason, after yesterday Rawhide updates, GDM crashed my Xserver which freeze the whole UI system. After a few experiments i found out it have some sort of sigsev when dbus-daemon is being executed causing the gdm to breakdown

I'm not a funky foss devolopers besides bugzilla there's nothing i can do about it. So I started looking for an alternatives besides GDM. There are always wdm , kdm and simply xdm. All we need to do is just installed the respective Windows Manager and change our preference,

Some snippets from cat /etc/X11/prefdm:

if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
if [ "$DISPLAYMANAGER" = GNOME ]; then
preferred=/usr/sbin/gdm
elif [ "$DISPLAYMANAGER" = KDE ]; then
preferred=/usr/bin/kdm
elif [ "$DISPLAYMANAGER" = WDM ]; then
preferred=/usr/bin/wdm
elif [ "$DISPLAYMANAGER" = XDM ]; then
preferred=/usr/bin/xdm
elif [ -n "$DISPLAYMANAGER" ]; then
preferred=$DISPLAYMANAGER
fi
f
i

As we can see from the codes there's a file name /etc/sysconfig/desktop that holds a variable called DISPLAYMANAGER. By changing the value of DISPLAYMANAGER with the respective WM, we can use KDM or XDM as default.

The fastest way is just to vi /etc/sysconfig/desktop and added DISPLAYMANAGER=KDE .

Credits to Kagesenshi for poiting out the obvious!

No comments: