Configure postmarketOS for multiple UIs or users

From postmarketOS
Jump to navigation Jump to search

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

Install a 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 \

Enable lightdm-mobile-greeter

TODO lightdm is not used anymore, add tinydm guide

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

Create a /usr/share/lightdm/lightdm.conf.d/99-mobile-greeter.conf file with the following contents. user-session is the interface selected by default.



  • pmaports#601: ui paсkage conflicts
  • pmaports!1630: main/postmarketos-ui-phosh: re-enable autologin (with reasoning why we don't want a greeter by default)
  • pmaports!1750: feedbackd: Configure haptic feedback per device