Intel NUC

Ubuntu Core

We will walk you through the steps of flashing Ubuntu Core on an Intel NUC. At the end of this process, you will have a board ready for production or testing snaps.

User account prerequisites

An Ubuntu SSO account is required to create the first user on an Ubuntu Core installation.

  1. Start by creating an Ubuntu SSO account
  2. Import an SSH Key into your Ubuntu SSO account on this page. Instructions to generate an SSH Key on your computer can be found here

Hardware and software requirements

  • An Intel® NUC
    • The NUC needs to have its BIOS updated to the latest version. For this, you can follow online instructions on the Intel website
  • 2 USB 2.0 or 3.0 flash drives (2GB min.)
  • A USB keyboard, mouse and hub to accomodate all the USB pieces
  • A monitor with VGA or HDMI interface
  • A VGA or HDMI cable
  • A network connection with Internet access
  • An Ubuntu Desktop 16.04.2 LTS image
  • An Ubuntu Core image

Ubuntu Core image

Ubuntu Core 16 image for Intel NUC

Once downloaded, you can verify the integrity of the file by following this tutorial, using the SHA256SUM and SHA256SUM.gpg files.

Installation instructions

Prepare installation medias

  1. Download and copy the Ubuntu Desktop 16.04.1 LTS image on the first USB flash drive by following the Live USB Ubuntu Desktop instuctions for Ubuntu | Windows | Mac OS X
  2. Download the Ubuntu Core image for Intel NUC and copy the file on the second USB flash drive

Boot from the Live USB flash drive

  • Connect the USB hub, keyboard, mouse and the monitor to the NUC
  • Insert the Live USB Ubuntu Desktop flash drive in the NUC
  • Start the NUC and push F10 to enter the boot menu
  • Select the USB flash drive as a boot option
  • Select "Try Ubuntu without installing”

Flash Ubuntu Core

  • Once the system is ready, insert the second USB flash drive containing the Ubuntu Core image file
  • Open a terminal and type the following command to check for directories mounted on the internal storage:

    mount | grep mmcblk

    If there is any directory mounted on the internal eMMC storage, unmount it. For instance, if you see an occurence of /dev/mmcblk0p3 on /media/ubuntu/writable type ext4 (rw,relatime,data=ordered), run sudo umount /media/ubuntu/writable.

  • Run the following command, where <disk label> is the label of the second USB flash drive:

    xzcat /media/ubuntu/<disk label>/ubuntu-core-16-amd64.img.xz | sudo dd of=/dev/mmcblk0 bs=32M status=progress; sync
  • Reboot the system and remove the flash drives when prompted, it will then reboot from the internal memory where Ubuntu Core has been flashed

First boot

  1. The system will boot then become ready to configure
  2. The device will display the prompt “Press enter to configure”
  3. Press enter then select “Start” to begin configuring your network and an administrator account. Follow the instructions on the screen, you will be asked to configure your network and enter your Ubuntu SSO credentials
  4. At the end of the process, you will see your credentials to access your Ubuntu Core machine:
    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.

User login

Once setup is done, you can login with SSH into Ubuntu Core, from a machine on the same network, using the following command:

ssh <Ubuntu SSO user name>@<device IP address>

The user name is your Ubuntu SSO user name, it has been reminded to you at the end of the account configuration step.

First boot tips
  • During setup,console-conf will download the SSH key registered with your Store account and configure it so you can log into the device via ssh <Ubuntu SSO account name>@<device IP address> without a password.
  • There is no default ubuntu user on these images, but you can run sudo passwd <account name> to set a password in case you need a local console login.

Install and develop snaps

Your board is ready to have snaps installed — get started with the snap command

You can install a classic Ubuntu environment on top of Ubuntu Core to have a fully-fledged development environment and develop snaps on target ›

Ubuntu Server

As an alternative to Ubuntu Core, you can install Ubuntu Server 16.04 LTS, where you can use your favourite development tools to create and run snaps.

Ubuntu image

Download and copy the image on an USB flash drive by following the installation media instructions ›.

Installation instructions

Booting the board from the USB flash drive will start the Ubuntu installer.

  1. Insert the USB flash drive in the NUC
  2. Start the NUC and push F10 to enter the boot menu.
  3. Select the USB flash drive as a boot option
  4. The system will automatically execute the first stage of installation, including eMMC storage partitioning and image installation. After installation is complete, a prompt dialog will be shown and you will need to restart the system
  5. Boot the system on the eMMC storage and finish the install configuration
  6. Follow the instructions and enter appropriate options for language, WiFi, location (timezone), and keyboard layout
  7. Pick a hostname, user account and password
  8. Wait for the configuration to finish. If you connected to a WiFi network at step 4, it will take several minutes to download and apply additional updates. You can now reboot the system
  9. Ubuntu is installed. Use your account and password to log in