logoalt Hacker News

mgtoday at 12:35 PM8 repliesview on HN

Is Termux still needed, now that new Android phones have a full Linux available?

I keep reading on https://www.reddit.com/r/androidterminal/ about user experiences with it and it seems pretty great.


Replies

basilikumtoday at 2:19 PM

Termux is just a terminal emulator. When you run programs in Termux they run natively on your Android system inside the normal Android sandbox of the Termux app. That has some limitations, for example software has to be compiled to use the paths of the Termux environment. Termux can't just install software into /bin and you can't write into /etc. So everything depending on anything more than the base Android system like dependencies installed by Termux has to be compiled specifically for the paths of the Termux environment. But it also advantages especially when you want a Terminal that is actually part of your Android system. You can just natively access the shared storage for everything Termux has permission to. You can also use the Android API out of Termux – for some things you need to install the Termux:API Addon app – and get stuff like GPS, SMS and contacts.

The Android Terminal app is just a view to a full VM. If you want a more traditional Linux system on your phone alongside Android instead of a Terminal in Android, essentially having a second system just conveniently running on the hardware of your phone, then that's for you. However it does also use more storage.

jhbadgertoday at 12:50 PM

I've tried both, and Termux is still far better. At least when I tried it a couple of months ago, the Linux terminal lived in its own sandbox isolated from the normal Android directories. Yes, I get how this might be "safer", but it means I can't move files around in the command line which is my primary use of Termux (I can't stand using a GUI to arrange and rename files)

show 1 reply
rini17today at 12:45 PM

Apparently the OEM must support it (the AVF virtualization).

show 1 reply
esperenttoday at 1:00 PM

Interesting, first I've heard of that. It's android 16+ apparently. My Galaxy S21 FE is on Android 16.

I searched "Linux" in the settings and it found this experimental "Run Linux Terminal on Android" toggle... Which doesn't work. Tapping it won't turn it on. Oh well.

elcapitantoday at 1:07 PM

Oh wow, thanks for mentioning this, I totally missed that this was introduced.

nicman23today at 1:18 PM

it is trash on the hw acceleration side, while termux has vulkan linux to vulkan android wrappers - which in future will probably do hw encode and decode as well

show 1 reply
mystifyingpoitoday at 12:41 PM

As you say, it is still very useful for older phones. Only the newest top-of-the-line ones got the real thing.

prmoustachetoday at 1:00 PM

last time I tried the linux terminal running on a vm was buggy and slow.