Linux – How change the default desktop manager in debian

linux

I am using Debian 6 with two desktop managers (Gnome and KDE). During installation, I chose KDE as the default desktop. But, now I want to change the default desktop to Gnome. How do I change it?

Best Answer

I have found the solution by editing the file default-display-manager in the path /etc/X11/:

#vim /etc/X11/default-display-manager

For Gnome, edit as:

/usr/sbin/gdm

For KDE, edit as below:

/usr/lib/kde4/bin/kdm

Once updated, reboot the computer. You can find it updated the display manager.

You can also do it by executing the below command:

$ sudo dpkg-reconfigure gdm
Related Question