DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I’d like to make KDE rather than GNOME the default desktop manager in Debian 4.0. I don’t wish to start GDM though. I simply want to log in from the command line with `startx’. Normally, this would involve a small change to $HOME/.xinitrc or /etc/X11/xinit/xinitrc, but my attempts so far have yielded little fruit. Is there anyone out there who may be able to offer some guidance? Thanks.
What if you select "Sessions" on thel log-in screen? It should offer you a choice of desktops, including KDE. Select it, log in and the system will ask whether you want to keep KDE as your default; I think the answer is obvious.
Actually, as i mention in my post i would prefer to avoid the graphical greeter altogether (KDM and GDM) and log in from the command line with startx. Currently, when i disable GDM, startx launches me into GNOME. Using KDM rather than GDM would probably launch me into KDE (i will admit that i haven't tried it yet) but i am curious to know if there isn't some configuration file i could edit instead. For instance, in Slackware this is pretty straightforward. I appreciate the suggestions all the same!
EDIT: I just remembered I had wanted to do a similar thing to fix a problem i was having. I never did try the suggestions given here as i just re-installed.
I’d like to make KDE rather than GNOME the default desktop manager in Debian 4.0. I don’t wish to start GDM though. I simply want to log in from the command line with `startx’. Normally, this would involve a small change to $HOME/.xinitrc or /etc/X11/xinit/xinitrc, but my attempts so far have yielded little fruit. Is there anyone out there who may be able to offer some guidance? Thanks.
Have you tried using startkde or putting it in your .xinitrc for using startx? This would be after having removed the gdm package so that it never gets started or if not wanting to remove the package remove the gdm link in the /etc/rc2.d directory this will stop if from starting as well.
Have you tried using startkde or putting it in your .xinitrc for using startx? This would be after having removed the gdm package...
Yes, Happy Tux, I did try making the changes in .xinitrc (exec=kde, or something of the sort)
I also made KDM my default login manager (dpkg-reconfigure kdm), as was suggested earlier, made the kdm script in /etc/init.d/ non-executable, then tried to log in to KDE with startx - and ended up in GNOME. So GNOME is still the default desktop.
As for Jongi's suggestion, logging in from the console is not the problem. The problem is logging in to KDE and not GNOME. I'm getting the sense that the Debian setup is a wee-bit complicated.
Yes, Happy Tux, I did try making the changes in .xinitrc (exec=kde, or something of the sort)
I also made KDM my default login manager (dpkg-reconfigure kdm), as was suggested earlier, made the kdm script in /etc/init.d/ non-executable, then tried to log in to KDE with startx - and ended up in GNOME. So GNOME is still the default desktop.
As for Jongi's suggestion, logging in from the console is not the problem. The problem is logging in to KDE and not GNOME. I'm getting the sense that the Debian setup is a wee-bit complicated.
I never really tried starting X in from the console before but all I had to do here was create an ~/.xinitrc make it executable then have exec startkde as the contents and kde started up with the startx command with me logged in as my normal user, it even restored my previous session as I had left it when logging out and stopping kdm.
when u use GDM , or KDM and alot of GUI's
when u Login to the session it asked u if u want to make it Default or just this session
u want it default , choose make it default .
sure there is another ways through X config , but since u use GDM , ..
update-alternatives --config x-session-manager
There are 3 alternatives which provide `x-session-manager'.
Selection Alternative
-----------------------------------------------
* 1 /usr/bin/startkde
2 /usr/bin/icewm-session
+ 3 /usr/bin/gnome-session
Press enter to keep the default[*], or type selection number:
Select "1" for "startkde" (mine's already set that way, as you can see) and then you should be able to type "startx" to start KDE.
First, nuke the startup links to kdm (or gdm, or xdm) with the command (as root),
update-rc.d -f kdm remove...
Excellent advice eco2geek. I tried it out and now I can finally log into KDE underneath my beautiful, red Debian logo (I installed the linuxlogo package). I did another search on the Debian forum and discovered that my question had already been asked (and answered) before, so I AM guilty of being redundant. In any case though, I am grateful for the tip.
Meanwhile, update-rc.d and update-alternatives look like elegant solutions. Way to go Debian!
There are several ways to change the runlevels according to your wishes. The program update-rc.d from the base system is not to be recommended, because it is supposed to allow packages to create or remove links during installation/deinstallation. If you remove the links using update-rc.d, they will be automatically recreated once the package is updated. Instead, you should install and use programs like sysv-rc-conf (or) sysvconfig.
You can add a "update-rc.d xdm stop 01 1 .", or something similar that won't actually do anything if xdm isn't started. It should keep upgrading the xdm package from creating new symlinks though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.