Intermediate
How to install Ubuntu OS on Hostinger
Quick Answer
Use Hostinger hPanel for one-click Ubuntu installation on VPS, selecting from templates like 22.04 LTS. Set root password, confirm overwrite of data, and verify via SSH. Expect 2-5 minutes; post-install update packages and create non-root user for security.
Prerequisites
- Hostinger VPS plan (KVM preferred)
- hPanel access with credentials
- SSH client like PuTTY or terminal
- Backup of existing VPS data
- Basic Linux command knowledge
1
Log in to hPanel
Access your Hostinger account at the hPanel login page and sign in using your credentials to reach the dashboard.
2
Navigate to VPS section
From the left-side menu, select VPS, choose your target VPS from the list, and click the Manage button next to it to enter the VPS dashboard.
Tip
If no VPS exists, purchase one first via the VPS section in hPanel.
3
Access OS change panel
In the VPS dashboard, open the OS & Panel dropdown in the left sidebar and select Operating System to view available OS templates including Ubuntu options.
4
Search and select Ubuntu
In the Change OS panel, type
Ubuntu into the search bar and select your desired version, such as Ubuntu 22.04 LTS for stability. This uses pre-configured templates with no custom setup needed.Tip
LTS releases are defaults for reliability; specialized templates exist for apps like Docker.
5
Confirm OS change
Review the warning dialog that the VPS OS will be overwritten and all files deleted. Check the box confirming I recognize that all my files will be deleted and cannot be restored, then click Next. Back up data beforehand as this is irreversible.
6
Set root password
Enter a strong root user password (at least 8 characters with letters, numbers, and symbols). Click Confirm to start installation; a progress bar will appear, typically completing in 2-5 minutes.
Tip
No default password is provided; choose securely.
7
Verify installation
Once complete, check the VPS Overview page showing Ubuntu as the active OS. Note the IP address, root username, and password for access.
8
Connect via SSH
Use a terminal or PuTTY: run
ssh root@your-vps-ip-address and enter the root password. Confirm version with lsb_release -a; default is root user, no sudo needed initially.Tip
Available on Windows, macOS, or Linux.
9
Post-install configuration
Update packages with
apt update && apt upgrade -y. Set timezone via timedatectl set-timezone Your/Timezone (UTC default). For security, create non-root user: adduser yourusername
usermod -aG sudo yourusername.Tip
Avoid prolonged root usage; non-root is recommended.
Troubleshooting
"Init script failed. See /var/log/cloudron-setup.log"
Virtuozzo 7 lacks full GRUB support; check log with
tail -f /var/log/cloudron-setup.log, manually create /etc/default/grub, or switch to KVM VPS."sed: can't read /etc/default/grub: No such file or directory"
Common on Virtuozzo 7 (cheaper plans); verify hypervisor type in hPanel, tweak GRUB manually, or reinstall OS via panel.
Installation hangs or fails
Ensure KVM-based VPS plan, reboot via hPanel, or contact support; Virtuozzo quirks affect Ubuntu 18.04/20.04/24.04.
SSH connection refused post-install
Verify IP, root password, and firewall; reset password in hPanel if needed, then retry
ssh root@IP.Slow performance or errors on cheap plans
Upgrade to KVM VPS with 1GB+ RAM and 20GB SSD; Virtuozzo 7 limits advanced setups.
Ready to get started with Hostinger?
Put this tutorial into practice. Visit Hostinger and follow the steps above.
Visit Hostinger →