keepcalculator

06 Numbers and Powers

Homelab Projects to Try This Weekend

Card No. 06·87727 · Updated · Standard formula, shown below

If you have a spare computer, a Raspberry Pi, or even an old laptop, this weekend is a great time to start a homelab project. You will learn hands-on skills in networking, virtualization, and self-hosting while building something useful for your home or personal workflow. Below are several projects you can realistically complete in two days, with clear steps and context to help you choose the right one.

Why Start a Homelab?

A homelab is a dedicated space (physical or virtual) where you run servers, services, and experiments that you control. People start homelabs to learn IT skills, host personal services like file storage or media streaming, or simply to have a playground for testing software. The appeal is that you can break things, fix them, and learn without affecting production systems. Even a modest setup—like a Raspberry Pi 4 with a USB drive—can run dozens of services that replace cloud subscriptions.

Project 1: Set Up a NAS with Samba or NFS

A Network-Attached Storage (NAS) is one of the most practical first projects. You take any computer with a decent-sized hard drive, install a Linux distribution (Ubuntu Server or Debian), and configure file sharing. Samba is the standard for Windows/macOS/Linux interoperability; NFS is lighter and works best in a Linux-only environment.

  • What you need: A machine with at least 2GB RAM, a hard drive (even an external USB drive), and a network connection.
  • Steps: Install Ubuntu Server, create a user, install Samba (sudo apt install samba), edit /etc/samba/smb.conf to share a folder, set a password with smbpasswd, and restart the service.
  • Test: On another computer, try to access smb://your-server-ip/share (Linux) or \\your-server-ip\share (Windows).

This project teaches you file permissions, network protocols, and basic server administration. It also gives you a private cloud for backups or media.

Project 2: Run a Pi-hole for Ad-Blocking

Pi-hole is a network-wide ad blocker that runs on a Raspberry Pi or any Linux machine. It works by acting as your DNS server, filtering out known ad and tracking domains before they reach your devices. It is one of the quickest wins: installation takes about an hour, and you immediately see fewer ads on all devices that use your Wi-Fi.

  1. Install Raspberry Pi OS Lite (or Ubuntu Server) on your Pi.
  2. Run the one-line installer: curl -sSL https://install.pi-hole.net | bash.
  3. When prompted, choose your network interface and upstream DNS provider (like Google or Cloudflare).
  4. Set a static IP address for your Pi in your router’s DHCP settings.
  5. Point your router’s DNS to the Pi’s IP address.

After that, you can view blocked queries in the web dashboard at http://pi.hole/admin. This project introduces you to DNS, DHCP, and basic network security concepts.

Project 3: Build a Docker Media Server (Plex or Jellyfin)

If you have a collection of movies, TV shows, or music, a media server lets you stream them to any device. Jellyfin is open-source and free; Plex is easier for non-technical users but has paid features. Both run well in Docker, which also teaches you containerization—a key skill in modern IT.

  • Install Docker on your server: curl -fsSL https://get.docker.com | sh.
  • Create a docker-compose.yml with services for Jellyfin and optionally a downloader like Sonarr or Radarr (if you legally acquire content).
  • Mount your media folders as volumes, e.g., /media/movies:/media/movies.
  • Access the web UI at http://your-server-ip:8096 for Jellyfin.

This project covers persistent storage, port mapping, and service management. It also gives you a reason to organize your files.

Project 4: Create a Personal VPN with WireGuard

A VPN lets you securely access your home network from anywhere. WireGuard is a modern, fast, and simple VPN protocol. Setting it up on a Linux server takes about 30 minutes and is far more secure than port-forwarding individual services.

  1. Install WireGuard: sudo apt install wireguard.
  2. Generate keys: wg genkey | tee privatekey | wg pubkey > publickey.
  3. Create a config file /etc/wireguard/wg0.conf with your server’s private key and a client peer.
  4. Enable IP forwarding: echo 'net.ipv4.ip_forward=1' | sudo tee -a /etc/sysctl.conf.
  5. Start the interface: sudo wg-quick up wg0.

