7

I installed Natty over my 10.10 that started in text mode. Before Natty, after booting, I run the graphical environment with startx and all was fine. Now, with Natty, if I run startx, the graphical environment starts without any gnome or unity menu!.

  • How do I start X and Unity, without a graphical login manager?

Thanks in advance.

djeikyb
  • 32,005

4 Answers4

4

Unity needs gdm to be able to start, so you need to start it:

service start gdm

or the good old:

/etc/init.d/gdm start

If you don't want to have to enter your credentials again you can either activate autologin in Gdm or switch the default session to classic in gdm. After login off and stopping gdm, startx should work again.

Javier Rivera
  • 35,434
2

startx gets its configuration from the systemwide /etc/X11/xinit/xinitrc if you don't have a ~/.xinitrc of your own. I'm on a KDE system so I can't test this, but I think making a ~/.xinitrc for your user with:

exec $HOME/.gnome2/session

might help. If you don't have a gnome session file there, then use /usr/share/gnome/default.session

maco
  • 16,132
2

Try to create a .xsession file in your home directory like this:

gnome-session --session=classic-gnome
2

What you're asking for is impossible, Unity depends on Gdm service dbus (display, user etc) and expects you to log in via that method.

It sounds like you wish to log in using an alternative method of authentication. You should look at pam and the different pam.d modules and configurations if the login automatically option is not what you need.

For instance you can log in if there is an ssh key present in the session, or if you have a usb dongle plugged in. etc.