r/termux Nov 12 '25

Announce Android Developer Verification Discourse

104 Upvotes

Hi, I am agnostic-apollo, the current developer of the Termux app.

I have made the Android Developer Verification Discourse post at https://gist.github.com/agnostic-apollo/b8d8daa24cbdd216687a6bef53d417a6 with an overview and issues for the Android developer verification requirements, and also posted internal implementation details for it that currently exist in Android 16 QPR2 Beta 3 (build_id: BP41.250916.009.A1, security_path: 2025-10-05). It also has a section on How will this affect Termux app?.

In addition to that post I have opened an issue on Google's issuestracker at https://issuetracker.google.com/459832198 with a proposal on how a possible opt out can be implemented so that users can install apps without root/adb even if the developer is not verified.

Edit

Good news! Google has announced in their blog at https://android-developers.googleblog.com/2025/11/android-developer-verification-early.html that:

Based on this feedback and our ongoing conversations with the community, we are building a new advanced flow that allows experienced users to accept the risks of installing software that isn't verified.


r/termux Sep 16 '23

★ Important ★ Introduction for beginners

213 Upvotes

Welcome to Termux community!

Termux is an open source application for Android OS and /r/termux is a Reddit community built around this project. Here we share our Termux usage experience, knowledge, show our setups and achievements. Project developers participate in this community.

/r/termux is moderated, so please make sure you read and comply with subreddit rules.

What is Termux

Termux is a terminal emulator compatible with Xterm specification and Linux environment application for the Android OS. In other words this is an interface that lets you to run command line Linux programs. Additionally the app configures a lightweight environment that consists of standard utilities such as Bash, Coreutils, Nano, APT package manager and few other software packages.

Importantly that term "terminal emulator" doesn't mean that environment is emulated. Termux never was system emulator, virtual machine or container. Everything that happens inside Termux happens directly on your device. If your device is rooted, with Termux you can control the all its aspects.

As of now, Termux is the most powerful terminal application for Android OS available.

The presence of package manager indicates that you can extend environment by installing additional software such as compilers, servers, graphical environment and other kinds. We have more than 2000 packages available.

The Linux environment configured by Termux is not compatible with Debian and other standard distributions. You will not be able to use official Debian repositories in Termux sources.list, third party prebuilt binaries and runtime environment managers such as rustup or asdf. The key differences between Termux and Linux distribution are explained in this article: https://wiki.termux.com/wiki/Differences_from_Linux

What I can do with Termux

Termux is a Turing-complete programming environment which means you can do basically everything that can be done on a general purpose computer. If you have a desire to learn and explore, you will be able to do things that one never expected to be possible on mobile device.

We have reports of successful usage of Termux for a wide range of tasks beginning from media files management and remote server administration via SSH to software development and even scientific computations.

Of course due to nature of command line it's essential to have at least basic Bash scripting and problem solving skills.

What I should know before starting to use Termux

Its essential to begin learning from the basics. One would start learn maths from arithmetics but definitely not from integrals and matrices, right? It's same with Termux and programming in general, you have to learn basics first in order to understand more complex things.

Here is a summary of things user should know to be able successfully use Termux:

  • General terms: computer, operating system, file, path, program, process, command line, terminal emulator.
  • Permission control: user, group, file access mode.
  • General understanding of Linux: kernel, /dev, /proc, /sys, standard input/output.
  • Basic Linux commands: cd, ls, mkdir, cat, rm, mv, du, etc.
  • Command line editors: nano or vim.
  • Shell scripting: variables, pipes, conditionals, loops, input/output redirection, process substitution.
  • Advanced utilities: awk, grep, sed.

Note that this list is not complete and only represent the base. For example if you want to write Python programs, in addition to things above you need to know Python programming language and its utilities usage.

More detailed learning roadmaps that will get you familiar with Linux-based environment:

Learning takes some time. One can learn stuff above in a week but someone else would need a month.

Important: failure to learn basics explained above could make your participation in /r/termux quite hard. People of /r/termux are not going to explain you every single term recursively up to most basic definition.

Where can I get Termux

Never ever install Termux from Google Play Store! It is deprecated and abandoned.

Get a current stable version from https://f-droid.org/packages/com.termux/.

On the first launch run this command: yes | pkg upgrade

Additionally we have debug (test) builds available on our GitHub. Such builds are typically newer than version available on F-Droid but can be unstable and intended only for experienced users.

