Lindroid is an Android app that lets you run Linux in a container, with support for hardware-acceleration (liliputing.com)
from lemmyreader@lemmy.ml to linux@lemmy.ml on 18 Jun 21:18
https://lemmy.ml/post/17030668

#linux

threaded - newest

boredsquirrel@slrpnk.net on 18 Jun 21:44 next collapse

TLDR: Easy installation of something like Termux, GUI, Kwin and KDE, and a graphical display.

This is really good!

lily33@lemm.ee on 19 Jun 01:13 collapse

Not really. It seems to use a very different technology from termux.

drwankingstein@lemmy.dbzer0.com on 19 Jun 01:40 collapse

it’s actually not that far off a chroot, it uses LXC, the really cool thing thats going on is this wayland integration, I was waiting for termux-gui + wlroots to come along, but this might just land first

[deleted] on 19 Jun 03:00 next collapse

.

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:54 collapse

I havent looked into it yet, but ill be looking into doing an extra shim layer if this is the case. It wont be hard to set up some basic stuff for that, wlroots for instance is great for doing nested stuff since it can forward all of the inputs we need to the nested compositor

iturnedintoanewt@lemm.ee on 19 Jun 03:51 next collapse

So how does it render to screen? Because the biggest nag on any of these previous implementations came when I needed to use VNC to remotely connect to the desktop…

boredsquirrel@slrpnk.net on 19 Jun 09:54 next collapse

A better alternative would be spice, but just a guess

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:53 collapse

it uses a modified wayland compositor that hooks up directly to android surfaceview. Currently if you want a chroot/proot solution, I reccomend termux-x11. it’s good performance.

lily33@lemm.ee on 19 Jun 03:00 collapse

However, it also uses halium and libhybris. That means you can’t just install your favourite distro and upstream tools. Everything that needs GPU acceleration needs to be patched for libhybris. For example, that means no upstream wlroots - and the latest patched version I think is 0.12 or so.

trevor@lemmy.blahaj.zone on 18 Jun 22:03 next collapse

If someone could build a preconfigured image that has Phosh and basic phone apps, I would consider using this full time.

Hector@lemmy.ca on 18 Jun 23:05 next collapse

Would be even better if it can be registered as the default launcher too

nossaquesapao@lemmy.eco.br on 19 Jun 03:35 collapse

Could we uninstall almost all non system apps, make it autostart and prevent any other app from getting in the way?

laughterlaughter@lemmy.world on 19 Jun 08:00 collapse

Yes.

cityboundforest@beehaw.org on 19 Jun 00:15 collapse

I would as well

ShellMonkey@lemmy.socdojo.com on 18 Jun 22:05 next collapse

I recall using an app way back when I used to root and haxor all the mobiles that would do this. Kind of a virtualbox for the Nexus phones/tablets, but it needed root to do it. Will have to look into this, would be interesting if it can do so in user space somehow.

Edit: Damn, still needs root. Was a longshot to be able to hook into system resources without it but was hoping for some bridge function.

MonkderDritte@feddit.de on 19 Jun 08:27 next collapse

That bridge function would still need root (or critical level security holes) to be installed, if the ROM doesn’t ship it.

ShellMonkey@lemmy.socdojo.com on 19 Jun 10:24 collapse

Makes sense, I’m so accustomed to making virtual machines and such that it becomes just a thing but inevitably at some point admin access was required to create the hypervisor, the vnic, a virtual switch, etc. Without that restriction a piece of malware could readily exfiltrate data past a local protection by just making it’s own new pathway through on the fly or any number of other unpleasant things.

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:57 collapse

if you want a non root solution, termux proot + termux-x11, or eventually termux proot + termux-gui + wayland compositor

ExtremeDullard@lemmy.sdf.org on 18 Jun 23:31 next collapse

So basically it’s UserLAnd with accelerated graphics instead of VNC.

lily33@lemm.ee on 19 Jun 01:16 collapse

Actually, no, this seems to work on a very different principle.

electricprism@lemmy.ml on 19 Jun 00:51 next collapse

So I could use this to run PostmarketOS inside Android?

eshep@social.trom.tf on 19 Jun 04:43 next collapse

@lemmyreader @electricprism There is someone who managed to convert a proot-distro version of #alpine into a #pmos one. It's not as great as it may sound though.

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:58 collapse

there are massive limitations to termux proot/chroot that don’t apply here. proper touch support is one of them.

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:57 collapse

Yes.

TheFonz@lemmy.world on 19 Jun 05:09 next collapse

Does this mean I could install and run Blender on my phone???

PlexSheep@infosec.pub on 19 Jun 08:48 next collapse

You can try

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:56 collapse

you can already try that with chroot/proot, this just gives far better integration for input handling and stuff

xavier666@lemm.ee on 19 Jun 05:19 next collapse

Yo dawg, I heard you like Linux. So I built a Linux container for your Linux phone. Now you can enjoy Linux while enjoying your Linux phone.

jol@discuss.tchncs.de on 19 Jun 06:57 next collapse

We definitely living in a simulation.

laughterlaughter@lemmy.world on 19 Jun 07:58 next collapse

Not that I don’t disagree with you, but how did you come down to this conclusion?

