File: README.md

package info (click to toggle)
lightdm-autologin-greeter 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 140 kB
  • sloc: python: 29; makefile: 3
file content (59 lines) | stat: -rw-r--r-- 2,253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Autologin greeter for lightdm

I occasionally need autologin for X. I once wrote [nodm](https://github.com/spanezz/nodm)
for it, but I am not developing it anymore.

I have instead written a minimal autologin greeter for [lightdm](https://freedesktop.org/wiki/Software/LightDM/)
that has the same autologin behaviour as nodm, but being based on lightdm it
stays on top of modern display manager requirements.

Some instructions for setting a custom greeter in lightdm can be found
[here](https://wiki.ubuntu.com/LightDM#Changing_the_Greeter)

The difference between lightdm's built-in autologin and this greeter, are the
behaviour in case of 0-seconds autologin delay: when lightdm autologs 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 my case, managing a kiosk-like setup, if the X session quits then the
desired behaviour is to just start it again.

Lightdm with an autologin timeout of 1 or more seconds would work as I need it,
but one sees the login dialog window appear and disappear on screen at each
system startup. While it is functional, on a kiosk setup it looks estetically
unprofessional to my taste.

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 behaviour of lightdm is the way to go, and that this greeter is not
needed.

## Installation instructions

The installation is very simple.

1. Install PyGObject and LightDM with GObject Introspection bindings

These are usually provided by your Linux distribution.

For Fedora/CentOS, you need to install `lightdm`, `pygobject3`, and `lightdm-gobject`.

```bash

$ sudo yum install lightdm pygobject3 lightdm-gobject
```

For Debian/Ubuntu, you need to install `lightdm`, `python-gobject`, `liblightdm-gobject-1-0`, and `gir1.2-lightdm-1`.

```bash
$ sudo apt install lightdm python-gobject liblightdm-gobject-1-0 gir1.2-lightdm-1
```

2. Copy the files in `bin/` and `share/` to `/usr`

3. Ensure no other greeter is configured and reboot.

You'll now be using the autologin greeter!