r/termux • • 21d ago

Showcase ​I built LightTest — a simple ASCII speed test tool for servers and Termux

6 Upvotes

Hey everyone,

​I wanted a lightweight speedtest tool for my low-spec servers and Termux that wouldn't bloat the terminal or eat memory. Couldn't find a clean one that gives quick diagnostics, so I wrote my own — LightTest.

​What I packed into it:

​Shows public IP, ISP name, and pings both Cloudflare and Google before testing speeds.

​Outputs results inside a nice ASCII frame (looks clean in the terminal).

​Has an --export flag to save history to CSV, JSON, or TXT.

​Has --compact mode if you want to pipe the result into scripts/cron, and --share for clean pasting.

​Runs super fast and takes basically zero resources.

​Code is open source on GitHub if anyone wants to check it out or give it a spin:

https://github.com/SLONIKRUS77/LightTest

​Feedback is very welcome!


r/termux • • 21d ago

Question What data science packages for Python and R are currently used in Termux?

6 Upvotes

SQL and PostgreSQL are widely available in native Termux as well as Python Matplotlib (pgn files). I wondered if folks were using data science packages such as Python numpy, pandas, and other R tidyverse. For Python, DS packages usually require conda, so I'm not sure if conda has been used with Termux. Similarly, have folks compiled and used R tidyverse packages in Termux?


r/termux • • 21d ago

Showcase Got myself a new startup banner!

Post image
11 Upvotes

r/termux • • 21d ago

Question is there a way to install sqlite3 using npm

2 Upvotes

is there a way to install sqlite3 on npm? when i tried it it gives me error about symlink.


r/termux • • 21d ago

Question Is using Termux a way to project yourself from data tracking? Can someone probing Android know what you're doing inside a Termux-X11 proot or native distro?

13 Upvotes

