AI Summary
This video provides a step-by-step guide to installing and configuring Ubuntu Server on a computer, covering everything from creating a bootable USB drive to initial setup and security hardening.
Chapters
Download Ubuntu Server ISO and Balena Etcher to create a bootable USB drive.
Use Balena Etcher to flash the Ubuntu Server ISO onto a USB flash drive, ensuring the correct drive is selected.
Enter BIOS, change boot order to USB, save and exit to boot from the USB drive.
Select language (English UK) and choose Ubuntu Server as the base installation, optionally enabling third-party drivers.
Configure network settings (IP address shown) and proxy; accept defaults and proceed.
Select entire disk, choose correct drive (NVMe), disable LVM if not needed, and confirm storage configuration.
Enter name, server name (e.g., homelab), username, and password for the server.
Skip Ubuntu Pro, install OpenSSH server to enable remote SSH access.
After installation, reboot, remove USB, boot from NVMe, log in, then from Windows use SSH to connect: ssh username@IP.
Run sudo apt update and sudo apt upgrade to update packages.
Install unattended-upgrades and configure with sudo dpkg-reconfigure --priority=low unattended-upgrades.
Check firewall status (sudo ufw status), enable it (sudo ufw enable), and allow SSH (sudo ufw allow ssh).
Install neofetch and htop for system info and monitoring.
Install essential media codecs and optionally VLC media player.
To install a desktop environment, use tasksel to select a GUI (e.g., Debian desktop environment), but the creator recommends skipping this for a server.
The video concludes that for a server, it's best to skip the GUI and manage via SSH, which is simpler and more efficient.
Clickbait Check
95% Legit"The title accurately describes the content: a full setup guide for installing and configuring Ubuntu Server."
Mentioned in this Video
Tutorial Checklist
Study Flashcards (10)
What tool is used to create a bootable USB drive for Ubuntu Server?
easy
Click to reveal answer
What tool is used to create a bootable USB drive for Ubuntu Server?
Balena Etcher
00:13
What is the command to update package lists on Ubuntu?
easy
Click to reveal answer
What is the command to update package lists on Ubuntu?
sudo apt update
07:31
What command installs the unattended-upgrades package?
medium
Click to reveal answer
What command installs the unattended-upgrades package?
sudo apt install unattended-upgrades
07:43
How do you enable the firewall on Ubuntu Server?
easy
Click to reveal answer
How do you enable the firewall on Ubuntu Server?
sudo ufw enable
09:14
What command allows SSH through the firewall?
medium
Click to reveal answer
What command allows SSH through the firewall?
sudo ufw allow ssh
10:07
What is the command to check firewall status?
easy
Click to reveal answer
What is the command to check firewall status?
sudo ufw status
09:14
Which two tools are installed with 'sudo apt install neofetch htop'?
easy
Click to reveal answer
Which two tools are installed with 'sudo apt install neofetch htop'?
neofetch and htop
10:38
What is the command to reconfigure unattended-upgrades after installation?
hard
Click to reveal answer
What is the command to reconfigure unattended-upgrades after installation?
sudo dpkg-reconfigure --priority=low unattended-upgrades
08:05
What should you do if you get a 'remote host identification' warning when using SSH?
medium
Click to reveal answer
What should you do if you get a 'remote host identification' warning when using SSH?
Run ssh-keygen -R [IP address] to remove the old host key.
06:39
What is the recommended way to manage Ubuntu Server according to the video?
easy
Click to reveal answer
What is the recommended way to manage Ubuntu Server according to the video?
Via SSH from another computer, without a GUI.
13:46
💡 Key Takeaways
SSH Key Warning Fix
Shows a practical fix for a common SSH error that new users often encounter.
06:39Skip GUI Advice
The creator strongly advises against installing a GUI on a server, emphasizing simplicity.
13:46Final Recommendation
Summarizes the best practice: run server via SSH, not GUI.
14:02Full Transcript
[00:00] What's your guys got another video on how to install and consider a Ubuntu server. Quite a few of you wanted to see how to do this. You can put this onto a mini PC or an old computer or whatever it is you want to install this onto.
[00:13] But I'll show you the full setup and installation guide here. First off, you need to download Ubuntu server. Then you need to download Bolina Etcher. This is to create your bootable media. If you see this in yesterday's video or the day before, you can skip this part.
[00:28] But basically you'll need this to create your bootable USB flash drive. Open it up, plug in your USB flash drive and select your Ubuntu server ISO. Now select the USB flash drive.
[00:41] Make sure you select the correct one because all data will be erased on that USB flash drive. So I'm going to click Flash and this will flash the USB flash drive with your Ubuntu server.
[00:53] Once this is finished flashing, you will see the completed sign. There we go. And all we need to do is plug it into the computer and head into the BIOS and change the boot order to your USB flash drive that you've just created.
[01:08] So I'm going to come down to first boot option here and change this to our USB device here, which is this one right here. Then go over, use your arrow keys and basically go to save and exit.
[01:21] And we can now click save changes and exit. This will then boot to a USB flash drive and we will then be able to start to install Ubuntu. You can see here, try and install Ubuntu server.
[01:33] So we're going to click on enter here to boot to that option. Now you're going to see something like this. I know the code going up and you can now choose your language. I'm going to choose English UK.
[01:47] From here, we're going to select done for this one. Now we're going to be choosing a base installation, which is Ubuntu server. You can also use additional options to search for third-party drivers.
[02:01] You can use your tab key on the keyboard to tab through the options, and then use your space bar to select that option if you want to do it. So let me go ahead and do that.
[02:13] Use my space bar to select the search for third-party drivers. and now we can tab down to the done which is at the very bottom of the screen and push enter. We can push enter again because this is now done.
[02:28] These are our configuration for our network card. Everything looks okay for me. I can see an IP address there so that means it's working correctly. This is where you can configure your proxy. It's gone a little bit out of focus but we're going to push done here and continue
[02:43] and it will configure our proxy for us here. That's now done and we can now push done at the bottom of the screen. You can't see it because I have quite a large screen here and it's right at the very bottom.
[02:56] But basically we're going to continue on here with the installation. Now we can use the entire disk here. So I'm going to select the entire disk. But it's going on to the wrong drive here.
[03:09] So I need to use my tab key to tab down and change the hard drive that I want to install Ubuntu server onto. which is this one right here. I can push enter here, and this will open up an option to change this drive if I wanted to.
[03:25] You've also got some other options here, like set up the disk as a LMV group. I'm going to remove that because I don't need that. And I'm going to go back up to the drive selection here and change that drive to my NVMe drive So push enter here And now you can see that I do have two drives here so I going to come down and choose that option right here push enter and this will then select that drive now we can tab
[03:51] down to the done option down the bottom of the screen and push enter to continue on with the installation it's going to tell us this is our storage configuration and that's perfectly fine
[04:03] that's exactly how I want it so I'm going to push done and push continue to basically go on to the next step of the installation let's go ahead and let that finish off here and we can move on to the next step which is where we're going
[04:19] to create the account for this installation so you can put your name up the top here I'm just going to put my name as Brian because that's my name and we can also then put the server name and you can call your server name wherever
[04:33] you like pick a username and a password that's all you need to do right here so let's go ahead and do that right here I'm going to call my server home lab you can call yours whatever you like username Brightech and a password here
[04:47] you can just type this out like so and you'll be needing this to log into your server so once we've done that we can click done and you should now see skip
[04:59] for now I'm going to skip for now because we don't need the Ubuntu Pro so we can skip and we need to install open SSH server here so put the little cross in here by using your spacebar and
[05:13] push done and continue because we're going to log into this from our computer and now you can choose to install any of these options like docker or any of the other stuff if you want to I'm going to
[05:25] leave this blank for now. And now that's going to go ahead and start to set up and install our operating system for us and set up our server. So that part is now done. Once that's done, we can then boot into our BIOS again, pull the USB flash drive out and change the
[05:43] boot order from USB to our NVMe drive and then boot the system up. So we'll save these options and then once it restarts it's going to give us the Ubuntu right here now we can push enter
[05:57] and it will then start to boot up the server for the first time once we get to the login screen here we'll be able to head over to our PC and use a terminal to log into our server and do all our
[06:11] work from there you'll see a bunch of code coming up on the screen that's okay we're going to configure this from the Windows system. So once you get to this page, you can log in and we can
[06:23] then go over to our computer or you can log in from your computer using SSH. So I'm now on a Windows 11 based system. I'm going to right click on the start button and we're going to open up a terminal window here and you should see something looking like this. We're going to type SSH space,
[06:39] the username, at and the IP address that it broadcast on your server. If you see a warning remote host identification we can then type ssh-keygen-r space and the
[06:53] IP address and this will do the known underscore host to dot old and we can now log back in and it should give us a fresh install here so let's go ahead and do this so ssh username at IP address and you will now see if you want to do a
[07:09] fingerprint key I'm going to say yes here put our password in and we're now logged in So here we are, we're at the same screen as what we would have been on our server over there. So now we can type sudo at update and then put your password in once more And this will go off and get all of the updates for your server
[07:31] And you can see it's now downloading all the updates. It's telling us there's 25 packages that can be upgraded on our server. So let's go ahead and do the upgrade here sudo space at space upgrade.
[07:43] And it will go off and do all of the upgrades for our server. Now if you want it to automatically upgrade, you can do this command right here, and this will do an automatic upgrade for us, sudo apt install unattended-upgrades, and you'll see now it's going to set that for automatic unattended upgrades for us.
[08:05] we need to do another command here. sudo space dpkg dash reconfigure space dash dash priority equals low space unattended dash upgrades.
[08:18] I actually missed a D out there in the unattended, so I'm going to quickly add that in and do that command one more time here. You can see I just missed the D out on unattended. So let's go ahead and add that right in here
[08:31] and put the D in and push enter. and this will then reconfigure our upgrades for us. And this will do it automatically just in case you forget. You will see something looking like this.
[08:45] So I'm going to say configuring unattended upgrades. I'm going to automatically download and install stable updates and say yes. We'll push an enter and it will go ahead and set that for us.
[08:57] Next up we can do some other things on our server to get it more secure. So we need to check the firewall status on our server. It should be off by default. So let's go ahead and do this command right here, sudo space ufw space status.
[09:14] And you can see it says inactive. So we're going to enable our firewall. So let's go ahead and do that right here by typing sudo space ufw space enable. And this will then enable our firewall.
[09:28] say yes we do want to proceed but we do need to now allow our SSH to go through our firewall because it will block it so let's go ahead and enable our SSH
[09:41] through our firewall by typing out this next command which will allow us to use SSH with our firewall enabled so we'll just need to use this simple command here
[09:54] sudo space systemctl space status space SSH and it will tell you the status of it. And now if we want to allow it to go through we can type this simple command
[10:07] which I will do next which will allow us to use SSH with our firewall on. So we're going to go ahead and do that one right here by typing this simple command. We're going to be doing sudo space ufw space allow space SSH.
[10:23] SSH and now you can see that raw has now been added and we can now use SSH with our firewall enabled. So next we're going to do cdo space at space install space neofetch space htop.
[10:38] Say yes and it will go ahead and install those features for us and if you type neofetch now it will give you some information about your machine. You can see here we're running the operating system. It tells us that. It tells us our host, kernel, uptime, and packages and stuff like that.
[10:54] We can also use HTOP here, which will give us some information as well. These are useful features to have on your server Again once you finished with this you can push F10 to quit this out and then go back to the actual command window so let go ahead and now and install all essential media codecs in Ubuntu by doing this command right
[11:14] here and this is going to go ahead and put all of the media codecs that you might need it's going to go ahead and install all of those and you might see an agreement here so just okay that and we can
[11:27] now move on to the next one. The next one is just going to be installing VLC because you might want to use VLC. It's going to say yes. I'll leave all these commands in the video description for you.
[11:41] Now if you want to install a GUI for Ubuntu server then you can do by using this command here. If you don't want to use the GUI interface for your Ubuntu server then don't do this part just skip it and you're pretty much done. But if you do want to do it then you can use these commands
[11:57] at the end. I'll make sure that I'll put them at the very bottom of the description of the video and once you put this in it's going to give you a GUI interface or a desktop environment. So once
[12:10] you've done this and install it you accept their terms. It does take a fair bit of time to get installed on the system because we're now going back to a GUI interface. So when you boot up your server, when you reboot your server, you're going to have some sort of GUI interface on it rather
[12:25] than having working from a command line sort of window which we're doing right here so if you want to keep it like this then skip this part out i'll make sure i'll put that clear into the video
[12:38] description for you so i'm just going to let this install i'm only showing you this part because i know some people might want to use this part but if that's the case then maybe you could have used some sort of other version with some sort of a desktop environment now because you are installing
[12:55] a GUI you can basically choose an option to what GUI interface you want to use and you'll need to type in this next command and you'll be able to choose from a bunch of different options available
[13:08] to you so let's go ahead and i'll quickly set this up for you so what you need to do here is type out this command here, cd space task cell and push enter and you'll see this screen here. Debian
[13:22] desktop environment or you can go any of the other options available there if you want to. We're just going to use this top one here and push the space bar to select that. You'll see a little
[13:34] star going there. Now like I said I wouldn't necessarily install this myself. I would leave it as a server edition where we don't have a GUI and we can log in via SSH the way I'm showing you
[13:46] in this video but if you did then you can do this at a later date it's just something I wanted to show you and share because I know people will probably ask but that's basically how you can set it up it's very simple and easy to do and that should get you up and running on Ubuntu server
[14:02] these are the sort of basics really that you need to know again I would leave the GUI part out if it it was me and just run it from SSH from your Windows so you can log in and you can also use
[14:14] other programs to log in and put files onto your server if you want to. It's a lot easier. Anyway, if you want to see any more videos like this, let me know in the comments section below. My name has been Brian from brightsegcomputers.co.uk. I shall catch you in the very next video.
[14:28] Thanks again for watching. Bye for now. Thank you.