Tuesday, 6 March 2012

Autologin - Xubuntu

To enable autologin in Xubuntu:
  • Open the file /etc/lightdm/lightdm.conf
            $ sudo leafpad /etc/lightdm/lightdm.conf
  • Modify the value of the string "autologin-user" with the required user name
        Eg: autologin-user=MyLoginName
  • Save the file
  • Reboot/ restart

To enable autologin in Xubuntu10.04:
  • Open the file /etc/gdm/custom.conf
            $ sudo mousepad /etc/gdm/custom.conf 
  • Add these fields:

    TimedLoginEnable=false
    AutomaticLoginEnable=true
    TimedLogin=user_You_want_to_login
    AutomaticLogin=user_You_want_to_login
    TimedLoginDelay=30
  • Save the file
  • Reboot/ restart

Note:
  • Make sure the user is created before modifying the file.
  • You can use any text editor instead of leafpad/mousepad.

7 comments:

Diego Gramajo said...

Great! It worked very well, but my lightdm.conf didn't have the "autologin-user" tag, I added it with my user and got it going. Thanks!

Sharan Aiyappa, Anu Subbappa said...

Thanks for sharing Diego.

Unknown said...

What if it says access deny when trying the first command?

Unknown said...

nvm got it

Shashank said...

Thanks this was exactlly what i was looking for

Lemik00 said...

Great job thank you °-)

Temp said...

I wanted to login as root and didn't know how.
After searching 3 hours, found it!
Thanks.

Post a Comment