Running GUI apps in container

This is still raw, but may give some ideas for some people - for example running DOOM :slight_smile:

/container/config/set registry-url=https://ghcr.io
/container/add remote-image=linuxserver/baseimage-kasmvnc:alpine320 root-dir=your_root_dir interface=veth1 logging=yes

then start your container:

/container start 0

after starting you will get some permission errors (we will check whats going on) but you can work around it with:

/container shell 0

change root folder to abc user:

chown -R abc:abc /root

restart container:

/container stop 0
wait...
/container start 0

veth port 3000 should map local GUI to web
pic-selected-241024-1906-47.png

[quote=wfburton post_id=1110207 time=1732122458 user_id=215408]
That’s interesting.. I was assuming some type of X11 terminal app.

What’s it running on x86?
[/quote]

this is running on arm64 5009

Great work here!

I’ve wanted to do same X11/RDP/VNC/etc approach for a while… but got similar permissions issues before. Now I’ve never tried the “s6-overlay” approach to “multi-service containers” that your base Dockerfile uses. I do know even simple X11 alpine container with openrc gets permission errors too (and a lot of times related to /run directory and user permissions). So curious at what y’all find…

I got it to work on my home/office 2116. Firefox is responsive enough, although throughput tests leaves a bit to be desired (1Gbps is all). The CPUs were pretty busy, as expected without a dedicated GPU handling things.

The first immediately useful thing I can think of would be running The Dude client in Wine on an ARM router (that’s also running The Dude’s polling package) instead of running it in a VM on separate hardware. But alas, no wine package exists for Alpine 3.2.

LOL, see http://forum.mikrotik.com/t/container-with-wine-dude-x11-forwarding/168611/1

For Dude, it’s not just wine, but a static QEMU too. And static QEMU are also not in Alpine APKs either (since needs 32-bit Intel too).

Aye, time to play OpenArena on my 5009 :smiley:

Eng Guy: Checkout this link

Me: Oooh! Neat...

... a few moments later...

{FFS, crawling out of hole} https://github.com/3xHelix/RBdoom

*Dusts off hands* ... Damnit Ed! Now it runs doom.