frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Termux

https://github.com/termux/termux-app
136•tosh•3h ago

Comments

OsamaJaber•1h ago
Sooooo underrated Incredibly handy when you're away from your machine
tetris11•1h ago
the only true way to experience Emacs on android
Antibabelic•1h ago
Not really? The Android version of Emacs is perfectly fine.
Tiberium•1h ago
Modern Emacs isn't really meant to be used in a TUI, it has a very capable GUI. And there's a fully native Android port of that GUI.

https://sourceforge.net/projects/android-ports-for-gnu-emacs...

https://mstempl.netlify.app/post/emacs-on-android/ https://kristofferbalintona.me/posts/202505291438/

timonoko•33m ago
Try this:

  (menu-bar-mode -1)
  (setq inhibit-splash-screen t)
  (setq inhibit-startup-echo-area-message t)
  (global-set-key "å" 'hippie-expand)
  (global-set-key "∆" 'toggle-truncate-lines)
  (global-set-key (kbd "<f12>") 'toggle-truncate-lines)
  (xterm-mouse-mode 1)
  (global-set-key (kbd "<mouse-5>") 'scroll-up-command)
  (global-set-key (kbd "<mouse-4>") 'scroll-down-command) ;
  (global-set-key (kbd "<wheel-up>") 'scroll-up-command)
  (global-set-key (kbd "<wheel-down>") 'scroll-down-command) ;
  (setq case-fold-search t)
  (setq-default truncate-lines t)
  (setq sort-fold-case t)
  (autoload 'scad-mode "scad-mode" "A major mode for editing OpenSCAD code." t)
  (add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
  (require 'scad-preview)
  (global-set-key (kbd "Å") 'dabbrev-expand)

  (add-hook 'python-mode-hook 'whitespace-mode)
  (setq whitespace-line-column 128)
  (custom-set-faces
   '(default ((t (:background "#000000" :foreground "#ffffff"))))
   '(whitespace-space ((t (:background "black" :foreground "blue"))))
   '(whitespace-tab ((t (:background "black" :foreground "blue"))))
   '(whitespace-newline ((t (:background "black" :foreground "blue"))))
   '(whitespace-empty ((t (:background "black" :foreground "grey50")))))
dharmatech•1h ago
An experiment of using Python Textual to implement a phone app intended to run in Termux:

https://youtu.be/sTj1FalZMVw?si=oq7uXCofjTGZO1F4

kjuulh•1h ago
Use it all the time.

I've got a wireguard setup from phone or tablet to my workstation. Using mosh with zellij and I can do all the development I want. Whether it is restarting a machine, or actually writing code, using claude code etc. It works really well

mg•1h ago
Is Termux still needed, now that new Android phones have a full Linux available?

I keep reading on https://www.reddit.com/r/androidterminal/ about user experiences with it and it seems pretty great.

mystifyingpoi•1h ago
As you say, it is still very useful for older phones. Only the newest top-of-the-line ones got the real thing.
rini17•1h ago
Apparently the OEM must support it (the AVF virtualization).
chocochunks•1h ago
The phone's hardware must also support it. It needs non-protected VM support which is available in Exynos SoCs but not Qualcomm which is why some Samsung phones have it but other arguably better phones don't (e.g, S25 Ultra VS. Flip 7).
WinstonSmith84•38m ago
Right, I enabled it, and got that exact error when starting the Terminal app on my Xiaomi 15: "Non-protected VMs are not supported on this device."
jhbadger•1h ago
I've tried both, and Termux is still far better. At least when I tried it a couple of months ago, the Linux terminal lived in its own sandbox isolated from the normal Android directories. Yes, I get how this might be "safer", but it means I can't move files around in the command line which is my primary use of Termux (I can't stand using a GUI to arrange and rename files)
esperent•1h ago
Interesting, first I've heard of that. It's android 16+ apparently. My Galaxy S21 FE is on Android 16.

I searched "Linux" in the settings and it found this experimental "Run Linux Terminal on Android" toggle... Which doesn't work. Tapping it won't turn it on. Oh well.

prmoustache•1h ago
last time I tried the linux terminal running on a vm was buggy and slow.
elcapitan•56m ago
Oh wow, thanks for mentioning this, I totally missed that this was introduced.
nicman23•45m ago
it is trash on the hw acceleration side, while termux has vulkan linux to vulkan android wrappers - which in future will probably do hw encode and decode as well
306bobby•26m ago
Using ffmpeg packages in termux you can already access the mediacodec apis for hw accelerated encode/decode
haunter•1h ago
One of my favorite piece of software was made by the guy with Termux on his phone [0], absolute insane https://github.com/9001/copyparty

0, https://www.youtube.com/watch?v=15_-hgsX2V0&t=885s

alejoar•1h ago
Termux has saved me countless times over the years.. One of the most powerful apps on my phone, that's come through whether I needed a quick SSH session to put out a fire or to get some real work done on the go.
mystifyingpoi•1h ago
Termux is also an excellent solution for downloading videos from YouTube and similar sites, due to the fact that yt-dlp works really well (and using mobile data makes it easier to avoid IP bans, most of the time anyway).
Erenay09•1h ago
You can use an easier way for yt-dlp:

https://github.com/deniscerri/ytdlnis

cess11•9m ago
How do I share the files back to Termux from this 'app'?
timonoko•1h 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

Fluorescence•1h ago
I love termux. I can run my normal terminal environment - tmux, fish, just, git, zoxide, yazi etc. and build rust apps. With decent auto-complete/fuzzy-search, it's very ergonomic for only needing a couple of key presses to get things done. I'm impressed that TUI apps like yazi/nnn respond to touch. It's a very viable app platform for those inclined.

Out of curiosity, is there an equivalent on ios with that level of support?

nasretdinov•1h ago
In iOS we can only use something like ish.app which emulates x86 and runs full Linux distro instead, with predictably much lower performance than Termux (due to JIT being banned in iOS apps), but without any restrictions Android has on the executables
DrNefario•1h ago
I don't have an iPhone, but wouldn't UTM be better for that use case?
nasretdinov•39m ago
UTM can't be installed from the App Store unfortunately, and without a developer license you are limited to 7 days for each successful on-device reinstall
dudewhocodes•26m ago
Apple somewhat lifted the emulator restrictions on the App Store which means you can install UTM from here: https://apps.apple.com/us/app/utm-se-retro-pc-emulator/id156...
nasretdinov•9m ago
Nice, I must've missed that. Downloading it right away :)
cfiggers•1h ago
Termux is the first app I install on every Android device I get my hands on. It's astonishingly capable.

I have a Bluetooth keyboard case for my Android tablet. All the time, I use Termux to ssh into my Linux machine over my home network and code on it in Neovim from my couch.

I don't bother with the default notes app on my phone. Termux + Neovim running vimwiki and syncing to a private GitHub repo is way better.

Most stuff you want at the CLI is in the Termux package repository. On the occasions when it isn't, you can install clang, make, cmake, ninja, whatever libraries you need, and build it from source. At that point most stuff just works.

Termux is incredible and single-handedly keeps me running Android.

firecall•46m ago
What keyboard case do you use?

My android phone is a Pixel 8 and that sounds cool :-)

harvie•23m ago
I beleive Android 16 now comes with termux-like Linux environment that can be enabled via developer settings menu.
cess11•16m ago
Even more reason to keep supporting Termux.
PlatoIsADisease•1h ago
I forget about how many Android only Apps I've used through the years. Emulators, fdroid, pulse wave generator(not sure if iphone has it, but they don't have aux ports anymore), termux, probably more... I don't think about it.

That all said, I've heard news about Android getting degraded by Google to be more like Apple. Hope its rumors, but at least I had a good decade+.

GlenTheMachine•1h ago
“Extendible” —> extensible, I believe
nickjj•1h ago
I use Termux to run SSH on demand, it's quite nice for rsync'ing files between my phone and desktop.

The on demand nature of it is a major selling point to me. When I open Termux and run SSH it's up, if I shut down Termux, SSH goes away with it. That and I can use rsync which is a tool I've been using for syncing files for a long time.

There's no need to run always-on tools like LocalSend or SyncThing, at least not for my use case. I have a little "sync" shell script on my desktop I can run to easily sync files "desktop TO phone" or "phone TO desktop".

bluebarbet•1h ago
Honest question, as a heavy desktop TUI user who has had Termux installed for years. A terminal (emulator) is a keyboard-based environment. How on earth are all you fans making it work with a tiny touchscreen?
ezequiel-garzon•42m ago
Sessions tend to be way shorter for me, but it's great to have.
poolnoodle•39m ago
Tiny fingers or bluetooth keyboards
ifelsewhy•28m ago
This is why I'm looking forward to the new Android devices with keyboards. I can't do anything productive on a touchscreen.
genezeta•21m ago
Portable Bluetooth keyboard.
dotancohen•20m ago
I often use a Bluetooth keyboard with Termux. But as a mechanical keyboard affectionate with a veritable museum of ergonomic and mechanical keyboards, the Samsung S-Pen is good enough for terminal work. I use SSH, VIM, and lately Org mode in Termux. If I'm at a desk I still use a Bluetooth keyboard, but if I'm out then the S-Pen is a fine enough substitute.

Right now I'm on an S24 Ultra, before that a Note 10 Lite, and before that another Note 10 Lite.

cess11•13m ago
I use PentiKeyboard, it can send basically all the byte sequences I'm accustomed to having available plus it has a shortcut for sending ctrl+b to tmux.

https://play.google.com/store/apps/details?id=de.software_la...

Either that or I connect a wireless physical keyboard.

Edit: The killer feature of Penti is that it is transparent and allows you to put the 'buttons' where it is convenient to place the fingertips. Unlike regular software keyboards which hide half the screen and have 'buttons' that are pretty much thumbs-only. Since I code a lot I'm not particularly keen on mainstream next-word-guessing either.

mjmas•4m ago
I have Unexpected Keyboard which gives me most keys including Alt, Ctrl and Esc as well as F-keys.

https://github.com/Julow/Unexpected-Keyboard

Ingon•1h ago
Termux is great - one of the ways I use it is to install the golang toolchain and compile/run connet.
anasrin•57m ago
Best terminal emulator on Android, my day to day basis is note-taking (fzf, Neovim, Git) and SSH (when I'm too lazy to open up computer).

Also you can build some CLI or TUI using Go and compile using Android NDK and run it on Termux.

firecall•44m ago
There’s an app called Termux in the iOS App Store, but I’m guessing it’s not the same thing?
bryanrasmussen•41m ago
no, it's not, termux requires low level access to the OS that iOS protects against.
mrsssnake•23m ago
No, it does not have any more access than any other app, as it work on unrooted devices too.

That said, it has to be compiled for older Android SDK level because newer levels prevent apps to run executables they downloaded on their own and not bundle with the APK, even isolated. Android may disable compatibility with the older SDK some day but for now it works.

bear330•43m ago
I also really like Termux. When I was developing https://github.com/nuwainfo/ffl (a tool similar to croc, but the receiver uses a browser and doesn't need to install anything), it was because I wanted an easy way to get things off my phone. I actually packaged ffl—which is pure Python—into an APE just to make it compatible with Termux. Although many people here use ssh, rsync, or solutions like copyparty, I prefer my own minimalist solution: just one binary to transfer whatever I want. Anyway, Termux is cool.
alance•42m ago
Fwiw termux + rsync for android phone backup (eg rsync /storage/emulated/0/) will grab most things.
r17n•41m ago
Everyone posting seems to love this. Can folks provide some of their use-cases?
pawelduda•30m ago
I use it all the time to SSH into my workstation and check on long-running tasks, code, etc.

- Using vim/neovim is way better than I'd expect on a phone keyboard, because you can move around faster with less keypresses.

- My terminal sessions are wrapped in tmux, so switching between devices is seamless (tmux panes resize without any problems to match your device dimensions/aspect ratio as soon as you interact with the terminal - nothing ever breaks). You can do the pinch gesture to change the text size, depending on what you need to see at the moment.

- Both devices are using tailscale, so all I need is cellular data connection. For low quality network coverage I use mosh, which makes the session truly unkillable and makes sure it will recover when the connection comes back, albeit I ran into some annoying limitations with text scrollback.

With the recent development of agents, it becomes even more effective, since I can just open up claude session, type the prompt and have the agent do the heavy-lifting (mostly writing large chunks of code). This greatly compresses the amount of text you'd have to type and makes phone-only coding more viable than ever.

dhoe•12m ago
It's my primary environment for anything code related (I'm not a developer by profession). Cheap tablet in vertical model, cheap keyboard, termux, tmux, Claude Code with instructions to offload anything more resource intensive to a 5$ VPS. I'll not claim it's perfect - occasionally Claude does try to run something that crashes termux, and the keyboard mappings are not ideal - but it's good enough that I haven't needed a laptop in over a year.
cess11•3m ago
To me it allows me to interface with my phone as if it was an actual computer and not just a locked down entertainment autoscroller.

I take notes, do programming, remote into computers, investigate networks, download and play back music/podcasts/web radio, surf the web with w3m, run background services, pretty much anything I'd use a terminal emulator for on a laptop computer.

Eventually I expect more people to move off Discord and the like so I can easily have them in terminal chat software instead.

Rygian•34m ago
My usecase for Termux: most pictures get backed up properly into the home NAS, but the sync process sometimes skips a few [1] (which is exasperating, but here we are still not migrated to Immich).

So I have a python script in the NAS that calculates the MD5 checksum of every photo and video, and generates a shell script that, when executed on the phone, will calculate the MD5 on the local device, and delete if it is equal to the NAS.

The generated shell script gets sent to the phone, then I execute it from within a Termux window, pointing at the DCIM folder.

I can free up tens of GB of memories with reliability in the face of a misbehaving sync algorithm.

[1] https://help.nextcloud.com/t/auto-upload-is-skipping-random-...

thekoma•19m ago
How come you don’t just send the md5s to delete rather than the shell script?
vasco•17m ago
I guess it's a more flexible design that allows to change the criteria for deletions in the future. You still need to calculate md5s on the phone either way.
kqr•23m 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.

ce4•19m ago
I use it for lots of stuff, remote scanning from an old Canon flatbed scanner attached to my NAS (powered by a really ugly phone-local bash script, nothing else), rsync, renames (or the like using one liners), ssh tunnels to different destinations (to circumvent IP blockages) and of course YT downloads (using the source git folder and running it using "python -m yt_dlp $OPTIONS $URL" - when it breaks, a git pull is all it needs most of the time, I also have local patches that are not upstreamed)
mimasama•18m ago
I use Termux for my OTP implemented in a bash script, I trust oathtool more than an app.
bluebarbet•5m ago
So do I and this is a legitimately great idea for Termux.
boneitis•15m 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

Termux

https://github.com/termux/termux-app
140•tosh•3h ago•64 comments

Nano-vLLM: How a vLLM-style inference engine works

https://neutree.ai/blog/nano-vllm-part-1
18•yz-yu•1h ago•0 comments

Defeating a 40-year-old copy protection dongle

https://dmitrybrant.com/2026/02/01/defeating-a-40-year-old-copy-protection-dongle
669•zdw•16h ago•200 comments

My fast zero-allocation webserver using OxCaml

https://anil.recoil.org/notes/oxcaml-httpz
29•noelwelsh•3h ago•5 comments

AdBoost: A Browser Extension That Adds Ads To Every Webpage

https://github.com/surprisetalk/AdBoost
11•surprisetalk•52m ago•9 comments

My iPhone 16 Pro Max produces garbage output when running MLX LLMs

https://journal.rafaelcosta.me/my-thousand-dollar-iphone-cant-do-math/
351•rafaelcosta•17h ago•154 comments

Apple's MacBook Pro DFU port documentation is wrong

https://lapcatsoftware.com/articles/2026/2/1.html
140•zdw•10h ago•49 comments

Show HN: Apate API mocking/prototyping server and Rust unit test library

https://github.com/rustrum/apate
17•rumatoest•1d ago•7 comments

MaliciousCorgi: AI Extensions send your code to China

https://www.koi.ai/blog/maliciouscorgi-the-cute-looking-ai-extensions-leaking-code-from-1-5-milli...
20•tatersolid•1h ago•15 comments

Hypergrowth isn’t always easy

https://tailscale.com/blog/hypergrowth-isnt-always-easy
18•usrme•2d ago•6 comments

Ratchets in software development (2021)

https://qntm.org/ratchet
67•nvader•3d ago•23 comments

Show HN: NanoClaw – “Clawdbot” in 500 lines of TS with Apple container isolation

https://github.com/gavrielc/nanoclaw
431•jimminyx•15h ago•153 comments

Show HN: Wikipedia as a doomscrollable social media feed

https://xikipedia.org
289•rebane2001•13h ago•105 comments

UK Government Launches Fuel Forecourt Price API

https://www.developer.fuel-finder.service.gov.uk/access-latest-fuelprices
24•Technolithic•1h ago•14 comments

Ian's Shoelace Site

https://www.fieggen.com/shoelace/
247•righthand•19h ago•40 comments

Contracts in Nix

https://sraka.xyz/posts/contracts.html
77•todsacerdoti•1d ago•16 comments

Apple I Advertisement (1976)

http://apple1.chez.com/Apple1project/Gallery/Gallery.htm
250•janandonly•20h ago•137 comments

Best Gas Masks

https://www.theverge.com/policy/868571/best-gas-masks
184•cdrnsf•3d ago•43 comments

Adventure Game Studio: OSS software for creating adventure games

https://www.adventuregamestudio.co.uk/
349•doener•1d ago•74 comments

EU launches government satcom program in sovereignty push

https://spacenews.com/eu-launches-government-satcom-program-in-sovereignty-push/
82•benkan•5h ago•36 comments

Library of Juggling

https://libraryofjuggling.com/
29•tontony•6h ago•4 comments

Actors: A Model of Concurrent Computation [pdf] (1985)

https://apps.dtic.mil/sti/tr/pdf/ADA157917.pdf
102•kioku•12h ago•50 comments

Rev up the viral factories

https://www.science.org/content/blog-post/rev-viral-factories
27•etiam•3d ago•1 comments

Treasures found on HS2 route stored in secret warehouse

https://www.bbc.com/news/articles/c93v21q5xdvo
81•breve•15h ago•50 comments

Leaked Chats Expose the Daily Life of a Scam Compound's Enslaved Workforce

https://www.wired.com/story/the-red-bull-leaks/
177•smurda•8h ago•97 comments

Building Your Own Efficient uint128 in C++

https://solidean.com/blog/2026/building-your-own-u128/
94•PaulHoule•17h ago•40 comments

Microsoft is walking back Windows 11's AI overload

https://www.windowscentral.com/microsoft/windows-11/microsoft-is-reevaluating-its-ai-efforts-on-w...
80•jsheard•2h ago•104 comments

Efficient String Compression for Modern Database Systems

https://cedardb.com/blog/string_compression/
140•jandrewrogers•2d ago•37 comments

Board Games in Ancient Fiction: Egypt, Iran, Greece

https://reference-global.com/article/10.2478/bgs-2022-0016
20•bryanrasmussen•3d ago•5 comments

Two kinds of AI users are emerging

https://martinalderson.com/posts/two-kinds-of-ai-users-are-emerging/
256•martinald•14h ago•239 comments