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

About an hour ago, I asked how I could set Gnome-shell as default desktop interface for Ubuntu replacing Unity, and I was advised to issue this command:

sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell

While this is related to that, it's a different question. Now, how do I set Unity back as default via command line?

share|improve this question
up vote 6 down vote accepted
sudo /usr/lib/lightdm/lightdm-set-defaults -s ubuntu

sets Unity 3d as default.

share|improve this answer

Your Answer


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