- 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:
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!
Thanks for sharing Diego.
What if it says access deny when trying the first command?
nvm got it
Thanks this was exactlly what i was looking for
Great job thank you °-)
I wanted to login as root and didn't know how.
After searching 3 hours, found it!
Thanks.
Post a Comment