Guides · Get your server ready

Set up a Debian or Ubuntu server

Turn a spare PC or mini PC into a home server for Yarr Media, ready to reach from your other computers.

About 45 minutes

What you need

  • A 64-bit computer (Intel/AMD or ARM) with at least 4 GB of memory. A mini PC is ideal. Recent Intel processors help Yarr convert videos that a TV can't play directly.
  • A drive for your media (internal or USB), and a wired network connection if possible.
  • A USB stick of 4 GB or more for the installer. It will be erased.

1. Download Linux

Either of these works well. Ubuntu's installer is a little friendlier; Debian is lighter.

2. Make a USB installer

Write the downloaded .iso file to the USB stick with balenaEtcher (Windows, Mac, Linux) or Rufus (Windows).

3. Install

Plug the stick into the server and start it from USB (usually by pressing F12, F10, F11 or Esc while it starts). Then:

  • Ubuntu Server: follow the prompts, use the entire system disk, and tick Install OpenSSH server. Skip the optional snaps.
  • Debian: choose Install. Leave the root password empty (your own user then gets sudo). Use guided partitioning on the system disk. At Software selection, untick the desktop environments and tick SSH server and standard system utilities.

Pick the system disk carefully when partitioning: the installer erases the disk you choose. If your media drive is already connected and full, unplug it during installation.

4. Give it a fixed address and log in from your computer

Sign in on the server and find its address:

hostname -I

In your router's settings, reserve this address for the server (often called DHCP reservation or static lease) so it never changes. From now on you can work from your own computer (Terminal on Mac and Linux, Terminal or PowerShell on Windows):

ssh yourname@192.168.1.50

5. Update and keep it updated

sudo apt update && sudo apt full-upgrade -y
sudo apt install -y unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades

The last command turns on automatic security updates (answer Yes). Ubuntu has them on already.

6. Add your media drive

List the drives and note your media drive's name (like sdb1), UUID and FSTYPE:

lsblk -f

A new, empty drive can be formatted for Linux. This erases it, so double-check the name:

sudo parted /dev/sdb --script mklabel gpt mkpart media ext4 0% 100%
sudo mkfs.ext4 -L media /dev/sdb1

Mount it at /srv/data every time the server starts (run lsblk -f again to get the new UUID). Use ext4 for a Linux drive, or ntfs3 with ,uid=1000,gid=1000 added after nofail for a drive formatted on Windows:

sudo mkdir -p /srv/data
echo "UUID=PASTE-UUID-HERE /srv/data ext4 defaults,nofail 0 2" | sudo tee -a /etc/fstab
sudo systemctl daemon-reload && sudo mount -a
df -h /srv/data

7. Create the folders

These are the folders every guide on this site uses. The usenet folders are only needed if you use SABnzbd.

sudo mkdir -p /srv/data/media/{movies,tv,music} /srv/data/usenet/{incomplete,complete}
sudo chown -R $USER:$USER /srv/data

Already have media? Move it into movies, tv and music (see Organize your media folders).

Next

Install Yarr Media. It installs Docker for you.