Install Ubuntu Core on Raspberry Pi 3

Install Ubuntu Core on Raspberry Pi 3

by April 14, 2020

In this post we’re going to walk you through installing Ubuntu Core on a Raspberry Pi 3.

Raspberry Pi is a prime target for Ubuntu Core. And it’s a great platform to get started with as it has great support. Much of this post was adapted from this tutorial.

Step 0: Before you start

In this post we are assuming that you are running linux on your machine, but you should be able to adapt it easily enough if you’re running a Windows or OSX.

Make sure you have for following before you get started:

  • A Raspberry Pi 3
  • Micro SD card (2GB or larger, if you’re buying one why not go big, 64GB?)
  • Internet connection to download >350MB
  • Monitor with HDMI
  • HDMI Cable
  • USB Keyboard
  • USB-to-SD dongle IF the machine where you will write the SD does not have an SD slot
  • Local network (wifi or ethernet) connection with access to the internet. The raspberry pi and your laptop will need to both be connected on this network at the same time.

Step 1: Set up your Ubuntu SSO account

If you do not have an Ubuntu One account with ssh keys, follow the directions here to set it up

Step 2: Download

Start by downloading the following files

Step 3: Flash the microSD card

  1. Open zip file of Etcher that you downloaded in the previous step.
  2. Extract the file to your desktop (or anywhere that’s easy to find). It should be named something like “balenaEtcher-1.5.59-x64.AppImage”.
  3. Insert you SD into your laptop (If you’re using a usb dongle connect it with the sd card inserted)
  4. Now navigate to the file you extract and open it. The Etcher UI will appear.
  5. Click “Select Image” and find the Ubuntu Core image that you downed in step 2.
  6. Etcher should automatically select SD card you insert. Verify it chose the correct one.
  7. Click “Flash!”
  8. You’ll be prompted to insert your password.
  9. It will take a couple minutes to flash your sd. When it’s finished close Etcher and eject your sd card.

Step 4: First boot setup

Now you’re ready to boot your raspberry pi. Insert the sd card. Attach the usb keyboard and monitor. Then connect the power. When it boots simply follow the instructions on the screen. It should walk you through the following steps:

  1. The Ubuntu logo should appear on the screen. Then it will go blank for several minutes. This can take awhile, but don’t worry it’s working.

  2. Press enter to begin the configuration

  3. Select the network you’re using. (It should be the same network as your laptop)

    1. If you’re using wifi, you’ll select ‘wlan0’
    2. Then choose configure network.
    3. Then choose “Choose a visible network”
    4. Find your wifi network in the list
    5. Then use the arrow keys to navigate to the password field and enter the wifi password
    6. Choose done. Then choose ‘done’ two more times.
  4. It will ask you to hit enter to configure the device again. Press enter. Then press enter again.

  5. Enter your email address associated with your Ubuntu SSO account.

  6. If all worked well you’ll see a message like below. It should also display the ip address of your device.

    Configuration Complete

    This device is registered to <Ubuntu SSO email address>. Remote access was enabled via authentication with the SSO user <<Ubuntu SSO user name> Public SSH keys were added to the device for remote access. <Ubuntu SSO email address> can connect to this device via SSH:

     ssh  &lt;<Ubuntu SSO user name&gt;@&lt;ip-address&gt;
    
  7. Press enter to exit the configuration.

Step 5: Connect over SSH

Now your device is fully set up and you can begin using it. To connect to the pi. Run the command below: ssh <your-sso-id>@<ip-address>

It’s a brave new world here in Ubuntu Core!