How to Install Ubuntu Server on a Mini PC (Step by Step)

Ubuntu Server is the most common choice for a first homelab, and for good reason. It’s free, it has no desktop to slow things down, and almost every self-hosting guide on the internet assumes you’re running it. The install takes about 15 minutes, but the first time through, a few screens can make you hesitate, like the storage choice, the SSH option, and what to do once you reach the login prompt.

This guide shows you how to install Ubuntu Server on a mini PC from start to finish, including the setup steps that matter right after the install. If you’re still deciding between Ubuntu and a virtualization platform, read our Proxmox vs Ubuntu Server comparison first. If you haven’t bought hardware yet, start with our mini PC homelab guide for beginners.

Which Ubuntu Server version should you install?

Install the latest long-term support (LTS) release. At the time of writing, that is Ubuntu 26.04 LTS, which was released on 23 April 2026. According to Ubuntu’s release notes, it gets five years of security updates, through April 2031, and Ubuntu Pro can extend that. Ubuntu’s download page lists the current point release and the ISO size, which is around 3 GB, so check it before you download.

LTS releases are the safe choice for a server because they’re stable and supported for years. Avoid the short-lived interim releases for a machine you want to leave running.

What you need before you start

  • A mini PC you can wipe. The installer can erase the whole drive, so back up anything you want to keep.
  • A second computer to download the installer and prepare the USB drive.
  • A USB flash drive of at least 8 GB. Its contents will be erased.
  • A monitor and keyboard for the mini PC, just for the install.
  • A wired Ethernet connection to your router.

Check that your mini PC is suitable

Ubuntu’s release notes say a server can run on as little as 1.5 GB of RAM and 4 GB of storage, but that’s the bare minimum for a very small job. For a homelab that runs Docker containers, 8 GB of RAM and a 256 GB SSD is a more realistic starting point, and 16 GB gives you room to grow.

Step 1: Download the installer

Go to the official Ubuntu Server download page and download the Ubuntu Server ISO. Get it only from the official site.

Step 2: Make the bootable USB drive

Use a tool that writes the ISO image to the USB drive, such as balenaEtcher, which works on Windows, macOS, and Linux. Choose the ISO, choose the USB drive, and click Flash. Double-check the drive you select, because everything on it will be erased.

Step 3: Boot the mini PC from USB

Plug the USB drive, keyboard, monitor, and Ethernet cable into the mini PC and turn it on. Press the boot menu key right away. It’s often F7, F10, F11, or F12, depending on the brand, so look for a hint on the logo screen. Choose the USB drive, then choose the Ubuntu Server install option when the menu appears.

If the mini PC boots straight into Windows instead, restart and try again. You can also enter the BIOS to put USB first in the boot order. If the drive still doesn’t boot, try turning Secure Boot off.

Step 4: Walk through the installer

Ubuntu’s own tutorial says the default choices suit a first install, so you can accept most screens as they are. Here is what each one asks:

  1. Language: pick your language.
  2. Installer update: if the installer offers an update, accept it.
  3. Keyboard layout: choose yours.
  4. Network: the installer tries to set up your wired connection with DHCP automatically. Leave it alone unless it fails.
  5. Proxy and mirror: leave these empty unless your network requires them.
  6. Storage: keep the option to use an entire disk, choose the drive you want, and continue. This is the step that erases the drive, so confirm you picked the right one. Skip disk encryption for now, since an encrypted server usually asks for a passphrase at every boot, which is awkward for a machine you manage remotely.
  7. Profile: enter your name, a server name (hostname), a username, and a strong password.
  8. SSH: choose the option to install the OpenSSH server. This is what lets you log in from your main computer, so you won’t need the monitor and keyboard again.
  9. Snaps: you can skip the featured packages. You can add software later.
  10. Install: wait for the installation to finish, then choose to restart.

When the installer asks you to remove the USB drive, do so and press Enter. The mini PC restarts and shows a text login prompt.

