How to Set Up a Home Server or NAS: A Beginner’s Guide

10 min read

,
How to set up a home server or NAS: illustration of a NAS with four drive bays connected to devices

A home server is a computer that stays on at home and runs services for your household. A NAS is a server focused on shared storage, though many current models can also run apps. You can buy a ready-made NAS or reuse an old PC and install software such as TrueNAS Community Edition, openmediavault or Unraid. It takes setup and upkeep, and it will not automatically replace cloud storage or an off-site backup.

What a home server is good for

  • One place for files. Shared folders that every laptop and phone at home can open.
  • Phone photo backup with a self-hosted app such as Immich. You still need another copy outside the server.
  • A media server like Jellyfin or Plex that streams your own films and music to TVs and phones.
  • Backups of your computers, for example as a Time Machine destination for Macs.
  • Small services such as Nextcloud for files and calendars, ad blocking, or home automation.

A home server is not a backup by itself. It can be stolen, damaged by a power event or encrypted by ransomware, so keep another copy somewhere outside your home.

How to set up a home server or NAS for beginners: NAS OS, Docker apps, Tailscale remote access and off-site backup
A home server connects shared storage to apps and remote access, with a separate backup for recovery. Diagram: Techzei

Step 1: Choose your hardware

OptionGood forWatch out for
Ready-made NAS (Synology and similar)People who prefer a guided setupCost per drive bay; you use the maker’s OS and app store
Old desktop PCFree or cheap start, room for several drivesPower use and noise if it runs all day
Mini PC plus USB or external drive enclosureSmall, quiet media and app serverUSB-attached drives are less ideal for a long-running storage pool
Raspberry Pi or similar boardLearning, light servicesLimited drive connections and performance for heavy use
Purpose-built home server buildRoom to grow, many drivesMost planning and the highest upfront cost

Whatever you choose, these matter more than raw CPU speed:

  • Drive bays. Decide how much capacity and redundancy you need before choosing the number of bays. A second drive alone does not protect files; the storage system must be set up to use it for redundancy.
  • Ethernet. Plug the server into your router. Wi-Fi can work, but wired Ethernet gives the server a more consistent connection.
  • Power draw. It runs around the clock, so a quiet, efficient machine beats an old gaming tower.
  • RAM. More helps if you run many apps or use ZFS, which uses memory for caching.

If you already own a Raspberry Pi, our Raspberry Pi getting started guide covers the basics before you turn it into a small server.

Step 2: Pick a NAS operating system

OSCostBuilt onBest for
Synology DSMIncluded with Synology NAS hardwareSynology’s own platformBeginners who want an appliance
TrueNAS Community EditionFree downloadOpenZFS on LinuxData safety, snapshots, larger drive pools
Unraid$49 Starter (6 devices), $109 Unleashed or $249 Lifetime, one-time; 30-day free trialIts own parity array plus ZFS, Btrfs or XFS poolsMixing drives of different sizes, lots of apps
openmediavaultFree, open sourceDebian LinuxLight hardware, simple file sharing

TrueNAS Community Edition

TrueNAS Community Edition uses OpenZFS, which supports snapshots, mirrors and RAID-Z layouts, along with checksums and data scrubbing. Snapshots can help recover earlier versions of files, but they use storage and do not replace an off-site backup. Check TrueNAS’ current hardware requirements before installing it, and note that app options depend on the release. Its strength is the storage tools; the trade-off is that you should plan a ZFS pool before creating it.

Unraid

Unraid’s main appeal is flexibility. Its parity-protected array lets you mix drives of different sizes and add them over time, and it also supports ZFS, Btrfs and XFS pools. Unraid includes Docker containers and virtual machines, with an app catalogue for adding services. Its licences are perpetual; Starter and Unleashed include one year of updates, while Lifetime includes ongoing updates. Check the current plan details before buying, since prices and device limits can change.

openmediavault

openmediavault is a free NAS system based on Debian, aimed primarily at homes and small offices. It is managed from a web interface, with file-sharing services and plugins for extra features. The available options depend on the version and plugins you install, so check its current documentation before choosing hardware.

Synology DSM

DSM is Synology’s operating system for its NAS products. It brings file sharing, sync and data-protection tools into the company’s interface, while optional packages vary by model. You get a more guided setup than building your own server, with less freedom to choose the underlying software.

Install the OS before creating a storage pool

A ready-made NAS uses its manufacturer’s setup wizard. For a PC running TrueNAS, download the installer from the official site, write it to a USB stick and boot the PC from that stick. Choose a separate boot drive for the OS, keeping your storage drives for the pool. Installation erases the selected boot drive, so copy anything you need off it first and check the drive name carefully.

After installation, connect Ethernet and open the web address shown on the server’s console from another computer on the same network. Finish the administrator setup, then create the storage pool and shares. Unraid and openmediavault have different installation steps; follow the instructions for the system you choose.

Step 3: Set up drives so one failure does not cost you data

If you build a redundant storage pool, mirroring and parity are two common layouts. Their names and setup steps differ between systems:

  • Mirror: data is duplicated across a pair of drives. It is straightforward, but usable capacity is roughly half the pair’s combined raw capacity.
  • Single parity: layouts such as RAID-Z1 can keep a pool online after one drive fails. They do not protect against every combination of failures, accidental deletion or damage to the whole system.
  • Double parity: RAID-Z2 and comparable layouts can tolerate two drive failures, subject to the storage system’s rules and the order in which failures occur.
