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, 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 case | Typical packages |
|---|---|
| WordPress / WooCommerce | Nginx, PHP-FPM, MariaDB, Redis, Certbot |
| Node.js app | Node.js LTS, a process manager, Nginx as reverse proxy |
| Python app | Python, a WSGI server, Nginx, PostgreSQL |
| Containers | Docker Engine and Compose |
| Virtualization | Consider 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
| Task | Command |
|---|---|
| See running services | systemctl list-units --type=service --state=running |
| Restart a service | sudo systemctl restart nginx |
| Read a service's logs | journalctl -u nginx --since "1 hour ago" |
| Check listening ports | sudo ss -tulpn |
| Check disk usage by folder | sudo du -sh /var/* | sort -h |
| Live resource view | htop |
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
- System fully updated and rebooted.
- Named sudo user with SSH key; root and password login disabled.
- UFW enabled with only required ports.
- Unattended upgrades and Fail2ban running.
- Web stack installed and secured; databases not public.
- TLS certificate installed and auto-renewing.
- Off-site backups working and a restore tested.
- Monitoring and alerts configured.
- 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?
How do I install Ubuntu on a dedicated server myself?
Do I need a control panel on Ubuntu?
What is the first thing to secure on a new Ubuntu server?
Can I run Docker on an Ubuntu dedicated server?
Does SkyRain Cloud support Ubuntu on dedicated servers?
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.
| Plan | Cores / Threads | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| Business 2× Intel Xeon E5-2699 v4 (Mumbai / Delhi) | 44 / 88 (2.2 GHz base, 3.6 GHz turbo) | 128 GB DDR4 ECC | 1 TB NVMe SSD | 1 Gbps | ₹17,999/month | Business websites, stores, databases, ERP and many client sites | Order |
| Enterprise 2× Intel Xeon Platinum 8269CY (Mumbai / Delhi) | 52 / 104 (2.5 GHz base, 3.8 GHz turbo) | 128 GB DDR4 ECC | 1 TB NVMe SSD | 1 Gbps | ₹19,999/month | Virtualization hosts, large databases, SaaS and container platforms | Order |
| Custom | More RAM or storage, a second server for failover, or several servers for a cluster: quoted by the team. | Clusters, failover pairs, unusual specs | Ask | ||||
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.