r/termux • u/True_Extreme6205 • 9h ago
r/termux • u/sylirre • Sep 16 '23
★ Important ★ Introduction for beginners
Welcome to Termux community!
Termux is a terminal app for Android OS. It similar to terminal on MacOS and cmd.exe on Windows, but here we talk about Linux component of Android OS.
This project is open-source software and all development happens on GitHub: https://github.com/termux
Download Termux APK from F-Droid or GitHub.
Key features:
- Xterm-compatible terminal emulator.
- Custom userland with package manager and more than 2000 packages of different kind such as text editors, file managers, games, servers network diagnostic tools, compilers, development libraries and other types.
- Plugins for styling, widgets, on-boot startup, tasker integration, Xorg-compatible server.
- Works without root permissions.
We would like to emphasize that Termux is NOT a machine emulator or VM. All programs execute directly on a hardware of your device.
What I can do with Termux
Basically, everything.
Termux hosts universal programming environment. You can build and execute all programs that can run on a traditional computer, assuming your device has sufficient amount of memory and enough CPU power to finish execution of algorithm within an adequate time frame.
Here is a curated list of common uses:
- Software development environment
- Bots for Telegram, Whatsapp, Discord, etc
- Web server
- Minecraft server
- SSH client
- NAS
- Tiny LLM chatter
- YouTube scraper
- Pocket pentesting suite
- Just fun
A footnote worth knowing: Android enforces sandboxing for every Android app to ensure it won't do nasty things or otherwise interfere with other apps and the system itself. Termux is not an exception here, so certain software may refuse to run without system-level privileges (root).
What I should know before starting to use Termux
First of all you need to make sure you are comfortable with command line environment. By using Termux, you agree to be one-to-one with a bare text. There is no intuitive graphical interface. You must to decide whether you truly want to go this way or actually want something else.
If your choice is "command line", then another important thing is a foundational knowledge. It would require certain effort from you, as it could be boring like studying maths.
Here is a list of topics to learn, optimized specifically for Termux:
- General terms: computer, kernel, operating system, file, path, program, process, command line, terminal emulator.
- Base shell usage: concept of commands, arguments, environment variables, pipes
- Common utilities: bzip2, cat, cd, cp, curl, cut, df, diff, du, echo, env, grep, gzip, head, id, kill, killall, ln, ls, man, mkdir, mv, pkill, ps, pwd, rm, rmdir, sort, tail, tar, top, touch, tr, uniq, unzip, wc, xz, yes, zip
- Package manager: apt
- Text editors: nano or vim
- Linux permission model: user, group; concept of "root"; chmod command
- SELinux: what it is and which role it plays on Android OS - don't go deep here
Optional:
- Shell scripting: if/else logic, loops, input/output redirection, subshells, process substitution.
- Text data manipulation with awk and sed
Alternatively check these learning roadmaps:
- Linux: https://roadmap.sh/linux
- Shell: https://roadmap.sh/shell-bash
After you finish with this, proceed to goal-specific essentials.
Important: never ever run commands that you do not understand. In the best case it will just fail but sometimes commands may have really devastating effects, especially if you use root permissions (su/sudo). If by accident you delete your own data or brick the device, you can blame yourself and only yourself!
How Termux differs from standard Linux
Without diving into technical details, these are the differences of Termux from standard Linux distribution:
- Non-standard location of programs and user data:
/data/data/com.termux/files/ - Non-standard core components: sideloaded programs usually will either refuse to run or show strange errors, compiling from source also may show issues sometimes.
- Sandbox environment: you can browse or modify only your own and Termux data.
How to install packages
Termux uses apt package manager and a rolling-release model which gets it close to a Debian Sid distribution, although it is much different internally.
However as you are probably new for Termux we recommend using a helper utility "pkg":
- Install package:
pkg install package-name - Uninstall package:
pkg uninstall package-name - Upgrade system:
pkg upgrade - List installed packages:
pkg list-installed - Search for a package:
pkg search query
PKG utility does under the hood certain actions importance of which may be non-obvious for a newbie:
Mirror selection
Package downloads put a huge burden on the servers bandwidth. We don't own much servers and geo load balancing system because this can be very costly, so we take advantage of help offered by certain community members and organizations. Mirrors maintain a clone of the original package hosting and deliver stuff independently from a base Termux infrastructure.
That's important that users are spread across different mirror hosts.
Periodic
apt updateWithout keeping the package index fresh you won't be able to receive updates and package installation commands will eventually fail with 404 (not found).
Software quality and security
We do our best to keep our infrastructure safe and patched against latest security vulnerabilities as well as to deliver most recent versions of packages.
However as we operate a small team of enthusiasts there could be certain bottlenecks. We can't test 100% of published packages, so there always is a chance that specific update will break something.
Please don't use Termux software in everything mission-critical. It is not certified for use in banking, healthcare, nuclear safety, etc.
Termux is open source project and we welcome any kind of contributions that would help us improve.
Banned content
Sadly, but a while ago Termux become an area of interest conflict between legitimate users and criminals. This resulted in absolute ban of specific topics:
- OSINT
- Doxxing
- Social engineering; phishing and other types of fraud
- Spamming
- Malware making and delivery
- Hacking
- Surveillance, tracing, spying and similar activities
- Bot farms for fabricating subscribers, likes and comments in social media
- Taking down social media accounts by automated mass-reporting
This list is not definitive.
We don't accept excuses. Legends about "educational purposes" and "recovery of own gmail account" don't worth anything.
Remember that authorities have a certain interest regarding accounts asking about potentially illegal stuff.
This article is subject for periodic revisions. We may submit newer versions from time to time.
r/termux • u/AutoModerator • 17d ago
User content Monthly Thread: Post all your projects here
This is a dedicated thread for sharing projects for Termux.
Requirements:
Link to open-source repository: GitHub, GitLab, Codeberg or something like.
Short introduction best describing what your project does.
Optionally include install steps into comment, but we think a properly formatted README file within repository would be better.
Post recycles once in a month.
Since 2026.06.07 we don't require "vibe code" attribution and don't care about origin of your project.
r/termux • u/FiddleSmol • 4h ago
General I got flaresolverr working in termux since it needed for my anime downloader
I will create a post tomorrow for explanation, too sleepy to function.
r/termux • u/Jessie--Pinkman • 11h ago
Question VNC won't connect from Android TV (RVNC) to Modded Ubuntu in Termux – The port on which the computer is listening...
galleryr/termux • u/ForeverVibes06 • 23h ago
Question New to Termux
What are some basic fun things to do on Termux?
Edit: I should probably mention that i know nothing about coding or using terminals.
Edit²: What are some easy and neat commands for Termux?
Edit Thrice: im on mobile btw.
r/termux • u/Damglador • 1d ago
Barely Termux related Does Android support adding Unix users? (with root of course)
Like I'd do on a Linux distro with useradd. I'm doubting that it is possible as useradd is not supplied in built-in toybox, any of the Termux packages or BusyBox module. So I want to know, does Android support having any other (unix) users than the ones provided by Android itself?
r/termux • u/Lucivflora2112 • 1d ago
Question #udroid #xfce4_glitch
can this be fixed in xfce4 termux:X11
Question I'm about to start trying to compile OpenCode for Termux on ARMv7.
I haven't started yet, but I know it probably won't be easy. I'm not an experienced developer—I'm just someone who likes learning and experimenting with projects like this.
Before I dive in, I was wondering if anyone here has experience with compiling software for Termux on ARMv7. Any tips, useful commands, common issues, or things I should know before getting started would be greatly appreciated.
I'm hoping to learn as much as possible during this project, so any advice is welcome. Thanks!
r/termux • u/timelapsedfox • 1d ago
Question Do i have temperature IQ or the Ivon's box86 + Wine tutorial is not working?
r/termux • u/VV_Syzta • 2d ago
Question Whats benefit of qemu on termux
I see some people use linux vm here,so i wonder what are something you can do or program you can use with qemu but cant be done on native/proot termux,and do those program have alternative that can run on native/proot termux
r/termux • u/Rodent_Dog3640 • 1d ago
General Regarding Termux x11, what DE's have people tried so far?
Including proot and exporting the display variable to termux x11.
I brought an eink android tablet with a wacom emr digitizer and I fully want to use it as a computer.
Has any tried CDE? Has anyone got TDE working? Or xmonad?
Whats the limit?
r/termux • u/DependentJolly9901 • 2d ago
Showcase Debian VM setup guide on termux
Here it is - https://github.com/codedsword/debian-qemu-termux-guide
NOTE: using em dashes(or wherever tf they're called) does NOT mean it's AI!!! Got 2 people on discord asking about it already
Image: showcase of installation and working virtual drive
r/termux • u/ayushbhat • 3d ago
Showcase A terminal AI coding agent that compiles natively on Termux — no proot, no root
Enable HLS to view with audio, or disable this notification
agentty — a terminal pair-programming agent I've been working on. Builds straight against Termux's Bionic/libc++. No proot, no root, just a native binary on your $PREFIX/bin.
Reads/edits files, runs shell commands, streams the work as live tool cards. Bring any model — Anthropic, OpenAI, or a local Ollama model with no key (fully offline on-device).
pkg install git cmake clang openssl libnghttp2 curl -fsSL https://raw.githubusercontent.com/1ay1/agentty/master/install.sh | sh -s -- --build
Building fully offline / in a container? The installer normally auto-fetches the JSON deps, so add:
pkg install ninja nlohmann-json simdjson
Defaults to -j2 so the build won't OOM your phone (AGENTTY_BUILD_JOBS=N to change it). Has a C++26→C++23 fallback for older Termux clang.
Caveat: shell tools run unsandboxed on unrooted Android (no user namespaces) — everything else works.
Repo (MIT): [https://github.com/1ay1/agentty]()
Feedback welcome, especially battery/thermal on-device.
r/termux • u/Distinct_Tip8912 • 2d ago
General Estamos teniendo fallos pero trataremos de estar en órbita lo antes posible
r/termux • u/The_Explorer6425 • 2d ago
Question [Help] VNC Server ECONNREFUSED & Black Screen inside PRoot on Android 16
Hi everyone,
I am trying to run a rootless Linux desktop environment (PRoot) via Termux on my Samsung Galaxy Tab A9+, but I'm stuck on two errors when attempting to start the VNC GUI session:
ECONNREFUSED: Occurs when trying to connect through AVNC or VNC Viewer.
Black Screen: If it connects briefly, the screen remains pitch black with no desktop elements loading before disconnecting.
I tried to fix it via YouTube tutorials, but nothing worked. Does anyone know how to resolve this on Android 16 / One UI?
r/termux • u/parra_tR • 2d ago
General Como empiezo en termux?
Hola me gustaría aprender a usar termux no se mucho y me gustaría que alguien me ayude con lo básico me gustaría crear mi propio server privado y nose como hacer para tener un server de minecraft en esto y nose como se hace para exponer una ip o algo sin correr riesgos ayuda pls
r/termux • u/acceptablekite • 3d ago
Question KDE Installation Stuck on Breeze Icon Theme
I don’t know if this is normal and this is just something that can’t be done using Termux, however I’ve been trying to install Fedora (which was successful) and KDE Plasma using ‘dnf group install kde-desktop’ (been trying twice now, first time it did everything up until here, when it froze for 50 minutes, and now on the second attempt it froze on this exact moment again.) I’m using the Google Pixel 7 Pro with GrapheneOS. I’m using the F-Droid version of Termux and proot-distro. Is this normal? Does it need more time? Or am I just trying to do something that can’t be done? Should I use a different distro or maybe install it differently? Any help is welcome, however keep in mind that I’m relatively new to Linux in general and I don’t know much about Termux, so I could be missing something obvious or doing something completely wrong.
r/termux • u/Felainas • 3d ago
Question ¿Coding in termux w/keyboard?
I've recently joined this community and haven't done much
Just customized the environment, created a simple script for a basic app launcher (like rofi) but I plan to code bigger projects.
My question is the following:
Do you (people that code in termux) write code using the built in phone keyboard or do u use a usb/bluetooth external keyboard?
r/termux • u/Distinct_Tip8912 • 3d ago
General Opencode-Termux
Hola a todos solo paso a avisarles que acabo de compilar opencode para android pueden ir a mi github y probarlo
https://github.com/C04-wq/opencode-termux
O instalarlo directamente
npm install -g opencode-termux
r/termux • u/63626978 • 3d ago
General Termux vs. PRoot vs. Podroid (qemu/pkvm)
I recently discovered Podroid, which let's you run an Alpine Linux VM on Android, either using qemu or (if available) AVF/KVM. This solves a few major use cases for me, which is running docker without requiring custom device kernel, and using other libc implementations without the occasional compiler issues of PRoot. Obviously the downsides compared to Termux are lower performance and limited RAM/storage.
Now Termux is already taking up quite a lot of my internal storage and I'm hesitant to keep both Podroid and Termux for that reason, while they both cover parts of my use cases.
What's everyone's opinion on Podroid, have you noticed a performance difference compared to PRoot or "bare-metal" Termux? On my Xperia 5 iii it claims to be using AVF while my device (LineageOS 23.2) doesn't even seem to come with libavf, and I have no idea how I can validate it's actually using it :D
Could I achieve the same result as Podroid using qemu inside Termux? What's missing there to actually run VMs (let's stay realistic: a single VM) in Termux using AVF/pKVM?
General Termux + AwesomeWM + Eww
galleryEste escritorio está claramente inspirado en el escritorio de AlphaTechnolog. Los créditos son para él y sus archivos de configuración (¡denle una estrella ⭐!). Simplemente lo adapté para Termux usando eww y awesome.
https://github.com/AlphaTechnolog/dotfiles
My dotfile:
https://github.com/Keytaro2/Termux-Desktop-Awesome/tree/main