Top
Best
New

Posted by tosh 4 days ago

Termux(github.com)
359 points | 180 commentspage 2
jFriedensreich 4 days ago|
Important to note that termux, while it was always great and indispensable, is getting increasingly interesting now because android is getting full desktop mode at the same time as XR glasses (xreal, viture etc.) are becoming mainstream. You can have a linux desktop in your pocket everywhere without rooting, hacking or tinkering, just install termux and x11 server. While not all packages work, llms are increasingly powerful, just an example porting deskflow from a debian package to termux took about 4 hours max, something i would not even have had an idea how to start just 4 months ago.
antirez 4 days ago||
I would bet the popularity is due to coding agents. For the first time you can continue the work without typing much but just inspecting the output and provading further guidance with relatively short messages.
jFriedensreich 4 days ago||
I bet thats true, but that use case will be much much better served by the native vm based linux terminal, not sure what sandboxing you can use in termux.
fermuch 4 days ago||
I use my Meta Quest 3 with Termux & Termux X11 to run full desktop apps, and it works like a charm. No emulation, too! Native ARM64!
1dom 4 days ago||
This is interesting! Do you have any more info? I just discovered sunshine/moonlight work surprisingly well on Quest 3 for remote desktop to linux, I'd not really considered Termux X11 natively though.
mystifyingpoi 4 days 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 4 days ago||
You can use an easier way for yt-dlp:

https://github.com/deniscerri/ytdlnis

nisiddharth 3 days ago|||
Even simpler is https://github.com/JunkFood02/Seal
cess11 4 days ago|||
How do I share the files back to Termux from this 'app'?
MarsIronPI 4 days ago||
If you disable SELinux, I believe you can also set up the MPV app to use Termux's yt-dlp executable.
devsda 4 days ago||
I mainly use it as an ssh client and run network tools like ping etc. It is on the list of must haves I install on a new device.

I just hope against hope that Google doesn't limit its functionality further and point us towards the new terminal app in the name of security.

ratrocket 4 days ago||
Adding to the many other great uses of termux already here, the most useful lately for me is running Syncthing. After the "drama" with the Syncthing android client (my understanding: official development stopped due to onerous requirements from the Google, then the most popular fork was transferred to a new owner in a less-than-fully-trustworthy manner), being able to just run syncthing from the command line is a breath of fresh air.

I highly recommend using Unexpected Keyboard along with termux (a recommendation I myself almost certainly got from HN).

kid64 4 days ago|
I remember hearing something about the circumstances of that transfer, do you have a link/reference. Also, when you run Syncthing (the normal build I assume, without the Android wrapper), are you able to reliably prevent Android from killing it?
ratrocket 4 days ago||
Last things first: on my phone I only run syncthing "on demand", so I can't actually answer your question. Maybe someone else can chime in? From the little I've brushed up against the issue you're referring to, I think there's a way to have it not get killed, but it seems like it might be a little bit of a hassle.

On the transfer, here is what I could dig up:

The github issue about it was deleted, but archive.org has copies: https://web.archive.org/web/20251215062049/https://github.co...

HN discussion of same (with another link to the syncthing forum): https://news.ycombinator.com/item?id=46184730

Lobsters discussion: https://lobste.rs/s/urbcpw/potential_security_breach_syncthi...

