Official website
Making the root partition read-write
Enable temporarily
Open "System Settings"
In "About" enable "Developer Mode"
Install "UT Tweak Tool" from OpenStore
Open "UT Tweak Tool"
In the menu (top-left) select "System"
In "Make image writable" select "[Read-Write]"
I do not recommend enabling this permanently. You should probably add individual writable directories
SSH Access
Open "System Settings"
In "About" enable "Developer Mode"
Install "UT Tweak Tool" from OpenStore
Open "UT Tweak Tool"
In the menu (top-left) select "System"
In "SSH Settings" enable SSH access
Installing packages
Run
sudo apt updateInstall using
sudo apt install (package)
Create writable directories in root
Run
sudo nano /lib/systemd/system/(service name, arbitrary).mountEnter the following:
[Unit] Before=local-fs.target [Mount] Where=(target location) What=/userdata/system-data/(target location) Type=none Options=bind [Install] WantedBy=local-fs.target
Run
sudo systemctl enable (service name)Run
sudo systemctl start (service name)
Changing the desktop environment
Note: many Ubuntu Touch ports do not have DRM support, so a lot of DEs will not work
Run
sudo systemctl stop lightdmRun
sudo systemctl disable lightdmRun
sudo nano /lib/systemd/system/desktop.serviceEnter the following:
[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
Run
sudo systemctl enable desktopRun
sudo systemctl start desktop
Setting up startx
Set up your .xinitrc
Edit
/etc/X11/Xwrapper.configChange
allowed_users=consoletoallowed_users=anybody
The screen turns off after a minute
To fix permanently
Run
sudo rm /lib/systemd/system/lightdm.service
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
Run
sudo nano /lib/systemd/system/fb-refresher.serviceEnter the following:
[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
Run
sudo systemctl enable fb-refresherRun
sudo systemctl start fb-refresher
Enable swap
Enable temporarily
Run
sudo dd if=/dev/zero of=/userdata/swapfile bs=1024 count=(desired size in kilobytes) status=progressRun
sudo chmod 600 /userdata/swapfileRun
sudo mkswap /userdata/swapfileRun
sudo swapon /userdata/swapfile
Enable permanently:
Run
sudo nano /lib/systemd/system/swap.serviceEnter the following:
[Unit] Description=Enable swap [Service] Type=oneshot ExecStart=/usr/sbin/swapon /userdata/swapfile RemainAfterExit=yes [Install] WantedBy=multi-user.target
Run
sudo systemctl enable swapRun
sudo systemctl start swap
Installing nix and home-manager
Installing nix:
Run
sudo chown -R phablet /nixRun
sh <(curl -L https://nixos.org/nix/install) --no-daemon
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:
Add
unset LD_PRELOADto the end of~/.bashrc
Installing home-manager:
Follow the home-manager standalone guide
highghlow