Live data from Hacker News

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

termux.com

81–90 of 148 posts

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

#81
post #64

This will be amazing on the Gemini ( https://www.indiegogo.com/projects/gemini-pda-android-linux-... )

if it only had "normal" phonecalls (with placing next to an ear) I would bought it right now. Damn, I miss physical-keyboard phone so much

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

#82
post #8

I installed this months ago and cant figure out how to access localhost through my browser. I wrote a sample flask app and ran it but cant access it outside of termux. Is there a way to do so?

python3 -m http.server http://localhost:8000/ # on phone However, I haven't been able to access a server running on termux on my phone from anywhere else. I suspect servers are blocked by my mobile ISP (makes sense!), but I never got to the bottom of it. Should work over wifi though.

I suspect servers are blocked by my mobile ISP (makes sense!), but I never got to the bottom of it.

Many mobile ISPs run NAT, you don't even get a public IP of your own during the session, just an internal one.

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

#83
post #6

I tried this out a little while ago and I was really impressed. It's worth mentioning that this isn't just a Debian chroot/container, the software is actually compiled to run natively on the Android NDK. It seems like they work around any limitations of Bionic compared to glibc by patching NDK headers and using support libraries. Check out their "ports tree" to see what packages are available: https://github.com/term…

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)

Mostly for tablets, I suspect, though I do occasionally restart servers etc. from my phone but that tends to be via an ssh connection so I don't need a "local" userland...

But the replacement for my recently-dead Chromebook is an Android tablet/notebook hybrid (detachable keyboard), and while it's not comfortable, it does provide a tolerable alternative for when I don't want to drag my 17" laptop around.

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

#84
Been using this app for SSH and it's been amazing. Side note (not the most optimized way), but want to run something in the background? $tmux $[run command] $shift (volume down) + B, then d (detach virtual term) command is running in tmux in background $tmux attach (to get back into the virtual term) See their docs obviously.. but using a mobile terminal I've been using this primarily for my tasks

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

#86
post #14

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)

Chromebook I'm still waiting for Amazon to restock after I saw this post go up: https://blog.lessonslearned.org/building-a-more-secure-devel...

This makes chromebook all that more appealing now I slightly regret selling my old one

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

#87

Earlier quoted context omitted.

python3 -m http.server http://localhost:8000/ # on phone However, I haven't been able to access a server running on termux on my phone from anywhere else. I suspect servers are blocked by my mobile ISP (makes sense!), but I never got to the bottom of it. Should work over wifi though.

I suspect servers are blocked by my mobile ISP (makes sense!), but I never got to the bottom of it. Many mobile ISPs run NAT, you don't even get a public IP of your own during the session, just an internal one.

Thanks! Is there a way to do it? It must support bi-dir streams, they just need to be initiated from the phone.

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

#88
post #60
post #57

Earlier quoted context omitted.

You need to use Hacker's Keyboard https://f-droid.org/packages/org.pocketworkstation.pckeyboar...

Thanks, but I'm not a fan of hackers keyboard, maybe it is worse because I use a nordic layout but I barely find it usable in portrait mode (which is what I almost exclusively use).

There is Gesture and key actions option inside Hackers keyboard options that allows to switch keyboard layout using Volume keys.

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

#89
post #6

I tried this out a little while ago and I was really impressed. It's worth mentioning that this isn't just a Debian chroot/container, the software is actually compiled to run natively on the Android NDK. It seems like they work around any limitations of Bionic compared to glibc by patching NDK headers and using support libraries. Check out their "ports tree" to see what packages are available: https://github.com/term…

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 on my phone to run mp3Gain to adjust some mp3's volume, and I've also use it to write and run a couple of short C programs (not more than 20 lines of code) I had in mind. It's good also if you need to quickly SSH to a server and you can easily use your RSA key if you have one.

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

#90
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 actual phone and 4G modem, tethering via usb/wifi to my laptop. It's simple, it feels safe and obviously it's not as practical.

I'd love postmarketos --or something similar-- to succeed, so I could leverage the privacy/backup strategies I have already set in place on laptops and servers that actually make me feel safe.

Post reply on HN