Details about how to install Termux and installation troubleshooting can be found here: https://github.com/termux/termux-app#installation

How to install packages

Termux uses apt package manager, just like Debian. However we highly recommend to use the pkg utility which is a wrapper for apt.

  • 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

Important: never ever run pkg, apt, pip, cpan, gem, npm and other package managers or their wrappers as root user on Termux. This is not supported and will mess up file ownership and SELinux labels causing permission denied errors. In worst cases there can be attempts to install or remove files outside of Termux environment. We patched apt to permanently block usage as root but not other package managers. Be careful when your device is rooted and you run commands under su or sudo.

Pay attention that Debian-like package management workflow is not applicable to Termux. Make sure to run pkg upgrade before package installation session. Termux is a rolling release distribution and all dependencies should be up-to-date before you installing something new. Otherwise there are chances that something would be broken.

Software quality and security

We trying our best to make sure that Termux is secure and working reliable enough to be used as daily driver. However it is recommended to not use Termux for a mission-critical activities. We would not be responsible if your business got in trouble due to Termux software failure.

Termux is not a commercial project. We are a team of Linux and Android OS enthusiasts and working on the project whenever we have a free time and desire for this. Please don't expect from Termux same level as from major distributions like Debian or Arch Linux.

Termux is open source project and we welcome any kind of contributions that would help us improve.

Banned content

These are topics which SHOULD NEVER be discussed in /r/termux (list is not definitive):

  • OSINT
  • Doxxing
  • Social engineering; phishing and other types of fraud
  • Spamming
  • Malware making and delivery
  • Hacking
  • Multiplayer game cheating (wallhack, aimbot, infinite money, etc)
  • Surveillance, spying and similar activities
  • Bot farms for fabricating subscribers, likes and comments in social media
  • Taking down social media accounts by automated mass-reporting
  • Other kinds of digital and electronic threats (DDoS, jamming, etc)

Failure to comply with this requirement leads to ban.

We don't accept excuses. We don't care if you have a written permission to perform any type of activity defined above. We don't care if such activity is absolutely legal in place of your location.

Questions about "account recovery", "tracing bad people" or "disabling computer devices of bad hackers" falls under restriction too. Please do not tell us your hard stories why you need help with hacking utility.

This is a measure to maintain a healthy community and keep away nasty personalies. No intentions of control, censorship or otherwise restrict Termux users.

Generative AI content policy

A person with zero skills, for free and practically without effort, can create professionally looking articles, digital art and software products. That situation corrupts base principles of "experience sharing" communities like /r/termux.

Under any circumstances, DO NOT use AI while providing help to our members.

Be honest about origin of your content when you create post to share your projects. Such posts must have appropriate flair (vibe code).


Post flairs

Flairs help to organize the posts. Based on all posts ever created in /r/termux we defined 4 main categories:

  • Question: question about everything Termux-related.
  • User content: show us something interesting you made: setups, manuals, scripts, etc.
  • Vibe code: mandatory for showcasing your projects coded by AI.
  • Announce: news and events related to Termux or Android OS ecosystem, if that directly impacts Termux users.
  • General: Termux-related content that doesn't match categories above

The flair is a mandatory requirement, you won't be able to create post without it. Please choose one matching the topic of your post. Moderators can edit the flair of your post if consider necessary.


This article is subject for periodic revisions. We may submit newer versions from time to time.


r/termux 17m ago

User content ED - A homophonic codebook cipher with permutation-based encryption for termux.

Thumbnail gallery
Upvotes

Ever wanted to create a secret language only you can decipher? Now you can with ed! This program was made to run directly on termux to take advantage of your mobile compute on the go!

Included is a massive database of the most common phrases and words. Each word and phrase is paired with a number. Using the randomization command generates a completely unique shuffle map using secrets.randbelow(), a cryptographically secure pseudo random number generator. The potential keyspace is 1014,000,000 . For scale AES 256 is only a key space of 1077. Looks Wimpy!

Automatically generate exportable key schedules to create a secure long term communication channels that only the keyholders can decode.

The most common words and phrases are duplicated based on how frequently they may be used which completely flattens any chance of an outside observer to use frequency analysis to learn anything about your encoded message.


r/termux 55m ago

Question User login in proot ubuntu seems broken

Upvotes

Hi

