7 ms·
Termux. https://termux.com https://termux.com I've got an actual userland Linux shell and package ecosystem, with 1,231 available packages (compare against ~6
by dredmorbius 7y ago
Termux. https://termux.com https://termux.com
I've got an actual userland Linux shell and package ecosystem, with 1,231 available packages (compare against ~6k for Red Hat / CentOS, 70k for Debian), including standard shell tools, editors, and scripting languages, plus several Android-specific tools and APIs. The scripting tools open up broader archives via pip (python), npm (node.js), and cpan (perl). Many of the "Linux" shell and scripting examples I've posted to HN over recent years have actually been run on and via Termux.
This replaces other Android tools, including console, SSH, audioplayer (mpv/mps), backgroundable and playlistable YouTube audio (mpv, mps-youtube), remote sync (rsync, scp, mc), editors (vim, emacs, nano, etc), and other tools. An sshd daemon allows remote (ssh-key-only) access to the tablet itself, useful for admin and substantial tasks at a bigger screen and better keyboard.
The develooment is active, response to bugs (I've found several) prompt and satisfactory, and growth in packages available (~500 when I first installed Termux) impressive and assuring.
This is by no means a full Linux system replacement, for numerous reasons, but it very much, and more than any single other feature, makes Android Not Completely and Utterly Suck (which it otherwise largely does).
Coupled with a Bluetooth keyboard (another long tale of frustration), a tablet becomes a surprisingly capable (albeit still frustrating) laptop adjunct. The biggest frustrations remain Android-imposed: Lack of full filesystem access and unpredictable process termination, by Android.
The lack of an equivalent IOS feature utterly kills that platform for me. I'm very much looking forward to Purism's tablet offerings.
- sdenton4 7y agoHere's a silly photo from a Nairobi hotel room. The tv is hooked into a raspberry pi b, $75 2014 phone running android terminal, and a laptop... The phone iirc was providing internet and local network for the other two. (And I was trying to compile Sage on the pi, which ended up, at the time, taking close to a week, due to one memory hungry dependency...) https://inventingsituationsdotnet.files.wordpress.com/2014/07/665036_10152354343805640_1607277550_o.jpg https://inventingsituationsdotnet.files.wordpress.com/2014/0...
- dredmorbius 7y agoNice! Interesting blog: https://inventingsituations.net/2014/07/ https://inventingsituations.net/2014/07/
- kungtotte 7y agoThere's iSH for iOS, that tries to be similar to Termux. I don't know if it has feature parity or not since I've only heard about it, not used it myself, but I don't want to say this area is an Android-only feature.
- dredmorbius 7y agoThanks. Apple makes such tools far too hard to find. Does seem quite preliminary though, yet.
- bwbw223 7y agoThat’s just because it’s not released/stable yet. Its developers have made the decision to make it only available as a TestFlight beta, not Apple.
- dredmorbius 7y agoSure, and I get that. Point remains that availability of similar capabilities to Termux does not really yet exist on iOS. I do appreciate knowing about the tool thogh, thanks.
- lstamour 7y agoSo... when I jail-broke my iPhone 3G S years and years ago, I remember using an SSH prompt natively with all the fixings, including native BitTorrent over comparatively slow 3G speeds. These days, though, there are apps and websites to do everything under the sun. If you need the power, why do the heavy lifting locally? Just use these cloud-friendly devices to connect to an SSH server via Panic’s Prompt app, or use the Shortcuts app to run Pythonista or an SSH-executed command via Siri or at a certain time (prompted). If you need something more advanced than Pythonista can support, perhaps for push notifications, you’ll probably have to use a third party app, or write your own with a Mac to set it up, but iOS is really more extensible with each new release.
- scarface74 7y agoThis exactly. I have complete access to any resource I could imagine for my job by spinning up what I need in our dev AWS account or at home with my personal hobby AWS account (which admittedly I hardly ever use). I have unlimited data and tethering (albeit slow 512Kbps. I’ve even used AWS Workspace app in a pinch with my iPad.
- dredmorbius 7y agoFlexibility, power, maturity, lack of distractions, data control, offline continuity, tool continuity, and 30+ years' experience and proficiency with the toolset. For starters. The apps often aren't all that, and search costs alone in trying to find one exceed time to complete of a typical task. With no additional overhead for bugs, incompleteness, ToU, privacy policy, or EoL / business continuity concerns.
- lstamour 7y agoSooo... offline continuity is the only example I can think of that wouldn’t work with a remote SSH session. Everything else is a simple configuration setting away, whether it’s disabling apps and distractions or continuing where you left off (which is enhanced by SSH sessions, I would think...) And while iSH is one attempt at a local shell, and jail-breaking another, I’d say it’s only a matter of time before Apple suggests running the occasional Mac app using a pen on an iPad Pro, via some virtualization APIs. Those same APIs could make it trivial to simply pick and instal your own Linux OS of choice, or maybe even Windows on an iPad, natively. Sure, it’s not there yet, but OS-as-app (or WSL) doesn’t seem that crazy in hindsight.
- sAbakumoff 7y agoI just love the way they describe the app features: "Have you ever sat on a bus and wondered exactly which arguments tar accepts?" "Can you imagine a more powerful yet elegant pocket calculator than a readline-powered Python console?"
- ge96 7y agoMan this is really cool thanks
- RandomBacon 7y ago> unpredictable process termination Settings - Battery - Battery Optimization (dropdown menu upper right, three dots) Change it for the apps you don't want Android to terminate.
- dredmorbius 7y agoThanks, though no such option.
- m-p-3 7y agoI use YouTube-DL with it, works like a charm. It allows me to have mostly the same toolkit on my phone and on my home server, which is nice.
- dredmorbius 7y agoYou might also appreciate mpv with its '--ytdl' option (enables the youtube-dl library). This enables you to directly stream YouTube (or any other YTDL-supported source) audio or video, rather than downloading. mps-youtube (mpsyt) is another streaming tool, which gives the option to interactivley request, search (by title, description, genre, or channel) YouTube (only, this time) content, and create, save, and recall local playlists. A great way to explore topics or speakers, or music. No ads :-) youtube-dl,mpv, and mps-youtube have been transformative.
- hv42 7y agomps-youtube is really nice! Thanks for sharing! Never thought this was actually possible to do from an android terminal app.