Maintenance

Site is under maintenance — quizzes are still available.

Go to quizzes
Sponsored Reserved space — layout preview until AdSense is connected

How-tos

How to Set Up a Home Server: Complete Beginner's Guide

Learn how to turn old hardware into a home server for NAS, media streaming, and backups using free software like Ubuntu Server, Samba, and Jellyfin.

June 2026 · 12 min read · 1 views · 0 hearts

The Complete Guide to Setting Up a Home Server

You've got old hardware gathering dust, a growing pile of files spread across devices, and a nagging suspicion that your "cloud" is just someone else's computer. Welcome to the home server club—where reclaimed PCs become media vaults, backup hubs, and self-hosted powerhouses.

Setting up a home server isn't just about saving money. It's about control. Your data, your rules, no monthly fees creeping up on you. And the best part? You can build it in an afternoon with free software.

What You’ll Need

First, the hardware. You don't need a data center. Here's the sweet spot:

  • Old PC or laptop: Any machine from the last 10 years with at least 4GB RAM works.
  • Spare hard drive: Even a 500GB laptop drive can start you off. Add more later.
  • USB stick (4GB+): For installing the operating system.
  • A router that lets you forward ports (most do, check the admin panel).

Pro tip: If you've got a Raspberry Pi 4 or newer, that's a perfect starter server. It sips electricity and runs silently.

Choosing the Operating System

For 90% of beginners, Ubuntu Server LTS is the right choice. Stable, huge community, tons of tutorials. Install it on that old machine or Pi.

Install in 10 minutes: 1. Download the latest Ubuntu Server ISO. 2. Write it to your USB stick using Rufus or balenaEtcher. 3. Boot from USB, follow prompts—choose "Install Ubuntu Server". 4. Set a static IP address during setup (write it down — you'll need it).

Alternatively, if you want simplicity and web-based management, try OpenMediaVault (OMV). It's Debian-based but comes with a dashboard for managing drives, shares, and plugins.

First Steps After Installation

You've booted into your server. Now what?

Update everything immediately:

sudo apt update && sudo apt upgrade -y

Enable SSH so you can control it remotely from your main computer:

sudo apt install openssh-server -y
sudo systemctl enable ssh --now

Now disconnect the monitor and keyboard. From now on, you'll connect via SSH from your laptop. Find your server's IP with ip a and connect using:

ssh yourusername@192.168.1.100

What to Self-Host First

The classic starter projects, ordered by usefulness:

1. Network-Attached Storage (NAS)

Make your server a central file hub accessible to all devices.

sudo apt install samba -y

Edit /etc/samba/smb.conf — add a share like this:

[Shared]
path = /home/yourusername/shared
writeable = yes
public = yes

Restart Samba: sudo systemctl restart smbd

Now any Windows, Mac, or Linux machine can see it in their file manager.

2. Media Server with Jellyfin

Turn your server into a Netflix-for-your-files. Jellyfin is open-source, free, and gorgeous.

Docker approach (cleanest):

sudo apt install docker.io docker-compose -y
sudo docker run -d --name=jellyfin -p 8096:8096 -v /path/to/media:/media jellyfin/jellyfin

Access it at http://your-server-ip:8096. Stream your movie collection to any device in your house. Or outside it, if you set up reverse proxying (advanced but doable).

3. Automated Backups

Don't trust your data to luck. Use rsync for simple backups or Duplicati for encrypted, scheduled backups to cloud services.

For a dead-simple weekly backup to an external drive:

rsync -avz /home/yourusername/important /mnt/backup_drive/

Put that in cron with crontab -e:

0 3 * * 0 /usr/bin/rsync -avz /home/yourusername/important /mnt/backup_drive/

Securing Your Server

A home server behind your router is already safer than a public cloud. But don't be lazy.

  • Change the default SSH port (edit /etc/ssh/sshd_config, set Port 2222)
  • Disable root login over SSH (PermitRootLogin no)
  • Use key-based authentication only (PasswordAuthentication no)
  • Enable UFW firewall: sudo ufw enable && sudo ufw allow 2222/tcp

And never forward port 22 to the internet. If you need remote access, use a VPN like WireGuard instead.

What About Remote Access?

Want to access your server from outside your house? Two sane options:

  1. Tailscale (free for personal use) — creates a private mesh network. Install on all devices, and they see each other securely without port forwarding.
  2. Cloudflare Tunnel — tunnels traffic to your server without exposing your IP.

Both are safer than opening ports blindly.

Common Pitfalls to Avoid

  • Don't use the root account for daily tasks. Create a user with sudo privileges.
  • Don't ignore updates. Set unattended-upgrades to run automatically.
  • Don't brag about your server on public forums with your IP visible. Security through obscurity is weak, but blatant exposure is stupidity.
  • Don't use spinning HDDs for critical data without redundancy. RAID 1 or a good backup strategy saves heartache.

Expanding Your Ecosystem

Once the basics work, the world opens up. Next steps:

  • Pi-hole — network-wide ad blocking for every device in your house
  • Home Assistant — smart home hub, runs brilliantly on a server
  • Nextcloud — self-hosted Dropbox alternative with calendar, contacts, and collaborative editing
  • Gitea — your own lightweight GitHub-like code hosting
  • Uptime Kuma — monitor if your services are alive

Add them one at a time. Each teaches you something about networking, container management, or troubleshooting.

Your Server, Your Rules

The beauty of a home server is that it grows with you. Start with a shared folder and a media server. Let that PC run for weeks without a reboot, realizing how reliable it is. Then add a backup script. Then a weather dashboard. Then a password manager.

Suddenly, you're not paying for cloud storage. You're not locked into any ecosystem. Your old machine became the backbone of your digital life.

And the best part? You built it.

Comments

Questions, corrections, and tips stay visible for everyone reading this page.

0 in thread

Join the discussion

Shown next to your comment.

Up to 4,000 characters

No comments yet

Be the first to leave a note — it helps the next reader.