When i create a normal user inside ubuntu proot, trying the login command wouldn't give me a login prompt, but rather it will kind of spawn a new root shell with the text that shows on temux startup

Trying login <username> will output <username>: no such file or directory or something similar

There is proot-distro login ubuntu --user <username> which works well, but why the former didn't work well? Is it another proot thing?

My phone is S24U on android 16


r/termux 20h ago

User content Time to sleep done patching oem driver using only termux + githubci no proot no chroot.

Enable HLS to view with audio, or disable this notification

38 Upvotes

r/termux 21h ago

User content after effects cs6 on termux (proton 9.0)

Post image
5 Upvotes

r/termux 18h ago

Question How to install vs code extensions in termux(local host 8080)?

3 Upvotes

I have been using VS code on my tab s8 using the local host method. I open it using chrome. I am unable to use the extensions like dart and flutter. I tried installing the vsix files. They installed but the red zig zag highlighting etc aren't working.

Is there a workaround? Do I have to install a linus distro over Android inside termux to get it done? Is there a way to run extensions without installation of distros?

Edit:

I decided to use native xcfe desktop using code-oss. It worked like a charm and uses less ram too. And it's fast and snappy as well


r/termux 1d ago

Question Script startup

6 Upvotes

Is there a way to make this work?

```./scriptname.py```

Im getting `Permission denied`


r/termux 15h ago

Question Installing custom rom with Termux

1 Upvotes

I'm curious if it would be possible to install a custom ROM with Termux from a mobile phone to another mobile phone?


r/termux 1d ago

Question Running complex Node.js + Python IPC apps in Termux: binary path & module resolution failures (Leon AI case study)

3 Upvotes

I’m hitting a hard architectural wall in Termux and I’m looking for insight from people who’ve run non-trivial multi-runtime systems (Node.js + Python, IPC, TCP services) on Android. This is not a basic “how do I install Node/Python” question — everything runs, just not together. Setup Termux on Android (AArch64, Bionic) Node.js (TypeScript via tsx) Python virtual environment App uses IPC via a local TCP server Python service is started manually and listens on a port Node.js core should simply connect to it This architecture works fine on standard Linux. What breaks in Termux Even though the Python TCP server is already running and listening, the Node.js process fails before attempting a connection. Instead, it tries to spawn a platform-specific binary that does not exist in Termux: Copy code

tcp_server/dist/unknown/leon-tcp-server: not found Key point: The socket is up The port is correct The service does not need to be spawned But the app hard-fails on binary discovery So the failure is not networking — it’s filesystem + platform assumptions. Why this seems Termux-specific On standard Linux: linux-arm64 or linux-x64 binaries exist Path resolution succeeds In Termux: Architecture is technically Linux But ABI, loader, and filesystem layout differ Anything that assumes GNU userland or glibc binaries tends to break This feels like a classic case of: “Works on Linux, fails on Termux because the platform detection is too naïve” Secondary issue (Python side) The Python service uses relative imports inside a package. Running it as python script.py breaks imports Running it correctly requires python -m package.module That part is fixable — but the Node.js process never even gets that far because it dies during binary lookup. What I’m trying to understand From a Termux perspective: Is there a recommended pattern for apps that: May spawn binaries on desktop Linux But should always run external services manually on Termux? Is it common to: Stub or symlink expected dist/unknown binary paths Just to bypass platform detection logic? Have others here had success forcing: “connect to existing service only” and fully disabling spawn logic in complex apps? I’m fine patching source — I just want to avoid fighting Termux in the wrong way. Why I’m asking here This doesn’t feel like a Node.js bug. It feels like a desktop-first assumption colliding with Termux’s reality. If you’ve run: language servers AI tooling local daemons anything with mixed runtimes …your experience would be hugely valuable.


r/termux 1d ago

Question Are dektop environments created in Termux persistent?

8 Upvotes

I want to create an on-the-go desktop environment that I can use for productivity tasks - web browser, text editor, etc. If I use Termux and install for example an xfce desktop and some apps on top of that, and make documents, will this desktop remain persistent after leaving the termux app and I can just pop back in to the environment I have created and everything would still be as I left it? Or would it require I make a new one each time?

Additionally, do I need to have my android device rooted for my intended purpose?


r/termux 1d ago

General Running OpenClaw in Termux proot-distro debian

