LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-04-2004, 03:26 PM   #1
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Rep: Reputation: 30
Problem xinitrc, Gnome starts instead of KDE


I've got a really strange problem with my Xserver. My xinitrc file (in directory /etc/X11/xinit) contains the line startkde. I don't have a .xinitrc file in my home dir so X should use the default xinitrc file. This system (Debian testing) is running since March and it always used to start KDE (I'm using xdm by the way). I updated my system yesterday (apt-get upgrade) and all of a sudden Gnome starts when I log in. My xinitrc hasn't changed. It still contains the line 'startkde' and not 'gnome-session'.

It's really weird and I don't understand what's going on. Can somebody help me with this problem?
 
Old 09-04-2004, 04:55 PM   #2
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
If you are using xdm, you should start from your ~/.xsession

Example:

#!/bin/sh
xhost +localhost

exec icewm
#exec openbox
 
Old 09-04-2004, 05:50 PM   #3
wrexy
LQ Newbie
 
Registered: Sep 2004
Location: australia
Distribution: debian
Posts: 5

Rep: Reputation: 0
Have you checked your inittab the line where it specifies what to run at level 5:

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/xdm -nodaemon

Good luck

Wrexy
 
Old 09-04-2004, 09:42 PM   #4
static_drc
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian GNU/Linux
Posts: 23

Rep: Reputation: 15
Hehe. Give this a shot. As root:

update-alternatives --config x-window-manager
update-alternatives --config x-session-manager

and select what you want from the lists.

When a new window manager or desktop environment is installed or updated in Debian, I believe it automatically sets itself as the new default.
 
Old 09-04-2004, 10:12 PM   #5
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Good tip! it works, i tried it (i try everything)

thanks
 
Old 09-05-2004, 06:24 AM   #6
McCloud
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 179

Original Poster
Rep: Reputation: 30
Great, it worked.

One thing I want to know. Is this a Debian feature (the x-window-manager and x-session-manager files in /usr/bin) or do all distributions work like this ???

Thanks for the help.
 
Old 09-05-2004, 07:47 AM   #7
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Update-alternatives is Debian specific. See "man update-alternatives" for more info. There's also a GUI frontend "galternatives", which you can install if you want to.
 
Old 09-05-2004, 08:03 AM   #8
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
good to know, thanks, DP.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kdm starts gnome not kde geomatt Slackware 8 04-19-2005 07:35 AM
dpi font | gdm | kde DE | xinitrc.kde | Slackware 10 acummings Slackware 2 07-28-2004 10:28 PM
Editing inittab & rc.4 works, but starts Gnome, not KDE Magnabrau Slackware 9 07-17-2004 05:53 PM
Problem starting Debian KDE 3.2 - Gnome starts rockee Linux - Newbie 1 03-19-2004 12:02 PM
install KDE but GNOME starts (may soon lose mind) keirobyn Linux - Software 3 12-17-2001 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:09 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