LinuxQuestions.org
Help answer threads with 0 replies.
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 11-17-2003, 02:12 PM   #1
GoatKing
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

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

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

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

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

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

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

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

# 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 ;)

Cheers,
Tink
 
Old 11-17-2003, 02:55 PM   #3
Chu
Member
 
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
tiger3
Member
 
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:

#!/bin/sh
gnome-session

Or for KDE use:

#!/bin/sh
startkde

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

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


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
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 12:44 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration