Raspberry Pi - How to Install Ubuntu Server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
please remember that the complete information for the class that you are about to view is at Eli the computer guy comm not only do we have our videos there but we have parts lists diagrams pictures and even complete code examples so if you are watching this video and you want more information please go to Eli the computer guy comm now question that may come up is what is the value of installing ubuntu server onto your raspberry pi so the raspberry pi OS that you install is a full Debian distribution of Linux and therefore it will do almost everything that you need Linux to do so the question then becomes why would you install Ubuntu if raspberry pi OS most likely can perform the way you needed to perform the reason that I would argue you should install Ubuntu server operating system if you want to is basically for standardization so if you're thinking about using a Raspberry Pi in a production environment that means you have a lot of Linux machines in your environment some of your Linux machines are going to be servers some of your Linux machines are going to be IOT devices such as a Raspberry Pi some of your Linux machines may be virtual machines that are up in the cloud one of the big problems for support professionals frankly is standardization although most distributions do exactly the same thing as all the other distributions of Linux the thing is is that they use different syntax many times and they use different commands in order to accomplish the same task so if you're going to be using something like send OS versus something like Ubuntu there are literally different commands that you use in order to get the same end results so this can be a really major problem as a support professional because basically you sit down and you start tippy-tap typing out on a Linux machine and there's that whole question of like do you know Linux and that's the problem right you can know Linux without being an expert on the particular distribution that you're sitting down and dealing with so if you're using multiple distributions of Linux with you're inviting your environment to do basically the same kind of crap this can become a real problem for your support professionals because basically they sit down and at this machine they've got a deal with raspberry pi OS and then this machine they've got to do it deal with cent OS and with this machine they've got to deal with Ubuntu server like 14 point oh one from a number of years ago right so every time they sit down instead of simply being able to sit down pull up the command line and tippy-tap type out the commands that they know will work they've got to sit down Tippie type out of command it fails Oh why'd it fail do a Google search oh this is this distribution of this so for this distribution bla bla bla so they go back right so on and so forth so the big argument that I would have for using Ubuntu on your Raspberry Pi frankly I mean it's not a sexy or it's not sexy it's not cool it's like wow the real thing is standardization basically if you or your support professionals are used to using Ubuntu then having a bun to used across the board will just make it easier when your people or when you sit down to actually do configurations or maintenance with your Raspberry Pi in the future so the fact that we want to will work on the Raspberry Pi I've seen no downsides with who bunt you working on there is berry pie it's kind of one of those things okay you're gonna put this in the field you're already using Ubuntu and an open number of different situations why not simply use it on your Raspberry Pi - so there's no major warning warnings for today's class there's just a couple of things to think about do realize that the distribution of Ubuntu that you're using for your raspberry pi is the arm distribution of about two now I have to say 99.9% of the scenarios you're going to run into basically the Ubuntu that runs on your Raspberry Pi is gonna work identical to the Ubuntu that's gonna work on a normal x86 processor but do realize that this is a different processor but you didn't have to get poor to do this processor and there may be some quirks with some software let me be clear okay there may be some quirks possibly that you might run into probably not if you're using the standard software server software that you use on two bucks again if you're using a pantry stack or the lamp stack on the on the Raspberry Pi that's gonna work fun if you Samba on the Raspberry Pi that's gonna work fine openvpn on the Raspberry Pi that should work fine so like like again 99% of all the things that you'll use your Raspberry Pi bun to a little box for should work fine there might be something like the proprietary software out there there might be some specialized software out there that will not run on the ARM processor so all I'm going to say is basically test test test before you put it into a production environment in your little demonstration lab you know in your lab environment I would argue this should work fine for you I really don't think you're gonna have any problems using Ubuntu on your Raspberry Pi but again if you did go into production world maybe you have some kind of special storage software or something like I don't know it just realized you might you might run into an issue so test the hell out of it before you do put it into a production environment the other thing that I will warn you is I will show you how to install Ubuntu and it's very simple basically the way you install the bunt too is the same way you install the raspberry pi OS TLDR too long did not read just basically you can install it from the the same software the same app that you use to install the raspberry pi OS but I will warn you that there are two versions of Ubuntu at least when you get the selection box so when you use the raspberry pi installer you can slick select Ubuntu and then there's multiple different versions there's a 32-bit version of the server 64-bit version a server but then you're going to see IOT core versions be very careful with that basically the two versions that you can easily install a boob on to on your to your eyes Barry PI are the server version and the IOT core the server version is the standard command line server version that you should be completely familiar with if you're worried about it but to so if you've used it bone too in the past basically using the simplest the server version whether it's 32-bit or 64-bit will be the same that you're used to the IOT core version of Ubuntu though you do have to be careful with it that might be the right option for you maybe but make sure basically what that is is it's very very stripped down a version of Ubuntu with the idea of being that you're going to be putting this into the field for IOT devices so one of the big issues with IOT devices is that they can be security vulnerabilities for your network right so if you have a full-fledged computer right they can have a full lamp stack it has you know storage and all that kind of thing one of the big problems you can have is if somebody can root one of your Raspberry Pi so you have like a little Raspberry Pi and let's say it's just controlling your HVAC system your air conditioning system if some hacker is able to root that box then what they can do is they can use all of the power of the Raspberry Pi to then start attacking your internal network so that can be a very big problem do you remember every feature that a server or a device gives you is also a vulnerability so FTP is a feature and it's a vulnerability right HTTP is a feature and it's a vulnerability Samba is a feature and it's a vulnerability so the more features the more functionality you have on your box also the more vulnerabilities you have on your box so the IOT core distribution of about you basically tries to strip out everything that you don't need it gives you an incredibly clean installation of Ubuntu and then the idea is that you then build on top of that for whatever it is that you need in your specific environment if you're expecting server and you install IOT core you might start ripping out your hair when a lot of things that you're expecting to be there a lot of like that kind of default installations that simply are not there so that's one thing to keep in mind today we are going to be installing the server again when you're playing around when you're doing demonstrations within a lab environment I would argue go for the server the server runs completely once amazing as well in the Raspberry Pi I don't think you have a big issues with it but then when you're thinking about going into production environment then that's the time to start thinking okay should I really have a full-fledged server OS on here or is the IOT core a better solution and then at that point go do research on the IOT core make sure it does everything you needed to do so on and so forth so anyways with that let's go over the demonstration computer we will create the little micro SD card for a Raspberry Pi with Ubuntu server installation on it then we'll go over to the computer and I will show you how it all works so here we are at my demonstration computer again I'm using a MacBook Pro but this this little app that you use will be the same whether you're using Ubuntu whether you're using Windows or whether you're using Mac they're gonna be a option for the operating system over here on the left hand side so if you click on this again you get the Raspberry Pi OS that's what we install before other Raspberry Pi OS is and then we're going to come down here to a bun - and again it's important to understand this this is just one of the default options that's given to you with the Raspberry Pi immature software so you don't have to add any image files or anything like that from there basically I can click on this and again we've got four options here so we have right now we have a bun - 20.0 for LTS as a 32-bit server so this is the server one then we have the 64-bit server so these are the first two options and then we come down ubuntu core 18 so this is core for IOT and basically with this we've got the 32-bit and we also have the 64-bit again I would highly recommend that you stay with just the 32-bit server when you're initially doing you're doing your play around and your tests going past that really depends on your environment so 64-bit 64-bit may actually give you a lot of performance improvement depending on what you're doing but do you realize that some some apps may not be compatible with 64-bit so you may run into issues there and then again as I talked about with IOT core IOT core is is kind of its own little world so unless unless you want to deal with IOT core just deal with deal with a 32-bit server so basically just gonna click on that again for the SD card we click on whatever SD card we have here let me click on this oops there we go no no no why it's doing that and then we're going to click on the right when it asked me to write it it's not going to ask me for my password after I've put in my password it is now writing to the micro SD card and depending on big your micro sd card speeds and so forth you know it takes takes a couple of minutes okay so now we have imaged of the Ubuntu operating system to our micro sd card so we can now take out the microSD card put it into our Raspberry Pi and boot the Raspberry Pi up so now I've slotted the microSD card into the Raspberry Pi I'm now plugging the Raspberry Pi in and we can see the initial beginning boot process here and again nothing nothing too complicated if everything seems a little small one of the issues here is I can't I can't change the the font size for the initial boot up process so you're just going to have to deal with it but again basically what you're just gonna see here is just a normal boot up process for Ubuntu now one of the things that I will warn you that is a little bit weird here is that there is an auto update procedure that happens as soon as you log in for the first time so basically what it does is it starts trying to download and install some certain updates why that matters is while it's installing those updates you can't install other things so you may run into problems so like when I first did this the first thing I wanted to do was install apache2 so it's like okay great I've got this a little bunch of server I'm gonna install apache2 I want to install apache2 when I started getting a whole bunch of errors because the the installation process was already being used so when we do go to login the login username is ubuntu eb @ u NT u and the password is also going to be ubuntu ub u and to you then you start getting this crap so the first thing that's gonna happen then is it's going to ask you to change the password so as soon as you log in for the first time it doesn't want you to have the default password so here you're then gonna put in the old passwords with it which is a bun to you bu and to you then it's going to ask for a new password I'm gonna use a super-secret 1 2 3 4 5 6 7 8 9 if you try to do 1 2 3 4 5 6 it's too simple it's too simple for Ubuntu but 1 2 3 4 5 6 7 8 9 is just fine 1 2 3 4 5 6 7 8 9 and now we have a new password so basically at this point you can see that I have the normal command prompt down there we want to add Ubuntu and we can go in and we can start doing things so we can do like to do top so we're gonna take a look at top this shows us the processes and the things that are going on we get out of that again you can do LS - l whatever the problem you are going to have though if you do sudo apt - get install let's say I've had V - you may run into an issue where again the installation process is already being used so that's when I click on this right now I get a colon could not get lock blah blah blah in colon be aware that removing lock blah blah blah Ecola unable to acquire the dpkg front and lock now it's very important here when you see this you do not need to delete the lock so if you do go and you do a google search on what's going on here there's a whole bunch of forums about deleting the locks the thing is is since this is the first time you've installed Ubuntu you're basically the first time you're running Ubuntu what's happening right now is he's just doing the initial update process so I would highly recommend you do not go in and modify the locks or anything like that that may cause you issues in the future it's much much better to rate wait 5 or 10 minutes for the installation process to finish and then you should be able to do whatever you want to do if we click on it again we still have the issue so let me come back in about 5 minutes and I just want to show you that this on itself will clear after a couple of minutes and then you'll be able to install Apache or whatever other packages you want to install so I've waited about three minutes to see if the installation process is stopped yet see if we can still install apache2 just to give you a real-time idea about how long this takes so let's try to install apache2 again and it's still a lot still a lot so ok let me come back in about another five minutes to see if this is finished okie doke low so I'm back after another five minutes so we're about eight minutes installation uh let me try to install apache2 now see how this works oh it's still locked ah this may actually take a little bit I'll come back in another five minutes so back yet again so it's been another five minutes so we've been at 13 minutes total since I initially installed Ubuntu let's see if this works there we go now we can actually install apache2 so I just wanted to show you and I want to show you this and like in like real time to show you how a little bit frustrating it can be so you get a little frustrated that's okay so basically when you initially log in the first time you're gonna change your password if it's connected to the network it's automatically going to start downloading those updates and basically you have to wait for those updates to finish before you can really do anything else it's just the pain of the bus so expect I don't know it's been 13 minutes total I'm not sure when when it actually stops so expect somewhere between about 10 to 15 minutes right from here though you can see that I am installing a patch v2 going through to doing all of the installation and I will just show you that you can then have a full Apache web server on on Ubuntu once you've installed Ubuntu onto your Raspberry Pi and again this can be useful you may be sitting there going all I can install Apache onto Raspberry Pi OS why would I want to install it onto a bun - and again it's the whole concept of standardization if all of your machines are running the the same distribution they're running more or less the same version obviously you're gonna have different versions in a production environment you're gonna have newer and older machines but if everything is basically running the same distribution then when somebody sits down they they know what to do so I can do let's see here IP address so I can pull off what the IP address is here if I take a look and can see it's one ninety two dot one sixty eight dot one dot two three and so I can then go over to my demonstration machine since this is on the network I can open up Safari I can do 192 168 and I said 23:23 and there we go so this is the actual Apache to move on to default page and this is on the Raspberry Pi so this here again this is on my MacBook Pro and I'm able to access the web server the website that's now being hosted on the Raspberry Pi using Ubuntu so that's how you're able to install Ubuntu onto a Raspberry Pi it's a very simple process with you know it's the technical world so there's a few frustrating things because there's got to be frustrating things but overall it's a it surprisingly simple to do so there you go now you know how to install Ubuntu onto your Raspberry Pi there's not really a whole lot to it not much you can screw up unless unless you don't let that update process go through so I will tell you when I was first doing this I had the update process going through I was a little frustrated I was a geek I don't want to deal with all this so the first thing that I did was I plugged in the reboot command I just wanted to reboot try to cancel out of the process when I went to reboot it said warning you have a process that's already going on you have to wait to let this process finish I was said you're gonna tell me what to do no whereas berry pie is gonna tell me this geek what to do so I just yank the power supply and plugged it back in to try to reboot and corrupted the operating system it's kind of hard to screw this up it's kind of hard to screw this up but if you pull the power while it's doing its updates you might corrupt the operating system so what I would say is again when you install the Ubuntu server OS when you boot everything up after you change your password just go grab a cup of coffee or go get some lunch let it go through the update process if you try to stop it bad things can ensue so really that's that's the only major what you can screw anything up beyond that again it's really nice because the the images for the server and for the IOT core are built into the pi imaging software so just like you would install the Raspberry Pi OS you can saw Ubuntu server or on bun-bun to IOT core the one thing that I will warn you is with the IOT core again that's kind of a different distribution it's a different tweaking of - so no snark against IOT core it's actually a very good distro but there are differences so if you're expecting servants tell IOT core it's gonna be a different environment and hey you're gonna gonna have to do some google searching to figure out what the hell is going on so be careful with that so I really think this is a pretty cool thing though because again 99.9% of the things you would do with a normal x86 Ubuntu server should work on the on the arm on the Raspberry Pi and so this is a way you can create very small servers to provide services for your particular environment so you could have a Samba server so a file server so you can have a dedicated Raspberry Pi file Samba server you could have a dedicated proxy like a squid proxy server so squid proxy server allows you to do things like caching so when people go out to the Internet they download files when the next person goes out to download the exact same file off the Internet it can actually be cached on that proxy server and can be pulled locally instead of having to be brought off the Internet VPN servers that type of thing I actually think using little raspberry PI's might be a very interesting way to create infrastructure for your environment and also have it be relatively secure so back in the old days one of the problems we had is that each physical server would provide a lot of services for the network and do remember every feature every function of server has is also a vulnerability right so if you have like one of the old windows small business server so we have a small business server that basically is your Active Directory server and it's your email server and it's your final server and it's your VPN server and it's your sharepoint server and it's probably doing a couple of other services right all of those different services are a vulnerability so if somebody if somebody can with basically get into your file share and manipulate something literally by going in through the file share they maybe manipulate something that gets them into the active directory right that's a vulnerability so one of the things that we started doing is in the virtualized world the idea is each virtual machine now provides those services so you have one virtual machine or run virtual server and that is now your final server and that's all it does and then you have one Active Directory server that's all it does you have one sharepoint server that's all it does again it's a more secure environment because now each virtual machine is only providing one service but there is still a vulnerability because they are still within that virtualized world you still have the hypervisor that's writing everything you have single points of failure so if your hypervisor server fails then everything above that all the instances will also fail so something to think about with your environment is this is a way for a relatively low cost you can have dedicated servers so if you look at the Raspberry Pi 4 you can get up to 8 gigs of RAM one of these things as a quad core processor you shove in a micro SD card so somewhere $100 or less you can have a physical server so you have one physical server that's your file server you have one physical server that's a proxy server yeah one physical server that's your VPN server you have one physical server that's your whatever else and this way you have no single point of failure if the motherboard of your VPN server fails it's not gonna affect the proxy it's not gonna affects the file server again from a vulnerability from like a hacker standpoint if somebody's able to compromise your VPN server I hope that doesn't happen if they do they're not necessarily gonna be compromising your file server your proxy server or anything else so I think this is kind of an interesting thing to be thinking about in the modern world and this is what you have to be thinking about as a technology professional as new technology comes out how do you design your environment for the new world right 20 years ago everything was sitting on one machine because that's how he did things then everything started going over to virtualization so you have instances of machines but still in one or two basically a very expensive boxes now it's kind of interesting me thinking about what the cost of Hardware just drops so massively can we kind of have a virtualized mentality but actually do it in a physical world so each one of these raspberry PI's is now its own individual server which means it's now siloed from a hacking standpoint from the other servers that you have on the network and you don't have a single point of failure kind of some of the stuff that you should be thinking about so anyways as always I enjoy teaching this class I look forward to seeing the next one if you like the content that I create please think about going to Eli the computer guy comm and becoming a member or donating please understand that all the educational videos are in front of the paywall that includes the videos that includes the notes the diagrams and the code example all of that is freely available and in front of the paywall but if you want to watch opinion videos or if you want to be able to comment you do need to become a member membership is $5 a month or $60 a year and gives you access to those opinion videos and the ability to comment if you don't want to become a member you just want to give a one-time donation there's also a donate button where you can do that please understand in order to provide the education that I am it does cost money the servers cost money equipment cost money travel cost money all of these things cost a reasonable amount of money and the fact of the matter is is YouTube's advertising program no longer supports creators the way that it used to so if you want to these classes to continue to stick around and you find them to be valuable please think about either becoming a monthly member or donating a few dollars for this project
Info
Channel: Eli the Computer Guy
Views: 22,421
Rating: undefined out of 5
Keywords: Eli, the, Computer, Guy, Repair, Networking, Tech, IT, Startup, Arduino, iot
Id: Sr-WwMH7OUw
Channel Id: undefined
Length: 25min 15sec (1515 seconds)
Published: Mon Jul 06 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.