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

I'm trying to create my own Ubuntu LiveCD without Unity. When lightdm loads is says (Failed to load session "ubuntu"). The autologin fails and then lightdm reloads with a normal login screen.

I can login fine with ubuntu user and if I run "sudo x-session-manager" I still get the error message (Failed to load session "ubuntu"). But that's as far as I can pin point where the problem is.

Where is the default session manager setting?

Lightdm config /etc/lightdm/lightdm.conf says that autologin-session=lightdm-autologin but I'm not sure what that is. Trying to edit this config wouldn't help anyways since casper overwrites it during bootup.

I thought maybe casper sets this but don't see it anywhere in it's config.

Any help? I want the default to be just 'gnome'. This would have to be set while creating the LiveCD iso.


share|improve this question
I figured it out. "…; But the command should be: "sudo /usr/lib/lightdm/lightdm-set-defaults --session gnome-shell" Place it in your script to build the LiveCD "after" lightdm is installed. This just adds the line "user-session=gnome-shell" to "/etc/lightdm/lightdm.conf" – Peter Quiring Feb 24 '12 at 19:42

Copying user's comment in his question to an answer.

I figured out the solution with the help of this blogpost:

But the command should be:

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

Place it in your script to build the LiveCD "after" LightDM is installed. This just adds the line user-session=gnome-shell to /etc/lightdm/lightdm.conf.

share|improve this answer

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.