Warning
- Root access is required
- Back up important files before use
- Rooted Android Device
- Install the latest BusyBox for Android NDK by osm0sis as a Magisk module (Recommended: v1.36.1)
Tip
If you use KernelSU then there's no need to flash the busybox-ndk module, it already has builtin busybox support
- Debian
- Ubuntu
- Fedora
- Arch Linux
- Kali Linux
# List available distributions
chroot-distro list
# Install a distribution
chroot-distro install debian
# Login to the distribution
chroot-distro login debian| Command | Aliases | Description |
|---|---|---|
help |
--help, -h, he, hel |
Display help information |
version |
--version, -v |
Show version information |
list |
li, ls |
List available distributions |
install |
i, in, ins, add |
Install a distribution |
login |
sh |
Enter distribution shell |
remove |
rm |
Remove a distribution |
unmount |
umount, um |
Unmount distribution |
clear-cache |
clear, cl |
Clear downloaded files |
Display general help or command-specific help information:
chroot-distro help
chroot-distro <command> --helpList all available distributions with their aliases, installation status, and additional information:
chroot-distro listInstall a supported distribution:
chroot-distro install debianEnter a shell session inside the installed distribution:
chroot-distro login debian--user <username>– Login as a specified user (user must exist in chroot environment)--termux-home– Mount Termux home directory inside chroot--bind <host_path>:<chroot_path>– Bind mount a path from host to chroot--work-dir <path>– Set custom working directory (default: user's home directory)
Run commands directly inside the chroot environment:
chroot-distro login debian -- /bin/sh -c 'apt update'Use -- to separate chroot-distro options from the target command.
Unmount all mount points associated with a distribution:
chroot-distro unmount debian--help– Display help for this command
chroot-distro unmount debianPermanently remove an installed distribution.
Warning
This operation is irreversible and does not prompt for confirmation.
chroot-distro remove fedoraRemove all downloaded rootfs archives to free up storage space:
chroot-distro clear-cacheTo simplify usage from Termux, create a wrapper script:
- Open Termux and run:
nano $PREFIX/bin/chroot-distro- Paste the following content:
#!/data/data/com.termux/files/usr/bin/bash
args=""
for arg in "$@"; do
escaped_arg=$(printf '%s' "$arg" | sed "s/'/'\\\\''/g")
args="$args '$escaped_arg'"
done
su -c "/system/bin/chroot-distro $args"- Make the script executable:
chmod +x $PREFIX/bin/chroot-distro- You can now use chroot-distro directly from Termux without switching to root user manually.
If you find this project helpful and would like to support its development, consider buying me a coffee! Your support helps maintain and improve this project.
Cryptocurrency Donations:
- USDT (BEP20,ERC20):
0x1d216cf986d95491a479ffe5415dff18dded7e71 - USDT (TRC20):
TCjRKPLG4BgNdHibt2yeAwgaBZVB4JoPaD - BTC:
13Q7xf3qZ9xH81rS2gev8N4vD92L9wYiKH - DOGE:
DJkMCnBAFG14TV3BqZKmbbjD8Pi1zKLLG6 - ETH:
0x1d216cf986d95491a479ffe5415dff18dded7e71
Every contribution, no matter how small, helps keep this project alive and growing! ❤️
This project is licensed under the GNU General Public License v3.0.
This project builds upon the work of:
⭐ If you enjoy this project, consider giving it a star!