- 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.