How to Migrate cPanel Accounts Between Servers Using WHM Transfer Tool (Zero-Downtime Guide) Moving live…
10 Things to Do After Buying Your First VPS: A Beginner-Friendly Setup Guide

Buying your first virtual private server is an exciting milestone, yet logging into a brand-new server for the very first time can feel intimidating. Unlike shared web hosting—where a control panel, email routing, and basic security rules are already configured for you—a fresh VPS arrives as a completely blank Linux environment waiting for your instructions. Knowing the first things to do after buying a VPS turns that blank slate into a fast, reliable, and secure home for your websites or applications.
Without a clear onboarding routine, beginners often make small setup mistakes that cause frustrating headaches weeks later—such as running out of memory during a routine update, locking themselves out of SSH, or losing site data because automated backups were never enabled. Taking thirty minutes to complete a proper initial setup prevents almost every common beginner issue.
This beginner-friendly guide walks you through the 10 first things to do after buying a VPS, explained in plain English with copy-and-paste commands. Whether you plan to host WordPress, deploy a Node.js or Python app, run Docker containers, or install a free web control panel, completing these foundational steps first ensures your server starts on solid ground.

Before Step 1: Choosing the Right Operating System Template
When you order a VPS or deploy a fresh instance from your hosting dashboard, you are asked to select an operating system image. If you are unsure which option belongs at the top of your checklist of first things to do after buying a VPS, stick with one of these three popular, beginner-friendly Linux distributions:
- Ubuntu 24.04 LTS (Recommended for Most Beginners): Backed by the official Ubuntu Server documentation, Ubuntu Long Term Support (LTS) offers five years of free security updates, massive community tutorial coverage, and smooth compatibility with almost every web stack and control panel.
- Debian 12 (Bookworm): Known for rock-solid stability and a tiny memory footprint, Debian GNU/Linux is an ideal choice for budget 1 GB or 2 GB VPS plans where every megabyte of RAM counts.
- AlmaLinux 9 or Rocky Linux 9: Free, community-driven Enterprise Linux distributions compatible with Red Hat Enterprise Linux (RHEL). Choose one of these if your software specifically requires an RPM-based environment or cPanel/WHM.
Once your instance finishes deploying (usually within 30 to 60 seconds), grab your server’s IPv4 address, default username (usually root), and initial password from your hosting control panel, and begin the 10 first things to do after buying a VPS below.
Quick-Reference Checklist: First 10 Things to Do After Buying a VPS
Use the overview table below to track your progress as you work through the first things to do after buying a VPS from start to finish.
| Step | Setup Task | Why It Matters | Estimated Time |
|---|---|---|---|
| 01 | Connect to Your VPS via SSH | Establishes an encrypted command-line session with your server | 3 minutes |
| 02 | Update OS & System Packages | Installs bug fixes and security patches released since image creation | 3 minutes |
| 03 | Set Hostname & Server Timezone | Keeps log timestamps, cron jobs, and SSL checks accurate | 2 minutes |
| 04 | Create a Non-Root Sudo User | Protects against accidental system-wide typos as root |
3 minutes |
| 05 | Set Up SSH Key Authentication | Replaces vulnerable passwords with cryptographic login keys | 5 minutes |
| 06 | Enable a Basic Host Firewall | Blocks unauthorized network traffic except web and SSH ports | 3 minutes |
| 07 | Add Swap Memory (Virtual RAM) | Prevents Out-Of-Memory crashes on 1 GB–4 GB VPS plans | 3 minutes |
| 08 | Turn On Automatic Security Updates | Keeps critical vulnerabilities patched without daily manual checks | 2 minutes |
| 09 | Point Your Domain Name via DNS | Connects your custom domain to your VPS IPv4 and IPv6 addresses | 4 minutes |
| 10 | Enable Backups & Uptime Alerts | Protects your data and notifies you immediately if your site goes offline | 3 minutes |
Step 1: Connect to Your New VPS via SSH
The very first item on any list of first things to do after buying a VPS is logging into your server remotely using SSH (Secure Shell). Unlike a Windows desktop, a Linux VPS does not load a graphical desktop environment by default—instead, you manage it through a fast, lightweight terminal window.
On macOS, Linux, or Windows 11 (Windows Terminal / PowerShell), open your terminal app and type the following command, replacing 203.0.113.10 with your VPS IPv4 address:
ssh [email protected]
If you are using an older version of Windows, download the free PuTTY SSH client, enter your server’s IP address in the Host Name field, keep port 22 selected, and click Open.
The first time you connect, your terminal displays a message asking if you trust the server’s authenticity fingerprint. Type yes and press Enter, then paste or type your initial root password (note that Linux terminals hide password characters as you type for privacy—nothing appearing on screen is completely normal).
Step 2: Update the Operating System and Installed Packages
Immediately after logging in, updating your software packages is one of the most important first things to do after buying a VPS. Operating system templates used by hosting platforms are often built weeks or months earlier, meaning important stability fixes and security patches are already waiting in the official package repositories.
If you chose Ubuntu or Debian, run the following command to refresh your package list and install all available updates:
apt update && apt upgrade -y
If you chose AlmaLinux or Rocky Linux, use the dnf package manager instead:
dnf upgrade --refresh -y
If the update installs a newer Linux kernel, reboot your server cleanly so the updated kernel takes effect before you continue:
reboot
Wait about 20 seconds for the VPS to restart, then reconnect using the exact same ssh root@YOUR_SERVER_IP command from Step 1.
Step 3: Set Your Server Hostname and Timezone
Configuring a clear server name and accurate system clock is one of those small first things to do after buying a VPS that saves significant confusion later. When you manage multiple servers or read error logs at midnight, seeing a descriptive hostname like web-prod-01 instead of a random string like vps-849201 immediately tells you which machine you are logged into.
Set a clean hostname using hostnamectl:
hostnamectl set-hostname web-prod-01
Next, check your server’s current date, time, and timezone:
timedatectl
Most production servers use UTC (Coordinated Universal Time) so logs and database timestamps stay consistent across global teams and daylight saving changes. If your server is set to an unfamiliar local zone—or if you prefer your own local timezone for scheduled backups—update it with timedatectl:
# Set to UTC (recommended for most servers):
timedatectl set-timezone UTC
# Or list available regions and set a local timezone:
timedatectl list-timezones | grep America
timedatectl set-timezone America/New_York
Step 4: Create a Regular Admin User with Sudo Privileges
Moving away from daily root usage is a universal best practice among the first things to do after buying a VPS. The root user has unrestricted power over the entire operating system—if you accidentally run a destructive command in the wrong folder while logged in as root, Linux will execute it instantly without asking for confirmation.
Creating a standard administrative user lets you work safely day-to-day while prefixing intentional administrative commands with sudo (“superuser do”).
On Ubuntu or Debian, create a new user (replace alex with your preferred username) and add them to the sudo group:
adduser alex
usermod -aG sudo alex
On AlmaLinux or Rocky Linux, create the user, set a strong password, and add them to the wheel group:
useradd -m -s /bin/bash alex
passwd alex
usermod -aG wheel alex
Open a second terminal window on your computer (leave your first root session open just in case) and test logging in as your new user:
ssh [email protected]
sudo whoami
After entering your new user’s password, sudo whoami should print root—confirming your admin privileges work properly.
Step 5: Set Up SSH Key Login (And Stop Typing Passwords)
Switching from passwords to SSH keys is easily one of the smartest first things to do after buying a VPS—both for convenience and security. Automated bots constantly scan public IP addresses on the internet trying thousands of common passwords. An SSH key pair uses a private key stored safely on your personal computer and a matching public key placed on your VPS, making password guessing impossible while letting you log in with a single command.
Open a terminal on your local computer (not inside your VPS session) and generate a modern Ed25519 SSH key pair:
ssh-keygen -t ed25519 -C "my-laptop-vps-key"
Press Enter to accept the default save location (~/.ssh/id_ed25519), and optionally enter a passphrase to protect your key file. Next, upload your public key to your new admin user on the VPS:
ssh-copy-id -i ~/.ssh/id_ed25519.pub [email protected]
(Windows users without ssh-copy-id can run: type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh [email protected] "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys")
Test logging in from a new terminal window. You should now enter your VPS directly via your SSH key! Once key login is verified, disable direct root login and password logins by creating a clean override file referencing the OpenSSH configuration manual:
sudo tee /etc/ssh/sshd_config.d/99-custom.conf > /dev/null <<'EOF'
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
EOF
sudo sshd -t
sudo systemctl reload sshd

