r/termux • u/ForeverVibes06 • 1h 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.
r/termux • u/sylirre • Sep 16 '23
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:
We would like to emphasize that Termux is NOT a machine emulator or VM. All programs execute directly on a hardware of your device.
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:
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).
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:
Optional:
Alternatively check these learning roadmaps:
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!
Without diving into technical details, these are the differences of Termux from standard Linux distribution:
/data/data/com.termux/files/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":
pkg install package-namepkg uninstall package-namepkg upgradepkg list-installedpkg search queryPKG 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 update
Without keeping the package index fresh you won't be able to receive updates and package installation commands will eventually fail with 404 (not found).
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.
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:
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 • 16d ago
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/ForeverVibes06 • 1h ago
What are some basic fun things to do on Termux?
Edit: I should probably mention that i know nothing about coding or using terminals.
r/termux • u/Damglador • 6h ago
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 • 10h ago
can this be fixed in xfce4 termux:X11
r/termux • u/Lh2KING • 15h ago
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
r/termux • u/VV_Syzta • 1d ago
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 • 22h ago
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 • 1d ago
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 • 2d ago
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 • 1d ago
r/termux • u/The_Explorer6425 • 1d ago
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
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 • 2d ago
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 • 2d ago
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 • 2d ago
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 • 2d ago
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?
Este 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
r/termux • u/Neon-Catalyst • 2d ago
can you use termux to build apk's and test them ?
if so, than how ?
r/termux • u/Lucivflora2112 • 2d ago
i want install ubuntu on termux
i cant not open Desktop on starxfce4 termux:11
#Help_me
r/termux • u/SkySurferSouth • 2d ago
I tried chroot-distro on my rooted Nothing 2a with Android 14. It did work, even in GUI mode. I used VNC like I use it with proot-distro, because Termux X11 cannot be shared / networked. I use a TigerVNC server (localhost only) inside the proot/chroot with an SSH wrapper for security to access it from LAN. On the phone itself I use a VNC client (AVNC) to control / view it. Works on both proot and chroot.
So far so good.
Chroot is a lot faster, particularly with Firefox or other hardware based graphics because proot has ptrace overhead slowing it down.
BUT:
root user is shared with Android root which has some security risks. This is unlike a container package like Proxmox/LXC which puts container root to UID 100000 on the Proxmox server.
the standard non root user (UID 1000) is shared with 'Android system'. This can be avoided by patching /etc/passwd inside the container (when it is not running) from a root shell in Termux. The UID can be patched to the same UID as Termux (10xxx . u0_axxx).
But when installing other apps inside the container by adb / dnf / (the package manager of the OS), some apps have their own Linux user (e.g. Apache UID 48, or mysql user). That is the other issue they 'steal' the UID from Android when it is used under Android. This is the same difference with LXC where Apache in a container has UID 100048 on the server.
Mounts should be cleared completely after exiting / stopping or even aborting the container. And use the --minimal option on chroot-distro command to prevent unnecessary and risky mounts to the Android root folder like /tmp, /acct, /data which should not be accessed from the container. Otherwise one could mess up Android.
Doing any actions to the container folder when it is not running should be done only when all mounts to the container are unmounted.
Once I did a su -c "rm -rf $ROOTFS/data" from Termux when it was still mounted to /data which wiped my entire phone. So I had to factory reset it, but luckily root and Magisk survived.
This fundamental issue keeps me from using chroot.
This is a warning that chroot is risky, more than most apps using root.