r/termux 1h ago

Question New to Termux

Upvotes

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 6h ago

Barely Termux related Does Android support adding Unix users? (with root of course)

6 Upvotes

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 15h ago

General Clock

Thumbnail gallery
14 Upvotes

r/termux 11h ago

Question #udroid #xfce4_glitch

Post image
4 Upvotes

can this be fixed in xfce4 termux:X11


r/termux 15h ago

Question I'm about to start trying to compile OpenCode for Termux on ARMv7.

2 Upvotes

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 1d ago

Question Do i have temperature IQ or the Ivon's box86 + Wine tutorial is not working?

Post image
8 Upvotes

r/termux 1d ago

Question Whats benefit of qemu on termux

16 Upvotes

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 22h ago

General Regarding Termux x11, what DE's have people tried so far?

2 Upvotes

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 1d ago

Showcase Debian VM setup guide on termux

Post image
18 Upvotes

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 2d 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

148 Upvotes

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 1d ago

General Estamos teniendo fallos pero trataremos de estar en órbita lo antes posible

Post image
4 Upvotes

r/termux 1d ago

Question [Help] VNC Server ECONNREFUSED & Black Screen inside PRoot on Android 16

1 Upvotes

​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:

  1. ​ECONNREFUSED: Occurs when trying to connect through AVNC or VNC Viewer.

  2. ​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 2d ago

Showcase Yea ok but can you beat dopewars?

Post image
10 Upvotes

r/termux 2d ago

General Como empiezo en termux?

5 Upvotes

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 2d ago

Question KDE Installation Stuck on Breeze Icon Theme

Post image
8 Upvotes

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 2d ago

Question ¿Coding in termux w/keyboard?

9 Upvotes

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 2d ago

General Opencode-Termux

13 Upvotes

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 2d ago

General Termux vs. PRoot vs. Podroid (qemu/pkvm)

4 Upvotes

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?


r/termux 3d ago

General Termux + AwesomeWM + Eww

Thumbnail gallery
138 Upvotes

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 2d ago

Question Building apk's via termux

16 Upvotes

can you use termux to build apk's and test them ?

if so, than how ?


r/termux 2d ago

General #install ubuntu on termux

Post image
5 Upvotes

i want install ubuntu on termux

i cant not open Desktop on starxfce4 termux:11

#Help_me


r/termux 2d ago

General Why I am reluctant to use chroot instead of proot

4 Upvotes

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.


r/termux 3d ago

General KDE Plasma on ubuntu chroot-distro with Anland Termux. Note: my device is Poco Pad M1, snapdragon 7s gen 4, adreno 810. This is absolutely smooth than proot-distro.

Enable HLS to view with audio, or disable this notification

36 Upvotes

r/termux 2d ago

Question Musicolet Background Stuff

7 Upvotes

Recently I tried to do a sequence of events

Termux detects a specific song play -> change background -> song ends -> revert background

Reason I wanted to use termux is due to being on a honor pad (restrictions such as tasker and macrodroid being premium, some apps only using phone dimensions)

and I researched for a bit, turns out honor's MagicOS forbids termux from accessing storage paths and system logs

And I have to debug it using a computer to let termux access?? (not sure if its safe)

Btw I am completely new to termux, spent 3 hours trying and dying in the process
need some tips or just another alternative or just give up and come back after learning termux


r/termux 2d ago

Question A couple of questions about Termux

1 Upvotes

About a year or less ago I came across such a thing as Tеrmux, and accordingly, a lot of questions have accumulated that I would like to ask here. How well is it suitable for Telegram bots, considering the problem that bots work in sessions and I wouldn’t want to merge them into some free host, but the phone also constantly runs out of battery and the bots crash. My phone doesn't have the ability to control the charge, that is, if it's at 1 percent, charging will turn on; if it's at 90 percent, it will turn off. That's why I run into the problem every time: it seems to be good as a server, but if the power goes out, the bots won't crash, although they won't work without the internet. But when the power comes back on, everything works because the battery still holds something, but when I'm away from home for a few days, the phone turns off due to low battery.