Re: Correct inittab for gnome?



> > I understand this is probably a very dumb question, but I still need help
> > with it.  How do I configure /etc/inittab to run the gnome login screen
> > and then gnome-session?  Right now my inittab is using prefdm to choose
> > among three managers: gdm, xdm, and twm.  The login screen comes up, but
> > every time I login in, I get twm.  I can start gnome-session from twm, but
> > then of course, it's gnome-session on top of twm, and that's no good.  Is
> > there a simple way to make my box start with gnome?  Thanks!
>
> You'll want to edit your ~/.xsession.  gdm will start whatever session the
> user has listed there...
>
> echo 'exec gnome-session' > ~/.xsession
>
> should be adequate.

If you have root access, you could also try

echo GNOME > /etc/sysconfig/desktop

This makes gnome-session the default for all users, on Red Hat Linux, anyway.

If you are using gdm, you should be able to achieve the same effect by
manipulating the files on /etc/X11/gdm/Sessions - there should be one or each
"session type" option in the gdm login window. I think you're supposed to be
able to change the default session type by updating the symbolic link "default"
(in other words, 'ln -sf GNOME default' ought to do what you want), but I
haven't actually tried this, and I don't think its documented anywhere.

- Toralf



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]