LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2004, 12:04 PM   #1
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
Question How to startx into KDE instead of GNOME?


Hi,

When i run startx from command line, i'm taken into GNOME. What do i configure such that i get into KDE instead?


Thanks and Regards,

Edwin
 
Old 10-22-2004, 12:38 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
You could try editing /etc/init.d/xdm (X display manager). Scroll down to KDEROOTHOME. If it reads KDEROOTHOME=/root/.gdm, change it to /root/.kdm and see if that works.
 
Old 10-22-2004, 12:56 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
If you don't want to edit those files and you normally do boot into the command line, you can use startx to pick which environment to run ....

startx `which startkde`
startx `which start gnome-session`
startx `which startfluxbox`
 
Old 10-22-2004, 12:58 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
and yet anouther way of doing the same thing.....

Code:
echo "startkde" > ~/.xinitrc
untill you delete the .xinitrc file from your home directory, startx will load KDE.
 
Old 10-22-2004, 01:05 PM   #5
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by homey
If you don't want to edit those files and you normally do boot into the command line, you can use startx to pick which environment to run ....

startx `which startkde`
startx `which start gnome-session`
startx `which startfluxbox`
eh... whats `which startkde', `which start genome-session`, etc...? what should i type in place of these?


Regards,

Edwin
 
Old 10-22-2004, 01:35 PM   #6
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
ok...

i put startkde into .xinitrc and it works...

Question:
Why is it that when i run "startkde" from comman line, it gives me a $DISPLAY not set error,
but when i put "startkde" into .xinitrc and run "startx", it works?


Thanks and Regards,

Edwin
 
Old 10-23-2004, 06:42 PM   #7
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Because startkde is a graphical program... it needs X to run...
if you run startkde and you are not running X.. it will assume you are doing a remote login, and look in the DISPLAY variable for the ip address of the machine you are running X on...

but by putting it in .xinitrc, and running startx, X starts up first, then executes startkde in the .xinitrc file.
therefore when it looks for a locally running X server, it finds one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cant startx [pango gnome errors] slzckboy Slackware 3 09-22-2005 08:55 PM
Freerock Gnome startx problems w3edr5t Slackware 1 09-21-2005 03:08 PM
booting into GUI: Gnome, Startx:KDE!!!! Krenn Slackware 6 07-19-2004 09:28 AM
Startx still runs KDE 3.0.1 instead of KDE 3.1 jtp51 Linux - General 1 02-07-2003 11:08 AM
Gnome works but not with startx command lil_critter99 Linux - Software 1 12-14-2001 06:05 AM


All times are GMT -5. The time now is 02:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration