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?
I have found the solution by editing the file
default-display-manager in the path
For Gnome, edit as:
For KDE, edit as below:
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
sudo update-alternatives --config x-window-manager
This uses Debian's built-in mechanisms to choose "alternatives" for default commands.