Skip to main content
Snappy-Ubuntu-Core

How to install Snappy Ubuntu Core in Raspberry Pi 2

There is no much documentation about Snappy Ubuntu Core, but I tried to assemble different sources to build a single document covering all aspects of Snappy Ubuntu Core installation.

As Canonical says, Snappy Ubuntu Core is a new rendition of Ubuntu with transactional updates, a minimal server image with the same libraries as today’s Ubuntu, but applications are provided through a simpler mechanism. Snappy apps and Ubuntu Core itself can be upgraded atomically and rolled back if needed, this is a bulletproof approach that is perfect for deployments where predictability and reliability are paramount. It’s called “transactional” or “image-based” system management.

UPDATE: You can download an Snappy Ubuntu Core image for Raspberry Pi 2 with all pre-configured configurations explained on this How To at https://mega.co.nz/#!D1JTmBbY!2IE6DyY5J7KG8CKQ-OVjbf5CJib8C_k_V07xWDHuXqo

The MD5 checksum of the file is 721a55c6c3906cc2375b512ea4fd4203

Let’s start to work:

The first thing we must do is download the Spappy Ubuntu Core image from http://www.raspberrypi.org/downloads/, when the image is downloaded, you must follow the image installation guides (depending on your S.O) to get your SD system card.

After the boot process, you must log in with the default user/password (ubuntu/ubuntu)

One of the big issues by now (alpha-02) is the lack of Wi-Fi support out of the box because of the lack of wpa_supplicant tools to authenticate. I’ve found a great post to solve it:

First download the missing deb files to your desktop and copy them over to your Raspberry Pi:

wget http://ports.ubuntu.com/pool/main/w/wpasupplicant/wpasupplicant_0.7.3-6ubuntu2.3_armhf.deb

wget http://ports.ubuntu.com/pool/main/libn/libnl3/libnl-3-200_3.2.24-2_armhf.deb

wget http://ports.ubuntu.com/pool/main/libn/libnl3/libnl-genl-3-200_3.2.24-2_armhf.deb

wget http://ports.ubuntu.com/pool/main/p/pcsc-lite/libpcsclite1_1.8.11-3ubuntu1_armhf.deb

Then on the RPi remount the system partition read-write and install the packages:

sudo mount -o remount,rw /

sudo dpkg -i *.deb

Create a config file for your wlan0 interface:

cat <<EOF | sudo tee cat /etc/network/interfaces.d/wlan0

allow-hotplug wlan0

iface wlan0 inet dhcp

wpa_ssid “<YOUR_WIFI_NAME>”

wpa_psk “<YOUR_PASSWORD>”

EOF

sudo chmod go-r /etc/network/interfaces.d/*

And finish up by remounting the root partition as read-only:

sudo mount -o remount,ro /

Now, your system must be Wi-Fi enabled!

Another big issue is that when you try to use the Snappy tool to install / update anything, it crashes with a certificate error. This turns out to be due to the fact that the system time is incorrect and by default Snappy don’t work with NTP servers.

To solve that, you must setup the date manually:

sudo date -s “Sat Feb  7 09:57:32 GMT 2015”

Or try to enable NTP via systemd:

sudo timedatectl set-ntp true

At this time, we can use Snappy tool to manage our packages

snappy info to get information about installed packages

snappy update-versions to check the cloud for newer versions of any installed components.

snappy search to search for packages

snappy install to install new packages

The first useful package that we can install is webdm, it’s a web based package manager on port 4200.

sudo snappy install webdm

 

Snappy Ubuntu Core Store
Snappy Ubuntu Core Store

 

Now we have a basic but working Snappy Ubuntu Core instance working.

Sources:

http://developer.ubuntu.com/en/snappy/

https://darrenjw2.wordpress.com/2015/02/07/getting-started-with-snappy-ubuntu-core-on-the-raspberry-pi-2/

http://www.marinus.nu/2015/02/enabling-wifi-on-snappy-ubuntu-core.html

http://www.raspberrypi.org/forums/viewtopic.php?f=56&t=98514&p=683728&hilit=snappy#p683728

 

 

Leave a Reply

%d bloggers like this: