Installing Ubuntu 18.04LTS
Installing Ubuntu Server is what we’re all about in this post.
Ubuntu Server ‘Proper’ comes in two flavours, LTS and er – non LTS. LTS stands for Long Term Support. The benefit of using the LTS version for servers is that Ubuntu guarantees updates for the OS for up to five years. Currently Ubuntu 16.04LTS (released 04/2016) is supported until 04/2021, whilst Ubuntu 17.10 non LTS (released 10/2017) is supported until 07/2017.
Applying major upgrades to production servers isn’t necessarily something everyone wants to do, so opting for the LTS version gives you the security of knowing you have up to five years of support and patches without having to apply major upgrades.
Installing the LTS and standard versions is the same so let’s jump straight in.
Starting The Installation
This process will wipe your hard disk or virtual hard disk so ensure you have any backups you require.
Boot from a USB stick, DVD or ISO and you’ll be presented with the following screen:
1. Highlight Install Ubuntu Server and hit the [ENTER] key.
2. Select your language by using the up and down cursor keys and then hit the [ENTER] key.
3. Select your location and then hit the [ENTER] key.
4. You’ll then be prompted to select Yes / No for keyboard autodetection. I’ve never found this to be anything but a royal pain in the butt so select NO to manually select keyboard type.
5. Select the keyboard language layout and hit [ENTER].
6. Now select the matching layout and hit [ENTER]. After about a minute you’ll be presented with the network configuration.
7. At this point your Ubuntu will either pick up an automatic IP address (called a dynamic IP address) from another network device in which case you’ll be prompted to type the hostname, or you will be prompted to enter your network details.
8. If your installation has been assigned a dynamic IP address you will see the above screen. If no dynamic IP address has been allocated you will see the screen below.
9. If you’ve been assigned a dynamic IP and want to set your own (called a static IP), you can hit the [TAB] key to highlight the <GO BACK> option and press the [ENTER] key.
If you want to keep your assigned dynamic IP address jump to 15.
10. Here you can select MANUAL configuration.
If you select Manual configuration or dynamic failed, you’ll see the screen below.
11. Type your required IP address and hit [ENTER].
12. Type your netmask and hit [ENTER].
13. Type your Gateway’s IP address and hit [ENTER].
14. Type the IP addresses of your Domain Name Servers and hit [ENTER].
15. Type the hostname of your server. By default this is Ubuntu but it’s usual to give it a meaningful name – such as “wordpress”, “webserver”, “fileserver” etc.
16. Now type the full ‘real’ name of the first user and press [ENTER].
17. Then type the actual username for this user and press [ENTER]. This is the name you will type when logging in.
18. Add a password for the user you’ve just creating and press [ENTER].
19. Then re-type the password to make sure you got it right the first time .
20. You’ll then be prompted to confirm the time zone. If this is correct select <YES>. If not, Select <No> and select the correct region and zone for your clock.
21. Now we need to define our hard drive setup. For our purposes the most useful is LVM. On my setup, we want to use the entire disk. So select “GUIDED – use entire disk and setup as LVM’. Press [ENTER].
22. Now we need to select the disk, I have only one disk so I select that. Ensure you select the correct disk if you have multiple disks or you will overwrite your data.
23. You’re then prompted to confirm writing changes to disk. If you’re happy select <Yes> and press [ENTER].
You’re then prompted to enter how much of the disk you want to use. The maximum free disk space is displayed. For our purposes we want the maximum so just hit [ENTER].
The Ubuntu system will then be installed as above – which can take a few minutes.
Deep breath – we’re nearly done.
24. If you need to use a proxy server enter your details here. If you’re on a home network this is usually not required.
25. Select how you want updates to be installed and press [ENTER].
26. Next you are prompted to select what software / services to install. Whilst you can choose from the above at install time, I prefer to do this later. The only thing I usually select is OPENSSH Server, which allows you to connect remotely to the command line.
Use your down cursor key to move down to the OPENSSH Server option and press the [SPACE BAR] to select. Then press [ENTER]
After a few minutes the following will be displayed.
27. Remove your USB / CD / DVD and hit [ENTER].
Your Ubuntu server will reboot and after a few moments you should be presented with the login screen.