Mir
|
How to build a Mir-based appliance/kiosk using Ubuntu Core and Snappy packaging.
Mir as an appliance presently supports Mesa/DRM drivers. So almost any hardware that supports Mir on Ubuntu desktop will suffice. Virtual machines are generally NOT supported by Mir yet. So cannot be used here.
Your chosen machine must be plugged into ethernet by cable (wifi not supported), and that cable must be able to reach a DHCP server (e.g. a typical home router). For more details see: https://bugs.launchpad.net/snappy-ubuntu/+bugs?field.tag=wontboot
Ubuntu Core is a new product still and effectively pre-release. So you cannot download usable disk images yet. You need to make your own.
ubuntu-device-flash
$ sudo ubuntu-device-flash core --enable-ssh -o mysnappy.img
You now have a 20GB (by default) disk image to dump on your machine's drive. This part and variations on it are left as an exercise for the reader.
This can be troublesome. For known issues refer to: https://bugs.launchpad.net/snappy-ubuntu/+bugs?field.tag=wontboot
Once booted you log in as user ubuntu
with password ubuntu
.
If you haven't already, learn here: https://developer.ubuntu.com/en/snappy/
$ mkdir build $ cd build $ cmake .. -DMIR_ENABLE_TESTS=OFF -DMIR_PLATFORM=mesa $ make -j8
$ make snap
Once installed you will have two new snappy /apps
: mir and mir-demos
Presently only server and standalone binaries work. To run them with the full environment, libraries and drivers they require, use:
sudo /apps/bin/mir-run /apps/mir-demos/current/mir_proving_server sudo /apps/bin/mir-run /apps/mir-demos/current/mir_demo_standalone_render_surfaces etc
Automatic setting of privileges to avoid "sudo" is not yet implemented.
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015