Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

X just crashed on my Ubuntu 10.04 computer. GNOME is working, but I would like to use KDE instead. Running


just starts GNOME, loging out through GNOME brings me back to the shell. I tried

sudo kdm

but it doesn't do anything.

share|improve this question
up vote 3 down vote accepted

Don't run startx directly, instead use the startup scripts:

sudo start kdm

For Gnome, you would use:

sudo start gdm

For reference, equivalents of these command would be:

sudo service start kdm
sudo /etc/init.d/kdm start

(to be exact, the first is actually a wrapper which calls the new Upstart script)

share|improve this answer
Thanks for your help! – Ryan Hoots May 17 '11 at 16:54
It worked! Thanks! – Ryan Hoots May 17 '11 at 17:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.