Hey all,
I’ve been focused on enabling Ubuntu Core for embedded graphical applications using Wayland - things like web kiosk, digital signage and industrial user interfaces. Myself and @alan_g are working on documentation for this, but I wanted to share a tool and an example web kiosk snap for you to try out
First off, we wanted to make testing a GUI snap as easy as possible, so allow me to announce ubuntu-core-vm - a simple utility that brings up Ubuntu Core in a VM:
snap install --beta ubuntu-core-vm --devmode
For the first run, create a VM running the latest Core image:
sudo ubuntu-core-vm init edge
From then on, you can spin it up with:
sudo ubuntu-core-vm
You should see Ubuntu Core booting in new window. It’ll ask you the usual questions to activate the Core image - once completed you can log in. Note the login instructions from Core are inaccurate, change to similar to those ubuntu-core-vm gives you:
ssh -p 5555 $USERNAME@localhost
Now you’re inside the VM, you can install Mir-kiosk with
snap install mir-kiosk
and once completed, you should see the orange-fade-to-black animation to say it is working.
Now let’s install something interesting:
snap install --beta chromium-mir-kiosk
It won’t work until you run this command however (provisional, should go away soon)
snap connect chromium-mir-kiosk:wayland-socket-dir mir-kiosk:wayland-socket-dir
Need to restart the daemon, this will do it:
snap stop chromium-mir-kiosk
snap start chromium-mir-kiosk
and you should see a fullscreen webpage in your VM! (There are some configuration options in the snap, have a play!)
In summary, ubuntu-core-vm will help you develop your graphical snaps, and chromium-mir-kiosk is a nice example of what’s possible!
Have a great weekend all!
-G