Added Session manager page

This commit is contained in:
Tastatur 2023-12-28 19:38:05 +01:00
parent ba28c9714e
commit b00330a709
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,23 @@
# Session manager
To be able to run a graphical enviroment it's necessary to run a seat and session manager. It's recommended to use `seatd` in conjunction with `turnstile` and `pam_rundir` for a minimal setup:
```
# apk add seatd turnstile pam-rundir
# rc-update add seatd default
# rc-update add turnstiled default
```
Then make sure `pam_rundir` exports `XDG_RUNTIME_DIR` by uncommenting its line in `/etc/pam.d/base-session`:
```
session optional pam_rundir.so
```
And turn off `manage_rundir` in `/etc/turnstile/turnstiled.conf`:
```
manage_rundir = no
```
> Also make sure your user is in the `seat` group.

View file

@ -29,7 +29,7 @@ And create a `_power` group for user's to be able to poweroff the system without
Adding a user in alpine can be done using the `setup-user` script. Here we can specify the name, fullname, groups and more: Adding a user in alpine can be done using the `setup-user` script. Here we can specify the name, fullname, groups and more:
``` ```
# setup-user -g wheel,plugdev,_seatd,nix,_power -f "<Full Name>" <username> # setup-user -g wheel,plugdev,seat,nix,_power -f "<Full Name>" <username>
# passwd <username> # passwd <username>
``` ```
@ -106,7 +106,7 @@ $ fscrypt status /home/<username>
If you have already set up a system with a user but want to add another do this: If you have already set up a system with a user but want to add another do this:
``` ```
# setup-user -g (wheel,)plugdev,_seatd,nix,_power -f "<Full Name>" <username> # setup-user -g (wheel,)plugdev,seat,nix,_power -f "<Full Name>" <username>
# passwd <username> # passwd <username>
[Change shell in /etc/passwd] [Change shell in /etc/passwd]
# fscrypt encrypt /home/<username> --user=<username> # Doesn't work yet # fscrypt encrypt /home/<username> --user=<username> # Doesn't work yet