Now you can install the WireGuard client on your phone or laptop and connect to your home network from anywhere. This project teaches encryption, routing, and firewall basics. Be sure to open UDP port 51820 in your router’s firewall.

Project 5: Automate Backups with Restic

Backups are the most underrated homelab project. Restic is a fast, encrypted backup tool that works with local drives, remote servers, or cloud storage (like S3-compatible services). You can set it up in an afternoon and schedule it with cron.

  • Install Restic: sudo apt install restic.
  • Initialize a repository: restic init --repo /mnt/backup.
  • Back up a folder: restic backup ~/Documents --repo /mnt/backup.
  • Schedule daily: add a cron job like 0 2 * * * restic backup ~/Documents --repo /mnt/backup.

Restic deduplicates data, so you can back up many machines without using too much space. This project teaches you about encryption, automation, and disaster recovery.

How to Choose the Right Project for You

Your choice depends on your goals and hardware. If you are a beginner, start with Pi-hole or a NAS—they are forgiving and immediately useful. If you want to learn Docker, go for the media server. If security interests you, try WireGuard. Also consider your time: Pi-hole can be done in an hour, while a full media server with automation might take a full day.

Here is a quick comparison:

  • Pi-hole: Easiest, low hardware requirements, teaches DNS.
  • NAS: Practical, teaches file systems and permissions.
  • Media server: Fun, teaches containers and storage.
  • WireGuard: Security-focused, teaches networking.
  • Restic: Essential, teaches automation and encryption.

Common Problems and How to Avoid Them

Many homelab projects fail due to network misconfiguration. For example, if you can’t access your NAS, check that the service is running (sudo systemctl status smbd) and that your firewall allows Samba (ports 137-139, 445). For Pi-hole, if devices still show ads, your router may not be using the Pi as DNS—try setting the DNS manually on a device to test.

Another common issue is forgetting to set static IPs. If your server’s IP changes, all your services break. Reserve an IP in your router’s DHCP settings or set a static IP on the server itself. Also, always update your system before installing new software: sudo apt update && sudo apt upgrade.

Safety and Security Considerations

Exposing services to the internet is risky. If you set up a VPN, use strong keys and keep them private. Never port-forward services like SSH or Samba directly to the internet—use a VPN instead. For backups, encrypt them with Restic’s built-in encryption (the repository password is crucial; if you lose it, your data is unrecoverable).

Also, be mindful of power consumption. A Raspberry Pi uses about 5W, but an old desktop might use 50W or more. If you run it 24/7, calculate the yearly cost: watts × hours × electricity rate. This is not a safety issue, but it affects your wallet.

Frequently Asked Questions

Do I need a powerful computer for a homelab?

No. A Raspberry Pi 4 (2GB RAM) can run Pi-hole, a NAS, and a lightweight media server. For more intensive tasks like video transcoding, you need a x86 machine with a decent CPU, but most homelab projects are lightweight.

Can I run these projects on Windows or macOS?

Most are designed for Linux, but you can use virtual machines (VirtualBox, UTM) or Docker Desktop on Windows/macOS. However, a dedicated Linux machine is simpler and more reliable.

How much does it cost to run a homelab?

It depends on hardware and electricity. A Raspberry Pi costs about $35-75, plus storage. Running it 24/7 costs roughly $5-10 per year in electricity. An old laptop you already own costs nothing extra.

Is it safe to expose my homelab to the internet?

Only if you know what you are doing. Use a VPN (WireGuard) for remote access instead of port-forwarding. If you must expose a service, use HTTPS with a reverse proxy like Nginx and keep everything updated.

What is the best first project for a complete beginner?

Pi-hole is the best because it is quick, low-risk, and teaches core networking. You can also try setting up a basic NAS with Samba—it is practical and forgiving.

Can I run multiple projects on one machine?

Yes. Use Docker to run Pi-hole, Jellyfin, and Restic on the same server without conflicts. Docker isolates each service and makes management easier.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →