This is a small demo put together by the Canonical team. It features a dashboard not unlike the one you would have in Auto. It is used to illustrate the power of snaps in Ubuntu and Ubuntu Core.
The dashboard-ui is "powered" by the dashboard-controller snap. So you want BOTH installed.
If you then go in dashboard-controller and edit the code for the color (device-controller/app/main.py), the dashboard will change> Valid colors are blue, green and red. If you try to put another color, the ui will not accept it and request snapd to revert the controller to its previous version (because, yes, you can do that with snaps).
Furthermore, you will need to ensure that the proper plugs are connected to the proper slots. This is what you should have:
For dashboard-controller Interface Plug Slot Notes network dashboard-controller:network :network - network-bind dashboard-controller:network-bind :network-bind -
For dashboard-ui Interface Plug Slot Notes network dashboard-ui:network :network - network-bind dashboard-ui:network-bind :network-bind - snapd-control dshboard-ui:snapd-control :snapd-control manual
Note: both the network and network-bind will be connected automatically. But snapd-control WON'T BE VERY IMPORTANT: DO -> sudo snap connect dashboard-ui:snapd-control (which will connect to :snapd-control) OTHERWISE the rollback capability will NOT WORK
CREDITS: Bugra Aydogar, Linux Plumber, for the original code and snaps Hayden Chambers, Wizard of beautiful UIs (my team can't draw) Steve "skidooman" Barriault, VP of Linux Plumbers, for the hacking and marketing
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
On a Raspberry Pi running the latest version of Raspbian snap can be installed directly from the command line:
sudo apt update
sudo apt install snapd
You will also need to reboot your device:
sudo reboot
After this, install the snapd snap in order to get the latest snapd:
sudo snap install snapd
To install dashboard-controller, simply use the following command:
sudo snap install dashboard-controller
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.