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

Currently my ubuntu setup is going directly to console. I have LXDE installed, and have to enter "startlxde" every time I restart the computer.

Is there a way to automatically run this command at startup?

share|improve this question

It sounds like you don't have a display manager installed. This is what would normally start up X (the graphical server) and get you into a position where you can log in. The confiusing thing is how you ended up without gdm or lightdm in the first place.

If you're using 11.10, I suggest you run

sudo apt-get install lightdm

That should install everything it needs in terms of start up scripts and should display something fancy for you on boot.

If you're on something before 11.10, swap out lightdm for gdm.

If you did this on purpose and you don't want a display manager and only want a single-user system without login protection, look into nodm which is a display manager that just spits you out on a desktop as a user. It's a bit more manual to set up though.

share|improve this answer
Thanks, I will have to look into downloading a display manager. The reason why I don't have one installed by default is because I am running a custom version hacked to run on the HP touchpad. – user26968 Oct 14 '11 at 0:22
nodm might be perfect for you, but start out with an established one like lightdm or gdm to begin with. – Oli Oct 14 '11 at 0:23

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.