What specification you need
Less than the provider's recommendation, almost certainly.
| Use | RAM | Disk |
|---|---|---|
| Static site, small app, bot | 1 GB | 25 GB |
| App plus database | 2 GB | 50 GB |
| Several apps, or CI | 4 GB | 80 GB |
| Local AI models | 16 GB+ | 100 GB+ |
Start small. Every mainstream provider lets you resize upward later, and most do not let you resize down — so guessing high costs you every month for a year.
Which region
Pick the region closest to your users, not to you. Latency to a server in another continent is a tax on every single request, and it is the easiest performance problem to avoid and the hardest to fix later.
For a Pakistani audience, somewhere in the Gulf or Singapore is usually meaningfully faster than Europe or the US east coast.
Choose Ubuntu LTS
When the provider asks for an image, pick the current Ubuntu LTS. Not because it is better than Debian or Rocky, but because almost every tutorial, Docker image and vendor install script assumes it — and when something breaks at midnight, the answer you find will be written for Ubuntu.
First connection
The provider gives you an IP address and either a root password or asks for an SSH key. If it offers to add your key during creation, do that — it skips the password step entirely.
ssh root@YOUR_SERVER_IP
You will be asked to confirm the host fingerprint. Say yes. Your machine remembers it, and a warning about a changed fingerprint later is a real signal worth investigating rather than clicking through.
Immediately: update everything
apt update && apt upgrade -y
A fresh image is built from a snapshot that may be weeks or months old. The first thing you do on any new server is apply the patches that accumulated since.
If the upgrade prompts about a new kernel, let it finish and reboot:
reboot
Wait thirty seconds and reconnect.
Look around
hostnamectl # OS version and kernel
free -h # memory
df -h # disk
ip addr # addresses, including IPv6 if you have one
Note whether you have an IPv6 address. If you do, your firewall rules must cover it too — a common oversight that leaves a server locked down on IPv4 and wide open on IPv6.
Do not install anything yet. The next two chapters close the door before you start putting things behind it.