Setup & Tech Guides9 min read•Last updated: •By SkyRain Cloud Team

Ubuntu Dedicated Server Setup Guide for Beginners

A brand-new dedicated server is a blank machine with an IP address and a login. For someone who has only used shared hosting or a control panel, the first hour can feel daunting. This Ubuntu dedicated server setup guide walks you through it in order: installing Ubuntu, logging in safely, locking it down, installing a web stack and putting backups and monitoring in place.

The short answer: install a current Ubuntu Server LTS release, update it, create your own admin user, switch to SSH keys, enable the firewall and automatic security updates, then install only the software you need. Each step below includes the commands to run. If you are still deciding on an operating system, read Linux vs Windows dedicated servers first.

Quick answer

To set up Ubuntu on a dedicated server: install the current Ubuntu Server LTS (via the provider's installer or your own ISO through IPMI/iLO), log in and run apt update and apt full-upgrade, set hostname and time zone, create a sudo user, add your SSH key and disable password and root login, enable UFW with only needed ports, turn on unattended security upgrades and Fail2ban, install your web stack, then configure off-site backups and monitoring.

Before you start

  • Your server's IP address and initial login details.
  • IPMI or iLO access, in case you lock yourself out.
  • An SSH client (Terminal on macOS/Linux, Windows Terminal or PuTTY on Windows).
  • An SSH key pair on your computer (we create one below).
  • About two hours of uninterrupted time.
Ubuntu dedicated server setup – SkyRain Cloud bare metal servers in India

Ubuntu dedicated server setup, step 1: install Ubuntu Server LTS

Many providers can pre-install Ubuntu for you. To install it yourself, download the current LTS ISO from the official Ubuntu Server download page, mount it through the iLO or IPMI virtual media feature, reboot the server from it and follow the installer. Choose a minimal installation, set up your disks (mirroring if you have two drives), and enable the OpenSSH server when asked.

Step 2: first login and updates

ssh youruser@your.server.ip
sudo apt update
sudo apt full-upgrade -y
sudo reboot

After reboot, set the hostname and time zone so logs make sense:

sudo hostnamectl set-hostname web01.example.in
sudo timedatectl set-timezone Asia/Kolkata

Step 3: create your admin user

sudo adduser yourname
sudo usermod -aG sudo yourname

Use this named account for everything from now on, not root.

Step 4: set up SSH keys and lock down SSH

On your own computer:

ssh-keygen -t ed25519
ssh-copy-id yourname@your.server.ip

Test logging in with the key. Then on the server, edit /etc/ssh/sshd_config (or add a file in /etc/ssh/sshd_config.d/) and set PasswordAuthentication no and PermitRootLogin no. Reload SSH with sudo systemctl reload ssh and test a new login in a second window before closing your current one. More options are in SSH security best practices.

Step 5: enable the firewall

sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status verbose

Only open ports for services you actually run. See firewall best practices for restricting SSH by IP.

Step 6: automatic security updates and Fail2ban

sudo apt install unattended-upgrades fail2ban -y
sudo dpkg-reconfigure --priority=low unattended-upgrades
sudo systemctl enable --now fail2ban

Ubuntu's guide to automatic updates explains the options, including automatic reboot times.

Step 7: install your web stack

For a typical PHP website or store (a "LEMP" stack):

sudo apt install nginx mariadb-server php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-zip php-intl redis-server -y
sudo mysql_secure_installation

Then create a database and user for your site, configure an Nginx server block for your domain, and install a free TLS certificate with Certbot. For other stacks (Node.js, Python, Docker), install those instead; keep the server to what you need.

Use caseTypical packages
WordPress / WooCommerceNginx, PHP-FPM, MariaDB, Redis, Certbot
Node.js appNode.js LTS, a process manager, Nginx as reverse proxy
Python appPython, a WSGI server, Nginx, PostgreSQL
ContainersDocker Engine and Compose
VirtualizationConsider Proxmox VE instead of Ubuntu as the host OS

Step 8: backups

Before any real data goes on the server, set up daily off-site backups of databases and files using a tool such as restic or Borg, and test a restore. See automated backups on a dedicated server.

Step 9: monitoring

  • An external uptime check for your site every minute.
  • Disk, memory and CPU alerts (for example with Netdata or a hosted agent).
  • Email or chat notifications that reach a real person.

Day-to-day maintenance after setup

Once the server is running, a light routine keeps it healthy. Each week, log in and run sudo apt update && apt list --upgradable to see what is waiting beyond automatic security patches, apply updates on staging first for anything that affects your applications, and check whether a reboot is required (Ubuntu shows a message, and /var/run/reboot-required exists). Glance at disk space with df -h, memory with free -h and recent failed logins in the Fail2ban status. Once a month, test a restore from backup and review who has access. Every couple of years, plan an upgrade to the next LTS release, testing it on a copy first.

Useful commands for beginners

TaskCommand
See running servicessystemctl list-units --type=service --state=running
Restart a servicesudo systemctl restart nginx
Read a service's logsjournalctl -u nginx --since "1 hour ago"
Check listening portssudo ss -tulpn
Check disk usage by foldersudo du -sh /var/* | sort -h
Live resource viewhtop

Where to get help

The official Ubuntu documentation is the best starting point, followed by the documentation for each package you install. For hardware, network or access problems on the server itself, open a ticket with your provider and include your server IP and what you have tried. Keep notes of every change you make; when something breaks months later, your own notes are often the fastest way to find out why.

Post-setup checklist

  1. System fully updated and rebooted.
  2. Named sudo user with SSH key; root and password login disabled.
  3. UFW enabled with only required ports.
  4. Unattended upgrades and Fail2ban running.
  5. Web stack installed and secured; databases not public.
  6. TLS certificate installed and auto-renewing.
  7. Off-site backups working and a restore tested.
  8. Monitoring and alerts configured.
  9. Everything documented in one place.

For the complete security routine, see how to secure a dedicated server.

A hypothetical first server

A small digital agency gets its first dedicated server to host a dozen client WordPress sites. The developer follows this guide on a Saturday morning: installs Ubuntu LTS through iLO, updates it, creates two named sudo users (one for each partner), sets up SSH keys and turns off password login, enables UFW for SSH, HTTP and HTTPS, and turns on automatic security updates. In the afternoon, they install Nginx, PHP-FPM, MariaDB and Redis, create a separate system user and database for each site and add certificates with Certbot. By evening, nightly restic backups are running to object storage and an uptime monitor checks every site. Migrating the sites over the following week is straightforward because the foundation is already solid.

What to learn next

Once the basics are comfortable, the next useful skills are writing your setup as a script so the server can be rebuilt quickly, learning to read Nginx and PHP logs to diagnose problems, tuning MariaDB and PHP-FPM for your memory, and using containers for applications with unusual requirements. If you will host many sites, compare installing cPanel or another panel with managing everything by hand.

Beginner mistakes

  • Disabling password login before testing key login.
  • Enabling UFW without allowing SSH first.
  • Working as root for everything.
  • Installing every package "just in case".
  • Leaving backups for later.

Why businesses choose SkyRain Cloud dedicated servers

SkyRain Cloud dedicated servers make an Ubuntu setup straightforward:

  • Indian data centers, Indian latency. Intel Xeon dedicated servers are hosted in Mumbai and Delhi, close to customers across India.
  • The whole machine is yours. 100% unshared hardware: no other tenants competing for CPU, memory or disk.
  • DDoS protection included on the network, so a flood aimed at your IP does not have to become your problem alone.
  • Full control. Root or Administrator access plus iLO/IPMI out-of-band management to reboot, reinstall or mount your own ISO.
  • Real support channels. 24/7 support tickets, WhatsApp and a Discord community, plus a public status page.
  • Simple billing. Monthly billing in rupees with UPI, net banking and cards.

Frequently Asked Questions

Which Ubuntu version should I use on a dedicated server?
Use the current Ubuntu Server LTS (long-term support) release. LTS versions receive security updates for several years, which suits production servers.
How do I install Ubuntu on a dedicated server myself?
Mount the Ubuntu Server ISO through IPMI or iLO virtual media, boot from it and follow the installer. Many providers can also pre-install Ubuntu for you.
Do I need a control panel on Ubuntu?
No. Many developers manage Ubuntu over SSH. A panel can help if you host many sites or prefer a web interface.
What is the first thing to secure on a new Ubuntu server?
SSH: create a sudo user with key-based login, then disable password and root login. Enable the UFW firewall and automatic security updates next.
Can I run Docker on an Ubuntu dedicated server?
Yes. Ubuntu is one of the most common hosts for Docker Engine and Docker Compose.
Does SkyRain Cloud support Ubuntu on dedicated servers?
Yes. You can install Ubuntu or any other Linux distribution through iLO, with full root access once it is running.

Conclusion

An Ubuntu dedicated server setup follows a clear order: install the LTS release, update, create your user, lock down SSH, enable the firewall and automatic security updates, install only what you need, then add backups and monitoring. Do these well once and your server will be a stable, secure base for years.

Compare SkyRain Cloud's plans below, or see the full specs on our dedicated server page.

SkyRain Cloud Dedicated Server Plans

Unshared Intel Xeon bare-metal servers in Mumbai and Delhi data centers with 1 Gbps connectivity. Every plan includes iLO / IPMI out-of-band management, DDoS protection, Full root / Administrator access, Additional IPv4 addresses available and Billed monthly.

PlanCores / ThreadsRAMStorageNetworkPriceGood forBuy
Business
2× Intel Xeon E5-2699 v4 (Mumbai / Delhi)
44 / 88 (2.2 GHz base, 3.6 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹17,999/monthBusiness websites, stores, databases, ERP and many client sitesOrder
Enterprise
2× Intel Xeon Platinum 8269CY (Mumbai / Delhi)
52 / 104 (2.5 GHz base, 3.8 GHz turbo)128 GB DDR4 ECC1 TB NVMe SSD1 Gbps₹19,999/monthVirtualization hosts, large databases, SaaS and container platformsOrder
CustomMore RAM or storage, a second server for failover, or several servers for a cluster: quoted by the team.Clusters, failover pairs, unusual specsAsk

Prices are monthly in INR as listed on the SkyRain Cloud store (verified 2026-11-23). Live stock and final price are shown at checkout.

Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning