Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-17-2003, 02:12 PM   #1
LQ Newbie
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Rep: Reputation: 15
Forcing X to start gnome desktop

Hi all,

I'm running rh9:

I boot into runtime level 3, and if I want to start X server I type startx. Is there a way (like command line or something) that I can boot into a desktop (such as gnome) that is not the default? My default desktop when I boot in runtime level 5 brings me to KDE, and thats where I go if type startx in rtl 3. I want it to go to Gnome after typing startx, and go to KDE if in rtl 5.

It's weird, I know.
Any help would be greatly appreciated.
Old 11-17-2003, 02:47 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,041
Blog Entries: 11

Rep: Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907Reputation: 907
Hmmmm ... shouldn't be too difficult.

I believe that creating a file ~/.xinitrc
with a contents similar to
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $


# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap

if [ -f $userresources ]; then
    xrdb -merge $userresources

if [ -f $usermodmap ]; then
    xmodmap $usermodmap

# start some nice programs

exec fluxbox
should do the trick ... either .xinitrc or .xsession,
try them :)

Oh, I don't know what command you'd use for
Gnome, that's why fluxbox is still in my script ;)

Old 11-17-2003, 02:55 PM   #3
Registered: Nov 2003
Location: Australia
Distribution: Slackware 9.1
Posts: 166

Rep: Reputation: 30
Why not just change your inittab?
It's like /etc/inittab
I'm not sure what it is for RedHat but graphical login for Slackware is 4.
From there you can choose from a list of all graphical interfaces installed.

It's a very lazy way to go about it.
You will eventually learn that it's easier to boot into the command line.
Old 11-18-2003, 08:24 PM   #4
Registered: Nov 2003
Location: Land of the Rising Sun!
Distribution: Fedors Core 3, Red Hat 9, Mandrake 8.1
Posts: 52

Rep: Reputation: 15
Edit your .xinitrc
For GNOME use:


Or for KDE use:


Old 11-20-2003, 10:06 AM   #5
LQ Newbie
Registered: Nov 2003
Location: Rochester, NY
Distribution: Gentoo 1.4
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks guys, that helped.


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
KDE Gnome Desktop Menu Edits (right click on desktop) jdier Linux - Software 11 08-03-2006 05:05 AM
Loss of desktop functionality after setting new desktop from firefox in fc2/gnome. dr_zayus69 Linux - Software 3 03-09-2005 09:29 AM
How to start korganiser and reminger agent whenever i start the x deskTop seastar Linux - Software 5 08-15-2004 10:29 PM
How to start Gnome CD player, under KDE desktop? Whiskers Linux - Software 2 01-28-2004 03:30 PM
problem with "Start here" - Gnome desktop item aokawa Red Hat 0 09-04-2003 11:18 PM

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

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