r/termux • • 4h ago

[DEV] Termux:API version 0.54.0 released

15 Upvotes

You can check changelog at https://github.com/termux/termux-api/releases/tag/v0.54.0

F-Droid will take a few days to publish the app.


It is recommended to not update the termux-api package version to 0.60.1 if running on Android < 14, until termux-api app 0.54.0 is available on F-Droid repo, otherwise API commands will fail with Unsupported argument type: --el api_server_starttime xxxxxxxx. If you already have, then either wait, or install older 0.60.0 package version deb from https://github.com/termux/termux-packages/actions/runs/47643605082?pr=33888.

GitHub users should update both the termux-api app APK from the release to 0.54.0 and the termux-api package version to 0.60.1.


r/termux • • 22m ago

Showcase MacOS 10.10

0 Upvotes

I boots


r/termux • • 24m ago

Question Mercurial with keyring on Termux?

1 Upvotes

Has anyone gotten Mercurial's keyring extension to work on Termux?

The following ran fine:

pip install keyring
pip install mercurial_keyring

And in my .hgrc I have my username specified in the [auth] section, which I know works fine because even prior to installating the keyring extension Mercurial stopped prompting for a username, prompting me only for a password. Also I have this:

[extensions] 
mercurial_keyring=

Yet I get the following error when pushing:

keyring: keyring backend doesn't seem to work, password can not be restored. Falling back to prompts. Error details: No recommended backend was available. Install a recommended 3rd party backend package; or, install the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details.

Help anyone?


r/termux • • 3h ago

Showcase Built an Open-Source Android IDE (TermCode) powered by Termux — 30+ Languages, Offline Compilation & GitHub PAT

7 Upvotes

Hi everyone!

I wanted to share an open-source Android project I've been building called **TermCode-IDE (CodeEditor IDE)**, which is powered by the **Termux** Linux userland (`aarch64`). Huge thanks to the Termux team and community for making native Linux toolchains possible on Android!

**What it does:**

- **30+ Programming Languages** (C, C++, Rust, Go, Python, Java, Kotlin, Dart, Zig, Nim, Crystal, Groovy, Racket, Elixir, Erlang, Node.js, Deno, Bun, PHP, Ruby, Lua, etc.)

- **Built-in Termux Linux Terminal** with on-demand toolchain setup (no root required)

- **Git & GitHub PAT integration** (Clone, Pull, Commit, Push right from the app)

- **Built-in Web Browser & DevTools Console** for HTML/CSS/JS live preview

It's licensed under **GNU GPLv3** (just like Termux). I'd love any feedback or suggestions from the community!

- **Official Store (Indus Appstore):** https://www.phonepeappstore.com/apps/education/code-editor/app.code.editor/?page=details&id=app.code.editor

- **Open-Source GitHub (GPLv3):** https://github.com/raj40870-pixel/TermCode-IDE-

- **Official Website:** https://code-eidter-apk-website.vercel.app/


r/termux • • 10h ago

General 1. Proje Termux - Termux ilk kurulum otomasyonu

Thumbnail youtu.be
0 Upvotes

r/termux • • 16h ago

Showcase Turn a rooted Android phone into a remote Bluetooth gateway – Bluetooth over TCP

Thumbnail reddit.com
2 Upvotes

Posted originally on r/androidroot


r/termux • • 17h ago

Question How can I tell if Termux or its QEMU guest stops after USB is unplugged on Android 16?

1 Upvotes

I’m trying to isolate a connectivity problem on Android 16. Termux runs an ARM64 Alpine Linux QEMU guest on the phone, with user-mode networking. The guest runs a CLI daemon that maintains an outbound connection. Wi-Fi is off and mobile data is on.

With USB attached for screen mirroring/ADB, I verified the guest and daemon were alive, and the phone’s app sent a fresh command that wrote a file inside the guest. After a planned USB disconnect and laptop shutdown, the phone still showed 5G, but the client app showed “Disconnected.” The pending command was still a draft, so I don’t know whether the guest stopped, the guest’s network dropped, or the client was looking at the wrong host. I have not attributed this to a Termux bug.

What Android-16-compatible test would you use on the phone to distinguish Termux/QEMU process exit from loss of guest connectivity immediately after unplugging USB or switching apps? A simple read-only check or a timestamped heartbeat that survives briefly in the background would be ideal. No root or PC-dependent test, please.


r/termux • • 20h ago

General Tips para usar termux

4 Upvotes

Quiero empezar desde el tlfn , quiero tips para usar mejor termux


r/termux • • 1d ago

Showcase uProot vs PRoot benchs

Thumbnail gallery
5 Upvotes

All claude testing so, if you have a question, I will just drop to claude 😃(total noob)

Claude:

File-heavy results, same Ubuntu 24.04 rootfs, 3 interleaved rounds:

- find /usr -type f | wc -l: uProot 0.34 s (warm; first run 2.12 s cold) vs PRoot 4.83 s (~14x)

- 200 x ls /usr/bin: uProot 1.01 s vs PRoot 3.96 s (~3.9x), i.e. ~5 ms vs ~20 ms per ls