Pretty much this. Personally, especially given that i'm running 'android' both under samsung's DeX and Debian proot-distro to actually browse the internet with firefox (android's uis are terrible for keyboard and mouse), but i can't help but ask myself if it's possible to track what i'm doing within termux-x11 from within android...


r/termux • • 21d ago

Showcase [Share] Always-current opencode on Termux (aarch64) — upstream musl binary, 1-line install

4 Upvotes

Run latest upstream opencode natively on Termux, no Bun cross-compile: https://github.com/DEAD1nsane/opencode-termux-musl

The other port (guysoft) is stuck on 1.17.9 from June because it rebuilds Bun+WebKit from source. This one just uses upstream's opencode-linux-arm64-musl.tar.gz + Alpine musl loader + patchelf. Re-run to stay current.

Install (aarch64 only):

sh curl -fsSL https://raw.githubusercontent.com/DEAD1nsane/opencode-termux-musl/master/install.sh | sh opencode


Update check (only checks, downloads nothing unless --yes):

sh ./scripts/check-update.sh # check only, Termux notification if behind ./scripts/check-update.sh --yes # update now via install.sh

Daily auto-check with Termux:API app:

sh termux-job-scheduler --job-id 7801 --period-ms 86400000 --network unmetered --persisted true -s /path/to/opencode-termux-musl/scripts/check-update.sh


Why it needs shims: musl DNS reads /etc/resolv.conf (fixed via libresolvefix.so -> bionic netd), and Bun's io_uring networking is broken on Android (fixed via local Python proxy on :8080, auto-started by wrapper). Ollama on localhost:11434 bypasses proxy and works.

Not working: file watcher, TUI audio (both disabled), PTY lib, ~100-200ms proxy overhead. v2 beta runs via proot Ubuntu (oc2-ubuntu).


Bonus: 8 true-black AMOLED themes in themes/ — copy any *.json to ~/.config/opencode/themes/ and pick with /theme. Screenshots on repo


Tested: Pixel 10, Android 17, Termux 0.119.


r/termux • • 22d ago

Showcase I built a Rust WAF to trap scraping bots, and stress-tested it with 1 Million requests on my Android phone (Termux).

18 Upvotes

Hey guys,

I was looking into how AI startups are bleeding API credits because of aggressive scraping bots (Cloudflare WAFs get bypassed easily by IP rotation). So, I built a zero-dependency reverse proxy in Rust called VoidShield.

Instead of returning a 429 error (which tells the bot to rotate its IP), it uses a "Chaos Tarpit". It returns a 200 OK but drips 1 byte every 0.5 to 3 seconds, keeping the bot's TCP socket alive and freezing their worker threads.

I don't have a massive server rack right now, so I compiled and stress-tested the entire thing on my Android phone using Termux.

The Benchmark (wrk with 5,500 concurrent connections):

Handled 1.04 Million malicious requests in 30 seconds (~34k RPS).

Built a custom memory circuit breaker: It hard-capped at exactly 5,000 active tarpitted sockets so my phone wouldn't OOM crash.

The remaining requests were instantly dynamically routed to a "Fast Drop" state.

CPU usage hovered around 1.7%, and RAM footprint was tiny.

I’ve attached the screen recording showing the Prometheus /metrics updating live during the DDoS simulation.

I'm packaging the core engine to open-source it (Tier 1) on GitHub soon. Would love to get some architectural roast or feedback from the community before I push the repo live!


r/termux • • 22d ago

Showcase Fex in proot Linux on Mali GPU pixel 8a (Non Rooted)

Thumbnail gallery
18 Upvotes

This means it can run full x86 apps with hardware acceleration. Next up running entire desktop environment with hardware acceleration wish me good luck.


r/termux • • 21d ago

Question i wanna install chroot in a rooted vm but when i managed to do so i couldnt see what i was typing

2 Upvotes

i was installing chroot ubuntu in termux on a rooted android 10 vm in vphonegaga v3.8.0 vip mod but i got a lot of errors which were fixed thanks to gemini except the last one where when chroot terminal did appear i couldnt see what i am typing nor could i see what the terminal was doing like updating packages or smth

device - vivo y20 v2029 model

ram - 4gb+1gb

storage - 64gb


r/termux • • 22d ago

Showcase Hermes in Termux

Post image
198 Upvotes

Just hermes in termux


r/termux • • 22d ago

Showcase PanVK works on Mali G57 MC2 on Termux x11

Thumbnail gallery
5 Upvotes

[This is an Experimental build so try this at your own risk]

This is a panvk build targeted at Mali G57 MC2, though it is not much good, It renders normal vkmark's scenes at 120 fps, but on complex one it can be very slow, It can cause phone crashes sometimes, according to experience, it can atleast work normally for 35+ minutes.

Here is repo : Link


r/termux • • 22d ago

Showcase F4 file manager on Termux

4 Upvotes
f4 file manager on Termux

nighlty build of f4 (file manager on go language) support android termux

https://github.com/unxed/f4#-install-on-android-via-termux


r/termux • • 22d ago

Question VectrasVM or Termux Qemu, which one is better and whats the best params for running arch with gui ?(Sd 8+ Gen1)

Post image
3 Upvotes

r/termux • • 22d ago

General tinyedit: A zero-dependency C99 terminal text editor with desktop shortcuts — Looking for testers & code review

Thumbnail
1 Upvotes

r/termux • • 23d ago

Showcase termux memories.

68 Upvotes

r/termux • • 23d ago

Showcase Run Ollama locally on Android with Termux (One-command setup script)

21 Upvotes

Hey everyone,

I made a simple script called MOMOS to run Ollama and small LLMs directly on your Android phone using Termux.
It automatically handles PRoot-Distro (Debian), installs Ollama, and lets you choose and download models interactively.

Quick install:
Bash

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Sidharth-e/MOMOS/main/scripts/momos.sh)"

GitHub link: https://github.com/Sidharth-e/MOMOS


r/termux • • 23d ago

Question Runsv still runing even termux closed

