LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Thread Tools
Old 05-15-2007, 02:45 AM   #1
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Slackware, baby!
Posts: 78
Thanked: 0
Making KDE the default desktop manager


[Log in to get rid of this advertisement]
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.
tux_addict is offline     Reply With Quote
Old 05-15-2007, 02:48 AM   #2
jay73
Senior Member
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 8.04 / 9.04
Posts: 4,780
Thanked: 89
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.
jay73 is offline     Reply With Quote
Old 05-15-2007, 03:14 AM   #3
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070
Thanked: 0
I will assume that you have not already installed kde.

# aptitude install kde

At some point it will ask you which graphics manager you want to use, choose kdm.
Jongi is offline     Reply With Quote
Old 05-15-2007, 03:45 AM   #4
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Slackware, baby!
Posts: 78
Thanked: 0

Original Poster
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!
tux_addict is offline     Reply With Quote
Old 05-15-2007, 04:07 AM   #5
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070
Thanked: 0
Can you post your /etc/inittab

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.

Last edited by Jongi; 05-15-2007 at 04:10 AM..
Jongi is offline     Reply With Quote
Old 05-15-2007, 09:09 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,511
Thanked: 0
Quote:
Originally Posted by tux_addict
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.
HappyTux is offline     Reply With Quote
Old 05-17-2007, 04:05 AM   #7
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Slackware, baby!
Posts: 78
Thanked: 0

Original Poster
Quote:
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.
tux_addict is offline     Reply With Quote
Old 05-17-2007, 12:46 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,511
Thanked: 0
Quote:
Originally Posted by tux_addict
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.
HappyTux is offline     Reply With Quote
Old 05-18-2007, 10:31 AM   #9
S3xY
LQ Newbie
 
Registered: May 2007
Location: Cairo
Distribution: Debian , FreeBsd
Posts: 19
Thanked: 0
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 , ..
S3xY is offline     Reply With Quote
Old 05-19-2007, 12:15 AM   #10
eco2geek
Member
 
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1
Thanked: 0
Try this.

First, nuke the startup links to kdm (or gdm, or xdm) with the command (as root),

update-rc.d -f kdm remove

Substitute gdm or xdm for kdm. This will keep X from starting. (To revert back, use the command "update-rc.d kdm defaults".)

Then, see what your current X session manager is with the command

update-alternatives --list x-session-manager

The output should look something like:

Code:
/usr/bin/startkde
/usr/bin/icewm-session
/usr/bin/gnome-session
Then, change it with the command

Code:
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.
eco2geek is offline     Reply With Quote
Old 05-23-2007, 03:00 AM   #11
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Slackware, baby!
Posts: 78
Thanked: 0

Original Poster
Excellent advice!

Quote:
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!
tux_addict is offline     Reply With Quote
Old 05-30-2007, 03:20 AM   #12
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Slackware, baby!
Posts: 78
Thanked: 0

Original Poster
Alternatives to update-rc.d

While doing a search, I encountered Andreas Janssen’s website where he notes the following: http://www.andreas-janssen.de/debian...-sarge.html.en.

Quote:
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.
Just wanted to mention that.
tux_addict is offline     Reply With Quote
Old 05-30-2007, 03:11 PM   #13
eco2geek
Member
 
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1
Thanked: 0
AFAIK, using sysvconfig and/or sysv-rc-conf won't keep startup links from being recreated after an upgrade, either.

The only program I've seen that accomplishes that is one written specifically for Kanotix, named freeze-rc.d. (It still works.)
eco2geek is offline     Reply With Quote
Old 06-09-2007, 05:01 AM   #14
tux_addict
Member
 
Registered: Dec 2004
Location: Nairobi, Kenya
Distribution: Slackware, baby!
Posts: 78
Thanked: 0

Original Poster
Splendid!
tux_addict is offline     Reply With Quote
Old 06-09-2007, 05:32 AM   #15
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,104
Thanked: 12
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.
makuyl is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE as default desktop manager Pr_009 Fedora 4 11-25-2005 09:46 PM
Making Fluxbox the Default Display Manager in Fedora Core II pcflight Linux - Software 3 09-29-2004 11:20 AM
Making KDE default? wswartz Fedora - Installation 2 06-02-2004 09:35 PM
making KDE default DM demmylls Linux - General 4 10-22-2003 05:07 PM
making KDE 3.1 my default desktop speedyG Linux - Software 2 03-01-2003 06:42 PM


All times are GMT -5. The time now is 12:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration