Live data from Hacker News

Termux

github.com

171–180 of 186 posts

Re: Termux

#171

Another nifty utility to use in tandem is scrcpy[0]. Inside or outside of Termux, it allows you to interact with your android device in general from the comfort of your main computer/laptop over ADB. It becomes a super multiplier for Termux when I don't want to deal with the hassle of connecting a separate keyboard to my android phone/tablet. (A heads up, I have to use the `--render-driver=software` switch in order f…

> `--render-driver=software`

Nvidia GPU?

Have you tired `--render-driver=opengl`

Re: Termux

#172

Enjoy it while it lasts, folks. Android has since implemented restrictions on which binaries may be run from an installed app; any spawned processes must also come from binaries installed from Google Play. Termux is currently grandfathered in because it's still built against the last API version not to have these restrictions (28?). But it's only a matter of time before that version starts throwing "This app was buil…

I will not go into that good night gently.

Re: Termux

#173
post #171

Another nifty utility to use in tandem is scrcpy[0]. Inside or outside of Termux, it allows you to interact with your android device in general from the comfort of your main computer/laptop over ADB. It becomes a super multiplier for Termux when I don't want to deal with the hassle of connecting a separate keyboard to my android phone/tablet. (A heads up, I have to use the `--render-driver=software` switch in order f…

> `--render-driver=software` Nvidia GPU? Have you tired `--render-driver=opengl`

Intel UHD. Unless they changed the default sometime in the past year or two, it seems opengl is already the default. Oddly enough, it is working for me right now on that setting.

It was a painful troubleshooting process when I first installed it that took me a long while to stumble upon the software renderer option.

Re: Termux

#174

With how AI based dev is going, I'm guessing more and more people will discover and start using termux, tmux and the like. Typing on a phone sucks, but at least modal modes (vim) and unexpected keyboard[1] makes it somewhat tolerable. 1: https://github.com/Julow/Unexpected-Keyboard

wow, that does look like the perfect companion app to termux! thanks for the pointer.

Re: Termux

#175
post #167

Earlier quoted context omitted.

Big difference! That's a full VM, while Termux is more like a Debian container. For most use cases you will have a better time with Termux, which also ships useful Android integrations such as clipboard and notifications.

Wait, isn't Termux based on Alipine?

Nope, it comes with apt. You might be referring to iSH on iOS, which does use Alpine in a VM.

Re: Termux

#176
post #38

Everyone posting seems to love this. Can folks provide some of their use-cases?

I was away from home without my laptop one night when I got an email from a friend I was collaborating on a project with. saying he needed some data crunching done that night if possible, because he needed to send the results out. I was able to download termux, git clone our project, run it, and write a ruby script to generate the figures he needed from the raw output, all within half an hour of somewhat painfully tapping my phone screen. would not even have been ten minutes had I had a bluetooth keyboard. I cannot think of how I would have done it at all without termux.

Re: Termux

#177

Earlier quoted context omitted.

Probably because their handling of VM networking isn't very robust.

Why should booting a Linux VM require network access right away.

Probably because it's trying to establish a network connection, and it might be running a networking setup that blocks until the network is up. Also, it's trying to run networking with the host so it can run things like the storage balloon driver and mounting the host filesystem.

Re: Termux

#178
post #8

One of my favorite piece of software was made by the guy with Termux on his phone [0], absolute insane https://github.com/9001/copyparty 0, https://www.youtube.com/watch?v=15_-hgsX2V0&t=885s

This made me realize I could upgrade my phone to hold all of my photos, with room to spare, thanks to 1 TB microsd cards.

We're in the future!

Re: Termux

#179

Earlier quoted context omitted.

In iOS we can only use something like ish.app which emulates x86 and runs full Linux distro instead, with predictably much lower performance than Termux (due to JIT being banned in iOS apps), but without any restrictions Android has on the executables

Why does Apple ban JIT? It clearly doesn't ban emulation inherently, so why is emulation OK but not JIT?

I believe it's a ban on executing any runtime-generated or downloaded machine code, not just JIT in particular.

Re: Termux

#180
post #25

I use Termux to run SSH on demand, it's quite nice for rsync'ing files between my phone and desktop. The on demand nature of it is a major selling point to me. When I open Termux and run SSH it's up, if I shut down Termux, SSH goes away with it. That and I can use rsync which is a tool I've been using for syncing files for a long time. There's no need to run always-on tools like LocalSend or SyncThing, at least not f…

There's an app "Material Files", there you can add SSH servers as storage locations and then copy paste files as if the locations are mounted in your phone.
Post reply on HN