LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-30-2005, 04:59 PM   #1
haldara
LQ Newbie
 
Registered: Jul 2003
Posts: 19

Rep: Reputation: 0
switching to KDE as default desktop


hi:

i've read quite a few postings on how to set KDE or GNOME as the default desktop, but for some reason, gnome keeps on coming up even though I've explicitly set kde everywhere. I'm running debian if that's relevant.

Here is my home directory's .xinitrc file:

############

#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# TESTING -- open some sample windows
#xterm -geometry 80x40+10+100 -fg black -bg white &

# invoke global X session script
. /etc/X11/Xsession

# start up the KDE window manager and desktop environment
startkde

############

I just switch to one of the text terminals with Ctrl-Alt-F1, kill the X server, and try "startx".

can anyone tell me where i'm going wrong here?
 
Old 03-30-2005, 05:15 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
At your login screen is where you can set the default window manager, look for some kind of drop-down box.
 
Old 03-30-2005, 05:17 PM   #3
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
DO you automatically boot into GUI? or does you system boot to command prompt?

If you boot into gui, try logging out and changing your log-in session mananger (e.g. KDE / Gnome).

Otherwise there are a number of ways to switch this depending on your distribution of linux?
 
Old 03-30-2005, 05:30 PM   #4
haldara
LQ Newbie
 
Registered: Jul 2003
Posts: 19

Original Poster
Rep: Reputation: 0
my system normally boots into the GUI and starts Gnome automatically.

however, unlike fedora or some other distros i've used, this one doesn't have any advanced
options at all in the GUI login screen for changing your desktop environment.

Do you know of any distro-specific ways to change on Debian-based systems? although
i initially thought that the xinitrc file was sufficiently general.

thx
 
Old 03-30-2005, 08:06 PM   #5
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
can you log out of gnome?
 
Old 03-31-2005, 01:46 AM   #6
haldara
LQ Newbie
 
Registered: Jul 2003
Posts: 19

Original Poster
Rep: Reputation: 0
yup, i can log out, but then i get the generic debian login screen, with no options aside from entering my username and password :-(

i remember switching to GNOME from KDE using the xinitrc file before, but can't seem to pinpoint what the problem is now.

i figure that for GNOME to start as a default every time, somewhere in some configuration file, there's a call to "exec gnome-session", but aside from xinitrc, I don't see what file that might be.
 
Old 03-31-2005, 01:58 AM   #7
haldara
LQ Newbie
 
Registered: Jul 2003
Posts: 19

Original Poster
Rep: Reputation: 0
solved

OK so apparently, i was using xdm as my display manager (not sure where that fits in, but whatever),
and when using xdm, you need to edit the ~/.xsession file with the same changes that would normally
go in the .xinitrc.

THe following .xsession:

#!/bin/bash
/usr/bin/startkde

did the trick.
 
Old 04-02-2005, 04:36 AM   #8
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Quote:
Originally posted by haldara
my system normally boots into the GUI and starts Gnome automatically.
Do you know of any distro-specific ways to change on Debian-based systems? although
i initially thought that the xinitrc file was sufficiently general.
thx
Yeah, it's quite easy:

To get everything running propperly you should switch to a console (ALT+CTRL+F1), login as root or do 'su root', as you will have to restart the X stuff.

First get KDM installed, if apt complains get rid of GDM first. (I assume you already now apt-get).
Once KDM is installed you will be prompted to decide which Desktop Manager to use (XDM/KDM/GDM/WDM), choose KDM.
If KDM is already installed yu can reconfigure the desktopm manager preferences issuing:

Code:
dpkg-reconfigure kdm
A dialog will appear where you can choose which Desktop Manager to use.
If you don't get the KDM login you should start kdm explicitly:

Code:
/etc/init.d/gdm stop                (this shouldn't be there but it sometimes is)
/etc/init.d/kdm start
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE 3.3 Bad Monitor Switching on Desktop Switching Inchoate Linux - Software 1 05-25-2005 02:00 PM
Changing shortcut for switching desktop (KDE) lemvigh Linux - Software 1 05-12-2005 08:48 AM
Switching between Gnome and KDE desktop satimis Fedora 2 04-25-2005 06:16 PM
KDE desktop switching problem wisdom Linux - Software 5 01-21-2005 04:17 AM
Switching from Gnome to KDE Desktop grelmedenoob Linux - Newbie 1 09-07-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration