Linux chroot in an Android environment
GPL-2.0 License
Linux (fedora 35 default, centos stream 9 also available) chroot in an Android (works with standard GNU/Linux also) environment
phone with 64-bit OS, to check uname -m
should read aarch64. We do support x86_64 also.
(optional) rooted phone, this is device specific on how to complete. Many Android devices get wiped clean when you unlock the bootloader (such as my Moto G 5G Plus) or root the phone, so back up your data. It's a security feature. Technically this is optional, but the rooted version performs better and can run UI.
Download and install open source app store F-Droid:
Install termux from F-Droid (Google Play version of termux is not recommended, it's drastically out of date)
Configure sshd for termux (optional):
pkg install -y openssh
passwd # set password for current user
sshd # starts on port 8022 rather than 22
Open termux and run:
curl -LO https://raw.githubusercontent.com/ericcurtin/limux/main/limux.sh && chmod +x limux.sh && sudo ./limux.sh
For each subsequent run of the environment, it's simply:
sudo ./limux.sh
It is possible to start a UI with XServer XSDL app, make sure you start XSDL app first (optional):
sudo ./limux.sh fedora:35 ui