Knowledgebase

How to Install Ubuntu on a VPS (Step-by-Step Guide) Print

  • 0

This guide explains how to install Ubuntu Linux on a Virtual Private Server (VPS). Most VPS providers offer Ubuntu as a one-click OS installation, but we also cover manual installation and post-install setup to ensure your server is secure and ready for use.


Prerequisites

Before you begin, make sure you have:

  • An active VPS from your hosting provider

  • VPS login credentials (email, password, or API access)

  • Root password or SSH key

  • A stable internet connection

  • An SSH client:

    • Linux / macOS: Terminal

    • Windows: PowerShell or PuTTY


Method 1: Install Ubuntu Using VPS Control Panel (Recommended)

Most VPS providers (cPanel/WHM, Virtualizor, SolusVM, Proxmox, Cloud panels) support automatic OS installation.

Steps

  1. Log in to your VPS control panel

  2. Go to OS Reinstall / Operating System

  3. Select Ubuntu (recommended versions):

    • Ubuntu 22.04 LTS

    • Ubuntu 20.04 LTS

  4. Set or generate a root password

  5. Click Reinstall / Deploy

  6. Wait 5–15 minutes for installation to complete

Once done, your VPS will reboot automatically.


Method 2: Install Ubuntu via ISO (Advanced Users)

Use this method if your provider allows custom ISO mounting.

Steps

  1. Open the VPS console (VNC / NoVNC)

  2. Mount the Ubuntu Server ISO

  3. Reboot the VPS

  4. Follow the Ubuntu installer:

    • Choose language and keyboard

    • Configure network (DHCP recommended)

    • Set hostname

    • Create root or sudo user

    • Select disk (use entire disk unless custom setup)

  5. Complete installation and reboot

  6. Remove ISO after installation


Connecting to Your Ubuntu VPS

After installation, connect using SSH.

Linux / macOS

 
ssh root@YOUR_SERVER_IP

Windows (PowerShell)

 
ssh root@YOUR_SERVER_IP

Enter your root password when prompted.


Post-Installation Setup (Highly Recommended)

1. Update the System

 
apt update && apt upgrade -y

2. Create a New User (Security Best Practice)

 
adduser username usermod -aG sudo username

Switch to the new user:

 
su - username

3. Secure SSH Access

Edit SSH configuration:

 
nano /etc/ssh/sshd_config

Recommended changes:

 
PermitRootLogin no PasswordAuthentication yes # or no if using SSH keys

Restart SSH:

 
systemctl restart ssh

4. Enable Firewall (UFW)

 
ufw allow OpenSSH ufw enable ufw status

Common Ubuntu Versions for VPS

Version Status Recommended
Ubuntu 22.04 LTS Long-term support ✅ Yes
Ubuntu 20.04 LTS Stable ✅ Yes
Ubuntu 18.04 LTS End of life soon ❌ No

Troubleshooting

SSH Connection Refused

  • Ensure SSH is running:

 
systemctl status ssh
  • Check firewall rules:

 
ufw status

VPS Not Booting

  • Reinstall OS from control panel

  • Verify disk selection

  • Contact VPS provider support


Conclusion

Installing Ubuntu on a VPS is straightforward using your hosting control panel. After installation, always secure your server with updates, firewall rules, and non-root users. Ubuntu LTS versions are recommended for production servers due to long-term support and stability.


Was this answer helpful?

« Back

Chat with us Call us

Looking for the Right Hosting Solution?

Our expert support team is here to guide you to the ideal hosting solution for your specific needs. Get personalized recommendations and answers to all your questions.

Get Expert Consultation

Copyright © 2026 Tupoa Hosting. All Rights Reserved.