XITENS INSIGHTS

Ubuntu vs Debian VPS: the differences and which to choose

Ubuntu or Debian on your VPS? Compare support, updates, speed and memory usage, and set up your Linux server securely in 7 steps.

Ubuntu and Debian compared for a VPS in AmsterdamKNOWLEDGE TO MOVE YOU FORWARD

Ubuntu and Debian are the two most popular Linux distributions for a VPS. They work largely the same way, because Ubuntu is based on Debian. Debian is lighter, uses fewer resources and is extremely stable. That is why it is our recommendation for most servers. Choose Ubuntu for newer software and the widest range of guides. In this article you will learn the differences and set up your VPS securely in 7 steps.

What is the difference between Ubuntu and Debian?

Debian has existed since 1993 and is developed by an independent community of volunteers. The project is known for its stability: new software only enters a stable release after extensive testing. Ubuntu has been released by the company Canonical since 2004 and builds on Debian. Ubuntu opts for newer versions of software and the kernel, and follows a fixed release schedule.

Because both systems share the same foundation, you use the same package manager (apt) and largely the same commands. What you learn on one distribution almost always works on the other.

Ubuntu and Debian compared

UbuntuDebian
Developed byCanonical (company)Community of volunteers
New versionLTS version every 2 yearsStable version roughly every 2 years
Standard support5 years per LTS versionAbout 3 years, plus 2 years of LTS
SoftwareNewer versionsLonger-tested, conservative versions
Memory usageSlightly higher (partly due to snap)Very low, minimal base installation
Guides and communityThe largest selectionLarge, often also usable for Ubuntu
Suitable forDevelopment, Docker, modern applicationsWeb servers, databases, long-term production

When should you choose Debian?

  • Lightweight: a base installation of Debian uses little memory and disk space. That leaves more for your applications, which is especially noticeable on a smaller VPS.
  • Stability: packages are tested for a long time before they enter a stable release. Ideal for web servers, mail servers and databases that need to run for years without surprises.
  • Geen onnodige extra’s: Debian only installs what you need. You decide what runs on your server.

When should you choose Ubuntu?

  • Newer software: more recent versions of the kernel, programming languages and tools. Useful for development and modern applications.
  • The most guides: for almost every application you will find a step-by-step guide for Ubuntu. Much software, such as Docker and n8n, also documents Ubuntu first.
  • Long support: every LTS version receives 5 years of security updates. On a server, always choose an LTS version.

Our advice: Debian

In doubt? Then choose Debian. It is light, uses the fewest resources and is extremely stable, so more memory and computing power remain for your own applications. Almost all step-by-step guides for Ubuntu also work on Debian. Only choose Ubuntu if your application's documentation explicitly asks for it, or if you need the latest software versions.

Set up an Ubuntu or Debian VPS in 7 steps

These steps work on Ubuntu and Debian. You log in as root via SSH with the IP address and password from your welcome email.

Step 1: update your server

apt update && apt upgrade -y

Step 2: create your own user

Do not work as root on a daily basis, but with your own user with sudo rights. On Debian, first install sudo with apt install sudo.

adduser username
usermod -aG sudo username

Step 3: log in with an SSH key

An SSH key is more secure than a password. Run this command on your own computer. Read more in Create an SSH key.

ssh-copy-id username@server-ip

Step 4: disable root login

Does logging in with your own user and key work? Then disable root login. Read how in Disable root login and use sudo.

Step 5: enable the firewall

First allow SSH and then enable the firewall. That way you will not lock yourself out.

apt install ufw -y
ufw allow OpenSSH
ufw enable

Read more in Set up the UFW firewall.

Step 6: set the time zone

timedatectl set-timezone Europe/Amsterdam

Step 7: enable automatic security updates

apt install unattended-upgrades -y
dpkg-reconfigure -plow unattended-upgrades

Read more in Set up automatic updates on Linux.

Did you accidentally lock yourself out? Via the noVNC console in the client area you can always reach your server again.

Which VPS should you choose for Ubuntu or Debian?

For a website, a VPN or a few light applications, a VPS with 1 to 2 cores and 2 GB of memory is sufficient. Thanks to its low memory usage, Debian also runs perfectly well on the smallest plans. An NVMe VPS is ideal for fast websites and databases, from €3.95 per month, excluding 21% VAT. Does your server need to stay online at all times? Then choose a Linux VPS with high availability.

Ubuntu and Debian VPS at Xitens

Xitens has been a hosting provider in Amsterdam since 2014. Our VPS servers run in our own racks with our own network in a TIER III data center in Amsterdam. When ordering, you choose Ubuntu, Debian or AlmaLinux yourself, and you get full root access. Via the noVNC console in the client area you can always reach your server. All VPS plans have an uptime of 99.9%, and our support engineers are available 24/7 via ticket and email.

Read also: Docker on a VPS: install it and run your first containers and Secure your Linux VPS: 9 steps to a secure server.

Frequently asked questions about Ubuntu and Debian

Is Debian faster than Ubuntu?

On the same hardware, the difference in speed is small. Debian does use less memory after installation, leaving more for your applications. You notice this especially on a VPS with little memory.

Can I switch from Ubuntu to Debian later?

Not directly. You reinstall the VPS with the other operating system and then restore your data and configuration. So make a backup beforehand.

Which version should I choose?

With Ubuntu, always choose an LTS version, which receives 5 years of security updates. With Debian, choose the current stable version.

Does software for Ubuntu also work on Debian?

Usually it does. Both use .deb packages and apt. A package built specifically for an Ubuntu version may sometimes need different dependencies on Debian.

KEEP EXPLORING

More knowledge. More possibilities.

All articles ↗