How to use Ubuntu Core on Raspberry Pi

If you strip away all the advanced features from Ubuntu, what's left is Ubuntu Core. This is an operating system that even the Raspberry Pi 2 can run, not to mention later models like the Pi 3 and 4.

Ubuntu is a popular Linux distribution that offers stability, multiple versions with a graphical interface, and a community of enthusiasts that help support each other. If you strip away all the advanced features from Ubuntu, what's left is Ubuntu Core.

This is an operating system that even the Raspberry Pi 2 can run, not to mention later models like the Pi 3 and 4. Putting these two familiar names together will give you a good result. stable, regularly maintained and supported for years to come.

Let's dive into the possibilities that Ubuntu Core and Raspberry Pi can bring together.

Requirements & Settings

The following hardware will help you get started with Ubuntu Core:

  1. Raspberry Pi 2, 3, 4, 400, Zero 2 W or Compute Module 4
  2. 4GB+ microSD card and reader
  3. WiFi network or Internet connection
  4. The screen has an HDMI interface
  5. One HDMI cable
  6. USB keyboard

Once you have the necessary hardware, you will need to install Ubuntu Core on your Raspberry Pi. You can also download the Ubuntu Core image and use the Raspberry Pi Imager tool to install it. During the installation process, you will want to make sure that SSH is enabled so that you can access via SSH to your Raspberry Pi when required.

Real-life use cases for Ubuntu Core

There are many reasons why you might want to use Ubuntu Core instead of the standard Raspberry Pi OS.

IoT & application development

Picture 1 of How to use Ubuntu Core on Raspberry Pi

 

Up to 10 years of support (with regular security updates and patches) ensures peace of mind for smart applications on your Raspberry Pi. Each IoT device has its own cloud platform to host and manage its own IoT app store. This will allow you to build your own ecosystem and manage your monetization strategies as you see fit.

When you need to perform bug fixes, Ubuntu Core enables remote management to minimize downtime. If you're new to the idea of ​​cloud-based devices, explore the world of the Internet of Things (IoT) for details.

Snap creates an easy way for developers to simultaneously deploy applications to multiple Linux distributions. Additionally, Snap packages use a container system that allows applications to use hardware specific to its needs. Snapcraft (Snap) has advantages and disadvantages that you should review before starting to develop for the snap ecosystem.

Media server

Picture 2 of How to use Ubuntu Core on Raspberry Pi

For enthusiasts, Ubuntu Core and Raspberry Pi are the perfect pair to deploy servers used to store and share important files, stream video and audio content, and system security.

A network-attached storage system will allow you to store important files on your Raspberry Pi and share them between computers on your home network. Samba is an application that comes with Ubuntu Core.

 

Creating a media server is another great option you can run on your Raspberry Pi. Instead of just being able to install Plex Server itself as an image, you can install your Plex Server in a Docker container. Once your Plex Server is installed, you will be able to access Plex via the address [Raspberry Pi IP]:32400 (unless you have modified the default port in the server setup).

Containers & web servers

Picture 3 of How to use Ubuntu Core on Raspberry Pi

When you're looking for a secure space for your next project (or media server), Docker containers are a great way to ensure that your system isn't affected by a newly installed application. in the environment contained in this container. Installing Docker on Linux is simple. If you want a web user interface, you can also install Portainer on Linux.

Another web UI, Cockpit, is a great way to manage your Ubuntu Core system from another browser on your home network. While SSH is a popular method for remotely accessing a non-graphical system, it's nice to have a web-based interface to help you monitor remote computer activity.

Machine learning

Picture 4 of How to use Ubuntu Core on Raspberry Pi

Mahcine learning models often have specific requirements. A scaled-down version of Kubernetes, MicroK8s, provides a solution to this need. MicroK8s is ideal when you suddenly need to provide a service to many people (e.g. ChatGPT chatbot).

You can eliminate cluster administration with MicroK8 and run your machine learning efforts in a cluster with high efficiency. MicroK8 can be installed locally using Snap and will allow your installed machine learning container(s) to run natively. This makes development, including GPU-accelerated projects, much easier to do in the pre-production stages.

 

Docker is a familiar name in the container world; however, Docker is more suitable for container runtime (running applications). While the Kubernetes (MicroK8s) ecosystem may be more complicated to initially set up, in the long run you will enjoy the ability to scale and reduce unnecessary administrative tasks.

Additionally, the MicroK8 container can be set up in less than 60 seconds. While many professionals will use this solution, this is also useful for developers who want to develop locally.

Update 13 October 2023
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile