Install Ubuntu Server on RaspberryPi - Better for Production! // 4K TUTORIAL

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
all right how's it going y'all today we're going to be talking about how to install ubuntu on a raspberry pi and so first off why would you want to do this why would you want to install ubuntu rather than your standard raspberry pi os or previously known as raspbian well umutu is so much more used in actual industries and so having a raspberry pi with ubuntu on there and being able to work with the os and really understand the commands they're pretty similar overall but there are a few tools that are not compatible with raspberry pi os that are used with ubuntu and the other way around and so by installing ubuntu on your raspberry pi you can really start to get to use tools that you would use if you worked in an industry and so for a learning tool this is awesome you can get a 39 board and immediately be able to run stuff on umbuntu without having to configure your computer to do it and so you can keep those separate and i think a raspberry pi is a really great way to learn how to do things because it really helps teach you how to run commands because i run mine in a headless mode and then it's also a really safe bet if you screw up and accidentally destroy your operating system you just pull out your little sd card and you're immediately able to reinstall a new operating system on there and get back up and running in like two minutes it's really nice to be able to do this in a very safe environment such as this and so it's a great tool for that another good reason is compatibility with apps some apps are written for ubuntu and so they might not run on raspbian's debian instance overall they probably are going to be compatible because they're very similar and they both use the apt-get method for packages however there are going to be some things that are written for the network manager for ubuntu that you might want to start using i actually really like ubuntu and so if i'm ever spinning up a linux vm for anything i need to do if it's compatible with ubuntu i will always choose it just because it's what i know and it runs really quick and the lts server versions are normally incredibly stable for years it's just so much easier to configure and start up than really any other operating systems then again it is what i know everybody has their own favorite flavor but i'd say um is probably one of the most popular if not the most popular linux distribution for people at home and in industries all right so now what are you going to need to set this up well first off you're obviously going to need a raspberry pi and it's compatible with raspberry pi 2 3 4 and the new raspberry pi 400 which i'm really excited to see one day i might even try to get one then you're also obviously going to need either an sd card or if you're running the new raspberry pi 4 and you've got the bootloader that i showed in my previous raspberry pi video you can actually just install it on a flash drive then you're going to need some way to connect it to your computer and i've got one of these adapters that has the micro sd card regular sd card and cf card which is perfect for me because my camera takes cf card and it's usbc and i'll go ahead and link all these things in the description below in amazon alright and finally the last thing you're going to need is a computer with the raspberry pi imager on there they've got versions for every single operating system and so i'll also leave a link to that in the description below alright so now let's go ahead and set this up first thing you're going to need to do is just grab your adapter and plug in your sd card and plug it into your computer alright so as you can see here i've got this boot folder because it's already been a raspberry pi operating system but i'm just going to go ahead and open up the imager and so it's incredibly easy to use all you have to do is click choose operating system and we can scroll down to all these different options we're going to go ahead and open up ubuntu and it's actually got to download from the internet and so there's a bunch of different versions as you can see here so there's desktop which we're not going to be doing i'm going to be doing server which means that there's not going to be a gui for you but that's fine because i'm going to be running this in a headless fashion then there's also server down here and so this is a 32-bit operating system which is compatible with the 2 3 4 and the 400 but we're also going to want to go down and we're going to be able to install the 64-bit server version because i am running that raspberry pi 4. realistically we're not going to see a ton of advantages here using a 64-bit operating system over a 32-bit operating system because i don't have the 8 gigabyte raspberry pi but it is still going to help and it's going to allow for future expandability if we choose to and so we're going to go ahead and choose that but if you've got the two you can only use the 32-bit operating system it's really not that big of a deal unless you're running eight gigs of ram because a 32-bit operating system actually has a limit on the amount of ram any one process can take up which is 2 to the 32 or about 4 gigabytes which is a really interesting head limit that we've run into with 64-bit it's somewhere in the exabyte range and so i don't think you're going to be running that much ram anytime soon and so we're just going to go ahead and select ubuntu server 20.1 which is not the lts or long-term support version but we're running this on a raspberry pi and so it's not that big of a deal if you did want to make sure that this process was going to be supported for a very long time for whatever reason you may as well run lts but we may as well get the newest features here so i'm just going to go ahead and select it and choose the sd card just select the one that's in there and click write and now it's just going to do everything for us it's going to write the operating system on there and it's going to do it relatively pretty quick it's only a 0.7 gig file and so it shouldn't take too too long all right so now it's finally gone through and installed the whole thing and it's verified the installation so now we're good it's automatically injected the media so all we're going to have to do is plug it into our raspberry pi and you're going to want a wired ethernet connection here that way we don't have to set up wi-fi you can do it it's just a bit of a pain and you probably need a second raspberry pi to be able to have a linux interface assuming you don't have one ready on available alright so i'm just going to go ahead and unplug it and stick it into my raspberry pi all right and so now that it's booted up we're going to have to figure out what the ip address of it is the very first time and so there are ways to do this using terminal and sending out some commands but honestly the easiest thing to do is just go and go ahead and to log into your router and so i've got a unified universal dream stream pro and so i'm just going to select it and we're just going to go in and see what applications are on here so we're going to go into clients and all we have to do is go down and we can check it out right here okay ubuntu it is at 10.0.0 really easy right so now all we're going to do is go into terminal and all i'm going to do is do ssh ubuntu at 10.0.0.0.24. and the first time password is ubuntu and so the very first time we connect is going to require us to change the password which is a good security message so we're going to say the current password is umbuntu and create your new password all right and so ubuntu is interesting whenever a passwords change it kicks you so now we have to just go ahead and log back in and i accidentally just typed ubuntu for the password not my new password and so i just typed in my new password there and just like that we are back in and so now we're running ubuntu instead of raspbian which is not an incredibly different operating system but it allows you to do a lot more things in some cases i really like ubuntu across the board and it's honestly more secure than what you're going to have when you're running raspbian because it is really built for servers and to be able to be accessed from the outside networks so if you're running things and exposing your raspberry pi to the internet it's not a bad idea to instead install ubuntu because it does tend to have security patches earlier on and if you're doing that i would also recommend installing ubuntu lts for long term support that way you know you're going to be able to get the most recent security patches whenever they come up and so ubuntu is very similar it's going to be a little bit different for people who are not used to it but overall i really like it all right well that's really all there is to it you've now got ubuntu server running on your raspberry pi go ahead and leave any other tutorials you'd like to see me make in the comments below and have a good one bye [Music] you
Info
Channel: SpaceRex
Views: 49,832
Rating: undefined out of 5
Keywords:
Id: 1OBpT6ppgJU
Channel Id: undefined
Length: 9min 3sec (543 seconds)
Published: Sun Jan 17 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.