LightDM: the lightweight display manager for Linux

Introduction to LightDM

LightDM is a display manager designed to be lightweight, fast, and highly configurable. Since its appearance it has gained popularity in distributions that prioritize minimal resource consumption without sacrificing aesthetics or functionality. In this article we will explore its main features, how to install it on various Linux distributions, the most useful configuration options, and how to customize its appearance to suit your workflow.

What is LightDM?

LightDM is an X display server that manages user authentication and the initiation of graphical sessions. Unlike heavier solutions such as GDM or KDM, LightDM is based on a modular design that allows separating the front-end (the greeter) from the back-end (the daemon). This architecture makes it easy to install different login themes and integrate with various desktop environments, from GNOME and KDE to XFCE, LXQt, and tiling window managers.

Installation on different distributions

On Ubuntu and its derivatives, installation is as simple as running:

  • sudo apt update
  • sudo apt install lightdm
  • During the process you will be asked if you want to use LightDM as the default display manager; select lightdm and confirm.

On Fedora you can use DNF:

  • sudo dnf install lightdm
  • sudo systemctl disable gdm && sudo systemctl enable lightdm
  • sudo reboot

On Arch Linux, the package is in the official repositories:

  • sudo pacman -S lightdm
  • sudo systemctl enable lightdm.service
  • sudo reboot

Remember that after changing the display manager, it is good practice to verify that the service starts without errors by checking the journal with journalctl -u lightdm.

Basic configuration

The main configuration file is located at /etc/lightdm/lightdm.conf. There you can adjust options such as the default greeter, the wait time before showing the lock screen, and guest session management. Some common lines include:

  • [Seat:*]
  • greeter-session=lightdm-gtk-greeter
  • user-session=ubuntu
  • allow-guest=false
  • autologin-user=your_username
  • autologin-user-timeout=0

After editing the file, restart the service with sudo systemctl restart lightdm to apply the changes. If you prefer a graphical interface to modify the configuration, tools such as lightdm-settings are available in the repositories of many distributions.

Themes and customization

One of the advantages of LightDM is the