So uProot wins clearly when the workload is syscall/file heavy, while PRoot wins the bare-exec loop (static binary: ~3.1 vs ~5.8 ms per exec). That looks like higher fixed per-exec cost but near-zero per-syscall cost in uProot.

One oditty; on the 13 "missing" files between uproot and proot : confirmed they are PRoot's link2symlink emulation. Under uProot (--from-proot-distro) they show as symlinks (links=1, mode 777) whose targets are absolute host paths like

/data/data/com.termux/files/usr/var/lib/proot-distro/containers/ubuntu/rootfs/.l2s/.l2s.perlbug.dpkg-new0001

PRoot translates these itself, so they look like hard links (links=2/3, regular files) there. uProot can create real hard links on this device (ln works), so it's only a compatibility gap when booting a proot-distro rootfs. [~ $ echo "== uProot"; uproot-distro run ubuntu --from-proot-distro -- bash -c "$T"

== uProot

Broken /usr/bin/perlbug

Broken /usr/lib/cups/backend/dnssd

Broken links on /usr: echo "== PRoot"; proot-distro login ubuntu -- bash -c "$T"

1514]

Human: I will test also geekbench 6 comparing both later


r/termux • • 1d ago

Question Chroot with TempRoot?

2 Upvotes

Is this possible?

Has anyone tried using chroot with a temporary rooted Android?


r/termux • • 1d ago

Barely Termux related Rate my termux

Post image
14 Upvotes

TempleOS but termux


r/termux • • 1d ago

General Arm64emu

9 Upvotes

Arm64emu is a program created by Sylirre; I find it curious that no one here has mentioned it. It includes an integrated version of chroot-ng an alternative to proot that uses seccomp and the arm64emu chroot --native option is quite fast.


r/termux • • 1d ago

Question chimera and guix chroot.

Thumbnail gallery
3 Upvotes

r/termux • • 1d ago

General Testing uProot VS Proot on processing

Thumbnail gallery
20 Upvotes

Setup

Tab S7 FE/SD 750G 6 gb ram

Android 14

Termux

Ubuntu 24.04 lts

uProot from https://github.com/wahyuzero/uproot


r/termux • • 1d ago

Showcase Debian 13 Proot

Post image
11 Upvotes

Rate my proot desktop

Device: Redmi Note 10 Pro

Termux:X11 + Pulseaudio


r/termux • • 1d ago

General Audbridge

Thumbnail gallery
1 Upvotes

MPVBridge-compatible daemon for Audacious (Termux:X11)

Audbridge speaks the mpvbridge line-JSON protocol on 127.0.0.1:7355 and drives Audacious over D-Bus (MPRIS), so the mpvbridge Android app can control local playback, show the playlist and lockscreen art.

Also ships audbridge-launch, a wrapper that starts the daemon on demand before exec'ing Audacious.

Installation:

git clone https://github.com/nestoris/audbridge.git
cd audbridge
bash build-audbridge-deb.sh audbridge.js
dpkg -i audbridge_*_all.debgit clone https://github.com/nestoris/audbridge.git
cd audbridge
bash build-audbridge-deb.sh audbridge.js
dpkg -i audbridge_*_all.deb

Requirements:

cjs, audacious in Termux and MPVBridge on your Android device. A D-Bus session bus must be running (e.g. under XFCE in Termux:X11).

Features

  • Full protocol v1 support: hello/token handshake, state, playlist, library and refresh-playlist messages, so the mpvbridge app connects out of the box — no app changes, no patches.
  • Playback control: play/pause/toggle, next/previous, stop (as pause, per protocol), seek, jump to any track by index — all routed to Audacious over D-Bus.
  • Media session on Android: lockscreen card, notification controls and headset button taps work through the app's MediaSession, exactly as with the real mpv daemon.
  • Playlist and library: the app sees the current Audacious playlist (0-based indices, current track highlighted) and a library entry with its live track count. Playlist changes made inside Audacious are picked up and pushed to clients.
  • Shuffle / unshuffle: implemented by rebuilding the playlist order (Fisher–Yates); the current track is preserved and the original order can be restored.
  • play-url: appends a URL and starts playing it; inserts right after the current track when the running Audacious supports PlaylistInsUrlString, falls back to appending on older versions.
  • Cover art: album art is read from MPRIS metadata (mpris:artUrl); local files are sent to the app as inline base64 with a sniffed MIME type, remote http(s) URLs are passed through.
  • Rich track metadata: title/artist/album fields are resolved with fallbacks (artist → album-artist → uploader → …), and known yt-dlp placeholder titles are reported as unavailable, so the app can hide dead entries.
  • Multi-client: several app instances (or debug clients) may be connected at once; state changes are broadcast to all of them.
  • Robust transport: line-JSON with a 1 MiB line limit, malformed input answered with error instead of killing the connection, bad tokens dropped per protocol, silent handling of probe connections.
  • Audacious lifecycle: when Audacious exits, the daemon broadcasts bye and terminates — the app shows "waiting" until the next audbridge-launch brings everything back.

r/termux • • 1d ago

