Anime-Sanctuary
A stepped stone path winding along a rocky ridge in the mist, at the Grand Canyon

Learn to build your own server

Never opened a terminal? Perfect, this is made for you. One step at a time, in plain English, until you run a secure server that hosts your own apps.

  • No prerequisites. Every new word is explained the moment it appears.
  • Tested commands. You see what you should get before you move on.
  • A logical order. Each tutorial builds on the ones before it.

The full course, level by level

35 tutorials in English, in course order. Reading times are estimates.

Level 0: Understand Know what we are talking about before installing anything. 4 tutorials in English
  1. 1Why build your own server?12 minRead
  2. 2What is a server?15 minRead
  3. 3VPS or dedicated server: which one to pick?15 minRead
  4. 4The words: IP, DNS, domain, port, firewall20 minRead
Level 1: First steps Have a server running Debian (a free Linux system) and know how to connect to it. 6 tutorials in English
  1. 5What is SSH?25 minRead
  2. 6Install Debian 13 on a VPS or a dedicated server30 minRead
  3. 7Your first SSH connection20 minRead
  4. 8The terminal for beginners25 minRead
  5. 9Users, sudo and file permissions25 minRead
  6. 10Updates and packages with apt20 minRead
Level 2: Secure it Close the doors before inviting anyone in. 5 tutorials in English
  1. 11Secure SSH: turn off passwords25 minRead
  2. 12A firewall with ufw25 minRead
  3. 13fail2ban20 minRead
  4. 14Read your logs with journalctl20 minRead
  5. 15Your first backup with rsync25 minRead
Level 3: Go online A site on your own domain name, over HTTPS (the encrypted connection, with the padlock). 5 tutorials in English
  1. 16Domain name and DNS20 minRead
  2. 17Your first website with Apache25 minRead
  3. 18HTTPS with Let's Encrypt25 minRead
  4. 19A dynamic site: PHP and MariaDB30 minRead
  5. 20Reverse proxy25 minRead
Level 4: Apps with Docker Install your apps in ready-made boxes (Docker): Nextcloud, Jellyfin, Kavita, passwords. 5 tutorials in English
  1. 21Docker and Docker Compose30 minRead
  2. 22Nextcloud30 minRead
  3. 23Jellyfin25 minRead
  4. 24Kavita25 minRead
  5. 25Vaultwarden45 minRead
Level 5: Link home and server VPN, NAS and AI assistant: one network, home and server together. 4 tutorials in English
  1. 26WireGuard30 minRead
  2. 27Connect your NAS40 minRead
  3. 28An AI assistant on your server35 minRead
  4. 29A seedbox with rTorrent and ruTorrent60 minRead
Level 6: Run and harden Monitor, back up, repair: make the server last. 6 tutorials in English
  1. 30Simple monitoring30 minRead
  2. 31Encrypted backups with restic40 minRead
  3. 32Software RAID and SMART checks40 minRead
  4. 33Diagnose a saturated disk30 minRead
  5. 34Harden a service with systemd30 minRead
  6. 35When things break: the checklist25 minRead

How to follow a tutorial

  1. Read in order. The map at the bottom of each page shows where you are.
  2. Copy the commands. The "Copy" button saves you from typos.
  3. Check. Each step tells you what you should see. If you do not see it, stop: the "If it fails" box is there for that.