Live data from Hacker News

Termux is an Android terminal emulator and Linux environment app

termux.dev

51–60 of 174 posts

Re: Termux is an Android terminal emulator and Linux environment app

#51
post #28

Because it wasn't obvious to me for a while: the Play store version is old, basically broken, and vulnerable [0]. Don't install it. The description does mention this relatively high up, but do you really read through the description for something before installing and playing around with it, especially if you already know what it is? I don't usually like having old versions of software removed from distribution, but…

[deleted]

Re: Termux is an Android terminal emulator and Linux environment app

#52
post #22

The combination of termux and scrcpy is pretty cool. Scrcpy is currently being discussed as well: https://news.ycombinator.com/item?id=35749366 I have one of those Bluetooth keyboards and mice that allow multiple paired devices. There's a button on each to allow you to switch. That's pretty handy to have it paired with my old Android device and be able to pop over and use my tmux sessions.

Oh dude! That's such a great idea. So great that (like most great ideas) it's extremely obvious in hindsight and I feel silly for not having considered it :-D

Re: Termux is an Android terminal emulator and Linux environment app

#53
post #45

Termux is great. One of my favorite tricks is sharing a photo to it, then running a quick `python -m http.server 8000` while on wifi. It makes it dirt simple to send a photo from my phone to any local machine on my network without the hassle of cloud services (including generation loss from recompression), incompatible apps, bluetooth pairing, etc.

kdeconnect is great for this too!

Do you or anyone else know what the state of kdeconnect is on gnome? Last I tried it out it didn't work super well and the functionality was spread out among a handful of different apps. If you didn't already know what you were looking for, it was very difficult to discover what you can do.

Re: Termux is an Android terminal emulator and Linux environment app

#54
post #37
post #15

Earlier quoted context omitted.

> But I am concerned about the direction Android is headed I'm with you, but we'll always have AOSP. And the cellphone market is now segmented enough that we'll probably also always have rootable phones.

Ironically, I specifically have a Google Pixel so that I can mod it and gain more control over my phone.

What are some examples of these types of mods?

Re: Termux is an Android terminal emulator and Linux environment app

#55

The Only App Which Does Not Specifically and Precisely Suck[tm]. I don't know whether I should be grateful to Termux for making Android remotely bearable, or vexed that it's enabling a platform I despise. But on its own merits, Termux is amazing, profoundly useful, powerful, and a breath of fresh air. Do install from F-Droid , not Google Play Store, as others note. And yes, of course it's more useful with an actual h…

> vexed that it's enabling a platform I despise.

Do you despise Android? How come? What's your preferred alternative?

Re: Termux is an Android terminal emulator and Linux environment app

#56

I’ve put this on a 20$ android phone that I got on eBay and was so impressed it made me consider switching from iOS to android.

That's the neat part about this. Need a Linuxy ARM SBC to run python, or a tiny web server, or home automation hub or something like that but Raspberry PIs are unavailable or overpriced in your area and alternative products are too sketchy and unsupported? No problemo. Just get an old Android flagship off the second hand market that can be had dirt cheap, flash some FOSS de-Googled ROM on it, and use that instead. Yo…

Wow what a great idea. I currently use my Raspberry Pi to make OCI container build for ARM, but for some reason docker routinely breaks on raspbian. The most recent aggravating breakage is that the system clock always goes to Jan 1 1970 inside the container, and I can't figure out why (if anyone knows how to fix this, I'd be eternally grateful for a hint). Because of this I've scripted an ARM EC2 instance that spins up, builds the image, pushes it, and spins down, but I'd love to have a local solution on hardware I own. I'm gonna give this a try!

Re: Termux is an Android terminal emulator and Linux environment app

#57
post #14

Earlier quoted context omitted.

That's the neat part about this. Need a Linuxy ARM SBC to run python, or a tiny web server, or home automation hub or something like that but Raspberry PIs are unavailable or overpriced in your area and alternative products are too sketchy and unsupported? No problemo. Just get an old Android flagship off the second hand market that can be had dirt cheap, flash some FOSS de-Googled ROM on it, and use that instead. Yo…

Used flagships have always worked well for me. They were built the best at the time whereas new budget phones have to cut corners. Phone tech is not changing that fast anymore.

How old/used is the price sweet spot? Have you gotten bad/broken devices? Where do you buy them to avoid people over-representing the status of the device?

I've got kids that are starting to need phones and this seems like a great way to do it.

Re: Termux is an Android terminal emulator and Linux environment app

#58

I can highly recommend it. Also, it's worth using f-droid to install because otherwise you can't get the latest version. Until I discovered termux, I would have always be on the lookout for new git client / ssh client apps. Now I have a fairly good dev env on my phone. Git and vim get me pretty far in that regard. Python and node were easy enough to set up. Recently, I set up nvim so I can use GitHub Copilot and I th…

As an aside, vim on Termux is not nearly as difficult/awkward as one might think. Of course you can plug in a keyboard to the USB port wired/wireless with dongle or via bluetooth, but even without it I find vim's modal editing with a focus on keystroke golf (e.g. fewest keystrokes possible) to be a boon for finger-pecking out on a soft keyboard. For doubters, don't knock it til you try it!

Re: Termux is an Android terminal emulator and Linux environment app

#59
post #46

I have used termux for to SSH to various boxen in a pinch, but I just recently realised it allows me to write and run arbitrary scripts on my phone! I can basically do (limited -- but sufficient for my needs) Android programming without knowing a lick of Android. And I can do it on the phone itself. Crazy that I didn't realise this potential sooner.

Yes! For me the real power of Termux emerged when I discovered the API. tldr: most of the android API is accessible from within Termux, and since you can install nearly any interpreter/compiler you can write programs that target android APIs from nearly any language! I personally love using Ruby for this. It's a true automaters dream.

Re: Termux is an Android terminal emulator and Linux environment app

#60
post #40

Earlier quoted context omitted.

Termux uses a sandboxed file system by default, but you can give it access to the rest of the phone's shared files by running `termux-setup-storage` from within Termux (more details at: https://wiki.termux.com/wiki/Termux-setup-storage ). That'll mount a new folder called "storage" in your home directory where you can place files in locations where other apps can see them.

I have done that, the files are created in their normal locations where the rest of the photos are. But the files created by ffmpeg don't have the execute x permission bit set and I think because of that they're invisible in the photos app.

Forgive the possibly obvious question, but have you tried `chmod +x` ing the ffmpeg output files with termux?
Post reply on HN