Live data from Hacker News

Termux: terminal emulator and Debian-style userland as an Android app

termux.com

101–110 of 148 posts

Re: Termux: terminal emulator and Debian-style userland as an Android app

#101

I was recently surprised to discover folks are using this on old phones or tablets as a "server" in various capacities. You have storage, camera, at least dual network access (wifi + otg usb ethernet + cellular), a battery (ups), autostart capability via a purchase, basic package support. Smaller than a laptop, way more self contained than a Pi, enough for some basic tinkering for sure.

I use it for git repository hosting and I like its power efficiency.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#102

I was recently surprised to discover folks are using this on old phones or tablets as a "server" in various capacities. You have storage, camera, at least dual network access (wifi + otg usb ethernet + cellular), a battery (ups), autostart capability via a purchase, basic package support. Smaller than a laptop, way more self contained than a Pi, enough for some basic tinkering for sure.

I've tried using a phone as a server in a similar fashion in the past, and found it to be too unstable and unreliable. With a Pi (at least, any Pi made since the Model B+ revision) stability and robustness is not an issue, however I've tried repurposing several Android devices from various manufacturers and they always end up rebooting themselves at inopportune times, or locking up, or the server app I'm using constantly crashes. By contrast, I've had the same RPi 3 running nonstop for nearly a year as a camera server.

I think it's more to do with the Android OS itself rather than the hardware, but I could be wrong. It's possible the SoC was overheating on those phones from the extended duty cycles; they simply aren't designed for much more than sporadic use.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#103

Earlier quoted context omitted.

I have a complete opposite feelings: mobile apps are actually sandboxed, modern phones have secure elements in hardware and the attack surface itself is pretty limited. On the other hand, there's virtually no sandboxing on your laptop. As software developers, we pull random code from the internet all the time and it's generally trivial to steal every secret that your user has access to ( https://xkcd.com/1200/ ) Pers…

You sir, have very misplaced priorities.

I'd argue that both risk surfaces are large, not that the priorities are misplaced.

There's little of any electronics I trust much these days.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#104
post #49

Earlier quoted context omitted.

What exactly would you use it for? Not trying to be negative, I'm just not sure what would be worth typing out on a phone keyboard on the go, instead of waiting until I have access to an actual keyboard. I guess if you have a keyboard for your phone that's also different. (so for android tablets etc this is great)

I used it for SSH and scripts like youtube-dl. Also for the short time that I played Pokemon Go, I deployed a flask server (to track pokemon overlayed on gmaps) in termux and accessed it from Android's browser. It was sweet.

If you're using youtube-dl, take a look at mps-youtube (a Python application, install via pip).

Search, download, and play video (or soundtrack) interactively from console. Manage playlists (and save them permanently, locally), etc. Very impressive app.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#105
In an ideal world I could purchase a (usb c) dock that has some connectors and plug my awesome OnePlus 5 in to have a somewhat usable computer at home.

I know Samsung wants to do something like that now (but I won't ever again buy a Samsung phone). I'd root (and pay) for a generic solution that makes my phone usable on a big(ger) screen.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#106

I've been using Termux for about a year and a half now, and can very honestly say that it is the single best and most useful capability I've yet found on Android. I can also say that it's not entirely there, and has a number of significant limitations as compared to a full-featured Linux desktop or laptop. My equipment: A Samsung Galaxy Tab A 9" tablet, with a Logitech "Type-S" self-supporting folio case/keyboard com…

I've never had the issues you mention with Termux's terminal emulator, but usually I run tmux inside Termux, so you may wish to try that and see if it doesn't improve things a bit.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#107

Termux is a great project, may it be for cli lovers, hackers, road warriors ... However, I have little trust in mobile devices nowadays and I don't feel safe copying private ssh/gpg/vpn/credentials data on them anymore. Planned obsolescence, theft risk, vendor/hardware/firmware issues, general feel of lack of control, ... As a consequence, I tend to use my smartphone as anonymously as possible, mostly as a camera, an…

I have a complete opposite feelings: mobile apps are actually sandboxed, modern phones have secure elements in hardware and the attack surface itself is pretty limited. On the other hand, there's virtually no sandboxing on your laptop. As software developers, we pull random code from the internet all the time and it's generally trivial to steal every secret that your user has access to ( https://xkcd.com/1200/ ) Pers…

I understand your feeling. I guess one can build "trust" or at least a somewhat "safe" feeling from simplicity, technical arguments, experience of a given evil ...

I "feel safe" running linux or openbsd on a "computer" given that I know only too well how flawed they can be. A mobile device could offer exactly the same feeling, and maybe better objective security characteristics, but unfortunately a "mobile device" doesn't seem to be defined as a "computer" you can single handedly operate but as a mix of short lived dependencies from hardware manufacturers to walled proprietary app stores through network carriers.

I don't dismiss the technical progress that is eventually happening in the mobile area but I think I'll pass as long as something as postmarketos offers what I feel is sustainable.

Re: Termux: terminal emulator and Debian-style userland as an Android app

#108
While I love Termux too, I find it really sad that we need such a project to have a usable cli on Android. Google hackers should know better, than to deliver such a stripped down Linux.

I mean we have seen that mobile operating systems can bring a decent toolset by default as Meamo did (don't know about tizen?!?).

Re: Termux: terminal emulator and Debian-style userland as an Android app

#109

I've been using Termux for about a year and a half now, and can very honestly say that it is the single best and most useful capability I've yet found on Android. I can also say that it's not entirely there, and has a number of significant limitations as compared to a full-featured Linux desktop or laptop. My equipment: A Samsung Galaxy Tab A 9" tablet, with a Logitech "Type-S" self-supporting folio case/keyboard com…

I've never had the issues you mention with Termux's terminal emulator, but usually I run tmux inside Termux, so you may wish to try that and see if it doesn't improve things a bit.

I have, locally and remotely, most especially in less.

Using the Termux ssh daemon and connecting to localhost from another Android terminal app or SSHBot doesn't exhibit the problem. I've got a github issue open.

Post reply on HN