Detailed installation walkthrough. For the concise path, see Quick start.
Prefer to run every command yourself? The command-by-command walkthrough — both GPU routes, the full launcher file — is the Manual installation page. The one-command installer below is that same page, scripted.
Requirements
| Recommended baseline | Why it matters | |
|---|---|---|
| Android | 10 or newer | Older builds lack the APIs Termux/X11 rely on |
| CPU | aarch64 (64-bit ARM) |
PRoot runs native binaries; 32-bit ARM is unsupported upstream |
| Storage | Installed: ~4–4.6 GB base; ~10.5–12.6 GB with --all |
Begin with additional free space for downloads, package caches, build trees, models and projects |
| RAM | 4 GB min, 6–8 GB preferred | The desktop + Android share memory; less RAM = more killing |
| Graphics | Adreno/KGSL prefers Zink with each guest distro’s own Mesa/Freedreno packages where available; VirGL is the compatibility route | The active renderer depends on the guest package set and Android host stack; verify with glxinfo -B |
| Required apps | Termux + Termux:X11 | Install both from compatible sources; open Termux:X11 once before starting Ternux |
| X11 performance option | Termux:X11 nightly shared-UID debug APK (termux-x11-universal-sharedUid-debug.apk) |
Shares Termux's Android UID so Android is less likely to background-throttle the Linux workload while X11 is foreground. Requires the GitHub-signed Termux app. F-Droid/Google Play Termux should use termux-x11-universal-debug.apk from the same release page. |
| Optional companion apps | Termux:Boot, Termux:API, Termux:Styling | None is required to install or start Ternux. Boot only runs configured scripts after reboot. If the Termux:API app is absent, installation skips its microphone/camera permission checks; desktop live mic still works through Termux's on-demand OpenSL ES source and requests Termux permission on first capture. For photos without API, use Android Camera and open /sdcard/DCIM/Camera in Thunar. Ternux Camera and Sound Recorder use API when installed. Styling provides terminal themes and fonts. Keep Termux and each add-on from the same source |
Check your device first (read-only, changes nothing):
uname -m # expect: aarch64
getprop ro.product.manufacturer # e.g. Qualcomm
getprop ro.product.model
getprop ro.build.version.release # e.g. 14
df -h "$HOME" # free space
ls -l /dev/kgsl-3d0 2>&1 # Debian + Adreno/KGSL → Zink/Turnip path
/dev/kgsl-3d0 makes auto prefer Zink. Debian Trixie uses Ternux’s
validated Turnip payload; Ubuntu, Alpine, Arch, Fedora, openSUSE and Void use
their distro-native Mesa/Freedreno packages. Other profiles use their family
packages when available; Adélie currently selects VirGL. Verify the actual
renderer with glxinfo -B; llvmpipe means CPU rendering, not GPU acceleration.
The storage figures above are the approximate installed footprint, not the
minimum temporary headroom. Package versions and filesystem accounting vary.
For a clean run, the installer targets roughly 6 GB free for base and
14 GB free for --all, allowing downloads, caches, extraction, and builds;
the finished installation itself is approximately 4–4.6 GB or 10.5–12.5 GB.
Method 1 — One command (recommended)
pkg update -y && pkg upgrade -y && pkg install -y curl wget && bash -c 's=$(mktemp) && (curl -fsSL https://raw.githubusercontent.com/soobujmiah/ternux/c2a008cc4e6dc038fdf324f5128e2205e8a1583a/install.sh -o "$s" || wget -qO "$s" https://raw.githubusercontent.com/soobujmiah/ternux/c2a008cc4e6dc038fdf324f5128e2205e8a1583a/install.sh) && bash "$s"; r=$?; rm -f "$s"; exit "$r"'
The command downloads the installer over HTTPS to a temporary file and runs it.
If curl cannot start or fetch the script, wget retries the download. The
temporary file is removed after the installer exits. The installer verifies
the SHA-256 of its immutable source bundle before using the bundled code. With
an attached terminal, it reads prompts through /dev/tty, including the
optional-workload chooser. If no controlling terminal is available, it installs
the base profile. Add --yes for an explicitly
unattended base install. Read the output: a required-phase failure stops its dependants, while
an optional/advisory failure is reported and leaves a nonzero final status.
If a required phase stops, rerun the same one-command installer. It downloads
the current code and automatically resumes the incomplete guest from the failed
phase; do not remove the guest first.
The installer draws one persistent screen — device panel, step progress, live log window, elapsed time — and keeps it until the final status. Package output is shown as it happens rather than hidden behind a spinner, and every line is written to the log file whatever the terminal can render. See The installer screen for the renderer modes and how to override them.
The standalone loader fetches one immutable source snapshot with bounded retries and verifies its pinned SHA-256 before extracting or sourcing it. The host CLI fallback uses that same commit and digest and rejects changed bytes before extraction. The validated snapshot is reused for the bootstrap libraries, the Termux host CLI and the Debian guest companion in the normal installer path. If the guest companion is requested without that local snapshot, its fallback fetches the file from the same immutable commit and verifies its own SHA-256. Debian guest setup measures reachable official archive mirrors, retries another reachable mirror after a failure, and keeps security updates on Debian’s official security archive. Other guest package managers keep their distro-configured repositories and use their own mirror or failover behavior. Re-run the installer to resume after a transient repository failure.
curl broken after an upgrade? The command above already retries the
installer download with wget. If both downloaders cannot run, complete the
Termux package upgrade first. A partial upgrade can leave curl and OpenSSL out
of sync, and starting with pkg update may repeat the failure:
apt update && apt full-upgrade -y
This completes the rolling-release Termux package upgrade. If a partial upgrade
left pkg or both downloaders unable to start, run apt update && apt full-upgrade -y to repair Termux, then retry. pkg install ternux is
currently unavailable: the stable signed APT
repository was withdrawn. The RC channel is only for candidate testing and its
hosted availability is not currently verified.
Optional workload chooser
On an interactive install without workload flags, the installer suggests
items based on the detected GPU route, then opens a categorized keyboard
checklist. Use Up/Down or j/k to move, Space or an item's number to toggle
multiple choices, Enter to review the plan, and q to keep the base desktop.
--yes skips the chooser and keeps the base profile; --with-* flags select
workloads explicitly and --all selects every workload. Blender may be
suggested on the detected Adreno/Zink route; this is a fit suggestion, not a
guarantee that every device supports GPU rendering. The chooser also reports
detected RAM and free storage; the full profile targets about 14 GB free for
packages, downloads and build cache.
Method 2 — download, review, then run
Piping curl into bash is convenient, but for a script that changes your
device it is better to review the entry point and the libraries it sources.
Clone the repository instead of inspecting only a standalone install.sh, which
would still download and source one complete repository snapshot when it starts:
apt update && apt full-upgrade -y && apt install git -y
git clone https://github.com/soobujmiah/ternux.git
cd ternux
git log -1 --oneline # record the exact commit
(set -e; for f in install.sh uninstall.sh bin/ternux bin/ternux-guest lib/*.sh; do bash -n "$f"; done)
less install.sh lib/core.sh lib/phases.sh lib/detect.sh lib/ui.sh
# In less, use :n for the next file and q when finished.
bash install.sh
For a reproducible review, run git fetch --tags, check out a release tag, and
confirm git status --short is empty before inspection. The installed result is
intended to be the same, but this local-terminal route asks for one confirmation.
Add --yes only after review when you deliberately want no prompt. If interrupted,
rerunning the same one-command installer automatically resumes the saved guest and
choices; bash install.sh --resume remains available when you want to request it
explicitly. Shared host setup phases are recorded once; desktop phases are kept
under each guest's state directory. Resume skips a guest phase only when that
same guest completed it, so a finished Debian phase cannot hide unfinished
Ubuntu or Alpine setup. Older installs without a guest phase ledger rerun the
guest phases safely instead of trusting aggregate legacy markers. Saved optional
workloads are restored.
Method 3 — fully manual
For total control — or to debug the installer itself — the
Manual installation page walks through every single command:
base packages, the container, the GPU driver for both routes, the complete
~/.local/share/ternux/distros/NAME/launcher.sh launcher file, and verification. Methods 1 and 2 run those same
steps for you.
Choose the right project release
During installation, the completion screen points to ternux guides. After installation, run ternux guides in either Termux or the Debian/Xfce terminal. It prints direct links for the environment installer, manual setup, ecosystem tool installs, and daily use. It opens no browser and installs nothing.
Install the Ternux environment using the Quick start or this full Installation guide; the command-by-command alternative is Manual installation. The canonical Ternux release history is on the Ternux Releases page.
The experimental llama.cpp HTP release is an optional Linux ARM64 artifact, not a Ternux installer or a Debian root filesystem. Set up Ternux first. The artifact also needs the separately established Android Binder/FastRPC broker; it is not included in the archive. The default/HMX and flash-attention paths returned wrong answers. HVX-only matmul with flash attention disabled passed bounded known-answer and long recall-key checks on the tested device. Explicit HVX flash attention still has seven reproducible numerical-error cases, so HTP remains experimental and unsupported. See the current release gate and repository-only detailed evidence.
ADT's Android SDK tools have their own versions, build records and canonical downloads. Get them from ADT Releases and follow ADT's setup guide inside Debian. Ternux does not duplicate ADT release files. The two projects can coexist on the same Termux + PRoot Debian base, but the combined desktop workflow remains experimental; see ADT's Ternux relationship notes.
Install the download tools inside Debian first if they are missing:
sudo apt update && sudo apt install -y ca-certificates curl tar gzip
Install ADT tools inside the Ternux Debian guest
The interactive Ternux installer can install selected ADT components. It runs
ADT's command-line tools first so sdkmanager is available before installing
versioned SDK components. For manual setup, enter Debian from the Termux host
with db (or open an Xfce terminal), then run the ADT-owned installer as your
normal Debian user:
curl -fsSL https://raw.githubusercontent.com/soobujmiah/adt/main/install.sh | bash
source ~/.bashrc
cd ~/adt
./setup.sh doctor
To install only selected versions, use ADT's release-aware commands instead of copying assets into Ternux:
./setup.sh list-versions
BUILD_TOOLS_VERSION=37.0.0
./setup.sh install-build-tools "$BUILD_TOOLS_VERSION"
./setup.sh install-platform-tools "$BUILD_TOOLS_VERSION"
./setup.sh doctor
The ADT repository remains the source of truth for supported versions and asset checksums. See ADT's command guide.
The standalone llama.cpp steps below use the same download tools. The archive
extracts into your Debian home; no sudo is needed for the extraction or run.
Optional CPU + Vulkan llama.cpp extension
The short install and run path is in Quick start. For release details and both automatic and manual installation, use the repository extension guide. The package is a prerelease; ADT remains installed and updated through ADT's own release-aware commands above.
Optional Stable Diffusion CPU + Vulkan extension
ternux extension install stable-diffusion installs the pinned Linux ARM64
sd-cli runtime. Model weights remain user-provided. To use weights under Android shared
storage, first run ternux storage grant /sdcard/Llms; only granted folders are
mounted in the guest. Vulkan requires a working Debian
Vulkan ICD. The artifact is in preview pending target-device image generation,
quality and performance qualification. See the
Stable Diffusion extension guide
for installation, direct model paths, verification and removal.
Experimental llama.cpp HTP extension
The experimental HTP package is installed from the Termux host with
ternux extension install llama-htp-experimental. It is limited to the
SM8735/V73 experiment and is not a supported Ternux feature. Review the
repository HTP guide
for runtime dependencies, exact usage, known incorrect configurations,
cancellation status and removal. When selected in the installer, Ternux enables
the official Debian Trixie Backports main and contrib components and installs
the four Debian runtime packages before downloading the extension. These are
system runtime dependencies, so they are not bundled in the release archive. Do
not change FastRPC device permissions or copy model weights for this extension.
ternux CLI — host control and guest diagnostics
Installation makes ternux discoverable in both terminal environments, but the
two entry points deliberately have different responsibilities:
| Environment | Installed entry point | Supported role |
|---|---|---|
| Termux host | $PREFIX/bin/ternux with modules in $PREFIX/lib/ternux/ |
Full diagnostics, repair, desktop lifecycle, profiles, backends, update, and uninstall |
| Debian/Xfce guest | /usr/local/bin/ternux |
Guest-local status, info, doctor, and env without launching another PRoot session |
Use the full control plane from the Termux host terminal:
command -v ternux # $PREFIX/bin/ternux
ternux --version # ternux vX.Y.Z
ternux doctor # system diagnostics
ternux doctor --json # machine-readable diagnostics
tx start # start the saved desktop
tx start ubuntu # start Ubuntu in its own Termux:X11 window
tx start ub # same Ubuntu profile via its short name
tx start alp # start Alpine via its short name
tx stop # list running desktops; select one or more
tx stop db # stop Debian only
tx stop ub # stop Ubuntu only
tx stop alp # stop Alpine only
tx stop --all # stop all Ternux desktops
tx restart ubuntu # restart Ubuntu
ternux repair # repair common problems
ternux verify # verify the installation
ternux benchmark # installation health and renderer check
ternux profile # manage the device profile
ternux backend # inspect or change the graphics backend
ternux info # system information
ternux info --json # machine-readable information
ternux logs # inspect logs
ternux state # installation state
ternux update # update the CLI
ternux uninstall # remove selected components
From an Xfce terminal inside Debian, use guest-local inspection commands:
command -v ternux # /usr/local/bin/ternux
ternux --version # ternux guest vX.Y.Z
ternux status
ternux info
ternux doctor
ternux env
The guest companion returns a usage error for host-only lifecycle commands such
as start, stop, repair, update, and uninstall, and tells you to run them
in Termux. This prevents accidental nested PRoot sessions. During installation,
ternux executes the exact installed host and guest commands and validates their
version responses; executable-file presence alone does not count as success.
The host dispatcher recognizes global flags, but not every command implements a JSON schema. Use structured output only for commands documented in the CLI reference.
What the installer does (and why, phase by phase)
The installer runs as 11 verified phases. Each phase checks its own work before the next one starts — a failed phase stops the install with a clear message instead of producing a half-broken desktop.
| # | Phase | What it does | Why |
|---|---|---|---|
| 1 | Preflight | Checks Termux, architecture, Android version, storage, network | Fail here and you waste no downloads; every later phase depends on these facts |
| 2 | Base packages | Installs x11-repo, termux-x11, pulseaudio, proot-distro, virglrenderer-android, tools; requests storage permission |
These are the host-side services the container needs: display, sound, and the container engine |
| 3 | Host CLI installation | Installs $PREFIX/bin/ternux plus modules in $PREFIX/lib/ternux/, then executes its exact path and checks its version |
A file can exist while its libraries are missing; successful execution is the real host-side check |
| 4 | Selected guest + Xfce4 | Installs the selected distro rootfs and family-matched desktop packages, creates your user with password-required sudo, installs /usr/local/bin/ternux, and executes the guest companion |
Each named profile gets its own desktop recipe and local diagnostics without nesting PRoot |
| 5 | Passwords | Before installation starts, prompts for one shared native/guest startup password and a separate sudo/root password for each selected guest. Each guest's password is set on both its sudo user and root account | tx password startup and tx password sudo change them. The startup password hash stays in a mode-0600 Termux config file. These credentials are configured once the guest account exists and before later guest setup needs them. The shell prompt is a convenience gate, not a security boundary |
| 6 | GPU route | Adreno/KGSL selects Zink when the guest has a supported Mesa/Freedreno or Turnip recipe; Kali Rolling uses a pinned Debian Testing overlay validated on the live guest. Adélie and devices without KGSL use host VirGL, then llvmpipe if VirGL cannot start | Check glxinfo -B; the renderer and hardware acceleration depend on the device and Android host stack |
| 7 | Audio, locale, fonts | Configures the loopback-only PulseAudio bridge, OpenSL ES output and on-demand microphone source; runs a private one-second Termux:API microphone probe and offers an opt-in temporary camera permission probe; generates your locale and installs emoji/powerline/Nerd fonts as guest root, then writes per-user locale and font files as the selected user | Locale/package setup uses the managed guest root login, so it does not repeatedly ask for the user's sudo password. Regular sudo remains password-protected. Guest playback and capture reach Android audio through PulseAudio. Live capture uses Termux's permission and OpenSL ES source; the separate Termux:API probe does not carry a live stream. The camera probe takes one photo only after confirmation and deletes it immediately; --yes and non-interactive installs skip it. Xfce Terminal uses the installed Noto Sans Mono font, and shell prompts use each guest's written distro name so they do not depend on unsupported private-use logo glyphs. |
| 8 | Launcher | Writes the guest desktop launcher tuned to the selected GPU route, then syntax-checks it | tx start must reliably start audio → display → desktop in the right order |
| 9 | Shortcuts | Installs tx, killx, db/dbroot, ub/ubroot, alp/alproot, xgo, sysmon, clean-mesa |
Sets up quick shortcuts so everyday operations need only a single command |
| 10 | Optional extras | Dev tools, llama.cpp, network tools, media tools, Blender + Xvfb for headless EEVEE — only what you asked for | Keep the base install lean; each profile has different storage/thermal costs |
| 11 | Android safeguard check | Reads the Android child-process setting when available and prints version-aware guidance | Signal 9 can also come from memory pressure or OEM battery policy; collect evidence before changing a system-wide safeguard |
| 12 | Verification | Confirms every critical binary, file and permission actually landed | Confirms the environment is runnable — apt completing without errors does not guarantee the desktop will launch |
Kali uses the official rolling root filesystem with Ternux's Xfce desktop layer;
it is not the full upstream Kali desktop image. The default profile adds a
bounded command-line toolkit: Nmap, sqlmap, Hydra, John the Ripper, Gobuster,
Nikto, Whois, and Netcat. It deliberately does not install Kali's large
kali-linux-default, kali-linux-headless, or kali-tools-top10 bundles by
default: those include substantial extra packages, including tools whose Wi-Fi
monitor-mode or privileged capture features are unavailable in ordinary PRoot
on Android. Add further packages with sudo apt install PACKAGE inside Kali.
APT guests have bounded package operations: index refreshes stop after five
minutes, and each package transaction stops after fifteen minutes. APT network
requests also have retry and connection time limits. If one expires, the phase
reports failure and can be resumed with tx install --resume; these are
per-operation bounds, not a promised total install duration.
Installer options
bash install.sh # local terminal — one confirmation before changes
bash install.sh --yes # accept all defaults, no questions
bash install.sh --user soobuj # Debian user name (default: ternux)
bash install.sh --locale bn_BD.UTF-8
bash install.sh --backend zink # force Zink/Turnip (Adreno only)
bash install.sh --backend virgl # force the compatibility fallback
bash install.sh --zsh # Termux shell -> zsh, with powerlevel10k
bash install.sh --shell bash # choose without being asked
bash install.sh --no-theme # zsh without powerlevel10k
bash install.sh --distro ubuntu # one named guest profile
bash install.sh --distros debian,ubuntu,kali,alpine # install several profiles
bash install.sh --with-dev # Git, Node.js, Python, build tools
bash install.sh --with-llm # llama.cpp + Vulkan (local AI)
bash install.sh --with-network # nmap, tmux (authorised testing only)
bash install.sh --with-media # ffmpeg, GIMP, Audacity, ImageMagick
bash install.sh --with-blender # Blender + Xvfb for headless EEVEE rendering
bash install.sh --all # every optional profile
bash install.sh --resume # continue after an interruption
bash install.sh --version # show version
bash install.sh --help # show help
Workloads lists exactly what each --with-* flag installs,
and gives the manual equivalent of every one of them — useful before you let an
installer run, and the way to finish a workload that failed.
On the established Adreno workstation, --with-blender also installs Xvfb for
headless EEVEE Next rendering with GPU offload through Zink/Turnip. The
Blender usage guide gives the required display variables and
tested command.
After installation, use the ternux CLI for diagnostics and management:
ternux doctor # diagnose
ternux repair # diagnose and fix
ternux state # what is done, what is pending
ternux uninstall # interactive removal
ternux update # self-update the CLI
Choosing a guest distribution
Each selected guest lives in its own PRoot-Distro container. --distro
selects one profile; --distros installs several independently. The choice is
recorded per guest so --resume and ternux repair keep using the right
profile.
| Package manager | Named desktop profiles |
|---|---|
| APT | Debian, Ubuntu, Kali, Deepin, Pardus |
| APK | Alpine, Adelie, Chimera |
| pacman | Arch Linux, Artix, Manjaro |
| DNF | Fedora, Rocky Linux |
| Zypper | openSUSE |
| XBPS | Void |
Debian is the recommended default. Debian, Ubuntu, Kali Linux, and Alpine are the four v2-supported desktop profiles. The release qualification includes clean guest lifecycle checks and device evidence from one Adreno 825 phone; it does not promise identical results on other Android devices or qualify the remaining named profiles. The other eleven named profiles have family-matched recipes but are outside the v2 desktop support claim. Arbitrary PRoot-Distro OCI images can be installed as shell guests; they do not receive an automatic Ternux desktop recipe. Optional software workloads currently require an APT guest.
When --distro or --distros is omitted, the interactive profile picker uses
the same checklist as optional workload selection: Up/Down or j/k moves,
Space or a profile number toggles selection, Enter confirms, and q keeps the
current default. Several guests can be selected in one pass. Limited terminals
get a comma-separated number/name prompt. Before installation, the dashboard
shows the chosen profiles and configuration for confirmation. Prompts wait up
to five minutes; unanswered prompts use their displayed defaults. Unattended
runs take defaults immediately.
A profile without device evidence prints a warning. Treat its result as unverified until it is measured on your own device.
Choosing a GPU backend
| Guest profile / host | Backend | Expectation |
|---|---|---|
| Adreno with KGSL and a pinned guest asset | auto → zink |
Debian, Ubuntu, Kali, Alpine, Arch Linux, Fedora, openSUSE, Void and Deepin have pinned Mesa/Turnip assets. Vulkan and Zink GLX were observed on the four currently installed guests; full profile qualification remains narrower |
| No detected KGSL device, or a profile without a pinned Zink asset | auto → virgl |
Shared host VirGL + guest Mesa virpipe compatibility route; if the live VirGL GLX preflight fails, Ternux selects llvmpipe as the software fallback |
| Any profile where Zink is unavailable | --backend virgl |
Cross-distro compatibility route; renderer and performance depend on the host graphics stack |
Live fallback check (2026-11-15, Adreno 825): VirGL produced a GLX renderer on Debian, Ubuntu, and Kali; Alpine failed to create a DRI screen. The llvmpipe probe stayed alive on Debian, but exited with SIGILL on Ubuntu, Kali, and Alpine. The current launcher still attempts llvmpipe after a failed VirGL preflight, so software fallback is not verified on those three guests and may crash there.
Forcing zink on a device without /dev/kgsl-3d0 fails loudly at the GPU phase
before the launcher is created, rather than producing a silently-software
desktop. That failure is intentional.
On the Zink route the Vulkan driver is the foundation the whole OpenGL path
stands on, and on recent Adreno hardware it has to be newer than the one Debian
ships. Read Graphics persistence before your first
apt upgrade: it explains where to keep that driver so a package update cannot
remove it, and how to tell whether yours is already at risk.
The installer screen
One screen serves the whole run. The log window holds the live tail of the current phase; the complete stream is always appended to the log file.
+=========================================================+
| ternux v2.0.1 - ONE-CLICK INSTALLER |
| by Sobuj Miah - base ~4-4.6 GB - complete ~10.5-12.5 GB |
+=========================================================+
| Device Redmi Turbo 4 Pro - Android 15 (SDK 35) |
| Graphics Adreno 825 - backend zink - Vulkan 1.4 |
| Memory 12 GB RAM - 84 GB free - aarch64 |
| STEPS 4/11 ######------------ Debian container |
+=========================================================+
| Get:14 http://deb.debian.org trixie/main arm64 |
| Unpacking xfce4-session ... |
| ... +201 more lines (full log: ternux.log) |
| [ OK ] Base packages installed |
+=========================================================+
| (c) 2026 Sobuj Miah - github.com/soobujmiah 03:12 / |
+=========================================================+
| Region | What it reports |
|---|---|
| Device panel | Model, Android release and SDK, GPU, selected backend, Vulkan, RAM, free storage, architecture |
| Step bar | Phase number, total phases, and the title of the running phase |
| Log window | Live tail of the running phase, coloured by severity |
| Footer | Elapsed time and a spinner that keeps moving while a phase is quiet |
Renderer modes
| Mode | Chosen when | Behaviour |
|---|---|---|
dashboard |
Interactive terminal with colour, at least 39 usable columns and 13 rows | The persistent screen shown above |
plain |
Everything else: pipes, curl | bash without a TTY, TERM=dumb, NO_COLOR, a very small window |
Framed lines appended in order, no cursor control |
off |
--ui off, --quiet, or --json |
Raw command output with no framing |
Selection is automatic; override it when you prefer a different result:
bash install.sh --plain # scrolling log, no full-screen dashboard
bash install.sh --no-anim # dashboard without spinner or colour cycling
TERNUX_UI=off bash install.sh # raw output, e.g. to capture a transcript
Reading the log window
- Carriage-return progress from apt, dpkg, proot-distro and curl updates a single row in place instead of scrolling the window away.
- When a phase prints faster than the screen can be read, the newest lines are
kept and the count of the rest is stated as
... +201 more lines. Errors, warnings and phase markers are never summarised. - Changing font size, rotating the device, or opening the on-screen keyboard re-fits the frame once and redraws the visible log.
Ctrl-Crestores the terminal and preserves recorded state, sobash install.sh --resumecontinues from the last completed phase.
The renderer never decides what is recorded:
ternux logs tail # follow the live install log
ternux logs show # read the whole log
ternux logs list # log files and sizes
After the install
1. Open Termux:X11 once and leave it running.
2. source ~/.bashrc
3. tx start ← starts the desktop
Run a full diagnostic:
ternux doctor
ternux doctor --json # machine-readable output
Then verify the graphics path from a desktop terminal:
glxinfo | grep "renderer string"
vulkaninfo --summary | grep -i driverName # Adreno: expect "Turnip"
Back up the working state before adding large models or experimental packages:
proot-distro backup debian --output ~/debian-backup.tar.gz
Updating
- The ternux CLI:
ternux updateuses the latest published stable release tag. It resolves and fetches that exact Git commit, validates a complete staged module tree, then switches the CLI and modules with a recovery journal. The previous version remains backed up; failed verification restores it. A newer development build is never downgraded to an older stable tag. - An interrupted installer run: re-download the same reviewed script and use
--resume; successfully recorded phases are skipped, except the host CLI phase runs again when its recorded source identity differs from the current installer. Guest phases are skipped only while that guest's PRoot container is still installed. A removed guest's old phase ledger is not treated as a completed install. Resume does not repair other completed desktop or managed-artifact phases—useternux updatefor a published CLI update andternux repairfor managed artifacts. Back up before driver or distribution changes. - Debian packages:
sudo apt update && sudo apt upgradeinside the desktop. Mesa packages are held (apt-mark hold) on the Zink route on purpose — upgrading them can silently switch you back to software rendering. Unhold deliberately, not accidentally:sudo apt-mark unhold mesa-vulkan-drivers libgl1-mesa-dri libglx-mesa0 libgbm1 libegl-mesa0.
Uninstalling
Remove one named guest through Ternux so its stopped session, install ledger, profile state and workspace record are cleared together:
ternux distro uninstall ubuntu --yes
Then reinstall it with ternux install --distro ubuntu. Use --resume only
for a guest that still has its PRoot container; the installer checks container
presence before trusting old guest phase records.
ternux uninstall # preferred — interactive removal
# or
curl -fsSL https://raw.githubusercontent.com/soobujmiah/ternux/main/uninstall.sh | bash
# or
bash install.sh --uninstall
all stops the Ternux desktop, removes its launcher and shell aliases, state,
logs and empty capture-cache directories, deletes the selected Debian guest,
and removes the Ternux host CLI and its update backups. It preserves Termux
itself, shared Termux packages, other PRoot guests, Android files outside
Termux storage, and non-empty capture folders. It also does not revoke shared
storage access, restore repository/mirror choices, or revert the loopback
PulseAudio line in Termux's default.pa; these settings may predate Ternux.
Normal installation creates only the selected guest (default debian); it does
not create test aliases such as ternux-clean-apt. Clearing Termux app data is
a separate operation that removes the remaining Termux environment.
Troubleshooting
Desktop won't start? Renderer says llvmpipe? No audio?
See Troubleshooting — every symptom maps to a cause
and a fix.
ternux — Copyright (c) 2026 Sobuj Miah (@soobujmiah) · Apache-2.0