PostmarketOS with Plasma Mobile
Used proot distro + PostmarketOS v22.06 (Alpine v3.16) because its the latest version that supports plasma mobile that works on Termux X11 with zink hardware acceleration (Alpine v3.17+ will not work at all without Wayland.)
Btw the desktop supports both portrait and landscape :)
installation
how to install:
1. install termux X11, proot distro and enable audio from this guide
[https://www.reddit.com/r/termux/comments/1bo10lb/fedora\_rawhide\_with\_gnome\_46\_updated\_installation/](https://www.reddit.com/r/termux/comments/1bo10lb/fedora_rawhide_with_gnome_46_updated_installation/)
2. Install alpine as usual: pd in alpine
3. Log in to alpine: pd sh alpine
4. Type "nano /etc/apk/repositories" and add "https://mirror.postmarketos.org/postmarketos/v22.06" then exit nano (Ctrl+X then Y then Enter)
5. type: sed -i 's/edge/v3.16/g' /etc/apk/repositories
6. Type: clear && apk update && apk upgrade && apk add nano sudo neofetch alpine-conf && addgroup storage && addgroup power && addgroup network && adduser -g wheel,audio,video,power,storage,lp,sys,network user && echo "user ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers && su user -c "sudo setup-xorg-base postmarketos-ui-plasma-mobile maliit-keyboard" && exit (Replace user with any username you want and in the middle of all those commands, SET YOUR PASSWORD TO NUMBERS ONLY. You will not be able to log in if there is a letter.) Type also : rm -f /etc/os-release && nano /etc/os-release then type
PRETTY\_NAME="postmarketOS v22.06"
NAME="postmarketOS"
VERSION\_ID="v22.06"
VERSION="v22.06"
ID="postmarketos"
ID\_LIKE="alpine"
HOME\_URL="https://www.postmarketos.org/"
SUPPORT\_URL="https://gitlab.com/postmarketOS"
BUG\_REPORT\_URL="https://gitlab.com/postmarketOS/pmaports/issues"
LOGO="postmarketos-logo"
Then exit.
7. Create startup script in Termux shell: nano [alpinepm.sh](http://alpinepm.sh/) then type
killall pulseaudio
killall virgl\_test\_server
MESA\_LOADER\_DRIVER\_OVERRIDE=zink GALLIUM\_DRIVER=zink ZINK\_DESCRIPTORS=lazy virgl\_test\_server --use-egl-surfaceless &
kill -9 $(pgrep -f "termux.x11") 2>/dev/null
pulseaudio --start export XDG\_RUNTIME\_DIR=${TMPDIR} termux-x11 :0 >/dev/null & sleep 3 am start --user 0 -n com.termux.x11/com.termux.x11.MainActivity > /dev/null 2>&1 sleep 1
proot-distro login alpine --user user --isolated --shared-tmp -- /bin/bash -c 'export PULSE\_SERVER=127.0.0.1 DISPLAY=:0 MESA\_GL\_VERSION\_OVERRIDE=4.6 GALLIUM\_DRIVER=zink && dbus-launch startplasma-x11
exit 0
8. Install necessary packages for hw acceleration: pkg install mesa-zink virglrenderer-mesa-zink
9. Enjoy by starting plasma mobile: ./alpinepm.sh and stop it by pressing Ctrl+C or force stopping Termux :)
If you encounter problems, just leave a comment, and I will make sure to respond.