How to Install Ubuntu on a Raspberry Pi

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back to another raspberry pi tutorial in this one i'm turning a raspberry pi into an ubuntu running machine i'm going to show you three options turning it into an ubuntu server in ubuntu desktop and then installing an ubuntu version of a light desktop let's get right to it on ubuntu's website they've actually made a page for this detailing all the options so you got the desktop 64-bit you can only do this on the newer pi's ubuntu server 64-bit or 32-bit and you can do this on most of the pies notice the pi 2 is 32-bit and same with the 0-2 it's 32-bit only first off what's the difference between server and ubuntu desktop server in this case means you're never going to use the display maybe you'll have a very primitive display just to help you with setup but you're not going to have a nice graphical desktop or interface at all it's mostly going to be remote access through the terminal finally we have ubuntu core which is their iot operating system i'm not going to download off of the ubuntu page though i'm going to be using the raspberry pi os imager it works very well and is what i use for most of my raspberry pi operating system needs i already have the windows one installed you can download the mac or ubuntu one if you'd like it looks like this before moving on what do we need for this project if you're just doing an ubuntu server then all you need is the raspberry pi a micro sd card a power source and then an internet connection but if you want to install the desktop i'm not sure there's a way to install desktop without a computer monitoring keyboard so you're going to need some kind of hdmi connection in the case of the 4b it's a micro hdmi going into a monitor with a mouse and keyboard all right so i'm going to plug my micro sd into my computer let's do the server version first so choose the os scroll down to other general purpose os ubuntu and then ubuntu server and now just double check that you're getting one that's right for your raspberry pi in this case i have a pi 2 with me and a pi 4 with me i'm just going to do this on the pi 4 because the 4 has wi-fi installed click that now click my storage and that's the micro sd i just inserted make sure you're not formatting some like important drive of yours and then click write this will take about eight minutes and let's delete everything all right all written i'm going to click continue and replug in my micro sd card and now open up the file explorer to wherever that micro sd card is in this case mine's the d drive and you got all the system boot files scroll down to the one that says network config open that and it's going to look like this with lots of comments basically i'm just going to put in my wi-fi information here and uncomment out everything up to here all right and now my home wi-fi network make sure you keep the indentation appropriate and also put your network name in quotes and then your password here save that and then let's put it in the pie grab the sd card putting it in my pie powering on and give it a couple minutes to get everything set up the next step is finding the ip address of your raspberry pi so there are a couple ways to do that one is to log into your router and see attached devices and the other is using these commands that ubuntu provides to us so if you're on a unix or a linux based machine you can try these two options which searches for the mac address and then the windows it's these options i'm on windows so i'm going to be running these two commands i do know that i'm running a raspberry pi 4 so i'm just going to do this command here open up my command prompt enter boom right there we got my ip address and it is a dynamic ip address you can choose to set that as static if you'd like in your router settings but right now dynamic is fine for me so there's my ip address and let's ssh into it just note the default username and password for this ubuntu server is ubuntu for the username and ubuntu for the password so i'm going to do ssh192.168.1.1 that's my ip but first i have to do ubuntu at enter yes authorize password ubuntu and now i have to change my password immediately so i'm going to just do something easy oh current password that's what i did i typed it wrong new password retype the password all right and now password updated successfully let's re-ssh into it put in that new password and we're in let's check our os cat etc os dash release enter and it looks like we are running ubuntu 2110 server check now let's install a light desktop to do the light desktop we're going to follow this entire server process and then in the command line install the light desktop you have a couple options for the light desktop lubuntu or zubuntu i'm going to be doing lubuntu this will be good for people who have a 32-bit operating system or maybe a 4 that doesn't have more than 4 gigabytes of ram in my case i only have 2 gigabytes of ram and my 64 gigabyte ubuntu full desktop glitches out a bit as you'll see later in the video so to install lubuntu it's just sudo apt install lubuntu dash desktop and then if you want to do zubuntu then it's ubuntu-desktop enter all right it looks like i have multiple display managers got to figure out how to manage that enter okay so this is gnome versus plasma i think and i heard that sddm is a bit smoother of an experience so i'm going to pick that all right all installed and now i think all we have to do is restart the pie and have it plugged into the hdmi monitor okay i had to figure some things out but now we got it working just power up the pi and i'll show you great and once you see this right here finished because the cloud in it finished now we have to get into our terminal so that's control alt f2 log in with those username and password you set earlier and this brings you to a terminal and all you have to do now to get into your ubuntu desktop is type the command start x there we go let's check to see settings scroll down to the about and there we go we're running ubuntu in the ubuntu flavor finally let's set up a normal full desktop 64-bit ubuntu on the raspberry pi 4b same deal is setting up the server first we're going to go into our raspberry pi imager plug my micro sd card into the reader i'm going to choose that micro sd card make sure you pick the right one i'm going to change the operating system to ubuntu 64 bit right there and click right this takes me about 15 minutes device has been written so now i'm going to remove the micro sd card plug into the raspberry pi also plug in the monitor and we'll see what happens just note my 4b does not have 4 gigabytes of memory so this isn't recommended for me and there are some glitches but i just want to show you that this works good sign good sign awesome let's configure the system english english keyboard i don't care to connect to wi-fi and i'm on the east coast of the united states awesome let's login automatically ss password continue and now give it a little bit to configure and we'll be good to go look at that now for me what happens is i can't use my keyboard and that's due to not having enough ram but i can still show you that i have successfully installed the proper version of ubuntu bada boom right there 64-bit ubuntu 2110 and that's all there is to it it's a little complicated doesn't work on every device but that's expected when you're doing something out of the norm if you have any other future videos you'd like me to make let me know in the comments also ask any questions and i'll try to get back to them like the video and subscribe as encouragement for me and also to show the youtube algorithm that this has been helpful for you and thanks for watching
Info
Channel: Sam Westby Tech
Views: 67,757
Rating: undefined out of 5
Keywords: raspberry pi, ubuntu, install ubuntu on raspberry pi, raspberry pi projects, raspberry pi ubuntu install, raspberry pi ubuntu server, raspberry pi ubuntu setup, raspberry desktop pc, raspberry pi 2, raspberry pi 3, raspberry pi 4, ubuntu linux, install linux on a raspberry pi, raspberry pi imager, lubuntu, install lubuntu on raspberry pi
Id: VVtdGczo3hM
Channel Id: undefined
Length: 10min 29sec (629 seconds)
Published: Fri Feb 25 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.