Home » Operating Systems » How to enable Lubuntu auto login?

How to enable Lubuntu auto login?

Lubuntu is a fast and lightweight operating system developed by a community of Free and Open Source enthusiasts. This post explains how to enable Lubuntu auto login feature. The core of the Lubuntu system is based on Linux and Ubuntu . Lubuntu uses the minimal desktop LXDE, and a selection of light applications with a focus on on speed and energy-efficiency. Because of this, Lubuntu has very low hardware requirements. As explained in my other post, the LXDE desktop is a great option if you want a lightweight desktop environment for your server. Without further delay, let us see how to enable Lubuntu auto login feature.

Lubuntu Auto Login
Lubuntu Auto Login

Enable Lubuntu Auto Login

Depending on what release of Lubuntu you are using, you will have to use different methods to enable Lubuntu auto login.

Prior to 12.04 Precise Pangolin

To enable Lubuntu auto login in releases prior to 12.04 Precise Pangoling, you will have to edit /etc/lxdm/default.conf:

sudo nano /etc/lxdm/default.conf

Then uncomment the following line (remove the # in the front) to activate auto login:

# autologin=dgod

Next, change dgod to the username that you want to login as. The final edited line should look like this:

autologin=USERNAME

Replace, USERNAME with the username you wnat to login as. Save and exit. Upon next reboot your Lubuntu system should automatically log the user in.

12.04 Precise Pangolin and Later Releases

Since, Precise Pangolin, lightdm is used as the display manager. Therefore you will have to edit /etc/lightdm/lightdm.conf:

sudo nano /etc/lightdm/lightdm.conf

Edit the file to look like this:

[SeatDefaults]
autologin-user=USERNAME
autologin-user-timeout=0
user-session=Lubuntu
greeter-session=lightdm-gtk-greeter

Replace, USERNAME with the username you want to login as. Save and exit. Upon next reboot your Lubuntu system should automatically log the user in. This procedure works on 12.10 Quantal Quetzal as well. The official how-to can be found here.

Things to Know

  • By enabling Lubuntu automatic login, you are making your system less secure. Anybody with access to your system can easily browse/edit your files.
  • Only one user can be login automatically.
  • A headless (no desktop environment) sytem is considered more secure and is the recommended method for servers.

Disable Lubuntu Auto Login

To reverse or disable Lubuntu automatic login, edit and comment out the following lines:

Prior to 12.04 Precise Pangolin

Edit /etc/lxdm/default.conf and make the change as shown below:

# autologin=USERNAME

12.04 Precise Pangolin and Later Releases

Edit /etc/lightdm/lightdm.conf and make the change as shown below:

# autologin-user=USERNAME
# autologin-user-timeout=0

Save, exit, and reboot.

Go ahead, enable Lubuntu auto login and enjoy the added convenience. Of course, remember that your system is now less secure.

We Are Hiring: Familiar with Media Streaming, HTPC, Home Server, Smart Home, and Home Automation topics? Write about it and earn money. No writing experience needed. APPLY HERE.

Get 20% OFF with IPVanish VPN:

♦   Hide your browsing and streaming activity: No logs and no tracking
♦   Access geo-restricted content from anywhere
♦   Encrypt and anonymize: Kodi, Plex, Downloads, Personal Info
♦   Windows, Mac, Linux, Android, iOS, Router, and more.
♦   Money back guarantee - Sign Up Now

About the author

Anand

Anand is a self-learned computer enthusiast, a part-time blogger, and a Food Scientist by career. He has been blogging since 2010 on Linux, Ubuntu, Home/Media/File Servers, Smart Home Automation, and related HOW-TOs on htpcbeginner.com and smarthomebeginner.com.

Smart Home Beginner

Join the other 110,000 followers