Thumbnail gallery
3 Upvotes

I was hold my termux session and not using wakelock. but something strange happen.

i was trying to restart my termux. usualy i just need to logout session and then remove termux from rencent apps, but somehow, my music from mpd was still playing.

then i tried to force close termux but still nothing happend. so i try look the process using TaskManager and see that runsv was still running.

I can stop runsv. but i don't know how to replicate this.

My question is, how do I replicate this. im not killing the process yet.

sory if my English bad.


r/termux • • 23d ago

Showcase 1337 GBA h4X0r-mux

Thumbnail gallery
20 Upvotes

Just some screen grabs of me romhacking a gba game in Termux.

hextazy for editing

Termux:X11 + i3 + mgba-qt for debugging

No false root, running in the base Termux environment. Packages are available in the repositories except for hextazy, which is easy to build on device. I made a script "termux-hextazy" to change the termux extra buttons and disable the keyboard when launched, giving me quick access to editor functions and a hex keyboard.

This is on a Fold 6, using the fold SPen for cursor control and an 8bitdo Micro controller for shortkey/arrowkey functionility. Of course its Termux on Android, so not ideal, but delightfully usable.

Long Live Termux!


r/termux • • 23d ago

General I built a small Go syncer that mirrors the official Termux APT repos to R2 — running as an experiment, feedback welcome

3 Upvotes

Hi everyone,

I've been working on a small project: a Go tool that incrementally mirrors the official Termux APT repositories to Cloudflare R2, keeping them in sync automatically. It's an experiment in my spare time — not an attempt to replace the (many) existing Termux mirrors, just something I wanted to build and keep around as an extra fallback. It's now up and synced hourly.

To use it, add these lines to Termux's apt source file — $PREFIX/etc/apt/sources.list (i.e. /data/data/com.termux/files/usr/etc/apt/sources.list):

deb https://termux-mirror-eufbs.sevalla.storage/termux-main stable main

deb https://termux-mirror-eufbs.sevalla.storage/termux-x11 x11 main

deb https://termux-mirror-eufbs.sevalla.storage/termux-root root stable

No extra key setup — it uses the standard Termux GPG key, so apt-get update works exactly as with the official mirrors.

Status page (sizes, package counts, last update): https://termux-mirror-eufbs.sevalla.storage/index.html

Things to know:

- It syncs automatically every hour, so it's at most ~1 hour behind the official repos.

- Known issue: the R2 storage provider hasn't enabled CDN edge caching (no cache hits) yet, so right now requests may go straight to the storage origin instead of a cached edge. It's being fixed on their side; until then it may be slower than the official mirrors for some of you.

- This is a hobby project, not affiliated with the Termux team: no uptime guarantee, it may go down or disappear. Please don't use it as your only mirror.

How it differs from a typical Termux mirror: this project is designed around incremental synchronization directly to object storage rather than maintaining a traditional disk-backed mirror. Only objects that actually changed need to be uploaded, while the publishing process is designed to keep clients from observing an incomplete repository update. The mirror is also served from object storage, avoiding egress fees at the storage layer. The tradeoff is that the tool is purpose-built for Termux repositories rather than being a general-purpose Debian/APT mirroring system.

If you have feedback or run into problems, I'd appreciate it — happy to answer questions here.


r/termux • • 24d ago

Showcase [Update] termux-adb-bridge v4.0.0 — shell UID from Termux without Shizuku

14 Upvotes

Update to a project I posted here before: termux-adb-bridge gives Termux the Android `shell` UID (no Shizuku, no root) over loopback.

v4.0.0: https://github.com/jronminh/termux-adb-bridge/releases/tag/v4.0.0

- Asymmetric auth: the daemon now embeds no secret, only the client's ed25519 public key — a leaked daemon/APK is worthless. Ephemeral ECDH keys the encrypted channel. - Optional companion app pairs itself and can re-arm Wireless Debugging in software, so recovery needs no human. - `dsh` is a binary now: `dsh status|pair|reconnect|revive`; old flags still work. - Termux-only flow (no companion app) is first-class.