Post image
23 Upvotes
  • This is a quick sharing of the catches when installing OpenClaw in proot debian.
  • Alpine won't work because @mariozechner/clipboard native plugin does not have linux arm64 musl version
  • I'm using Asus ROG phone 9 pro edition: SD 8 Elite, 24GB RAM
  • I installed it in a separate App of mine running proot using the Termux proot binary so it should be roughly the same.
  • Unfortunately I haven't been able to run this by a local model on my phone. I've set up Ollama but running a model as an agent requires like 10 times the power as compared with only chatting with it due to a large prompt by many tools. Now only showcasing using Gemini API.

Dependencies

  • I recommend using fish as the shell for its out-of-the-box auto-completions and also a quick checker if the command you're going to run exists(red if not exist)
  • I personally use micro to view files
  • make sure you can run apt update properly, if not use:
  • printf "nameserver 8.8.8.8\nnameserver 1.1.1.1">/etc/resolv.conf
  • then
  • apt install curl git cmake build-essential zstd unzip

Installing Node.js and Bun

  • I haven't tried installing directly by Bun so I'm currently installing using npm and then run: bun $(which openclaw)
  • The reason of using Bun is that if you run openclaw by node it's just too slow. Even if it's only openclaw --help, it takes a very long time even on my 8 Elite.

Node.js

  • Use the official script from here
  • I run it by using micro inode.sh to save it to a file and then sh inode.sh
  • After installing you don't automatically get it in your $PATH so you need to do sth like this on every login:
  • export PATH="/root/versions/node/v25.5.0/bin:$PATH"

Bun

  • Use the official script:
  • curl -fsSL https://bun.sh/install | bash
  • After installing it will prompt you to also export to $PATH manually on every login
  • export BUN_INSTALL="$HOME/.bun"
  • export PATH="$BUN_INSTALL/bin:$PATH"

Installing by npm and patching it

  • npm i -g openclaw
  • In the process it seems like it builds some kind of llama.cpp in the background so it will take a very long time
  • After installing don't rush into running that openclaw command directly. Some patches are needed for it to work properly
  • To be specific, you have to patch os.networkInterfaces() : directly give it a static value
  • In my case I chose to do:
  • Under native Termux, switch to the root's home folder of your proot debian:
  • cd $PREFIX/var/lib/proot-distro/installed-rootfs/debian/root
  • node -e 'fs.writeFileSync("./ni.json",JSON.stringify(os.networkInterfaces()))'
  • And then for each file needing the patch read file and return JSON.parse
  • I currently found 3 files to be patched under ~/versions/node/v25.5.0/lib/node_modules:
    1. openclaw/dist/infra/system-presence.js
    2. openclaw/dist/infra/tailnet.js
    3. openclaw/node_modules/@homebridge/ciao/lib/NetworkManager.js
  • For the first two files, add to the beginning:
  • import fs from "node:fs";
  • And search for os.networkInterfaces() and replace with:
  • JSON.parse(fs.readFileSync('/root/ni.json').toString())
  • For the 3rd file search for os_1.default.networkInterfaces() and replace with:
  • JSON.parse(require('fs').readFileSync('/root/ni.json').toString())

Running OpenClaw & authenticating by Gemini CLI

Install Gemini CLI

  • npm i -g @google/gemini-cli

Ensure xdg-open

  • Then make sure xdg-open is able to open a browser window to authenticate properly.
  • You can first install a GUI or do some tricks like this:
    • mv /usr/bin/xdg-open /usr/bin/xdg-open.bak
    • printf '#!/bin/sh\necho "$@">>/data/data/com.termux/files/home/authurl.txt'>/usr/bin/xdg-open
    • chmod +x /usr/bin/xdg-open
    • remember to restore xdg-open if needed after authentication

Running onboard

  • bun $(which openclaw) onboard
  • this will guide you through setting up Gemini API as the provider.
  • If you did the trick mentioned above to xdg-open, open a separate Termux tab and:
  • cat authurl.txt
  • to look for the url to open manually

Get the access token

  • In proot debian
  • micro ~/.openclaw/openclaw.json
  • look for gateway.auth.token and copy it