Step 6: Turn On a Basic Firewall (UFW or firewalld)
Enabling a firewall is another foundational item on our list of first things to do after buying a VPS. Think of a firewall as a security guard at your server’s front door: it blocks all uninvited network connections by default while allowing only the specific ports your websites and apps need—typically SSH (port 22), HTTP (port 80), and HTTPS (port 443).
On Ubuntu or Debian, configure UFW (Uncomplicated Firewall) with five quick commands:
sudo apt install -y ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo ufw status
On AlmaLinux or Rocky Linux, configure firewalld in the same way:
sudo systemctl enable --now firewalld
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --list-all
Whenever you install a new application later (such as a game server on port 25565 or a custom web panel on port 8443), remember to open that specific port in your firewall first.
Step 7: Add Swap Memory (Essential for 1 GB to 4 GB Budget VPS Plans)
Adding swap memory is one of the most overlooked first things to do after buying a VPS, yet it prevents the #1 cause of sudden crashes on entry-level cloud servers. Many fresh VPS templates ship with 0 MB of swap configured.
What is swap memory? Swap is a dedicated file on your fast NVMe SSD that Linux uses as emergency overflow memory whenever physical RAM fills up temporarily—for example, when running WordPress backups, compiling Node.js assets, or handling a sudden visitor spike. Without swap, the Linux kernel immediately kills your database or web server the instant RAM hits 100%.
Check whether your VPS already has swap enabled:
free -h
If the Swap: row shows 0B, create a 2 GB swap file (ideal for 1 GB to 4 GB VPS plans) with the commands below:
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Finally, adjust the swappiness setting to 10 so Linux prefers fast physical RAM for everyday tasks and only touches disk swap when memory is genuinely running low:
sudo sysctl vm.swappiness=10
echo 'vm.swappiness=10' | sudo tee /etc/sysctl.d/99-swap.conf
Run free -h again to confirm your new 2.0Gi swap space is active.
Step 8: Enable Automatic Security Updates
Software vulnerabilities are discovered every week across web servers, OpenSSL libraries, and Linux packages. Configuring automatic security updates belongs among the first things to do after buying a VPS so critical security patches install automatically in the background without requiring you to log in every morning.
On Ubuntu or Debian, install and enable unattended-upgrades:
sudo apt install -y unattended-upgrades
sudo dpkg-reconfigure --priority=low unattended-upgrades
Select Yes when prompted. On AlmaLinux or Rocky Linux, enable dnf-automatic for security patches:
sudo dnf install -y dnf-automatic
sudo sed -i 's/^upgrade_type = default/upgrade_type = security/' /etc/dnf/automatic.conf
sudo sed -i 's/^apply_updates = no/apply_updates = yes/' /etc/dnf/automatic.conf
sudo systemctl enable --now dnf-automatic.timer
Step 9: Point Your Domain Name to Your VPS (DNS Configuration)
Connecting your domain name is one of the most rewarding first things to do after buying a VPS because it replaces raw IP numbers with your actual website address. Log into wherever your domain’s DNS is managed (such as your domain registrar or Cloudflare DNS) and add the following records:
| Record Type | Host / Name | Value / Points To | TTL |
|---|---|---|---|
| A | @ (root domain) |
Your VPS IPv4 address (e.g., 203.0.113.10) |
Auto / 300s |
| A | www |
Your VPS IPv4 address (e.g., 203.0.113.10) |
Auto / 300s |
| AAAA *(optional)* | @ |
Your VPS IPv6 address (if assigned) | Auto / 300s |
| AAAA *(optional)* | www |
Your VPS IPv6 address (if assigned) | Auto / 300s |
DNS updates usually propagate across the internet within 5 to 15 minutes. You can verify that your domain resolves to your new VPS directly from your terminal:
ping -c 3 yourdomain.com
Once the ping replies come back from your VPS IP address, you are ready to install a web server and issue free Let’s Encrypt SSL certificates.