General Termux SSH becomes unreachable when Redmi 9 Prime is idle (LineageOS)

2 Upvotes

I'm using a rooted Redmi 9 Prime running LineageOS with Termux. I'm trying to use it as a small home server, running SSH through Termux (port 8022) and Fedora proot (port 2222).

The problem is that after the phone sits idle for some time, incoming SSH connections and ICMP pings from my Ubuntu laptop fail with "No route to host". However, the phone still has Wi-Fi and internet access (YouTube and other apps work normally).

Interestingly, running an outbound ping from the Redmi itself immediately restores incoming connectivity. As soon as I start pinging an external IP from Termux, incoming pings and SSH connections from my Ubuntu laptop start working again.

I've already tried disabling Wi-Fi power saving, setting Termux battery usage to Unrestricted, and using "termux-wake-lock", but the issue persists.

Has anyone experienced something similar on Redmi/MediaTek devices? Any suggestions for a permanent fix without keeping a continuous ping running in the background?

Thanks!


r/termux • • 1d ago

Showcase I compiled omalauncher for android 10 armv7 devices!

11 Upvotes

r/termux • • 2d ago

Showcase MangoWM Update

9 Upvotes

From last update:

Performance Up(Noctalia get own mesa 26.3.1 driver, MangoWM get update of its kgsl driver), Setup script (instead of three), Resolution Scale, Some XWayLand support(not full because some artcraft production runs out of wayland session), Termux-x11-extra backend support, Fix of kgsl artefacts, Mouse input in 3D games like minecraft.

Known bugs:

Some Arfcraft production runs out wayland session, Noctalia crash with attempt check system information, noctalia has audio getting problems and enormous memory consumption so you need at least 8 gb of RAM and broken x11 backend mango broke built-in X11 backend and works only at external clients.

In plans:

Fix bug, fix IME input(now supports only english keyboard layout), reduce memory consumption, add panfrost support(MTK processors) and increase performance again.

So requiments don't change:

Adreno GPU (Mesa 27 KGSL driver)

8+ GB of memory

And ready to get drivers problems if you found them because test was only with wayland session

So support me with star⭐ on github pls🥺

Link: https://github.com/OceanSt0ne/mango-termux


r/termux • • 2d ago

Showcase Rate My Termux Setup!

Thumbnail gallery
17 Upvotes

These are the Termux startup screens that I made about a month ago, what do you think? 🥹


r/termux • • 2d ago

General Like a new toy

Post image
6 Upvotes

I just wanted to try my hand at self hosting aiostreams yesterday and I woke up to this. It's been fun. Any tips?


r/termux • • 2d ago

Showcase [Project Release] Llama-UI v0.7.2 – Keyboard Navigation & Streaming Markdown

Post image
4 Upvotes

Hey everyone!

I've released Llama-UI v0.7.2, a new update focused on improving the user interface and overall terminal experience.

What's new in v0.7.2?

- ⌨️ Keyboard navigation: Navigate menus using arrow keys instead of numeric selections.

- ⚙️ Improved settings input: Better input handling and validation.

- 📝 Streaming Markdown rendering: Markdown formatting while the AI response is being generated.

- 💻 Improved terminal interaction: A more consistent keyboard-driven interface.

Testing

I've tested the new version in Termux and haven't encountered any issues so far.

Project

- GitHub: https://github.com/user01234-sl/Llama-UI-Python

- PyPI: https://pypi.org/project/llama-ui-termux/

- Version: v0.7.2

I'd appreciate feedback, suggestions, and bug reports from the Termux community.

Thanks!


r/termux • • 2d ago

Showcase My Android phone has been listening for birds 24/7 with Termux + IP Webcam. BirdNET has found 45 species in 17 days

Thumbnail gallery
5 Upvotes

I wanted to know which birds live around my house in Guatemala, so I turned an Android phone into a bird-listening station. Termux does almost all the work:

- IP Webcam (audio only) exposes the microphone as a local stream.

- A bash script records it with ffmpeg into 10-minute Opus blocks (96 kbps) and uploads them to a Cloudflare Worker. No internet? The blocks wait in a queue.

- Termux:Boot starts it after a reboot, termux-wake-lock keeps it alive, and Termux:API reports battery, temperature, Wi-Fi and location every few minutes.

- The script updates itself from the website and has a watchdog: if the audio stops growing for 2 minutes, it restarts ffmpeg.

- Twice a day, GitHub Actions runs BirdNET (Cornell Lab) on the new audio and publishes the site.

After 17 days: 45 species, 358 hours of audio and 854 detections. The site is free, no ads, in English and Spanish: https://aves.selvinmejia.com/en/?ref=rd-termux

My biggest fight has been HyperOS killing IP Webcam in the background. How do you keep apps alive on Xiaomi phones?


r/termux • • 3d ago

Showcase new setup...

Post image
41 Upvotes

r/termux • • 3d ago

Showcase Fusion Desktop - xdesx, android apps, ubuntu apps and remote Mac on one desktop

2 Upvotes

Devices: Xiaomi 15 Ultra Euro Version, Ubuntu Chrome with hardware acceleration same performance as Android Chrome on device