How To Install lightdm-autologin-greeter on CentOS 7

In this tutorial we learn how to install lightdm-autologin-greeter on CentOS 7. lightdm-autologin-greeter is Autologin greeter using LightDM

Introduction

In this tutorial we learn how to install lightdm-autologin-greeter on CentOS 7.

What is lightdm-autologin-greeter

lightdm-autologin-greeter is a minimal greeter for LightDM that has the same autologin behavior as nodm, but being based on LightDM, it stays on top of modern display manager requirements. The difference between LightDM’s built-in autologin and this greeter, is the behavior in case of 0-seconds autologin delay. When LightDM automatically logs in with no delay, upon logout it will show the login window again. The intent is that if the default user logged out, they probably intend to log in again as a different user. In the case of managing a kiosk-like setup, if the X session quits, then the desired behavior is to just start it again. LightDM with an autologin timeout of 1 or more seconds would work, but one sees the login dialog window appear and disappear on-screen at each system startup. With this greeter, the X session starts right away, and is restarted if it quits, without any flicker of a login dialog box. If one is not setting up a kiosk-like setup, it’s very likely that the default autologin behavior of LightDM is the way to go, and that this greeter is not needed.

We can use yum or dnf to install lightdm-autologin-greeter on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install lightdm-autologin-greeter.

Install lightdm-autologin-greeter on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install lightdm-autologin-greeter using yum by running the following command:

sudo yum -y install lightdm-autologin-greeter

Install lightdm-autologin-greeter on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install lightdm-autologin-greeter using dnf by running the following command:

sudo dnf -y install lightdm-autologin-greeter

How To Uninstall lightdm-autologin-greeter on CentOS 7

To uninstall only the lightdm-autologin-greeter package we can use the following command:

sudo dnf remove lightdm-autologin-greeter

References

Summary

In this tutorial we learn how to install lightdm-autologin-greeter on CentOS 7 using yum and dnf.