← All guides AI Release
RU Subscribe to @ai_releaseorg

How to Run Linux on Android Without Root: Termux, PRoot, and AI Tools

Updated: 19.10.2026 · AI Release · @ai_releaseorg
How to Run Linux on Android Without Root: Termux, PRoot, and AI Tools

TL;DR

- an Android phone or tablet with a 64-bit CPU;

- Termux installed from F-Droid (its maintained distribution channel — the Play Store build is not the one to use; confirm the current status in the Termux documentation);

- no root, no unlocked bootloader, no custom recovery;

- free storage for the Linux root filesystem plus whatever AI runtime and model files you plan to use — check the size your distribution reports before installing;

- optional: a PC with an SSH client to reach the phone over Wi-Fi.

Requirements and setup

Illustration: Requirements and setup
Illustration: Requirements and setup

Install nothing except Termux. Everything else is installed from inside Termux.

Know what each layer does before you type anything:

LayerWhat it doesNeeds root
TermuxTerminal emulator plus package manager, lives in its own app data directoryno
PRootTranslates system calls in user space so an ordinary app can act as `root` inside a fake filesystem treeno
proot-distroTermux package that installs and starts full Linux distributions on top of PRootno
Guest distributionThe Linux userland where your tools actually runno
AI runtimeThe inference engine or CLI you want to useno

Pre-flight checklist:

Example: run uname -m in Termux. On a 64-bit ARM phone it prints aarch64. If it prints armv7l or i686, you are on a 32-bit build and some distributions or runtimes will not be installable.

Step 1. Bootstrap Termux and install the PRoot tooling

What to do: update the Termux package index, install proot-distro, grant storage access, and keep the session awake.

pkg update && pkg upgrade -y
pkg install proot-distro -y
termux-setup-storage
termux-wake-lock

Why: pkg is Termux's own package manager (a wrapper around apt, but pointed at Termux's repositories — not your phone's system). proot-distro is the tool that downloads a Linux root filesystem and starts it through PRoot. termux-setup-storage is what actually makes /sdcard readable, because on modern Android an app cannot read shared storage until the user grants it.

How to check: proot-distro list prints the supported distributions and the alias you must pass to install. The exact list depends on your version — treat the printed list as the source of truth.

echo $PREFIX

Expected output: /data/data/com.termux/files/usr. That path is the whole Termux world; nothing outside it belongs to Termux.

Example: after termux-setup-storage succeeds, ls /sdcard/Download lists your Downloads folder. If it answers Permission denied, the Android dialog was dismissed — run the command again and accept it.

Step 2. Install a Linux distribution and log in

Illustration: Step 2. Install a Linux distribution and log in
Illustration: Step 2. Install a Linux distribution and log in

What to do: install the guest system and enter it.

proot-distro install ubuntu
proot-distro login ubuntu

If ubuntu is not the alias your proot-distro list printed, substitute the one that is there (for example a Debian or Alpine alias).

Inside the guest, bring the system up to date and add the basics:

apt update && apt upgrade -y
apt install -y python3 python3-pip git curl

Why: PRoot intercepts the system calls a Linux program makes and rewrites paths and user IDs on the fly. That is why you become uid=0(root) inside the container even though the Android app itself has no root permissions, and why no kernel module, bootloader unlock, or recovery is involved. The cost is overhead: everything is emulated in user space, so anything needing real kernel features — Docker containers, KVM virtualization, FUSE mounts — will not work here.

apt is the guest's package manager and pkg is Termux's. They are two separate systems; a package installed in one is invisible to the other.

How to check: inside the guest run:

id
cat /etc/os-release

Expected: uid=0(root) gid=0(root) groups=0(root) from id, and a PRETTY_NAME="..." line from /etc/os-release naming the distribution you installed.

Example: the prompt changes from Termux's ~ $ to something like root@localhost:~#. That prompt change is the fastest confirmation that you are inside the container; exit returns you to Termux.

Step 3. Verify the container and run an AI tool

What to do: prove the environment works with a trivial program, then install the AI runtime you want.

python3 - <<'EOF'
import platform, sys
print(sys.version.split()[0], platform.machine())
EOF

Expected output: something like 3.12.x aarch64. The version depends on your distribution's repositories — check what your distro ships rather than expecting one specific number.

Then install the runtime. Use an inference engine or CLI that publishes Termux/ARM installation instructions and follow that document literally; flags, build steps, and supported model formats differ per tool, so treat them as unknown here and verify them in the tool's own docs.

Example workflow for a local model: copy a .gguf model file (GGUF — a single-file format used by many local runners) to /sdcard/Download/, then pass that path as a read-only input to your runtime from inside the guest. Exact filenames, quantization names, and flags depend on the runtime.

Example check from a PC:

pkg install openssh
sshd
passwd

Termux's SSH server listens on port 8022 (not 22) by default. From the PC: ssh -p 8022 <termux-user>@<phone-ip>. This lets you build in a real keyboard-and-monitor setup while the phone does the compute. If you would rather run models in a ready-made Android app instead of a container, compare the options in How to Run an AI Model Locally on Android: Apps and Setup.

