termux / termux-x11

Termux X-server add-on.
https://termux.dev
GNU General Public License v3.0
2.59k stars 371 forks source link

Integration with AVF Linux on Android? #833

Closed ycavan closed 3 weeks ago

ycavan commented 3 weeks ago

Would it be possible to add an XHost feature or a minimal ssh server to pipe X over from the new Linux AVF container in Android 15?

From the AVF container I can ping my phone's IP address but when trying to perform glxinfo -B -display host.local.network.ip:0 I get the message that it can't connect to the X server.

The other thing that would be nice is if termux-x11 could also incorporate a pulseaudio server.

I'm aware that Google is working on graphics and audio at some point, but I believe termux-x11 could be a great stopgap.

twaik commented 3 weeks ago

You can not "pipe" unix domain socket into AVF. AVF is effectively a VM and has its own kernel. The only thing you can do is starting X server with disabled security and enabled TCP sockets (termux-x11 -listen tcp -ac). But Termux:X11 is not optimized for this usage scenario, you will face all problems related to running X11 apps over network.