Ubuntu Server 22.04 LTS Install - Step by Step Guide - (Beginners Tutorial and Bonus! Web Server)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today we'll be installing the latest release of ubuntu server which is 22.04 lts this is a great minimal installation which offers a command line interface and keeps the resource usage down to a minimum what we'll first do is download ubuntu server go to the download section on ubuntu.com i'll put a link in the description below select ubuntu server or get ubuntu server if we click on that we'll have a few options at the bottom make sure to select option 2 the manual server installation this will give us a download image for ubuntu server 22.04 lts we'll click the download button and give it a few moments to start the download select the location for the download and save that image wherever you want now that i'm done downloading the iso i'm going to launch and use the belena at your app what we're doing today is flashing this image onto a usb cd or dvd of your choice but line edger is a great application to do this after we're done flashing we can take this usb over to the computer where we want to install ubuntu server onto and as a bonus i'll also be showing you how to install a web server so that you can start developing a website right away and host it locally on your own server right so we're going to select the image the one that we just got done downloading it says ubuntu 22.04 live server amd64 for a 64-bit processor i'm going to select open and then i'm going to find a usb cd or dvd that's completely free because with the flashing process we will be erasing the contents of this usb cd or dvd in order to put our image onto it so make sure you're selecting the proper one if you have more than one device you can select it here and select drive once you have your selected you can hit continue you can also use other bootable disk creators like unetbootin or rufus if you don't want to use belena anyways after you're done with that you can hit the flash button you'll be asked for administrative privileges here select yes and give it a few minutes to finish up the flashing process after you flash the disk you'll take it over to the computer server where you want to install ubuntu 22.04 lts on and insert it into that computer then you'll have to boot into your bios in order to change the settings around and select the newly created bootable disk to be the first to boot this is usually done by finding the correct key to get into your bios and then changing the boot priority around now that i'm done flashing the image onto my usb i'm going to exit out and take this usb over to the computer where i want to install ubuntu server on i'll show you how i change my boot priorities around yours might be different of course but let's go check that out now and on my computer when it's first loading up it's going to ask whether i want to boot into bios the key for my bios is f2 or the delete key yours might be something different in order to get into bios make sure to look it up for your particular motherboard or computer so since mine is a newer uefi based bios yours might be different but i can use the mouse and mine making it a little more convenient what we're looking for is to change up the boot priority conveniently enough for me it's available here on the right hand side so i can look through and try finding the usb that i just got done flashing on but it doesn't seem to be in one of the top four here so i can either click the boot menu option f8 but let's go to the advanced mode for me f7 because this might be what your bios more closely resemble on mine i have tabs up top so i can select between the tabs i have main ai tweaker advanced monitor and boot yours might say boot or boot priority make sure to find this in your bios and then go down you want to select your boot option number one to be the storage disk either usb cd or dvd that you just got done flashing so i know mine's a 32 gigabyte usb so if i look through the list i should be able to find something that resembles that usb and here it is right here my verbatim store and go 1100 it's got about 32 gigs i know this is the correct one so i'm going to select storage disk if you have multiple avoid selecting the partitions select the entire disk so this one's the entire disk i noticed that by seeing no mention of partitions anyways i'm going to press enter on this and this should be enough to allow us to boot into our live environment or installer i'll make one more mention here in bios if you are trying to install linux you'll want to make sure that you have your secure boot settings disabled or set to another os besides windows or else your system will keep trying to boot into windows regardless of what you have put into your computer also if you can find fast boot on your computer you might want to disable that one as well if you're having trouble booting into your linux environment all right and if you did everything correctly you'll get this screen where you'll get a timeout if you hit a key you will end a timeout and you'll be ready to try or install ubuntu server no worries if it went past this that's because it timed out and selected the first option which is the one we want to pick anyway awesome if you made it this far please smash that like button for me and let's start the installation process first select the try or install ubuntu server and press enter so first we're asked what language we want to use for the installation process i'm going to use english select whatever language you're comfortable with and press enter once you've done that you'll be selecting the keyboard variant that you want to use just use the up arrows in order to go through if you press enter on a selection you can then again use the up or down keys in order to select whatever language you want the default here for me is english us which is great you can also use the identify keyboard if you want the operating system to try and find the keyboard for you once you're finished you can select the done option and press enter and here we have another two options the default is ubuntu server which gives you some basic packages so you can operate your server otherwise you can go with ubuntu server minimize now be careful because this doesn't really come with anything it actually says here customized to have a small runtime footprint where humans are not expected to log in well we're expecting ourselves to log in so we'll select the first option it's quite minimal anyway before warn that at the end of this installation you are not going to have a desktop environment you are just going to have a console which you can interact with and remote into that's because the server edition is meant to be as minimal as possible so that your server can get as many resources as possible all right once we have ubuntu server selected we'll hit done and again just press enter once you have that highlighted following that we are now having the operating system detect a network connection and mine is on enp 0s3 and you can tell that it has a dhcp address that means the router gave it a ip address if you don't have something that's actually giving ip addresses out on your network you'll have to highlight the adapter press enter then you can edit the ipv4 or ipv6 settings manually if you edit the ipv4 highlight it press enter and now you can change the method mine's set to dhcp so it's automatically getting an ip address from the router you can set it to manual and then type in your subnet address your static ip that you want for your computer your gateway if you have a gateway or router the name servers and any search domains that you have i don't need this since i'm using dhcp i'm going to hit cancel mine's already assigned great you'll want to make sure that you have some form of internet access or else you won't be getting updates and some may be important like security updates once you have a connection you can hit done now we're asked to configure a proxy i don't have a proxy if you do follow the standard form that's given otherwise you can just press done now ubuntu tries getting a mirror closest to you mine's clearly in the us yours might be something different no big deal unless you have a different mirror that you'd like to use that you know about you can type in the mirror address there but typically most people will just go with the default after that's typed in press done and here's where the fun begins so what we have here is a selection for using the entire disk well since this is a brand new installation and it will be taking advantage of the entire storage disk in the server i will select this option i'll also set the set up this disk as an lvm group lvm is logical volume management and makes it a lot easier for you to manage your storage post installation of the operating system it allows you to grow the storage and pools a lot easier than using a standard partitioning scheme if you'd like to encrypt the lvm group you can by selecting this option just press space and then you can put in a paraphrase and confirm that paraphrase you'll have to enter this password in every time you log into the computer in order to unlock your storage space i'm not going to select this and then i'll mention one last thing when you use the entire disk it's going to erase the contents of this entire storage disk so make sure you have the proper one selected press enter on here if you have more than one go through confirm that the storage space so mine's 160 gigs actually matches the one which you're expecting to install ubuntu server 22.04 lts on and as long as that's correct you can move down to the done and press enter okay so there's a lot going on here we'll start from the top so what this says here is a few things it's showing you how it's going to partition the disk first we have our root partition which is currently allocated with 78 gigs then we have the boot partition which is going to be two gigs and inside that boot partition there's a gig allocated to the efi since this is an efi based system moving on we have the ubuntu volume group which is going to be brand new this is part of that lvm scheme that i was talking about it says it's going to allocate 157 gigs overall to that volume group but what's interesting here is there's free space and it's around 78 gigs so i actually want to make sure that i change this around a little bit so that it's also using the 78 gigs it basically splices things in half so i'm going down to use devices and notice in the ubuntu lv or logical volume it's going to be new it's formatted as ext4 and it's mounted at root or the slash i'm going to select that 78.47 yours of course might be different your storage space might be larger and press enter i want to make sure to edit this one that way i'm taking the max size of my storage disk up notice how its max is 156.9 yours is going to be different i'm going to erase this over here and actually utilize that entire space so i typed in 156.945 which is what shows in the max over on the left hand side now i take advantage of the entire disk space i'm going to hit save and now notice how things have changed here no longer is there any free space up top and i can see that my whole volume group is the same as my logical volume and i'm taking up the complete space if you don't do this what will happen is you'll only use about half of your storage disk space which is a little frustrating because later on you'll have to grow that space if you want to use everything else at the bottom here it explains everything that's going to happen and it says that it's going to take up a gig for the first partition about two gigs for the second one and finally there's 157 gigs for the root partition where all your files and packages will reside for your server all right once you're confident that you have the proper disk selected that you're using all the space and that you're comfortable overriding the contents of this storage disk you can select done and now the operating system is telling you hey look you're about to completely erase the contents of the storage disk mine's completely clean it's a brand new storage disk no big deal for me just make sure again you had the right one selected if you're confident select the continue button now we're being asked to set up a user account for the operating system i'm going to type in savvy nick for me and i'm going to call the server savvy server i'm going to also pick the username savvy nick and then choose a password for that user make sure you remember the username and the password confirm your password and you'll be using this to log in later after you've selected your username and password press done and now we're asked whether we want to install open ssh server this is a great idea since this is a headless server meaning there's no gui and you probably want access remotely you'll want open ssh server because it's the easiest way to get in remotely and start issuing commands i'm going to select that and then go down to done and press enter following that we have all sorts of packages that we can select from that can help you set up various different servers databases front-end tools and all sorts of good stuff unless you have something very specific you want to install right away don't select anything you can always install these post installation of the server and that's what i suggest that way you keep things at a minimum remember i'll be showing you how to set up a web server momentarily we're almost done with this installation press done if you're ready okay so what's happening now is the installation is actually taking place this will take a few minutes anywhere between 10 minutes to an hour depending on your system how fast your internet connection is if you're getting updates just be patient and give it a few moments to finish the installation and once everything is finished the security updates have installed your log should look very much like mine and you'll get this option that says reboot now you can press enter at this point and give it a few moments to load stuff the very last thing you'll see here is please remove the installation media and then press enter this means remove the cd usb or dvd that you're using to install ubuntu server 22.04 lts or else you'll boot back into that install image and it'll try reinstalling again if you fail to do so not a big deal just shut down your system remove the usb cd or dvd and then boot it back up in order to get into your actual installed environment so if you've removed that media at this point you can press enter you may or may not see this screen which is a selection for ubuntu again this is just the grub menu and it will automatically time out itself and select the first option which is ubuntu that's exactly what we want a bunch will scroll across the screen as it's doing its checks and getting ready to log you in now if you see this screen you've officially installed ubuntu 22.04 lts successfully congratulations you're ready to log in with the user you created in order to log in type in your username mine was savvy nick type yours in press enter and then it's asking you for a password put your password in that you created and you should see this same output this means you're logged in we have the username which mines savvynic and then it does at savvy server basically your server or computer name if it's been loading for a while and you're not seeing the user login just press enter a few times see if it pops up sometimes the console gets messed up and that'll help you check to see if the system's trying to wait for you to log in and since we're in the console or command line interface let's go and install that web server really quick so you can understand how to use this a little better all right with things cleared out i'm going to install that web server real quick first i'll do sudo apt install apache 2. this is the web server package and i'll press enter give it a few moments to install things now this web server will be accessible on your local network and one thing we need to figure out is the ip address of the current server so i'm going to do ipspace a this will give me some information and i see inet 10.0.2.15 for mine so i'm going to remember that ip address so i can access it from different computers on my network now we need to see if a new folder exists and since we installed apache package i'm going to do cd base slash var www slash html and in here if i do ls i'll notice there's an index.html file in order to open that file use your favorite editor i'm just going to use nano so i can make it easier on myself and then space index.html notice that there's a whole bunch inside this file and this is just the default index file that apache gives you in order to test your server out so notice that there's a background color of all f's currently we can change that around just to see if things change on our page so first off let's see and make sure that we can access the page and with some port forwarding rules you might actually have to do this in your router as well i forwarded between two computers on my network since by default access to any of my ports are blocked on the router side once i forwarded it i can access this page by typing in the ip address from before so that 10.0.2.15 for me that's all i had to type in and notice we have this apache to default webpage congratulations if you see this you're currently hosting your own web server notice it says var www.htmlindex.html that's the file i was talking about a moment ago let's go back there change something around so we can see that things are in fact changing on the web server okay back to here where we have nano i'm going to the background color and i'm going to change this to all zeros i should change things to a black color then i'm going to do control x to save things that asks me to save the modified buffer here in nano i'm going to press yes or y and then press enter to name it and it says permission denied well that's because i didn't run it as a administrative user so i'll exit out real quick control x and no i'm not going to save at this time and instead of running just nano index html i'm going to type sudo space nano and that should give me administrative privileges and now i can edit that background color and i'll change that to all zeros here save and exit again press yes enter and let's check out the web page once more now if i reload things notice how this border here has changed to a black color awesome we're editing the proper file and that's the location this www.html where you can start making your own web site on and if you want to make this public for other people to access you'll have to change up and port forward port 80 through your router i don't suggest opening up ports the public what i do typically with this ubuntu server is just use it locally for testing such as developing web pages and using them on my local network well i hope you enjoyed this installation of ubuntu 22.04 lts server and if you have any questions comments or suggestions please post them in the comments section below also make sure to subscribe below hit that notification bell for more linux and programming videos catch me in a great community on discord and i'll catch you in another video thanks for watching
Info
Channel: SavvyNik
Views: 246,006
Rating: undefined out of 5
Keywords: ubuntu 22.04, ubuntu 22.04 lts, how to, ubuntu server, ubuntu 22.04 server, ubuntu server tutorial for beginners, ubuntu server install, ubuntu server gui, how to install ubuntu server, how to install ubuntu server 22.04, how to install ubuntu server on virtualbox, ubuntu 22.04 server installation, ubuntu 22.04 server gui, ubuntu 22.04 server features, ubuntu install, ubuntu 22.04 install, install ubuntu server, ubuntu server 22.04, ubuntu, ubuntu setup, how to install ubuntu
Id: zs2zdVPwZ7E
Channel Id: undefined
Length: 19min 6sec (1146 seconds)
Published: Mon May 02 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.