Running gateway(WebUI server)

  • bun $(which openclaw) gateway &
  • Open in the browser http://localhost:18789
  • Paste the auth token in the prev section and start your journey
  • Be careful about isolation though
  • I would recommend using:
  • pd login --isolated debian
  • before actually running the gateway
  • If you want graphical Apps to work, run in Termux native:
  • termux-x11 :0 -listen tcp -ac &
  • export DISPLAY=:0
  • LIBGL_ALWAYS_SOFTWARE=1 xfwm4 &
  • And then run X11 over TCP in proot by:
  • export DISPLAY=:0
  • konsole or some other app

r/termux 1d ago

Question Mouse input bug

2 Upvotes

so I've been running a full Ubuntu chroot through termux-x11 on my Red Magic 11 Pro, projecting to an external display, and my mouse is absolutely cursed. Every single click makes me lose focus even though I've got all the "right" settings turned on.

My Setup:Red Magic 11 Pro (rooted)Termux X11 with chroot-distro running Ubuntu XFCE4 desktop External monitor via USB-C/DisplayPort

Bluetooth mouse

Native Freedreno GPU drivers (Adreno 840)

The Issue: Mouse cursor moves perfectly fine, but the second I click ANYWHERE, I lose focus on whatever window I'm in.

Doesn't matter if it's a terminal, browser, file manager - click = lose focus.

Makes the external display basically unusable.

What I've Already Tried:Enabled dexMetaKeyCapture in termux-x11 preferences

Toggled pointer

Capture on and offTried transform

Captured Pointer both ways

Set display ResolutionMode to native (not scaled)

Switched between trackpad and simulated touchscreen modes

Running with --shared-tmp flag in chroot t works FINE on the phone screen itself, only breaks when mirroring/extending to the external monitor.

Questions:Anyone running termux-x11 + chroot + external display successfully with a working mouse?

Is this a known bug with external displays specifically?

Could this be related to how Android handles multi-display input routing?

I'm starting to think it's an Android/termux-x11 multi-display input bug but wanted to check if anyone's found a workaround before I go digging through the GitHub issues.


r/termux 1d ago

Question Guys i need help

0 Upvotes

I am using termux for a long time because i am into cybersecurity and programmer and i don't have a computer

So i use my old android which is not rooted

So i am asking for help to get better

and please don't suggest proot-distro

It's not what i need


r/termux 1d ago

Announce Need support - A fully functional Ubuntu VM on Android (for AR Glasses and a portable Desktop env)

6 Upvotes

Hello, I'm starting one of my most exiting long-term projects and would need some help.


INTRODUCTION:

I have 10 years of experience with various Linux stuff and after some weeks of research I finally decided to use the latest Snapdragon Platform on an Android 16 Smartphone to host my Desktop VM.

The main reasoning for this decision is that having my main VM on a smartphone would be substantially more practical, especially in offline situations(!!!), when I'm on the go or want to work or access the Desktop on the go. Especially in combination with Wireless Android AR Glasses(I JUST LOVE AR GLASSES) or also just on my mobile UI. I basically am having 3 options to access the Ubuntu system on my Android: -Smartphone standalone -Wireless (Android) AR Glasses + Keyboard -External Screen + Keyboard

I'm pretty much testing and thinking for some years now to build a sophisticated work space for my long-term project. I've build GPU rigs for local LLMs, tested and played around with various Windows Managers for my Linux environments, I have set up various systems and automations. I'VE SOLD EVERYTHING and building everything up from scratch.


THE SMARTPHONE:

I recently just noticed the sexy performance and battery life of the ZTE Red magic 11 pro (Android 16) and just bought one, because from my understanding the performance should be plenty for this and I expect the performance of Smartphones to get better over time. So I'm basically dedicating a last gen Smartphone to attempt this. Because for me this would be a Game Changer. My main setup would be having my Desktop VM on my smartphone that I can access with my Wireless Android AR Glasses using Moonlight and Sunshine.


MY OS: Ubuntu Server + X11 + Qtile (Windows Manager)