Success checklist:

Troubleshooting

Problem. apt is not found, even though you are "in Linux"

Problem. A binary refuses to start after you installed something in the other environment

Problem. The guest cannot see your files on /sdcard

Problem. A large download or build dies when the screen turns off

Summary and next steps

You now have a root-capable Linux userland on an unrooted Android device, reachable locally or over SSH on port 8022. Next, pick the AI runtime that matches your storage and patience, and read Best AI apps for Android in 2026 to decide whether a dedicated app beats maintaining a container.

FAQ

Do I need to root my phone or unlock the bootloader?

No. Termux, PRoot, and proot-distro all run as an ordinary Android app in user space; the root you see is simulated inside the container.

Can I run Docker or Android apps inside the PRoot container?

No. Docker needs real kernel privileges and cgroups, and Android apps need an Android runtime — PRoot only translates system calls, it does not provide those kernel features.

Why is everything slower than on a PC?

Because every system call is intercepted and rewritten in user space. We have no measured benchmark for this setup, so do not trust a specific percentage — measure your own workload and compare.

Can I get a graphical desktop in the container?

Yes in principle: install a desktop environment and a VNC server inside the guest, then connect with a VNC client on the same phone over 127.0.0.1. Package names differ per distribution, so check the documentation for your distro before installing.

🤖 AI summary

AI Release Knowledge Layer
Machine-readable description · Version 1.0

Status: practical guide. Some statements come from vendors; verify in your environment.

1. Summary

A step-by-step guide to running full Linux on an Android smartphone without root using Termux and PRoot, including installing AI coding assistants. Time to complete: roughly 30–60 minutes on a first run — almost all of it is download time and depends on your connection and device. Difficulty: Intermediate (you should be comfortable typing commands into a terminal).

Inside: direct answers, key facts, entities, context, reliability, unknowns and sources.

Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.

Full Knowledge Layer: sections 2–8

2. Direct answers

What is this guide about?
A step-by-step guide to running full Linux on an Android smartphone without root using Termux and PRoot, including installing AI coding assistants. → details (AR-GUIDE-KAKZAPUSTI-001)
What is required?
Termux from F-Droid, opened once so it creates its private data directory.; Android storage permission — requested by termux-setup-storage on first use.; Disk space — the root filesystem is small (hundreds of MB), models are not; the exact requirement depends on the model file, so check the documentation of the… → details (AR-GUIDE-KAKZAPUSTI-003)
How to do it?
Step 1. Bootstrap Termux and install the PRoot tooling → Step 2. Install a Linux distribution and log in → Step 3. Verify the container and run an AI tool → details (AR-GUIDE-KAKZAPUSTI-004)
What are the key points?
Time to complete: roughly 30–60 minutes on a first run — almost all of it is download time and depends on your connection and device. Difficulty: Intermediate (you should be comfortable typing commands into a terminal). → details (AR-GUIDE-KAKZAPUSTI-007)

3. Key facts

  1. Time to complete: roughly 30–60 minutes on a first run — almost all of it is download time and depends on your connection and device. — evidence; status: заявление источника.
  2. Difficulty: Intermediate (you should be comfortable typing commands into a terminal). — evidence; status: заявление источника.
  3. Result: a Debian/Ubuntu-style shell inside Android where you are root inside the container, while Android itself is untouched. — evidence; status: заявление источника.
  4. Termux from F-Droid, opened once so it creates its private data directory. — evidence; status: заявление источника.
  5. Android storage permission — requested by termux-setup-storage on first use. — evidence; status: заявление источника.
  6. Disk space — the root filesystem is small (hundreds of MB), models are not; the exact requirement depends on the model file, so check the documentation of the runtime you pick. — evidence; status: заявление источника.

4. Entities

EntityTypeRole
Linux on Android without rootтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Termux and PRoot Linuxтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Run Linux on Androidтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Linuxплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Androidплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Dockerплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Pythonплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Gitплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда

5. Context

  • Guide — describes → How to Run Linux on Android Without Root: Termux, PRoot, and AI Tools (AR-GUIDE-KAKZAPUSTI-001).
  • Guide — includes step → Step 1. Bootstrap Termux and install the PRoot tooling (AR-GUIDE-KAKZAPUSTI-001).

6. Reliability

Confirmed

No independent confirmation is provided; source claims and editorial conclusions are separated below.

Source claims

  • Product features, versions, prices and limits come from vendors and the guide.
  • Commands and steps are recommendations, not guaranteed results.

AI Release analysis

  • Structure, comparison and selection criteria are editorial.
  • The guide does not replace an independent audit or legal advice.

7. Unknowns

  • Current versions, prices and limits.
  • Independent benchmarks and quality checks.
  • Terms of use and data policy.

8. Sources

SourceTypeRole
No external links——

Cite as: AI Release. Как запустить Linux на Android без root: Termux, PRoot и ИИ-инструменты. ai-release.org.

Citation card

In short: A step-by-step guide to running full Linux on an Android smartphone without root using Termux and PRoot, including installing AI coding assistants.

Key facts

Updated: 2026-10-11 · AI Release · Markdown version