Home server for beginners: build it with a Raspberry Pi
Build a tiny, silent server that uses just a few watts and runs useful services all day. No Linux experience needed: every step is explained.

Last updated November 18, 2026.
Why a tiny computer?
A Raspberry Pi is a complete computer the size of a credit card. It has a processor, memory, network and USB ports, and it usually idles at only 3 to 6 watts. That is a fraction of what an old PC uses, so it can run all day for pennies. It is also silent and fits anywhere.
The trade-off is power: it is slower than a desktop. It is perfect for ad blocking, dashboards, smart-home apps, monitoring and other small services. It is not the right tool for heavy jobs like running big AI models or editing video.
If you would rather reuse a PC you already have, follow the old PC guide instead. Both end in the same place: a server running Docker.
Which tiny computer should I buy?
All of these run Linux and Docker. The difference is how easy your life will be.
| Option | Good for | Watch out for |
|---|---|---|
| Raspberry Pi 4 or 5 | The safest choice. A huge community, and almost every tutorial works as written. | Prices vary. Buy the official power supply. |
| Orange Pi, Radxa, Banana Pi | Often cheaper, or faster for the money. | Software support and documentation are thinner. Some images get few updates. |
| A used mini PC (for example with an Intel N100 chip) | Runs any normal PC software. Idles at roughly 6 to 10 watts. | Uses more power than a Pi, and is physically larger. |
For your first server, get a Raspberry Pi with 4 GB of RAM or more. 8 GB is comfortable if you plan to run many services. The rest of this guide uses a Raspberry Pi 4 or 5.
What you need
- The board, or a kit that already includes a case and a power supply.
- The official power supply for your model. Pi 4: 5 V 3 A (15 W). Pi 5: 5 V 5 A (27 W). A weak phone charger causes strange random errors.
- A microSD card of 32 GB or more, or a small USB SSD (recommended, see step 4).
- A case with a heatsink or fan. Small computers throttle themselves when they get hot.
- A network cable and a free port on your router.
- A second computer to write the system and follow this guide.
Step 1: Write the system to the card
The operating system is the main software the computer runs. For a server we use Raspberry Pi OS Lite, which has no desktop and so leaves all the memory for your services.
- On your second computer, install Raspberry Pi Imager. It is free and official.
- Choose your board, then the system: Raspberry Pi OS (other) → Raspberry Pi OS Lite (64-bit).
- Choose the storage: your microSD card (or the SSD if you are skipping the card).
- Before writing, open the customisation settings (the button is called "Edit settings" or shown as a gear, depending on the version). Set a hostname, a username and password, and turn on SSH. If you can't use a cable, add your Wi-Fi here too.
- Write the card, insert it into the Pi, connect the network cable and plug in the power.
Step 2: Connect to it from your main computer
Wait a minute or two for the first boot. The Pi asks your router for an address and joins your network. SSH lets you control it from your normal computer by typing commands, so the Pi never needs a screen or a keyboard.
Open a terminal (PowerShell on Windows) on your main computer and connect using the hostname you chose:
ssh yourname@<hostname>.localReplace yourname with your username and <hostname> with the hostname you chose (for example raspberrypi). Accept the fingerprint question and type your password. If the name doesn't work, open your router's page, find the Pi in the list of connected devices and connect with its address instead, for example ssh [email protected].
Then, in your router, give the Pi a fixed address (often called a DHCP reservation) so it never changes. Finally, update everything before doing anything else:
sudo apt update && sudo apt upgrade -yStep 3: Protect your storage
A server writes to its disk all day. microSD cards wear out under that kind of use, and a corrupted card is the most common way Raspberry Pi servers fail. You have two good options:
- Boot from a USB SSD (recommended). Pi 4 and Pi 5 can boot from USB. It is faster and lasts much longer, and a small SSD is cheap. In Imager, choose the SSD as the storage instead of the card. On a Pi 4 you may need to enable USB boot first with
sudo raspi-config→ Advanced Options → Boot Order. - Keep the microSD, but be careful. Use a good-quality card, avoid heavy logging, and back up often.
Either way, keep a backup of anything important. A backup you have never tried to restore is only a hope.
Step 4: Install Docker
Docker runs every app in its own sealed box, called a container, so one app can't break the others or the system underneath. The official script works on Raspberry Pi OS:
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USERLog out and back in so the change applies, then test it:
docker run hello-worldPiping a script into sh means trusting it. If you prefer, read it first or follow the official install guide.
Step 5: Your first service: Pi-hole
The Raspberry Pi is the classic home of Pi-hole, a program that blocks ads and trackers for every device on your network. It works as your network's DNS server: it answers the "where is this website?" questions and silently refuses the ones that lead to ads.
Install it with the official installer, and follow the prompts:
curl -sSL https://install.pi-hole.net | bashWhen it finishes, set a password for its dashboard and open it in your browser:
sudo pihole setpasswordThe dashboard lives at http://raspberrypi.local/admin (or your Pi's address followed by /admin). To make it protect your whole network, open your router's settings and set the DNS server to the Pi's address. If something goes wrong, you can always put the router's DNS back and the internet works again.
Other good first services: Uptime Kuma (tells you when something goes down) and Vaultwarden (your own password manager). Add one at a time, and move on only when the last one works.
How much will it cost to run?
- kWh per day = watts × 24 ÷ 1000
- A Pi idling at about 5 W uses roughly 0.12 kWh per day, around 44 kWh a year.
- An old PC idling at 30 W uses six times more.
Multiply by your electricity price per kWh to get the cost. To measure the real number instead of guessing, plug the Pi into a smart plug that reports watts. Under load, a Pi uses more, so measure it while your services are busy too.
If something goes wrong
- A lightning bolt icon or random crashes: the power supply is too weak. Use the official one.
- I can't connect with SSH: check that the Pi is on and that its network cable is connected. Make sure you turned on SSH in Imager. Try the Pi's address from your router instead of
raspberrypi.local. - It is very slow or restarts on its own: check the temperature with
vcgencmd measure_temp. Above about 80 °C it slows down: add a heatsink or a fan. - Docker says "permission denied": log out and back in after the
usermodcommand. - The microSD card got corrupted: this is why step 3 recommends an SSD and backups. Write the system again and restore your backup.
Next up: storage, backups and remote access, so you can reach your server safely from anywhere.