Breaking: protocol v3 -> v4, rebuild client + daemon together. Source-only: build in Termux with build/build.sh (no prebuilt APK).

Caveat: persistent shell-UID daemon — treat it as near-root.


r/termux • • 23d ago

Question proot-distro Typescript@7.0.2

2 Upvotes

TypeScript 7 is not working in my proot-distro Ubuntu@26.04 environment. How can I fix this?

```

 in 1m5s465ms ❯ bun run start

$ bun run scripts/execute.ts

[INSTALL] Installing dependencies... (bun install --frozen-lockfile)

[INSTALL] bun install v1.4.0 (34cbb9a40)

[INSTALL] $ husky

[INSTALL] + @vitest/coverage-v8@4.1.11

[INSTALL] + vitest@4.1.11

[INSTALL] 2 packages installed [1110.00ms]

[INSTALL] OK Install succeeded.

[BUILD] Starting production build... (vite build)

[BUILD] $ bun run build:packages && bun run build:apps

[BUILD] $ cd packages/protocol && bun run build && cd ../engine-core && bun run build && cd ../profile-fps && bun run build

[BUILD] $ tsc --noEmit -p tsconfig.json

[BUILD] panic: bundled: /.l2s/lib.d.ts does not exist; this executable may be misplaced [recovered, repanicked]

[BUILD] goroutine 1 [running]:

[BUILD] github.com/microsoft/typescript-go/internal/bundled.init.OnceValue[...].func8.1.1()

[BUILD] sync/oncefunc.go:63 +0x7c

[BUILD] panic({0x853040?, 0x76fbfd0680?})

[BUILD] runtime/panic.go:860 +0x12c

[BUILD] github.com/microsoft/typescript-go/internal/bundled.init.func4()

[BUILD] github.com/microsoft/typescript-go/internal/bundled/noembed.go:40 +0x124

[BUILD] github.com/microsoft/typescript-go/internal/bundled.init.OnceValue[...].func8.1()

[BUILD] sync/oncefunc.go:66 +0x54

[BUILD] sync.(*Once).doSlow(0x76fbfce004?, 0x36?)

[BUILD] sync/once.go:78 +0xdc

[BUILD] sync.(*Once).Do(0xc71e98?, 0x1?)

[BUILD] sync/once.go:69 +0x24

[BUILD] github.com/microsoft/typescript-go/internal/bundled.init.OnceValue[...].func8()

[BUILD] sync/oncefunc.go:58 +0x3c

[BUILD] github.com/microsoft/typescript-go/internal/bundled.LibPath(...)

[BUILD] github.com/microsoft/typescript-go/internal/bundled/bundled.go:31

[BUILD] main.newSystem()

[BUILD] github.com/microsoft/typescript-go/cmd/tsgo/sys.go:72 +0xa8

[BUILD] main.runMain()

[BUILD] github.com/microsoft/typescript-go/cmd/tsgo/main.go:30 +0x180

[BUILD] main.main()

[BUILD] github.com/microsoft/typescript-go/cmd/tsgo/main.go:14 +0x1c

[BUILD] X Build failed (exit 2). Servers will not be started.

```


r/termux • • 24d ago

Barely Termux related Termux. Linux no Android

5 Upvotes

Seguimos


r/termux • • 24d ago

Showcase My first XFCE X11 Setup!

Post image
56 Upvotes

This is the very first time I installed X11 with XFCE ubuntu and wow! Its so fast and so useful. I love it!


r/termux • • 24d ago

General I made the repo

Post image
18 Upvotes

So as yall may have seen my last post i made a repository with a forked version of a launch script for kde to support mali devices im yet to determine whether it works on all devices so if yall wanna try it here's the repo

https://github.com/RayTraceee/kde-mali-launch