Running postmarketOS on any Andrid devices without rooting or flashing ROM.
1. Prerequisites
- Termux
- Termux X11
- Hacker’s keyboard if you don’t have keyboard and mouses.
2. Install Proot Alpine Linux
The defaut installation of Proot Apline in Termux-poort is using edge repositories. However Edge branch is very unstable, therefore I choose 3.17 (postmarketOS v22.12)
- Install Proot Alpine
|
|
- Change repositories to v3.17
|
|
- Add a user and setup timezone.
|
|
- Enable sshd in Termux proot.
|
|
3. Convert Alpine installation to postmarketOS
- Add postmarketOS v22.12 (Aplpine v3.17) repositories
|
|
- Add postmarketos-keys
|
|
- Edit
/etc/os-release
. Add following lines
|
|
4. Install Deskop Environment
To launch a desktop Environment in Termux proot, execute the following commands:
proot-distro login --user user --shared-tmp
: Log into Proottermux-x11 &
: Start X serverexport DISPLAY=:0
dbus-launch --exit-with-session <desktop nvironment> &
: Start desktop environment
Phosh
The packae name is postmarketos-ui-phosh
.
Not working.
Plasma Mobile
The packae name is postmarketos-ui-plasma-mobile
.
Can be launched by executing dbus-launch --exit-with-session startplasma-x11 &
Login screen works. But it turns black after login.
In 2022, I tried to start Plasma Mobile in Proot Arch Linux and it worked (plasma-mobile
is available on AUR). It was much unstable than Plasma desktop.
SXMO
The package name is postmarketos-ui-sxmo
but Termux X11 only support X applications so I choose postmarketos-ui-sxmo-de-dwm
.
- Install SXMO packages
|
|
Execute:
export XDG_RUNTIME_DIR=/tmp
before launching SXMO.SXMO can be launched by executing
dbus-launch --exit-with-session /usr/bin/sxmo_xinit.sh &
The configuration files of SXMO is located at
~/.config/sxmo/
. Hooks are at/usr/share/sxmo/default_hooks/
.
Gestures are not working.
You may modify dwm source code to change default keybindings.
|
|
Uninstall sxmo-dwm
package before installing your cutsom dwm.
Or you can just install vanilla dwm
package and use default dwm keybindings.
Wake up hacker’s keyboard in Termux, then click Termux X11 at notification bar to keep keyboard displaying in Termux X11.