Live data from Hacker News

Run Linux containers on Android, no root required

github.com

91–96 of 96 posts

Re: Run Linux containers on Android, no root required

#91
post #35

I don't see the purpose to run containers on Android, the managed userspace provides everything I need, including code on the go apps, already sandboxed. Also not a termux fan.

What are your concerns / objections to Termux?

People are holding it wrong.

Instead of embracing the Java/Kotlin userspace alongside C and C++ on the NDK, with the official APIs, they try to subvert into GNU/Linux.

First of all bionic isn't glibc, secondly the Linux kernel is only a matter of convenience for Google, which they could in theory replace by something else, while keeping the Java/Kotlin and the NDK C/C++ APIs.

Which is exactly termux isn't without issues on modern Android versions, not much different than using cygwin/mingw on Windows.

Re: Run Linux containers on Android, no root required

#92

Earlier quoted context omitted.

You could run a windows VM and run windows subsystem for android.

Windows subsystem for Android is deprecated. There's a community maintained alternative but it seems to have a few problems wrt. Windows updates.

The community maintained version seems to work okay most of the time, but you're correct a better solution is needed.

Re: Run Linux containers on Android, no root required

#93
post #91

Earlier quoted context omitted.

What are your concerns / objections to Termux?

People are holding it wrong. Instead of embracing the Java/Kotlin userspace alongside C and C++ on the NDK, with the official APIs, they try to subvert into GNU/Linux. First of all bionic isn't glibc, secondly the Linux kernel is only a matter of convenience for Google, which they could in theory replace by something else, while keeping the Java/Kotlin and the NDK C/C++ APIs. Which is exactly termux isn't without iss…

This is exactly Termux's point, to subvert Android into linux cheaply. Same for MinGW or MSYS2. I want to invest as few as possible on Andriod or Windows, while still able to use them in the way that I prefer.

Re: Run Linux containers on Android, no root required

#94
post #91

Earlier quoted context omitted.

People are holding it wrong. Instead of embracing the Java/Kotlin userspace alongside C and C++ on the NDK, with the official APIs, they try to subvert into GNU/Linux. First of all bionic isn't glibc, secondly the Linux kernel is only a matter of convenience for Google, which they could in theory replace by something else, while keeping the Java/Kotlin and the NDK C/C++ APIs. Which is exactly termux isn't without iss…

This is exactly Termux's point, to subvert Android into linux cheaply. Same for MinGW or MSYS2. I want to invest as few as possible on Andriod or Windows, while still able to use them in the way that I prefer.

I don't see cloning UNIX every piece of hardware with a CPU as positive, so it isn't a valid point for me.

As computer nerd I favour diversity just like I had the pleasure to enjoy during the 8 and 16 bit home computing days.

Vertical integration of computers with a soul, full stack experience.

“Using UNIX is the computing equivalent of listening only to music by David Cassidy.”

— Rob Pike

Re: Run Linux containers on Android, no root required

#95
post #94

Earlier quoted context omitted.

This is exactly Termux's point, to subvert Android into linux cheaply. Same for MinGW or MSYS2. I want to invest as few as possible on Andriod or Windows, while still able to use them in the way that I prefer.

I don't see cloning UNIX every piece of hardware with a CPU as positive, so it isn't a valid point for me. As computer nerd I favour diversity just like I had the pleasure to enjoy during the 8 and 16 bit home computing days. Vertical integration of computers with a soul, full stack experience. “Using UNIX is the computing equivalent of listening only to music by David Cassidy.” — Rob Pike

That's your use case.

Mine is that the Unix environment is a preferred one, particularly on a device which is nominally a Unix derivative (Linux -> Android) but which fails to deliver in its stock incarnation.

Termux doesn't solve that problem entirely, but it does remarkably well given the underlying limitations.

Re: Run Linux containers on Android, no root required

#96
post #67

Earlier quoted context omitted.

In developer settings, under debugging "Linux development environment (Experimental) Run Linux terminal on Android"

No such option. Apparently it needs to be allowed by the vendor (Samsung)?

Yeah, it is controlled by the vendor. If you can't find the option, you will need to use `adb` to enable it that's what I did basically. You can Google it and you'll find what I'm talking about. IRC, it is `pm enable ...`.
Post reply on HN