(and here is the announcement that the official android syncthing app was being discontinued: https://forum.syncthing.net/t/discontinuing-syncthing-androi...)

No shortage of reading if you have the time! I'm quite happy to be running just the "standard" package (although, yeah, I should've pointed out that I don't run in continuously on my phone...)

OsamaJaber 4 days ago||
Sooooo underrated Incredibly handy when you're away from your machine
mikewarot 4 days ago||
I use Termux to host my 11/780 VAX/VMS system on my cheap ass Motorola phone, thanks to SimH.

Beware of one thing, though... if you upgrade Termux, or remove/reinstall, you lose everything inside that "linux" system. I lost my first VAX setup that way. 8(

dharmatech 4 days ago||
An experiment of using Python Textual to implement a phone app intended to run in Termux:

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

alejoar 4 days 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.
bitwize 4 days ago||
Enjoy it while it lasts, folks. Android has since implemented restrictions on which binaries may be run from an installed app; any spawned processes must also come from binaries installed from Google Play.

Termux is currently grandfathered in because it's still built against the last API version not to have these restrictions (28?). But it's only a matter of time before that version starts throwing "This app was built for an old version of Android and may not work properly on new devices" errors and then, stop working altogether...

qiine 4 days ago|
I will not go into that good night gently.
r17n 4 days ago|
Everyone posting seems to love this. Can folks provide some of their use-cases?
starkparker 4 days ago||
In a previous job I had a "kick the server" button configured from a Termux integration that would automatically SSH in, punt some logs my way and kill some commonly misbehaving services we didn't control, and then failing that reboot. As long as my phone was on the VPN it was generally a one-click triage.

For a couple of weeks I'd automated myself out of on-call by hooking that to an automation that fired every time I got paged. I wasn't brave enough to keep it going in the long term, but it was the best two weeks of sleep I had at that place.

cess11 4 days 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.

jcynix 4 days ago|||
I take monthly notes with the excellent app Markor, keep my daily diary with the nice app Diary and share lists, notes, todos with family members via Joplin (stores data on my own WebDAV server).

So almost everything is text (with markup/markdown) and can thus easily be synced and merged between devices via rsync, ssh and perl or shell scripts.

Example: when I want to look up notes in either markor's or diary's files, that's easily accomplished with a shell script, e.g.

  cd ~/storage/shared/Documents/markor
  if [[ $# == 0 ]] ; then
     exec zsh
  else
    grep -i "$@" **/*(.) | less
  fi
Instead of grep I could even use agrep to handle typos. I can start a simple web server on the phone or tablet, if needed:

  python -m http.server $PORT --bind 0.0.0.0
and view media files from another device (mobile, desktop, laptop, … whatever.

And there's exiftool, ffmpeg, ImageMagick, scripting languages, all in reach, wherever I go.

Markor: https://f-droid.org/packages/net.gsantner.markor

Diary: https://f-droid.org/packages/org.billthefarmer.diary

mitkebes 4 days ago|||
Some basic uses: SSH, wake-on-lan, downloading youtube videos, watching anime through ani-cli, coding, pen-testing, setup your phone as a file server through copyparty, setup a full linux desktop on your phone, etc.

For anyone who already is familiar with a linux terminal, termux is a great way to use a lot of the open-source tools you're already familiar with instead of trying to find a dozen different apps instead (that all probably show ads, spy on you, or require a subscription). There are also several apps that use it as a necessary backbone for their functionality, and require it to be installed.

cfiggers 4 days ago|||
I'm an enthusiastic enjoyer of the Janet programming language.[0] Sometimes people ask questions about how to do something in the Janet Zulip instance, and I like to help if I know the answer. But I'm most likely to see those messages first on my phone.

Termux makes it super easy to pull up a Janet REPL on my phone and try some things out before I reply. You could do the same with node or Python or anything else with a CLI REPL.

[0] https://janet-lang.org

pawelduda 4 days 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.

zem 4 days ago|||
I was away from home without my laptop one night when I got an email from a friend I was collaborating on a project with. saying he needed some data crunching done that night if possible, because he needed to send the results out. I was able to download termux, git clone our project, run it, and write a ruby script to generate the figures he needed from the raw output, all within half an hour of somewhat painfully tapping my phone screen. would not even have been ten minutes had I had a bluetooth keyboard. I cannot think of how I would have done it at all without termux.
dhoe 4 days 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.
bluebarbet 4 days ago||
>it's good enough that I haven't needed a laptop in over a year

Not to single you out but I worry about this trend. As things stand, free (FLOSS) privacy-respecting computing remains all but impossible on the mobile platform. If now Termux is encouraging even geeks to abandon the desktop, that seems like a net negative.

More comments...