Ubuntu Touch

Official website

Making the root partition read-write

Enable temporarily

I do not recommend enabling this permanently. You should probably add individual writable directories

SSH Access

Installing packages

Create writable directories in root

[Unit]
Before=local-fs.target

[Mount]
Where=(target location)
What=/userdata/system-data/(target location)
Type=none
Options=bind

[Install]
WantedBy=local-fs.target

Changing the desktop environment

Note: many Ubuntu Touch ports do not have DRM support, so a lot of DEs will not work

[Unit]
Description=User Session Starter
Conflicts=getty@tty7.service plymouth-quit.service
After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service

[Service]
ExecStart=/usr/bin/su phablet -c (session command e.g. startx)
Restart=always

[Install]
WantedBy=graphical.target

Setting up startx

The screen turns off after a minute

To fix permanently

The screen does not update when running an X11 WM

To update the screen once run: cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode (as root)

To fix permanently

[Unit]
Description=Fix the screen

[Service]
ExecStart=/usr/bin/sh -c "while [ ! ]; do cat /sys/class/graphics/fb0/modes > /sys/class/graphics/fb0/mode; done"

[Install]
WantedBy=multi-user.target

Enable swap

Enable temporarily

Enable permanently:

[Unit]
Description=Enable swap

[Service]
Type=oneshot
ExecStart=/usr/sbin/swapon /userdata/swapfile
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Installing nix and home-manager

Installing nix:

You might get ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded. It can be safely ignored. To disable this warning:

Installing home-manager: