Configure postmarketOS for multiple UIs or users
When installing postmarketOS, you get exactly one User Interface, and a single-user system. This article explains how to modify such an installation to start a display manager with a greeter on boot, where it is possible to choose between multiple UIs (and possibly multiple users if supported by the greeter).
Install a second UI
postmarketos-ui-* package (find them in the main dir of pmaports.git). You probably also want everything listed in
_pmb_recommends of the
APKBUILD, these are the packages pmbootstrap installs in addition to the UI package (but they are not depends of the UI package, so the user can uninstall them). As of writing, for Plasma Mobile:
$ sudo apk add postmarketos-ui-plasma-mobile \ breeze-gtk \ firefox-esr \ index \ kaccounts-providers \ kde-gtk-config \ kirigami-gallery \ koko \ kpeoplesink \ kpeoplevcard \ mobile-config-firefox \ plasma-angelfish \ plasma-camera \ plasma-dialer \ plasma-phonebook \ postmarketos-artwork-wallpapers \ postmarketos-hidden-desktop-entries \ qmlkonsole \ spacebar \ xdg-user-dirs
Replace the automatic login with lightdm-mobile-greeter to get a separate login screen, which allows to choose the UI. Install the package:
$ sudo apk add lightdm-mobile-greeter
/usr/share/lightdm/lightdm.conf.d/99-mobile-greeter.conf file with the following contents.
user-session is the interface selected by default.
[Seat:*] autologin-user= greeter-session=lightdm-mobile-greeter user-session=phosh