Install Ubuntu Server on a Raspberry Pi 2 or 3

Raspberry Pi

Install Ubuntu Server

We will walk you through the steps of flashing Ubuntu Server on a Raspberry Pi 2 or 3. At the end of this process, you will have a fully fledged development or production environment..

Minimum requirements

  • A Raspberry Pi 2 or 3
  • A microSD card
  • An Ubuntu Server image
  • A monitor with an HDMI interface
  • An HDMI cable
  • A USB keyboard

Installation instructions

  1. Download Ubuntu Server

    Get the correct Ubuntu Server image for your board:

  2. Flash the microSD card

    Copy the Ubuntu image on the microSD card by following the installation media instructions.

  3. Install Ubuntu Server

    1. Attach the monitor and keyboard to the board. You can alternatively use a serial cable.
    2. Insert the microSD card and plug the power adaptor into the board.
  4. Login

    When prompted to log in, use "ubuntu" for the username and the password. You will be asked to change this default password after you log in.

First boot tips

You can install a desktop if you like, here are some popular ones:

For more details about Raspberry Pi specific packages included with this image and further customisations, such as accelerated video drivers and optional package repositories, you can refer to the RaspberryPi wiki.

Get started with snaps

Your board is now ready to have snaps installed, it's time to use the snap command to install your first snap.

The Snap Store is where you can find the best Linux apps packaged as snaps to install on your Ubuntu Core device and get started with your secure IoT journey.

Before you start, get your IoT security story straight

A recent Canonical survey of 2,000 consumers suggests that a shockingly high percentage of connected devices may be vulnerable to botnets, hackers and cyber attacks:

  • Only 31% of consumers update the firmware on their connected devices as soon as updates become available.
  • 40% of consumers have never performed firmware updates on their connected devices
  • 40% of consumers believe that performing firmware updates on their connected devices is the responsibility of either software developers or the device manufacturer
  • All information provided will be handled in accordance with the Canonical privacy policy.