Top
Best
New

Posted by tosh 5 days ago

Termux(github.com)
359 points | 180 commentspage 4
kqr 4 days ago|
I have been using Termux to SSH to other machines for quite some time, but only relatively recently did I have a flash of insight: I can use Termux to write applications for my phone in Perl (!).

A year ago I used it to solve Advent of Code problems on my phone during my work commute. It was lovely. I have also used it to get access to a resampling calculator and a mental logarithm trainer on my phone.

timonoko 4 days ago||
I have webserver in Termux which is viewed in a watch.

Kinda difficult to explain. But Copilot says:

Provide a single-line weather summary (temperature, wind direction name + degrees, wind speed, symbol text) for use elsewhere (repo name suggests it’s for a clock/display).

https://github.com/timonoko/Supersaa_kelloon

_sinelaw_ 4 days ago||
It even runs Fresh so you can have a mini VSCode-like experience on your phone (pkg update && pkg install fresh-editor)
boneitis 4 days ago||
Another nifty utility to use in tandem is scrcpy[0].

Inside or outside of Termux, it allows you to interact with your android device in general from the comfort of your main computer/laptop over ADB.

It becomes a super multiplier for Termux when I don't want to deal with the hassle of connecting a separate keyboard to my android phone/tablet.

(A heads up, I have to use the `--render-driver=software` switch in order for scrcpy to work at all on my laptop.)

[0]: https://en.wikipedia.org/wiki/Scrcpy

dizhn 4 days ago||
You need developer mode enabled for this right? Do you use any banking apps? The one I want to use for NFC payments doesn't work when developer mode is enabled. I am wondering if this is a global thing.
boneitis 4 days ago||
Ah yes, I'm pretty sure developer mode is required.

My banking app works for logging in to check account balances, even despite having a rooted device. Though, I have not set up any kind of payment methods, Android Pay, etc.

qiine 4 days ago||
> `--render-driver=software`

Nvidia GPU?

Have you tired `--render-driver=opengl`

boneitis 4 days ago||
Intel UHD. Unless they changed the default sometime in the past year or two, it seems opengl is already the default. Oddly enough, it is working for me right now on that setting.

It was a painful troubleshooting process when I first installed it that took me a long while to stumble upon the software renderer option.

superjose 4 days ago||
I discovered it 1 week ago.

I don't know why I never tried this in the past! SSHing my machine and vice-versa!

Just figured out that I could use my computer's terminal to send to my android's clipboard via SSH.

Pair it with Tailscale and we have a beast!

goodburb 4 days ago||
You can now run Docker images in Termux with Udocker/proot[0], the disk IO can be a bottleneck for large databases when using proot.

Tailscale works with "--tun=userspace-networking" [1].

I had it running on an old phone as a Frigate server with a solar powerbank in remote area, using the 4G as a failover. The uptime is almost a week without solar. Attiny hooked to the power button and a photodiode on the phone flash [2] (blink per minute) used as a watchdog for shutdowns/hangs to hardware reset. The button cap is removed without disassembling the phone.

Old phones are still more efficient than most off the shelf SBCs, especially under load. ~3W compared to 12W with a Pi5 in the same performance ballpark.

[0]: https://github.com/George-Seven/Termux-Udocker https://github.com/indigo-dc/udocker

[1]: https://tailscale.com/kb/1112/userspace-networking

[2]: https://wiki.termux.com/wiki/Termux-torch

ramblin_ray 4 days ago||
What's the difference between this and Termius, especially for those who are just ssh'ing into their home machines?
smetannik 4 days ago|
Termius is SSH client. Termux is basically a terminal emulator + package manager. You can run Node, Rust, Claude Code locally on your phone.

As an example - I used it to do Rustlings every day I commute on a subway. NYC subways don't have mobile network coverage, so I can't just SSH there into a remote machine.

alance 4 days ago|
Fwiw termux + rsync for android phone backup (eg rsync /storage/emulated/0/) will grab most things.
More comments...