Installing Ubuntu Server
I’m going to show you how to install Ubuntu Server on your old laptop that’s been collecting dust in your closet. Why? Well, for starters, you can use it as a personal cloud storage, a media server, a VPN server, a web server, or even a Minecraft server. The possibilities are endless.
Before we get started, you’ll need a few things:
- An old laptop that meets the minimum requirements for Ubuntu Server (2 GB RAM, 25 GB disk space, 2 GHz processor)
- A USB flash drive with at least 4 GB of space
- A copy of Ubuntu Server ISO file (you can download it from Here)
Create a bootable USB drive⌗
The first thing you need to do is to create a bootable USB drive with the Ubuntu Server ISO file. You can use any tool you like, such as Rufus, Etcher, or UNetbootin. Just make sure you select the correct drive and the correct image file.
Boot from the USB drive⌗
Now plug the USB drive into your old laptop and turn it on. You may need to change the boot order in the BIOS settings to make it boot from the USB drive. If you see a screen like this, you’re on the right track:
Select “Try or Install Ubuntu Server” and press Enter.
Follow the installation wizard⌗
The installation wizard will guide you through the steps of installing Ubuntu Server on your laptop.
Choose your language.
Choose your keyboard layout.
Choose type of install.
Remember to select “Search for third-party drivers” just to be sure.
Select your main network adapter(eth0) and change it to manual so you can enter the static network details.
subnet Is in the format where you type the network IP address for the lowest value and add “/24” to the end rather than using the 255.255.255.0 method it means the same thing just a different way of expressing it.
Address is the IP address of this computer.
Gateway is normally the address or your Router.
Name Servers is your DNS server use 220.127.116.11 for google or, if you have one, the IP address of your Pi-Hole.
Once Saved Select Done to move to next step.
The proxy configured on this screen is used for accessing the package repository and the snap store both in the installer environment and in the installed system.
The installer will attempt to use
geoip to look up an appropriate default package mirror for your location. If you want or need to use a different mirror, enter its URL here.
Storage configuration is a complicated topic and has its own page for documentation.
Once the storage configuration is confirmed, the install begins in the background.
Create User, the default user will be an administrator, able to use sudo (this is why a password is needed, even if SSH public key access is enabled on the next screen).
Upgrade to Ubuntu Pro? NO!
Install OpenSHH, a default Ubuntu install has no open ports. We will want to administer servers via SSH so the installer allows it to be installed from this screen.
You can also import ssh keys for the default user from GitHub or Launchpad. If you do, then password authentication is disabled by default.
If a network connection is enabled, a selection of snaps that Canonical consider useful in a server environment are presented and can be selected for installation.
I choose not to use Snaps because I want to control the installations myself.
The installation process may take some time depending on your hardware and internet speed.
The final screen of the installer shows the progress of the installer and allows viewing of the full log file. Once the install has completed and security updates installed, the installer waits for confirmation before restarting.
Congratulations! You’ve successfully installed Ubuntu Server!
Enjoy your new server⌗
Now you can reboot your laptop and log in with your username and password.
That’s it for today’s tutorial. Next we’ll set-up our client system to connect to the server using SSH and lock it down to be on the safe side. If you have any questions or feedback, feel free to leave a comment below. And don’t forget to subscribe to the RSS for more content like this.