Step 5: Log in and find the IP address

Log in with the username and password you created. Then find the server’s IP address:

ip addr

Look for the line starting with inet under your Ethernet interface. The numbers before the slash are your address, for example 192.168.1.50. Our guide to home network basics for homelab beginners explains what these numbers mean and how to keep the address from changing.

Step 6: Connect over SSH

From now on you can unplug the monitor and keyboard. On your main computer, open a terminal (Windows 10 and 11, macOS, and Linux all include an SSH client) and run:

ssh your-username@192.168.1.50

Use your own username and the address from the last step. The first time you connect, you’ll be asked to trust the server. Type yes, enter your password, and you’re in.

Step 7: Do these basics before anything else

Update the system

sudo apt update
sudo apt upgrade

Reboot afterward if the update installed a new kernel:

sudo reboot

Give the server a fixed address

A server needs an address that doesn’t change. The easiest method is a DHCP reservation in your router, which makes the router always give the same address to this machine. It keeps all the settings in one place and doesn’t require any change on the server itself.

Turn on the firewall carefully

Ubuntu includes a simple firewall tool called ufw. The order matters here, because turning it on without allowing SSH first can lock you out:

sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw status

One warning for later: Docker manages its own firewall rules, and published container ports can bypass ufw. Don’t assume ufw alone protects your containers, and check Docker’s firewall documentation when you start running apps. Keep your homelab off the public internet, and don’t forward ports on your router.

Check the time zone

timedatectl

If the time zone is wrong, set it with sudo timedatectl set-timezone Your/Timezone, using a name from timedatectl list-timezones. Correct time makes logs and scheduled jobs much easier to read.

Set up backups early

Once the system is the way you want it, protect it. Our homelab backup strategy for beginners shows a simple plan you can set up in an evening.

What to install first

A good first project is Docker, which lets you run apps in neat, separate packages. Our Docker Compose tutorial for beginners walks you through installing Docker and running your first app on exactly this setup.

Troubleshooting common install problems

The mini PC won’t boot from the USB drive

Check that USB boot is allowed and the drive is first in the boot order. Remake the USB drive with Etcher, try a different USB port, and try turning Secure Boot off.

The installer says there is no network

Check that the Ethernet cable is firmly plugged in at both ends and that the router’s lights are on. You can continue the install without a network, but you’ll need to connect afterward to update the system.

I can’t connect over SSH

Make sure you chose to install the OpenSSH server during setup. Confirm the IP address, that your computer is on the same network, and that you typed the username exactly. If you enabled ufw before allowing SSH, connect with a monitor and keyboard and run sudo ufw allow OpenSSH.

The screen goes blank during boot

Some mini PCs have display trouble during the installer. Try a different video cable or port, and make sure the monitor is on before you power on the mini PC.

Frequently asked questions

Is Ubuntu Server free?

Yes. It’s free and open source. Ubuntu Pro is an optional subscription that extends security coverage, and you don’t need it to follow this guide. Check Ubuntu’s site for its current terms.

Should I install the desktop version instead?

For a homelab server, no. The server edition has no graphical interface, which saves memory and gives you fewer things to update. You manage it from your main computer over SSH.

Can I install Ubuntu Server on a mini PC with 4 GB of RAM?

It will run, but you’ll be limited to a few light services. 8 GB or more is a more comfortable choice for Docker.

Can I install Proxmox and then run Ubuntu Server inside it?

Yes, that’s a popular setup. See our Proxmox vs Ubuntu Server comparison to decide which fits you.

Wrapping up

To install Ubuntu Server on a mini PC, download the LTS ISO, write it to a USB drive, boot from it, and accept the default installer choices, remembering to install the OpenSSH server. Then log in, find the IP address, connect over SSH, update the system, and turn on the firewall with SSH allowed first. From there you have a clean base for Docker, Pi-hole, and the rest of your homelab.

Sources