Click to See Complete Forum and Search --> : Starting Gnome from the command line?


dysharmonic
10-29-2002, 01:24 AM
Hi

How do I start Gnome from the command line?

When I first installed RHL 7.3 I chose KDE to be the default window manager. So everytime Linux starts, it boots right into KDE, that is after loging in at the login screen. Of course I can select Gnome from the drop down list (at the login screen)

Now if I boot into runlevel 3 (linux 3 from the boot prompt), how do I start Gnome (or any other managers for that matter) from the command prompt?

startx boots me into KDE.

I guess there are some script files to edit.

Thanx :)

bskahan
10-29-2002, 01:51 AM
look at the kdm session for gnome (/etc/X11/xdm/Sessions/gnome maybe) and recreate the relevant (relevant meaning the part about "gnome-session") parts in your home .xsession file.

good luck

shadowrider
10-29-2002, 10:22 PM
hi..
not sure if this helps, but i typed "gdm" and it brought me to gnome from command line.
also, if you 've installed switchdesk, you can just type "switchdesk" and it'll allow you to set the default window manager the next time you login.
maybe give that a try..not sure if it will work or not though.
sorry

truls
10-30-2002, 01:13 PM
There is indeed a config file.
It's called .xinitrc, create this in your regular users home directory. It only needs to contain a single line starting your window manager.

For Gnome it's:

exec gnome-session

For KDE it's:
startkde

When you do a startx this will read the .xinitrc file.

dysharmonic
11-02-2002, 03:45 AM
Many thanx.

Working on it...

trashthing
11-03-2002, 09:49 AM
hi i have red hat linux 8. i had 7 also, and this is how i start my desktops. first type:

switchdesk gnome

after you have typed that, type this

startx

that should bring you into gnome.

-MinD