Live data from Hacker News

Termux is an Android terminal emulator and Linux environment app with no rooting

termux.com

111–120 of 217 posts

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

#111
post #3

see also: iSH for iOS ( https://ish.app/ )

The key caveat being that iSH does x86 emulation to achieve this, but otherwise it seems to looks pretty darn nice. I have yet to try it but now that I've switched over to iOS I may just download it to compare usage vs Termux.

Quick question as I'm giving this a spin (thanks!!). How do I go about installing an ssh client? Or is that only available in the testflight version?

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

#112
post #12
post #11

Earlier quoted context omitted.

Just a few days ago I thought about using termux-api to do a quick poc for a monitoring application. Namely, I wanted to send an SMS when an event occurred. Termux-api used to offer this [0], but apparently some time ago google decided to make it impossible: > Usage of this API is no longer allowed by Google and we had to disable it to prevent delisting of Termux:API application from the Google Play. It's my device,…

You can buy Linux phones right now!

Any thoughts on the best options for those of us wanting one? It seems pretty much to be Pinephone or Librem 5, are there others? Both are preorder only. Anything generally available?

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

#113
post #110
post #27

Termux has recently run into issues with Android 10 and the more recent APIs, which break its form of package management. Their workaround is fairly clever (although not yet implemented) but means that updates to the Play Store version have been temporarily put on hold. https://github.com/termux/termux-packages/wiki/Termux-and-An...

If you want to do something other than Instagram then don't buy devices that run "mobile" OSes.

It's easy to say that, but the competition isn't all that great so your comment isn't really adding much.

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

#114
post #110

Earlier quoted context omitted.

If you want to do something other than Instagram then don't buy devices that run "mobile" OSes.

It's easy to say that, but the competition isn't all that great so your comment isn't really adding much.

This is the whole "linux desktop isn't there yet" thing but with phones now.

It's not shiny but it does work. Continuing to use abusive software is a disservice to yourself and everyone around you.

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

#115

Earlier quoted context omitted.

I got around this limitation by using LineageOS. Unfortunately, I'm forced to compile my own builds with call recording enabled for the US because there's no way to tell which state you're in through MNC-MCC numbers and states like California and Pennsylvania have lame two-party consent laws for recording calls[1][2]. My state is single party consent. Just super lame that all my featurephones from the mid-2000's coul…

One would think a stern warning dialog would be sufficient...

"This call may be recorded..."

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

#116
post #27

Termux has recently run into issues with Android 10 and the more recent APIs, which break its form of package management. Their workaround is fairly clever (although not yet implemented) but means that updates to the Play Store version have been temporarily put on hold. https://github.com/termux/termux-packages/wiki/Termux-and-An...

I hate the direction Google is taking Android. They're on an appliance-ification quest trying to hide any exposed linux-ness of the OS, including trying to remove developer access to all file handles. They always claim it's in the name of security but my suspicion is that it's an effort to transition from Linux to Fuchsia.

Ironically, the biggest concern I have with "security" on my Android phone is Google itself. Their overzealous collection of private data makes them a constant liability which I have practically no control over other than to abandon the Android platform altogether. I've ditched Google for almost everything else, but Android is one of the few things which I don't have a reasonable alternative for.

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

#117
post #101
post #89

Earlier quoted context omitted.

Android was always about Java (now Kotlin). The NDK was only added in 2.0 to appease game developers and workaround for Dalvik anemic performance. Any access to Linux APIs was accidental and never part of the official native APIs.

It's a shame as it you can make much more powerful apps with a native API.

On modern Android Java is native both ways.

It is the main userspace programming APIs are written in. Followed by the increased use of Kotlin.

In both cases, the final execution tier does produce a pure binary, when the device is idle, after getting the PGO data from the JIT tier.

The NDK C and C++ APIs are based on ISO C, ISO C++, OpenGL, Vulkan, OpenSL (now replaced by AAudio), and Android specific native APIs.

Plenty of choice, just not Linux specific APIs.

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

#118
post #74
post #27

Termux has recently run into issues with Android 10 and the more recent APIs, which break its form of package management. Their workaround is fairly clever (although not yet implemented) but means that updates to the Play Store version have been temporarily put on hold. https://github.com/termux/termux-packages/wiki/Termux-and-An...

The workaround won't help with self-installed executables though, right? Like when I cross-compile something on my dekstop and copy the executable to run under Termux?

It seems like maybe as long as you package your executable into a DEB it can convert it into an APK? That shouldn't be too hard. It's probably possible for them to release a script that does it automatically depending on what information is preserved from the DEB in the APK with regard to types of files and how complex the thing you want to install is.

I don't have much experience with DEBs, but have quite a bit with RPMs and their spec files which are used to create them, and this wouldn't be that hard to do with an RPM (and you can convert RPMs to DEBs in many cases with utilities).

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

#119

what do people use this for? While I was really excited when i encountered it, I didn't find any practical uses.

- routine backups with rsync (one time setup in my shell config with a `bkup` alias and then I just run that when I think of it)

- grabbing albums off my PC with sftp

- easy way to unzip files

- play audio via mpv

- run `xdg-open` on a file and get a native popup to select an app to open it with

- ssh into your other machines, works well to pick up your irc chat away from your pc if you use irssi + tmux (or weechat, or screen, etc.)

- use a "real" editor like vim or emacs locally on your phone

- api stuff, you can control the torch, notifications, etc. you can make scripts around that (imagine a simple `sleep 30m && ...` sort of one liner that turns on your light and plays some audio to wake you from a nap (I haven't done much with this part of termux)

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

#120
post #12

Earlier quoted context omitted.

You can buy Linux phones right now!

Any thoughts on the best options for those of us wanting one? It seems pretty much to be Pinephone or Librem 5, are there others? Both are preorder only. Anything generally available?

PinePhones have periodic batches, not sure if that's considered a pre-order exactly.

Check out the devices[0] list on the postmarketOS wiki to see which Android phones and other things have support. In general none of them will work as well as the PinePhone, because Pine isn't fighting this sort of thing the way most manufacturers are, but it could be a fun thing to look into if you own anything already supported. You could also port it to a device not yet on the list if you're up for it.

[0] https://wiki.postmarketos.org/wiki/Devices

Post reply on HN