📱🐧 How to Install RLC (Rootless Chroot) in Termux
Introduction
RLChroot (RLC) is a lightweight solution for running Linux distributions on Android
without root access. It uses proot internally and provides an
LXC-like workflow inspired by udocker, making container management
simple and accessible on Android devices.
Supported Distributions
RLC currently supports selected Debian-based distributions such as Ubuntu, Debian, and Kali Linux. Only specific releases are compatible. Newer releases may contain bugs, and users are encouraged to report issues to the project repository.
Requirements
Unlike LXC/LXD, RLChroot does not require cgroups, VETH, seccomp, PAM modules,
or kernel-level features. It relies entirely on proot.
Because it uses host resources, some system-level operations are limited.
Installation
Follow the steps below to install RLChroot:
-
Visit the GitHub repository:
https://github.com/WMCB-Tech/rlchroot.git - Download the provided
.debpackage. -
Install it using
dpkgorapt. If dependency errors occur when usingdpkg, fix them with:apt install -f
Available RLC Commands
RLC provides the following container management commands:
rlc-create– Create a new containerrlc-destroy– Remove an existing containerrlc-ls– List installed containersrlc-launch– Start or run commands inside a containerrlc-import– Import containersrlc-export– Export containers for backup or sharing
Planned commands include:
rlc-snapshot,
rlc-freeze,
rlc-unfreeze,
rlc-download,
and rlc-info.
Community contributions are welcome.
Creating Your First Container
Example: creating an Ubuntu 18.04 container
-
Create the container:
rlc-create bionic mycontainer -
For Kali Linux:
rlc-create kali my-kali-container
Launch the container using:
rlc-launch mycontainer
Run a specific command inside the container:
rlc-launch mycontainer mycommand
List installed containers:
rlc-ls
Running Containers as Non-Root
Containers include sudo support by default. To run a container as a non-root user:
rlc-launch mycontainer su - user
Run a single command as a specific user:
rlc-launch mycontainer sudo -i -u user mycommand
Adding Users
Add users inside a container using standard Linux commands:
useradd or adduser
Destroying a Container
To permanently remove a container:
rlc-destroy mycontainer
You will be asked to confirm before deletion.
Limitations
-
Uses
proot, so kernel-level features such as device nodes, mounts, and system services are unavailable. - No full namespace isolation, limited cgroup support, no seccomp, and no Virtio interface.
Despite these limitations, RLChroot is a powerful and convenient way to run Linux distributions on Android without root access.