Step 10: Enable Automated Off-Site Backups and Uptime Monitoring
Rounding out the 10 first things to do after buying a VPS is protecting your work against accidental deletions, failed plugin updates, or unexpected outages. Beginners often assume their VPS comes with automatic daily backups out of the box, only to discover during an emergency that backups had to be toggled on manually.
- Turn On Provider Snapshots / Automated Backups: Open your VPS hosting control panel and enable automated daily or weekly off-site backups. Provider-level snapshots capture your entire disk image outside the virtual machine so you can restore your whole server in one click if an experiment goes wrong.
- Keep Local Backups Off the VPS: If you use a WordPress backup plugin or database dump script, configure it to upload archives to external cloud storage (such as Cloudflare R2, Backblaze B2, AWS S3, or Google Drive) rather than storing giant
.zipfiles inside the VPS itself, where they quickly eat up your NVMe disk space. - Set Up Free Uptime Monitoring: Add your domain or server IP to a free monitoring tool (such as UptimeRobot, Better Stack, or HetrixTools) so you receive an instant email or mobile notification if your website ever stops responding.
What to Do Next: Choosing Your Server Stack or Control Panel
Once you finish these 10 first things to do after buying a VPS, your server is clean, updated, protected by a firewall, and linked to your domain. From here, pick the deployment path that best matches your comfort level:
- Prefer a Visual Dashboard? Install a free, modern VPS control panel like CloudPanel, HestiaCP, or CyberPanel to manage WordPress sites, databases, cron jobs, and SSL certificates through a browser interface.
- Deploying Modern Web Apps or Containers? Install Docker Engine or a self-hosted PaaS dashboard like Coolify or Dokploy to deploy Git repositories with automatic HTTPS.
- Want Even Deeper Protection & Diagnostics? When you are ready to go beyond beginner setup, explore our advanced Linux server hardening checklist for Fail2Ban and kernel tuning, or bookmark our Linux server troubleshooting guide to diagnose CPU, RAM, and disk bottlenecks like a pro.
Frequently Asked Questions About Setting Up a New VPS
How long does it take to complete the first things to do after buying a VPS?
Working through all 10 first things to do after buying a VPS takes roughly 25 to 35 minutes on your very first server. Once you get familiar with SSH and basic Linux commands, you can complete the entire setup on future servers in under 10 minutes.
Should I choose Ubuntu or Debian for my first VPS?
Both Ubuntu 24.04 LTS and Debian 12 are excellent choices when checking off the first things to do after buying a VPS. Choose Ubuntu 24.04 LTS if you want the widest selection of beginner tutorials and third-party installer scripts, or choose Debian 12 if you are running a smaller 1 GB RAM VPS and want the lightest possible baseline memory usage.
Do I need to buy a cPanel license for a new VPS?
No. While cPanel is popular on traditional shared hosting, its monthly licensing fee often costs more than a VPS itself. Most VPS owners either manage their sites via free open-source panels (such as CloudPanel, HestiaCP, or Virtualmin) or deploy apps directly via Nginx, Docker, and SSH.
What happens if I make a mistake while configuring my first VPS?
One of the biggest advantages of owning a VPS is that you can rebuild or reinstall the operating system from your hosting dashboard in under a minute. Always take a quick manual snapshot in your control panel after finishing the first things to do after buying a VPS—that way, if you ever misconfigure a web server or firewall later, you can roll back to your clean baseline in seconds.
Ready to Launch on Your New VPS
Starting out with an unmanaged virtual private server does not require years of system administration experience. By following these 10 first things to do after buying a VPS—securing SSH with keys, activating a firewall, adding swap memory, automating security updates, connecting your domain, and enabling backups—you eliminate the most common beginner pitfalls before launching your first project.
Save this checklist for every new server you spin up, take a clean snapshot once your baseline is ready, and enjoy the speed, control, and predictability of running your own VPS infrastructure.