jol@discuss.tchncs.de on 19 Jun 11:01 collapse

We’re so many levels of abstraction and emulation deep, that the natural conclusion is that there’s no reason to believe we’re at the top of the abstraction, but somewhere in the middle.

laughterlaughter@lemmy.world on 19 Jun 13:02 collapse

I understood that. But I don’t see how you came down to this conclusion simply because someone put Linux inside Linux.

When you put matryoshka russian dolls one inside the other, do you also think “man, we live in a simulation”?

jol@discuss.tchncs.de on 19 Jun 14:58 collapse

Yes

laughterlaughter@lemmy.world on 19 Jun 15:49 collapse

Oh.

dutchkimble@lemy.lol on 19 Jun 18:27 collapse

Wonder if it’s running on Linux

smileyhead@discuss.tchncs.de on 19 Jun 09:37 next collapse

You can call it GNU/Linux if the same name for OS and kernel turns out to be confusing for you.

fossilesque@mander.xyz on 19 Jun 10:30 collapse

<img alt="" src="https://mander.xyz/pictrs/image/cf3c79cd-1cd1-4377-9bf2-796307846f86.jpeg">

cafuneandchill@lemmy.world on 19 Jun 06:41 next collapse

You could emulate Android on Linux before, now you can also emulate Linux on Android

The circle of libe is compleet

eshep@social.trom.tf on 19 Jun 06:47 next collapse

@lemmyreader @cafuneandchill PostmarketOS in chroot in termux in waydroid on PostmarketOS 🤘

critical@reddthat.com on 19 Jun 08:53 next collapse

Now the only question is: How deep can you go?

EddoWagt@feddit.nl on 19 Jun 09:28 collapse

We can also emulate windows on android and WSL obviously on windows.

So we can use Linux to emulate Android, which in turn emulates windows to run WSL

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:55 next collapse

well it’s not really emulation, if you are familiar with LXC it’s that, it’s pretty much a super chroot

cafuneandchill@lemmy.world on 19 Jun 18:00 collapse

Technically true, but it’s easier to refer to it as emulation

joe_cool@lemmy.ml on 19 Jun 19:55 collapse

It’s also quite wrong.

cafuneandchill@lemmy.world on 20 Jun 01:38 collapse

<img alt="" src="https://lemmy.world/pictrs/image/eab141b6-7cfd-44cc-912c-3788d4ce502d.jpeg">

joe_cool@lemmy.ml on 20 Jun 01:48 collapse

Oh I like that one. Yoink! Thanks.

joe_cool@lemmy.ml on 19 Jun 19:54 collapse

I have been running arm32 elf binaries and Xorg on my HTC M8 stock kernel with Android 4. That’s not a new thing. Libreoffice and Xfce ran pretty well on that thing.

iturnedintoanewt@lemm.ee on 19 Jun 07:07 next collapse

*is going to be.

InnerScientist@lemmy.world on 19 Jun 09:09 next collapse

You need a phone, tablet, or other device that’s been rooted.

Damit

fossilesque@mander.xyz on 19 Jun 10:29 next collapse

Me in this thread: revolvingdoor.gif

drwankingstein@lemmy.dbzer0.com on 19 Jun 14:55 next collapse

look into proot+termux-x11 if you don’t have a rooted device, it’s still very good.

Tja@programming.dev on 19 Jun 19:11 next collapse

I looked on the play store and fdroid, haven’t found anything. I’d love to have a Linux chroot with CLI linux software, don’t want to root my phone. Halp.

Tja@programming.dev on 19 Jun 19:21 collapse

For the lazy, in termux:

$ pkg install proot
$ pkg install proot-distro
$ proot-distro install debian
$ proot-distro login debian

Profit??

SynopsisTantilize@lemm.ee on 20 Jun 09:46 collapse

Commenting here for a good time.

joe_cool@lemmy.ml on 19 Jun 19:52 collapse

It’s just quite a bit slower. Everything else other than messing with /sys and android processes works the same.

HDMI, mouse and keyboard and you have an office pc.

drwankingstein@lemmy.dbzer0.com on 19 Jun 20:17 collapse

Yup, I used it all the time with samsung dex, works great

KillingTimeItself@lemmy.dbzer0.com on 20 Jun 01:47 next collapse

Rule of thumb for android users, all of the interesting shit is shit you can’t do unless you’re rooted.

GlenTheFrog@lemmy.ml on 21 Jun 13:07 collapse

I remember when it used to be all the REALLY interesting stuff was root only, yet a lot of normal interesting stuff was non-root. Now even with root, modern Android can be a pain and the interesting stuff just pales in comparison with true Linux

KillingTimeItself@lemmy.dbzer0.com on 21 Jun 18:41 collapse

yeah, linux has me spoiled, just being able to do whatever i want as i please is truly a modern art.

Android made me realize how incredible linux was by being so utterly painful.

fossilesque@mander.xyz on 20 Jun 14:55 collapse
KillingTimeItself@lemmy.dbzer0.com on 20 Jun 01:47 next collapse

this is the most useful thing android will ever do.

Once rooted.

bier@lemmy.blahaj.zone on 26 Jun 20:09 collapse

What’s the difference to “Linux deploy”?