How to install Ubuntu Server in under 30 minutes


kutubQ/Getty Images

For years, Ubuntu Server has been my go-to server operating system. It is one of the most widely used server OSs on the planet (especially when you add cloud deployments to the mix) and one of the most user-friendly server platforms available. To make Ubuntu Server even more appealing, you can download and install it on as many machines as you like for free. 

Ubuntu Server can be installed on bare metal (in other words, on a physical machine), as a virtual machine, or as a virtual environment on a third-party cloud host (such as AWS, Azure, or Google Cloud). With Ubuntu Server, the number of applications and services (such as WordPress, Nextcloud, Invoice Plane, email servers, web servers, database servers, and much, much more) is unlimited. 

Also: 7 things I never do after I install Linux (and why you shouldn’t either)

I will walk you through the installation of Ubuntu Server, a process so easy it’ll surprise you. I’ll demonstrate using the VirtualBox virtual machine tool, which can be installed on Linux, macOS, and Windows. Other than creating the virtual machine, the installation of Ubuntu Server is the same, regardless of how you do it.

Let’s walk through this.

Requirements

Besides having a machine to install Ubuntu Server on, you’ll need to download the latest ISO image from the official Ubuntu Server download page. Once you’ve saved that ISO image, what you do next will depend on the type of hardware you plan on using. If you’ll be installing Ubuntu Server as a virtual machine, you only need to create the virtual machine with your tool of choice (such as VirtualBox or VMware). If you’ll be installing Ubuntu Server onto a physical machine, you’ll need to burn that ISO image to a USB flash drive. 

When I say “burn” the ISO image, I don’t mean simply copying it. What you must do is create a bootable image using a tool like Unetbootin, Popsicle, Rufus, Windows USB/DVD Download Tool, RMPrepUSB, Yumi, UUByte ISO Burner, or Wintoflash. Each of these tools works differently, so find one for your desktop operating system of choice. You should find installing and creating a bootable USB drive from the downloaded Ubuntu Server ISO image fairly easy. You can learn how to burn an ISO image to create a bootable USB drive in my tutorial “How to create a bootable Linux USB drive.”

And now, to the installation.

How to install Ubuntu Server  

Either start your virtual machine or insert your USB drive into your machine and boot it up. In the first window, select (using your keyboard up/down arrows) “Try or install Ubuntu Server” and hit Enter on your keyboard.


Show more

The first screen in the Ubuntu Server installation.

The initial installer screen for Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

Depending on the release downloaded, you might be prompted to update the installer. If so, go ahead with the update, to enjoy a simpler, more flexible installation process.

Also: Why the latest Ubuntu update put a smile on my face

Once that’s taken care of, in the next window, select the language for the installation.

Language selection for Ubuntu Server.

Selecting a language for the installation of Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

Using your arrow keys, select your language of choice and hit Enter on your keyboard.

In the resulting window, use your arrow keys to select Update to the new installer and hit Enter on your keyboard.

The Ubuntu Server installer updater.

Screenshot by Jack Wallen/ZDNET

On the next screen, you are asked to configure your keyboard. Select both the layout and the variant.


Show more

The keyboard selection window for Ubuntu Server.

Setting the keyboard layout and variant for Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

When you’re done, select Done (using your arrow keys) and hit Enter on your keyboard.  

Next, we’ll select the base for the installation. You’ll want to select Ubuntu Server (to get the most tools installed by default) and continue.


Show more

Base installation selection for Ubuntu Server.

Selecting the base installation for Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

Now you have two choices. You can use the default DHCP, or configure a static IP address. I prefer configuring static IP addresses, as it ensures the server will always be reachable by a specific IP address.


Show more

Also: My 6 must-have Linux apps for productivity, and why they make work easier

Selecting between DHPC or Static IP addresses.

Choosing the type of network configuration for Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

To set a static IP address, use your arrow keys to select the network connection (in my case, it’s enp0s3) and hit Enter on your keyboard. In the resulting pop-up, select Edit IPv4 and then hit Enter to switch from Automatic to Manual.

Selecting the Manual IP address configuration for Ubuntu Server.

Configuring a static IP address for Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

Configure the static network address in the resulting window according to your needs.

The static IP address configuration window.

Editing enp0s3 as a static IP address.

Screenshot by Jack Wallen/ZDNET

For example, you might enter the following details for the Static IP address:

  • Subnet: 192.168.1.0/16
  • Address: 192.168.1.33
  • Gateway: 192.168.1.1
  • Name servers: 1.0.0.1,1.1.1.1

Also: This SteamOS clone is the best Linux distro for gamers

After setting the configuration, tab down to Done and hit Enter on your keyboard. You can then skip the proxy configuration by hitting Enter again. The last step in the network configuration is selecting the mirror address to use. The mirror address tells your Ubuntu Server instance where to install applications from. Your best bet is to use the default by simply hitting Enter on your keyboard again.   

We will use our entire disk drive for the installation (which is the default), so leave everything as is, tab down to Done, and hit Enter on your keyboard.


Show more

The disk selection screen in the Ubuntu Server installation.

Selecting our disk for the installation.

Screenshot by Jack Wallen/ZDNET

Review the layout (everything should be good) and hit Enter again to accept the configuration. You’ll then be prompted to verify the destructive action, so select Continue with your arrow keys and hit Enter on your keyboard.

Accept the action to being the installation.

Accepting the destructive action that will begin the installation process.

Screenshot by Jack Wallen/ZDNET

You will now be asked to create a user for the installation. Type out the required details, tab down to Done, and hit Enter on your keyboard.


Show more

The user creation screen for Ubuntu Server.

Creating a new user on Ubuntu Server.

Screenshot by Jack Wallen/ZDNET

Also: Look, no patches! Why Chainguard OS might be the most secure Linux ever

You can then skip the upgrade to Ubuntu Pro (unless you need it) by hitting Enter when the Ubuntu Pro screen appears.  

You will want to enable secure shell access to the server (so you can remotely access it). In the resulting window, enable the installation of the OpenSSH server by hitting the spacebar on your keyboard and then tabbing down to Done.


Show more

Installing OpenSSH on Ubuntu Server.

Enabling the installation of OpenSSH.

Screenshot by Jack Wallen/ZDNET

In the next screen, scroll through the list of available software to install (selecting the ones you want with the spacebar). 

The package selection screen for Ubuntu Server.

Marking software for installation.

Screenshot by Jack Wallen/ZDNET

After you’ve made your selections, tab down to Done and hit Enter on your keyboard.

At this point, the installation will begin and should take anywhere from 5-10 minutes to complete. Once it finishes, make sure to select Reboot Now, remove your USB device, and log in with the user you created during the installation.

Also: Want to save your aging computer? Try these 5 Linux distributions

Congratulations, you now have a working instance of Ubuntu Server to use however you see fit. This process shouldn’t take you more than 15-30 minutes to complete.

Looking for the next best product? Get expert reviews and editor favorites with ZDNET Recommends.





Source link

Leave a Comment