2025-01-13 01:09:14 +01:00
Session management is necessary for tracking and giving rights to certain users. For a functional setup install both `elogind` and `turnstile` and enable their corresponding services.
``` shell-session
2025-01-25 20:41:52 +01:00
sh# emerge -av elogind turnstile
sh# rc-update add elogind boot
sh# rc-update add turnstiled
2025-01-13 01:09:14 +01:00
```
2025-01-25 20:41:52 +01:00
Then configure `pam` to turnstile to track the user:
2025-01-13 01:09:14 +01:00
``` shell title="/etc/pam.d/system-login"
...
session optional pam_turnstile.so
```
When a user logs in it should now be able to start a graphical session. This should be done with:
``` shell-session
2025-01-25 20:41:52 +01:00
sh$ dbus-run-session -- < window_manager >
2025-01-13 01:09:14 +01:00
```