How to get started with Ubuntu Core on Raspberry Pi

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everybody if you are a raspberry pi user and you are an ubuntu fan you have come to the right place this is the first video of a series where we are going to speak about raspberry pi and core the ubuntu flavor optimized for iot and embedded devices my name is david biamonte and i am product manager of ubuntu core at canonical and during this series i will try to give you some insights into what you can do with wound core on a raspberry pi and guide you through the process you should also bear in mind that many of the examples and tutorials that we will be using along this series can be directly extrapolated to other platforms so let's get started the goal of this first video is to introduce ubuntu core so that all of you have a clear understanding of what ubuntu core is and why it is an interesting option for you on a raspberry pi in this video i will try to leave out many technical details and we will get deeper into some of those details in some of the upcoming videos and of course the main goal is to guide you through the first steps so that you can have a system up and running there is a lot of useful information in the description of the video please review it and feel free to reach out to us if you have any questions or doubts so let's dive straight in what is ubuntu core unto core is an ubuntu flavor optimized for iot and embedded devices that is systems with limited resources in terms of cpu memory and storage in comparison to pcs systems like raspberry pi and similar platforms are perfect examples of embedded systems and what does ubuntu core actually offer the first important thing is that unto core is ubuntu it is based on lts versions using the same kernel and libraries but removing all the unnecessary packages so that it is more lightweight it is fully containerized based on the snaps that means that all the applications have to be snaps that are strictly confined we will dive deeper into that in the next slide there is also a large ecosystem of applications available in the snapstore and those applications the kernel and the whole operating system can be updated using transactional proof updates that means that if an update eventually fails there is an automatic rollback to the previous version securities in the dna of the operating system reducing the attack surface for connected devices and receiving promptly security patches from canonical as soon as they are detected and fixed and last but not least unto core has been certified for a large number of devices including raspberry pi's certification means that ubuntu core has been enabled on those devices by our engineers and then the devices are automatically and rigorously tested in our labs to check that the new system patches and updates don't break the system and what are snaps snaps are the building blocks of ubuntu core simply put snaps are applications that are packaged along with their dependencies so they are immutable and fully portable strictly confined snaps provide full application isolation a strictly confined snap can't break the system but additionally the system or other applications running on it can't affect or break the performance of another snap every snap is based on a base app which is a special kind of snap that provides a runtime environment with a minimal set of libraries that are common to most applications and ubuntu core is a fully containerized operating system based on strictly confined and snaps revolutionary thing here is that not only the applications are snaps but also the kernel and the rest of the system and additionally snaps can be used across many other operating systems that support snaps so you can you can use exactly the same package in other systems without portability or dependency issues and how do we work with undecor okay it's very simple unto core is not the typical operating system over which you are going to develop applications it is typically an operating system that you flash deploy your rapidly your applications on and just works it is easy to maintain it is secure and always up-to-date according to your rules so the applications are typically developed externally you can develop for instance your applications using unto desktop and as those applications are snaps you can even test them in that system then you can publish your applications to the snapstore and deploy them on woodcore it's a very simple and straightforward process there are also ways to install snaps manually without being published to the store all the information related to how to work with snaps can be found at snapcraft.io docs you can find the links in the description of the video as i mentioned earlier ubuntu certified hardware program is targeted to create a reliable framework so that developers don't have to worry about enabling the operating system on a specific hardware and they can just get focused on application development and the good news for developers is that the whole family of raspberry pi devices has been certified with wound core and so you know that your applications are going to work smoothly and you're going to have an ultra reliable device and why should i use ubuntu core my raspberry pi instead of any other distribution like ubuntu desktop well it depends if you are going to use your raspberry pi as a micro desktop pc where you are going to run desktop applications to development and so on then probably ubuntu core is not the operating system that you need but if on the other hand you just want to use raspberry pi for a specific purpose then you should give indicator try for instance imagine that you want to run a domotic system home nas a media center or a kiosk in the beginning you know working on it developing and so on that's fun but when you put it in its place you just want it to work autonomously and as much as unattended as possible so these are some of the interesting examples that we will show you in this video series we will dedicate one video bridge use case to explain step by step how to build this kind of applications but there are many more reasons why you would like to run wound core on raspberry dice you can develop your applications or your on your desktop pc without needing to cross compile for arm most of your time as developers is typically spent solving portability or library dependency issues you know we usually have to install a specific kernel or compile different versions of libraries to solve some conflicts which is a major headache in this case as applications are deployed as snaps and they have other dependencies included you're going to get rid of all those issues with the benefit that you can use those applications that you have developed as a snap across many operating systems additionally ubuntu core keeps your system up-to-date and secure applying the latest security patches and finally you have an ultra reliable system as applications can't make the system break and the system can't make the applications break okay so now we have finished with the boring stuff it was necessary to have some context but it is definitely more fun to start playing with the raspberry pi so let's get started with unto corn pies the process is quite straightforward we we download an image for our device and needs it can be 32 or 64 bit we flash the sd card and boot and configure the system once you have the system up and running you can start installing applications these are just the simple stats steps to get started in follow up videos we will show you how to build a custom full wound core image including the applications that you need so let's download an image first of all we open the ubuntu.com download raspberry pi page we scroll down to find download wound core section we see that we can choose between 32 bit and 64 bit versions raspberry pi 2 only supports 32-bit images but the rest of the raspberry pi's support both so 64-bit is strongly recommended for most of the versions and as i have a raspberry pi 4 i will download the 64-bit image and i will try the latest version of unto core which is the undue core 22 beta okay this takes a while so let's fast forward a little bit the next step is to flash the sd card okay there are many tools out there two flash sd cards but i think that the simplest one is raspberry pi imager so that's the one i will show you first of all we have to choose the operating system image we have several options here if you want to choose one of the stable window core images we click on the other general purpose operating systems ubuntu and scroll down to the desired image okay but i will show you how to flash the custom image that we have downloaded instead okay we go back to the main menu we select use custom and select the image that we have downloaded now the application jumps to the main screen so that we choose the storage media which is the sd card in my case i have already flashed another unit or image but i will overwrite it and let's click on write this might take a while and it depends on the speed of the computer and the card so let's fast forward again until it has finished so let's move to the next step which is to insert the sd card in my raspberry pi 4 and boot it before that we need to plug in a keyboard and a display as we will need them for the configuration process the first boot takes quite a long time we have flashed the image but wound core has to self-install during the first wood and perform a second boot and this takes some minutes so let's fast forward again during this process you might be required to press enter several times okay so now we see that uh it has finished and we started with the configuration wizard the first step is to configure the network you can configure manual or automatic ip address with dhcp in my case i will take it automatic and it takes some seconds until the ip address is acquired okay okay so here it is a wifi interface can be configured instead if you have a wi-fi usb dongle okay the next step is to register the device with your onto one account if you don't have an one-to-one account you can create it in login.ubuntu.com i enter my account and press enter here and i get a message indicating that this device has been registered to my account and i have ssh access to the device during this process the ssh public keys were downloaded from ubuntu 1 to the raspberry pi okay and we are just missing the final step so let's install an application first we need to log into the raspberry pi using ssh once we are in we can start checking the list of snaps installed we see the base snap the core 22 the cut to the snap the kernel snap and the snap d if you want to know more about all these snaps please check the documentation we will give you more details in upcoming videos too i want to install another red so i search for the package here it is and i install it and after the installation i want to check that it has been effectively installed and the services active okay so here it is so the next step is i enter in the browser the url and the port 1880 and check that node-red is effectively working okay i can just well skip this and add some notes here deploy and check that it is effectively working okay and that's it let's do a quick recap what we have seen in this video is first of all what ubuntu core and snaps are then we saw why and when wound core can be useful for you on a raspberry pi and then we have seen some simple steps to get started with ubuntu core on raspberry pi so thank you very much for watching this video and stay tuned for more videos of the series thank you very much
Info
Channel: Canonical Ubuntu
Views: 30,729
Rating: undefined out of 5
Keywords: raspberry pi, raspberry pi 4, ubuntu core, linux operating system, ubuntu 22.04, best raspberry pi projects, best os for raspberry pi, setting up raspberry pi, linux raspberry, linux raspberry pi 4, linux raspberry pi 3, how to install linux on raspberry pi 4
Id: aekZhezFCHM
Channel Id: undefined
Length: 14min 1sec (841 seconds)
Published: Tue Jun 07 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.