Home server drive layout: mirror versus single parity with four 4 TB drives
Illustrative capacity before filesystem overhead: four 4 TB drives in mirrored pairs provide about 8 TB; a single-parity layout may provide about 12 TB. Actual usable capacity varies by filesystem and configuration. Diagram: Techzei

With two drives, a mirror is often the simplest redundant layout. With more drives, parity may provide more usable capacity, but the right choice depends on the software, drive sizes and protection you need. RAID and drive monitoring reduce some risks; neither replaces a separate backup.

Step 4: Create shares and users

  1. Create a user account for each person instead of sharing one login.
  2. Create shared folders, for example “Family”, “Media” and “Backups”.
  3. Turn on SMB, the file-sharing protocol Windows, macOS and Linux all understand.
  4. Give each user access only to the folders they need.
  5. On Macs, connect from Finder with Go > Connect to Server and smb:// followed by the server’s address. On Windows, type \\ and the server’s name or IP address in File Explorer.

Step 5: Add apps with Docker

Docker packages an app and its dependencies in a container, which can make services easier to install and update separately. Use the app interface supplied by your NAS where available: TrueNAS has Apps, Unraid supports Docker containers, and Synology offers Container Manager on supported models. On a plain Linux server, use Docker’s installation instructions for your distribution.

Jellyfin’s documentation gives this as a basic container setup, with your own folders in place of the example paths:

docker run -d \
  --name jellyfin \
  -p 8096:8096/tcp \
  -p 7359:7359/udp \
  --volume /path/to/config:/config \
  --volume /path/to/cache:/cache \
  --mount type=bind,source=/path/to/media,target=/media \
  --restart=unless-stopped \
  jellyfin/jellyfin

Once it is running, replace your-server-ip in http://your-server-ip:8096 with the server’s local IP address and finish setup in your browser. Other useful services include:

  • Jellyfin or Plex for films, TV and music.
  • Immich for phone photo and video backup.
  • Nextcloud for files, contacts and calendars.
  • A DNS ad blocker for every device on your network.

Keep app settings in folders on your storage pool, so they are included in snapshots and backups.

Step 6: Reach your server from anywhere with Tailscale

Opening router ports can expose a service to the public internet and requires careful security work. A private network such as Tailscale is often simpler for a home setup and usually avoids opening inbound ports on your router.

On a Linux server, Tailscale’s documentation gives the install as:

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up

The second command starts sign-in. Install Tailscale on the server and the devices you want to connect, then use the server’s Tailscale address to reach services that are running and allowed by your network settings. Tailscale’s Personal plan is free for personal use, allows up to six users and includes unlimited user devices.

Step 7: Back up the server itself

Mirrors and parity can help keep a storage pool available after some drive failures. They do not protect against accidental deletion, ransomware or damage to the whole server. Keep a separate backup, with at least one copy off-site; snapshots are useful for restoring earlier files, but they are not an independent backup if they remain on the same machine.

  • Snapshots can help recover earlier versions of files after accidental changes. Pair them with an off-site copy, because a snapshot on the same server may also be lost or encrypted.
  • An off-site copy goes to a cloud backup service, or to a second NAS or USB drive kept at a friend’s or family member’s house. TrueNAS includes cloud sync and replication tools for this.
  • Test restores. Pull a few files back every few months to make sure the backup works.

Some NAS systems can act as a Time Machine destination over SMB, but support and setup vary by product. Check the instructions for your specific NAS before pointing Time Machine at a network share. Time Machine can then keep a history of your Mac’s files on the NAS.

Keep it running safely

  • Turn on automatic or regular updates for the OS and apps.
  • Use strong, unique passwords and two-factor authentication where the OS supports it.
  • Set up email or app notifications for drive and system alerts.
  • Put the server on a small UPS if power cuts are common, so it can shut down cleanly.
  • Avoid exposing an admin page directly to the internet. If you need remote access, use a properly configured private network or VPN and keep the server software updated.

If you want to go beyond storage and media, our guide to setting up NVIDIA PAIR at home shows one more involved home-server project.

FAQ

Is a NAS the same as a home server?

A NAS is a type of server designed mainly to store and share files. Some models also run apps, but the available features vary by hardware and software.

Which NAS OS is best for beginners?

A ready-made Synology NAS is usually the most guided option. For your own hardware, Unraid lets you mix drive sizes in its array, TrueNAS suits people willing to plan a ZFS pool, and openmediavault is a free Debian-based option. The best fit depends on your hardware and how much setup you want to do.

Do I need RAID?

No. Redundancy can keep some storage pools running after a drive failure, but a single-drive setup can still work if you accept the downtime and risk. RAID is not a backup; keep another copy off-site.

Can I use an old laptop as a home server?

Yes, a laptop can handle light services such as a media server or small apps. An external drive can add storage, but keep a separate backup and remember that a single-drive setup has no drive redundancy.

Is it safe to access my home server from outside?

A private network such as Tailscale or a VPN can reduce the need to open router ports, but it still needs sensible account and device security. Beginners should avoid exposing server apps or admin pages directly to the internet.


Share this story

About the author