Install Ubuntu Server in Under 30 Minutes
In this article
Yes, you can install Ubuntu Server in under 30 minutes if you prepare the USB drive beforehand and use the automated installer. This guide walks you through the entire process, from creating a bootable USB to logging into your new server. You'll need a PC (or VM) with at least 2GB RAM, 10GB free disk space, and a stable internet connection for updates.
What You'll Need
- A computer (or virtual machine) with at least 2GB RAM and 10GB free disk space
- A USB drive (4GB or larger) — this will be erased
- Another computer to create the bootable USB
- Ubuntu Server ISO image (download from ubuntu.com/download/server)
- BalenaEtcher or Rufus (free tools) to write the ISO to USB
- Keyboard and monitor (or a way to access the console) for the initial setup
Step-by-Step
- Download the Ubuntu Server ISO — Go to ubuntu.com/download/server and download the latest LTS version (e.g., 22.04 or 24.04). Save it to your desktop.
- Create a bootable USB drive — Insert your USB drive. Open BalenaEtcher (or Rufus on Windows), select the downloaded ISO, select the USB drive, and click "Flash". Wait for it to finish — this usually takes 2-5 minutes.
- Boot from the USB — Insert the USB into the target machine. Restart it and press the boot menu key (commonly F12, F10, or Esc — check your motherboard manual). Choose the USB drive from the boot menu.
- Select "Try or Install Ubuntu Server" — When the GRUB menu appears, highlight "Try or Install Ubuntu Server" and press Enter.
- Choose your language — Use the arrow keys to select your preferred language, then press Enter.
- Select "Install Ubuntu Server" — On the next screen, choose "Install Ubuntu Server" (not "Test memory" or other options).
- Configure the network — The installer will detect your network. If you have DHCP (typical home router), it will automatically get an IP. If not, select the interface and configure it manually. Press Enter to continue.
- Configure proxy (optional) — Leave this blank unless you use a proxy server. Press Enter.
- Configure Ubuntu archive mirror — Leave the default mirror (or choose a local one if you know it). Press Enter.
- Partitioning — Choose "Use an entire disk" and press Enter. Select the disk you want to install on (usually the only one). Then choose "Set up this disk as an LVM group" (recommended) or "Use the entire disk" without LVM. Press Enter.
- Confirm partitioning — The installer will show a summary. Select "Done" and confirm that you want to erase the disk. This deletes all data on that disk.
- Set up your profile — Enter your name, server name (e.g., "ubuntuserver"), username, and a strong password. Press Enter.
- Enable SSH (optional but recommended) — On the "SSH Setup" screen, check "Install OpenSSH server" if you want to manage the server remotely. Press Enter.
- Choose featured snaps (optional) — You can skip this by pressing Enter. It's not needed for a basic server.
- Wait for installation — The installer will copy files and install the system. This takes 5-10 minutes depending on your hardware.
- Reboot — When prompted, remove the USB drive and press Enter to reboot. The system will restart into your new Ubuntu Server.
- Log in — At the login prompt, enter the username and password you created. You're now in your Ubuntu Server.
Common Mistakes
- Wrong boot key — Pressing the wrong key at startup won't open the boot menu. Check your motherboard manual for the exact key.
- Not disabling Secure Boot — Some systems won't boot Ubuntu Server with Secure Boot enabled. Enter your BIOS/UEFI settings and disable Secure Boot if you see a "Verification failed" error.
- Choosing the wrong disk — If you have multiple disks, you might accidentally erase the wrong one. Double-check the disk size and model before confirming.
- Weak password — A short or simple password makes your server vulnerable. Use at least 12 characters with a mix of letters, numbers, and symbols.
- Skipping SSH — If you plan to manage the server remotely, forgetting to install OpenSSH means you'll have to install it later manually.
Tips
- Use a wired connection — A wired Ethernet connection is more stable than Wi-Fi during installation, reducing the chance of network issues.
- Write down your IP address — After installation, run
ip ato see your server's IP. You'll need it for SSH access. - Update immediately — After logging in, run
sudo apt update && sudo apt upgradeto install the latest security patches. - Take a snapshot (if in a VM) — If you're installing in a virtual machine, take a snapshot before installation so you can easily revert if something goes wrong.
- Use LVM — LVM makes it easier to resize partitions later. It's the default option and is worth keeping.
Troubleshooting
If the installer freezes or crashes: Restart and try again. If it persists, check that your system meets the minimum requirements (2GB RAM, 10GB disk). Try using the "Install Ubuntu Server (safe graphics)" option if available.
If you get a "No bootable device" error after reboot: The USB drive might still be in the boot order. Remove it and restart. If the issue persists, re-enter the boot menu and select the hard drive manually.
If the network doesn't work: Check that your Ethernet cable is plugged in. If you're using Wi-Fi, the installer may not support it — use an Ethernet adapter or a USB-to-Ethernet dongle.
If you forgot your password: You'll need to boot into recovery mode. Restart, hold Shift to get to GRUB, select "Advanced options", then choose "Recovery mode" and select "root" to reset the password.
Frequently Asked Questions
Can I install Ubuntu Server on a machine with Windows already installed?
Yes. The installer will let you erase the entire disk, which removes Windows. If you want to keep Windows, you'd need to dual-boot, which is more complex and not covered here.
Do I need a monitor and keyboard after installation?
No. If you installed OpenSSH, you can remove the monitor and keyboard and connect remotely via SSH from another computer using your server's IP address.
How long does the installation actually take?
With a decent internet connection and a modern computer, the whole process takes about 20-25 minutes, including the USB creation time. The actual installation part is usually under 10 minutes.
Can I install Ubuntu Server on a Raspberry Pi?
Yes, but the process is different. You download the Raspberry Pi version of Ubuntu Server and use the Raspberry Pi Imager to write it to an SD card. The steps in this guide are for standard x86 computers.
What's the difference between Ubuntu Server and Desktop?
Ubuntu Server has no graphical interface — it's command-line only. It uses fewer resources and is designed for running services. You can install a GUI later if needed, but it's not necessary for most server tasks.
Is it safe to erase the entire disk?
Yes, if you don't need any data on that disk. The installer will warn you before erasing. Make sure you've backed up any important files from that computer before proceeding.