Community discussions

MikroTik App
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Topic Author
Posts: 431
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Running GUI apps in container

Wed Nov 20, 2024 6:50 pm

This is still raw, but may give some ideas for some people - for example running DOOM :)
/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
You do not have the required permissions to view the files attached to this post.
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Topic Author
Posts: 431
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: Running GUI apps in container

Wed Nov 20, 2024 7:25 pm

That's interesting.. I was assuming some type of X11 terminal app.
What's it running on x86?
this is running on arm64 5009
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4965
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: Running GUI apps in container

Thu Nov 21, 2024 12:05 am

Great work here!
after starting you will get some permission errors (we will check whats going on)
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...
 
User avatar
sirbryan
Long time Member
Long time Member
Posts: 524
Joined: Fri May 29, 2020 6:40 pm
Location: Utah
Contact:

Re: Running GUI apps in container

Thu Nov 21, 2024 12:12 am

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.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 4965
Joined: Sun May 01, 2016 7:12 pm
Location: California
Contact:

Re: Running GUI apps in container

Thu Nov 21, 2024 12:32 am

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 viewtopic.php?t=198450&hilit=dude+container

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).
 
User avatar
ksx4system
Frequent Visitor
Frequent Visitor
Posts: 58
Joined: Sat Nov 13, 2010 7:08 pm
Location: Poland
Contact:

Re: Running GUI apps in container

Thu Nov 21, 2024 3:23 pm

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

Aye, time to play OpenArena on my 5009 :D