Live data from Hacker News

Termux is an Android terminal emulator and Linux environment app

termux.dev

111–120 of 174 posts

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

#111
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.

Look up Syncthing. I have it running on my phone and computer and I have near real-time updates of the gallery. I can even delete and add photos from PC to phone. (It's not limited to the gallery of course)

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

#112
post #9

Termux singlehandedly makes me feel like I'm living my childhood dream of having a full computer in my pocket. I use git to blog from my phone, I have ffmpeg and yt-dlp installed to download videos for when I am going to be away from internet access for a while, and I even have some home automation scripts setup that control the lights over the local network. But I am concerned about the direction Android is headed,…

Why would I want to install termux? You basically need a keyboard to use it; at which point you might as well grab a laptop.

In a pinch I've used it to ssh onto a box to fix something. I also have a script that backs up a few folders from the phone to a NAS using rsync.

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

#113

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?

Answering your first: absolutely, and suprised anyone need ask.

It's a Trojan horse serving manipulation, advertising, surveillance, and propaganda. It's also intentionally crippled in numerous ways. The applications-store model is horrendously broken from not only this perspective, but in terms of utility, quality, and trust.

Alternatives:

For mobile compute: a Linux laptop. An ultralight sacrifices some features, but at least delivers the full software-based capabilities.

An alternative might be a set of separate components which could be used standalone or together: a CPU, additional storage, networking (WiFi / Wireless), power (battery / PSU), display, keyboard. A mobile device similar to a smartphone or keyboard-equipped device (think RIM, Palm Treo) might make a useful casual interface to the broader system, speaking to the hardware attributes rather than the OS / SW necessarily. More: https://news.ycombinator.com/item?id=33014529>

For a phone: none at all, or a dumbphone / limited-feature phone. The main dissuasion here is actually PSTN (public-switched telephone networks), which are increasingly obsolete under an onslaught of spam calls, as well as, increasingly, the deepfakes threat. VOIP over the laptop (using an unlisted wireless hotspot where necessary, otherwise WiFi or cabled ethernet) would suffice for nearly all usage.

Other than as an e-reader or podcast device, tablets are a worst-of-all-worlds compromise. See: https://diaspora.glasswings.com/posts/880e5c403edb013918e100...> particularly the comparison table in this comment: https://diaspora.glasswings.com/posts/880e5c403edb013918e100...>. That post and thread address most concerns and considerations.

For photos, video, or audio, a dedicated device seems to me the preferred option. I'm well aware the market is largely seeing otherwise, though professional still/video cameras (often the same device now), and audio recorders remain viable. Having to intentionally transfer content is to me a positive.

An e-ink tablet is a game-changer for reading content, and is quite good for listening to podcasts. I've owned one for over two years, large format (13"), and find it ... useful, though again with some limitations. I'd most especially like to boost onboard storage from 64 GB to 512 GB -- 1 TB (Apple's iPads offer as much or more as an option). More: https://news.ycombinator.com/item?id=35280532>, https://news.ycombinator.com/item?id=31412042>, https://news.ycombinator.com/item?id=29236211>, and https://news.ycombinator.com/item?id=29303195>. There are additional comments available via search: https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...>

I'd strongly suggest that an 8" device is a minimum size I'd consider and that there are immense readability improvements at 10" and 13". (Devices rely on the same OEM vendor, so form-factor and display characteristics are strongly standardised and uniform, at least within a given production cycle.)

I've discussed Android and its limitations numerous times on HN:

"I certainly don't trust the OS or its application ecosystem..." (Nov. 2021) https://news.ycombinator.com/item?id=29306994>

"Tablets --- and not just Apple's --- suffer from numerous arbitrarily-imposed limitations..." (Nov. 2021) https://news.ycombinator.com/item?id=25220885>

"Tablets offer a near-ideal form-factor, and impressively good battery life. The story from there is exceedingly poor, and remains so..." (Jan. 2020) https://news.ycombinator.com/item?id=22089820>

Issues with devices which were presumed rootable (proved otherwise) and unsupported with firmware updates: https://news.ycombinator.com/item?id=21055547> and https://news.ycombinator.com/item?id=20416488>

Issues with Google Play Store: "At what point does a competitive applications marketplace backfire in encouraging, intentionally or otherwise, Very Bad Behaviour?" https://news.ycombinator.com/item?id=29236211>

I've watched the alternative-OS tablet space for well over a decade, and there's been vanishingly little to get excited about. Several e-book readers are based on non-Android Linux (Barnes & Nobel's Nook, Kobo Reader, the Remarkable Tablet, and some Sony models AFAIA). Remarkable was on my purchase-candidate list but left it pre-purchase due to the miserly on-board storage (16 GB), and post-purchase by its pivot to a subscription model. Nook or Kobo might be interesting, I've not played with them. Mozilla and Ubuntu have both killed their tablet-OS. Pine and Purism remain interesting but not yet compelling, again, I've not tried these directly.

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

#114

Is there any sort of reputable, non-subscription (and open source, while I’m listing wishes) SSH client for iOS/iPhone? I ran across Blink (which is subscription-only) and Prompt ($15—-not unreasonable if you’re sure you’ll use it often), but I’m curious to hear recommendations from here.

Just yesterday I installed ConnectBot from F-Droid (free software) to access my laptop via SSH. It works just as fine as the other app. bought from the Play Store.

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

#115
I check out Hacker News everyday but this is my first post. I had never been a person who likes computers until the COVID lockdowns began. Some day I opened a Python course advertisement, I started the course but I got no computer to code the exercises, so I installed Termux on my 80$ Android phone and bought a 7$ external keyboard in order to do the Python exercises. Since then I have read several books about Linux and programming and bought my first laptop in order to continue with my self-taugh programming journey, all thanks to Termux.

Disclaimer: I'm not a native English speaker, so please forgive any mistake.

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

#116
post #47

Earlier quoted context omitted.

Android 13+ includes a crosvm based virtulization setup: https://source.android.com/docs/core/virtualization > ...then that process can escape the application's sandbox and do stuff it shouldn't be able to do given the permissions granted to the Android application. Android's sandboxing is not limited to ART and has multiple layers [0]. Native apps cannot bypass sandboxing, I don't think. [0] https://hernan.de/blog/t…

> Android 13+ includes a crosvm based virtulization setup Interesting; but I feel that their choice of a hypervisor-based design here supports my point of plain container-based isolation (or even containers + gVisor) being insufficient to achieve true sandboxing on Android. > Android's sandboxing is not limited to ART and has multiple layers [0]. Native apps cannot bypass sandboxing, I don't think. Yes, but when I sa…

> The lower level of permission is already granting you Linux filesystem ACLs to the database file; the only difference between the two permissions comes down to what ART will allow you to request through the higher-level API.

I get what you're trying to say, but perhaps you mean the ContextManager / ServiceManager, which isn't tied to ART at all, but Binder (Android's primary IPC mechanism), instead.

Re: Linux ACLs: Yes, those flaws existed, but don't think they do anymore (see also the blog I linked above).

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

#117
post #42

Earlier quoted context omitted.

Why would I want to install termux? You basically need a keyboard to use it; at which point you might as well grab a laptop.

You do not! You can use volume down as a Ctrl key, and volume up also unlocks other keys (volume up + wasd for example gives you arrows.) It also gives you an extra row above the touch keyboard with escape, tab, and some other keys, and a text input for pasting/IME/swiping/etc. And even if that sounds uncomfortable there's still plenty of useful things you can do with minimal typing! For example... You could run Tail…

Take a look at https://github.com/aeolwyr/tergent

tergent is a ssh agent for termux that uses the Android keystore, meaning your private keys are kept in your phone's secure enclave for a bit of nice extra security.

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

#118
post #9

Termux singlehandedly makes me feel like I'm living my childhood dream of having a full computer in my pocket. I use git to blog from my phone, I have ffmpeg and yt-dlp installed to download videos for when I am going to be away from internet access for a while, and I even have some home automation scripts setup that control the lights over the local network. But I am concerned about the direction Android is headed,…

Why would I want to install termux? You basically need a keyboard to use it; at which point you might as well grab a laptop.

Install Hacker's Keyboard from Google Play or F-Droid.

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

#119

Earlier quoted context omitted.

Why would I want to install termux? You basically need a keyboard to use it; at which point you might as well grab a laptop.

I mainly use termux for the script API (which is incredible btw). I usually write the scripts in bash or ruby on my computer and scp them over, but I also have a small keyboard that I can plug in to type directly on the phone. Even if you don't use the CLI part of Termux often, it's still an incredibly neat piece of hackery goodness. I once needed to text about 50 people and have it be from my real phone number. Rath…

I had no idea Termux had access to APIs that allowed you to do that, this changes a lot.
Post reply on HN