Seeing so many submissions related to Linux on Android makes me surprised that it wasn't common knowledge on HN. Another such gem: userland.tech (let's you run full distros or apps on linux, including Debain and Arch). I use it to run LibreOffice on my Android Tablet.
I tried searching the UserLand repo for how they implemented this, are they running native Linux apps in a GNU userland, possibly with namespaces/chroot, without virtualization? Does it do what Termux does and recompile binaries against the NDK? I've watched projects like this come and go for like 12 years now, and I've always thought that it's an interesting problem with interesting solutions.
Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
21–30 of 38 posts
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#22Seeing so many submissions related to Linux on Android makes me surprised that it wasn't common knowledge on HN. Another such gem: userland.tech (let's you run full distros or apps on linux, including Debain and Arch). I use it to run LibreOffice on my Android Tablet.
>Seeing so many submissions related to Linux on Android makes me surprised that it wasn't common knowledge on HN. HN seems to be mostly Apple & iOS users which are probably not very up to date on what's going on in the Android ecosystem, so HN is a good agregator to learn about these things.
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#23For full NixOS on an android device, something more like postmarketOS, see also https://mobile.nixos.org .
Do you know what the status of this is? I've been interested previously but notice the site hasn't been updated since 2021
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#24How does this compare with termux? What are the advantages? (termux is still available on fdroid https://f-droid.org/en/packages/com.termux/ ) I am guessing it is avoiding all the android-lockdown problems besetting termux... though termux still works for me on android 11... It uses proot - doesn't that come with a substantial performance hit?
It's a fork of Termux with all the same restrictions as far as I can tell. The difference is that it uses Nix OS instead of the Termux repos, which has more software available.
termux doesn't use proot - its distribution has all paths rewritten (usually in source) to cope with the android filesystem (and other changes). I'm always surprised that this hackery works so well!
Therefore, I'd expect identical programs to be slower in nix-on-droid.
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#25It seems F-droid version tries to download bootstrap-arm.zip from a folder which only contains bootstrap-aarch64.zip ( https://nix-on-droid.unboiled.info/bootstrap-release-22.11 )
https://github.com/ImranR98/Obtainium https://privsec.dev/posts/android/f-droid-security-issues/
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#26What is it that differentiates the content of nixpkgs from the Termux available packages?
Size and freshness.
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#27Earlier quoted context omitted.
>Seeing so many submissions related to Linux on Android makes me surprised that it wasn't common knowledge on HN. HN seems to be mostly Apple & iOS users which are probably not very up to date on what's going on in the Android ecosystem, so HN is a good agregator to learn about these things.
>not very up to date on what's going on in the Android ecosystem I've run various terminals and even cut down distros on Android since all the way back in the Android 2.1 era. Maybe people have simply forgotten, maybe they don't care because they're stuck inside Apple's ecosystem, but there's nothing new here. The biggest news is that Google is actually trying to cut down on running downloadable executables for secur…
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#28Earlier quoted context omitted.
I tried searching the UserLand repo for how they implemented this, are they running native Linux apps in a GNU userland, possibly with namespaces/chroot, without virtualization? Does it do what Termux does and recompile binaries against the NDK? I've watched projects like this come and go for like 12 years now, and I've always thought that it's an interesting problem with interesting solutions.
I could be wrong, but I believe they were using a modified chroot with some preload libraries to intercept missing kernel calls.
preload based unprivileged chroot exists (libfakechroot), but doesn't work for static linked binaries.
Re: Nix-on-droid: Nix-enabled environment for your Android device (termux-based)
#29Seeing so many submissions related to Linux on Android makes me surprised that it wasn't common knowledge on HN. Another such gem: userland.tech (let's you run full distros or apps on linux, including Debain and Arch). I use it to run LibreOffice on my Android Tablet.
I tried searching the UserLand repo for how they implemented this, are they running native Linux apps in a GNU userland, possibly with namespaces/chroot, without virtualization? Does it do what Termux does and recompile binaries against the NDK? I've watched projects like this come and go for like 12 years now, and I've always thought that it's an interesting problem with interesting solutions.
There's a termux equivalent package called proot-distro you can install, if you're fine with CLI.