r/termux • u/truedim • 14h ago
Showcase Shroot 1.0: run Debian directly in Termux, no root or Shizuku needed
Last time I posted here, you needed MagicDesk and Shizuku to try Shroot. I've since split it out into its own project. It runs under Termux's own Android UID, on the phone's kernel. There's no VM or extra APK to install.
One test I ran on my phone: I started Alpine from Termux, built Shroot with musl inside Alpine, and used that build to start Debian. In Debian I built it again with glibc and ran the native test suite. That included running a debugger in a third guest. There's no special nesting mode. I tried it because a runtime trying to debug processes inside another copy of itself turned out to be a good way to find bugs I'd missed even with systemd and k3s working.
To try it on aarch64 Termux (Android kernel 5.15 or newer), install the .deb from GitHub Releases:
url=https://github.com/mekhontsev/shroot/releases/latest/download
pkg=shroot-termux-aarch64.deb
curl -fLO "$url/$pkg" && curl -fLO "$url/$pkg.sha256" &&
sha256sum -c "$pkg.sha256" && apt install "./$pkg"
Then pull Debian from the OCI registry and open a shell:
shroot install debian:stable --name debian
shroot login debian
It leaves your existing Termux packages and PRoot environments alone.
Source, install instructions and test results: https://github.com/mekhontsev/shroot