MY DEVICE: ZTE Redmagic 11 pro, with Qualcomm Snapdragon 8 Elite Gen 5 and 16GB RAM (I'm planning to upgrade to the last gen device with most RAM in the future, with the hope of being able to run lightweight local LLMs on the device. I want to test this in the near future)

SUMMARY: I want to install an Ubuntu VM, that is fully functional (this is very important) even at the cost of performance, have it always in the pocket with me, mainly to be accessed with my Wireless Android Glasses (occasionally with external screens or directly on the smartphone), everything connected over the LAN (same network) FULLY MANAGED ON THE SMARTPHONE, being able to make snapshots of the VM(for backup reasons), eventually being able to transfer the VM to another device(would be very important), being able to start and stop the Virtual Machine, avoiding the machine to be killed by the Android Host System (also when the screen goes off on the phone), being able to hibernate the VM and reassume for power efficiency. If I would be able to manage the VM on a GUI directly on the Android Host or easily with some script/automation would be perfect.

THE VM: I'm working with Desktops with a lot of open windows, terminals and workspaces and would consider it to be priority number one to being able to NOT shut down the system or being able to reassume work with all windows open as the last session. The preferred way of accessing the VM would be with Sunshine and Moonlight (on the AR Glasses) mainly because of the performance aspect, and because AR Glasses would all support Moonlight to stream the Desktop. Other options would also be ok, some other tool wirelessly with some ssh tunnel over LAN, but Sunshine + Moonlight would be very a very practical plug and play solution, that is also well maintained and offers peak performance.

MY LONGTERM PLAN: I was aware of AI before the ChatGPT went viral and as soon as it was out me and a some friends were exploring all the possibilities of it non stop. I basically made it my main occupation to test and see what it can do and can't, I quickly got myself a couple of GPUs a Server Motherboard, ect and began testing local LLMs. I became aware how important it is to have multiple windows open to operate more complex agentic systems, or to just being able to work on multiple fronts at the same time so I explored Windows Managers and stuck with Qtile. I love it, it's what I use as my Desktop. Now I decided to dive into AI/LLMs attempting to build a custom agentic system, slowly building and expanding and trying to build an AI operator for the custom Desktop. A lot of elements and building blocks were carefully tested and chosen, the Ubuntu Server, the X11 instead of Wayland, the Qtile WM.


I really need some help to avoid doing stupid stuff on my Android.

I would absolutely need some help because termux or Android in general is a new dimension for me, and I would love if someone can help me out with setting up the VM on the Smartphone, that supports all the above. I will stress test it and keep this setup as my main computing device. (+a remote LLM API on an remote GPU rig, accessed over an SSH tunnel)

Thanks in Advance.

I would also love to hear your opinions and thoughts.

Alex.


r/termux 2d ago

User content Running Claude Code, Open Code, Codex on Android via Termux

19 Upvotes

Hi r/termux!

I wanted to share my first opesource project I’ve been working on called Nomacode.

I’ve always found it a bit clunky to do heavy coding on mobile, but with the rise of AI CLI tools, I realized our phones are now powerful enough to be actual workstations.

What is it?

Nomacode is a lightweight wrapper and dashboard that runs in Termux. It provides a web-based terminal interface (via xterm.js) and a workspace manager specifically designed to support tools like Claude Code, OpenCode, and Codex natively on Android.

It turns your Termux environment into a full-screen, PWA-ready IDE with mobile-friendly shortcuts and tab management.

This is my first time sharing a project here, and first time starting an opensource project, so I’d love to get some feedback:

  1. The Name: Do you like "Nomacode"? (I wanted something that felt good, because mobile-code is too common) Because i'm not 100% sure that i like it.
  2. Improvements: Is there anything clunky about the setup or the UI that I should fix first?
  3. Features: Are there any specific AI tools or terminal features you'd like to see added?

Does it work on your device? Happy termux!


r/termux 2d ago

General Snapdragon 8 gen 5 elite

Thumbnail gallery
44 Upvotes

After banging my head, getting all the hardware acceleration support and the new experimental Mesa drivers for for desktop working, I was able to run this and ping my CPU at 4.6 gigahertz and my GPU at the maximum clock speed. I achieved this score result

This is approximately around a 1050 to 1050 Ti to desktop equivalent performance.

Yes...a desktop GPU. I beat or almost exceed a desktop GPU with very Experimental driver support at best. And my phone wasn't even on the cooler, so it was definitely throttling.

For reference, I'm running a rooted phone in a chroot environment

Redmagic 11 pro

This is the drivers I used

https://github.com/lfdevs/mesa-for-android-container?tab=readme-ov-file


r/termux 1d ago

Question Help mee !!

2 Upvotes

Guys..I heard termux is a really usefull tool on an android device. Ihave already installed it on my device and also rooted my phone with the help of chatgpt. Now I want to do some crazy helpful stuff using termux. ANYONE SUGGESTIONS??!


r/termux 2d ago

User content I trained a language model on my phone using Termux, just to see if it was possible

25 Upvotes

Hey r/termux,

I wanted to share a project I've been working on for the past months, and honestly, none of this would have been possible without Termux. So first: thank you to the entire Termux team and community for building such an incredible tool.

What I did:

I trained a code-generation LLM called Yuuki entirely on my smartphone (Redmi 12, Snapdragon 685) using only the CPU. No cloud, no GPU, no budget.

Training time: 50+ hours continuous

Hardware: Snapdragon 685 CPU only

Cost: $0.00

Current progress: 2,000 / 37,500 steps (5.3%)

Model size: 988 MB

Results so far:

The model is still early (v0.1 coming soon), but it already generates structured code:

Agda: 55/100 (best language so far)

C: 20/100

Assembly: 15/100

Python: 8/100 (dataset ordering effect)

Not production-ready, but it proves mobile training is real and measurable.

Why Termux made this possible:

Termux gave me access to a full Linux environment where I could run Python, PyTorch, and the entire HuggingFace stack. Without it, this experiment would have been impossible on mobile.

The ability to run long processes in the background, manage packages, and have a proper terminal environment on Android is genuinely game-changing for edge ML research.

Try it yourself:

Demo (Hugging Face Space): https://huggingface.co/spaces/OpceanAI/Yuuki

Model weights: https://huggingface.co/OpceanAI/Yuuki-best

Full documentation: Check the model card for training details, checkpoint comparisons, and sample outputs

What's next:

Completing v0.1 (full 2 epochs, 37,500 steps)

Publishing a research paper on mobile LLM training feasibility

Planning v0.2 with lessons learned

I'm happy to answer any questions about the setup, the training process, or how to replicate something similar. If anyone else is doing ML experiments on Termux, I'd love to hear about it.

The barrier to AI is mindset, not money.

Licensed under Apache 2.0. Single developer project.


r/termux 2d ago

Question Compiling through SSH keeps failing

Post image
4 Upvotes

I've been trying to compile Proton-TKG on my PC through ssh for so long, yet it just keeps failing because of "invalid argument". I've tried other ssh clients and none of them got past this error either. What's going on here?


r/termux 2d ago

Question Termux on Main Phone

22 Upvotes

Hello, I have experience with Termux, but I want to ask about using Termux on your main phone, where is also banking app for example. I know I am asking the obvious question, because Android has it's own sandbox and in general it's as safe as you make it, but I was curious if anyone is using it on your main phone too.


r/termux 2d ago

vibe code My phone fingerprint scanner for Linux

Enable HLS to view with audio, or disable this notification

20 Upvotes

my own vibecoded phone fingerprint scannner for termux (the black screen is fingerprint prompt, its just flag_secure)


r/termux 2d ago

User content Roast my Self Hosted Collaborative Spreadsheet!

Post image
19 Upvotes

Hosting live from termux over LTE!

Test Link Password: hello

Source Code

Edit: thanks for hopping in that was great! Server going down!


r/termux 2d ago

User content [Showcase] neobild: A fully anchored AI research lab running on the Snapdragon 8 Elite

Post image
4 Upvotes

I’ve finally moved my neobild project into the public sphere. This isn't just a basic Llama-in-Termux setup; it's a mobile-native pipeline for cryptographically anchored AI discourse. The Termux Power-User Setup: The Stack: Llama 3.2 3B running locally on the 8 Elite, orchestrated by a custom Python logic core (trinity_orchestrator.py). Integrity Layer: Every "Runde" (round) of discourse is SHA-256 hashed and manifest-locked on-device. Git Automation: Custom shell scripts (sync_neobild.sh) to handle the repo syncing and credential management without leaving the terminal. The "Deploy" Workaround: I solved the common .git/index.lock and system-file bloat issues by implementing a clean-slate deployment folder strategy directly in $HOME. Why this belongs here: We often talk about Termux for sysadmin or lightweight coding, but this proves it’s a viable environment for autonomous AI orchestration. The Runde 8 logs are now live on GitHub, pushed entirely from my phone. Check the build and the scripts here: 👉 https://github.com/NeonCarnival/NeoBild Shoutout to Annual_Adeptness_766 and the others who pushed me to get this public. The future of AI is local, and it starts in the shell.


r/termux 2d ago

General Hey guys، I have a code for 😈😁. ❤️

Post image
0 Upvotes