LXC LTS Termux port
pkg upg
pkg i tsu
pkg i ./lxc-lts-*.deb
for cg in blkio cpu cpuacct cpuset devices freezer memory; do
if [ ! -d "/sys/fs/cgroup/${cg}" ]; then
sudo mkdir -p "/sys/fs/cgroup/${cg}"
fi
if ! sudo mountpoint -q "/sys/fs/cgroup/${cg}"; then
sudo mount -t cgroup -o "${cg}" cgroup "/sys/fs/cgroup/${cg}" || true
fi
done
lxc.cgroup.devices.allow = a *:* rwm
# Systemd-binfmt
lxc.mount.entry = /proc/sys/fs/binfmt_misc proc/sys/fs/binfmt_misc none bind,optional,create=dir
# Fuse
lxc.mount.entry = /dev/fuse dev/fuse none bind,optional,create=file
sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
sed -i 's/lxc\.net\.0\.type = empty/lxc.net.0.type = none/g' $PREFIX/etc/lxc/default.conf
pkg upg
pkg i x11-repo -y
pkg i tsu pulseaudio termux-x11-nightly -y
pulseaudio --start \
--load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" \
--exit-idle-time=-1
# X11
lxc.mount.entry = /data/data/com.termux/files/usr/tmp tmp none bind,optional,create=dir
lxc.mount.entry = /data/data/com.termux/files/usr/tmp/.X11-unix tmp/.X11-unix none bind,ro,optional,create=dir
# Freedreno Turnip (Only available for Qualcomm Snapdragon)
lxc.mount.entry = /dev/kgsl-3d0 dev/kgsl-3d0 none bind,optional,create=file
lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry = /dev/dma_heap dev/dma_heap none bind,optional,create=dir
git clone https://github.com/TapetalArray/termux-lxc-lts
cp -r termux-lxc-lts/packages/lxc-lts termux-packages/packages
./build-package.sh -i -a aarch64 lxc-lts