Leaving Fetch TV?Read the guideRead the guideSkip to content

Getting started ​

Video: Install Freetvarr and run setup on a NAS or mini PC (2:52)

Prerequisites ​

Before you start, get the hardware and install Docker:

  • A TVHeadend-compatible tuner. Hardware requirements covers the choice.
  • A computer that stays on, such as a NAS (a small storage box with hard drives) or a mini PC. The computer gives minimum and recommended specs.
  • Docker with Compose v2 (the docker compose command) on that computer. For a network tuner such as an HDHomeRun, run Docker on Linux (a NAS or mini PC). As Docker Desktop and OrbStack on a Mac cannot find a network tuner on their own, enter the tuner's address in the Channels step of setup instead (Missing tuner). Freetvarr is untested on Windows; Windows describes a theoretical route through WSL (Windows Subsystem for Linux).

Freetvarr's Docker Compose file, which the install downloads, runs Freetvarr and TVHeadend (the free recording software that drives your tuner and records). Freetvarr sets TVHeadend up and controls it for you. A short-lived init container makes the config and data folders and then exits; that is normal. If TVHeadend already runs elsewhere, see An existing TVHeadend. Plex is optional. With no media server yet, the Docker Compose file can run Plex too: get a Plex claim code before you install (No Plex yet?). If Plex already runs, setup connects to it.

1. Install ​

In a terminal, run this command in the folder where you want a freetvarr folder to appear:

sh
curl -fsSL https://raw.githubusercontent.com/furey/freetvarr/main/install.sh | sh

The script creates the freetvarr folder, downloads its Docker Compose file, writes its .env (the settings file that Docker Compose reads), and asks for confirmation regarding project file ownership. Press Enter to accept the defaults (most people do). The first start downloads the Docker images, which takes a few minutes. The script then starts the Docker containers and outputs the URL of setup. Open that URL in a browser and proceed to step 2.

Install script options

After a banner with the Freetvarr name and author credit, the script outputs the .env it wrote and asks you to confirm who owns the project files:

text
[install] wrote .env:
    PUID=501
    PGID=20
    # TZ=Australia/Sydney
Files will be owned by this PUID and PGID. Start now? [Y/n/e = edit .env first]

PUID and PGID are the user and group that own the files Freetvarr writes, such as your recordings. Your numbers will differ from the example. Press Enter (or Y) to accept and start the Docker containers. This is right for most people.

Press e if the files must belong to a different user. On a NAS, for example, use the PUID and PGID of the user that owns your media share. The script opens its .env in a text editor (vi, unless you set EDITOR). In vi, press i to type, then Esc, then :wq and Enter to save and close the file. The script then starts the Docker containers.

Press n to stop without starting anything. Edit the .env in the freetvarr folder, then run the script again. Esc cancels without starting anything.

Run the script again at any time. It keeps an existing .env and Docker Compose file, and it asks about file ownership until the Docker containers have started once. On a NAS, sign in over SSH first, and use sudo if your user cannot reach Docker.

The script is the quickest way, but you have two other ways to install: by hand or with a NAS container app. Both start the same services.

Install: by hand ​

Use this instead of the script if you prefer to run each command yourself in a terminal, or if you want to check the Docker Compose file first.

  1. Create a folder and move into it:

    sh
    mkdir freetvarr && cd freetvarr
  2. Download the Docker Compose file:

    sh
    curl -fsSL https://raw.githubusercontent.com/furey/freetvarr/main/docker-compose.example.yml -o docker-compose.yml
  3. Optional: write a .env with PUID and PGID set to your user and group (id -u and id -g), one per line, for example:

    ini
    PUID=1000
    PGID=1000
  4. Start both Docker containers:

    sh
    docker compose up -d

    The first start downloads the Docker images, which takes a few minutes.

  5. In a browser, open http://<host-ip>:3733 and proceed to step 2.

Install: NAS container app ​

Use this instead of the script if your NAS has no SSH access, or if you prefer to manage Freetvarr in the NAS container app.

  1. In the NAS file manager, create a folder such as docker/freetvarr.
  2. Create two subfolders in it: config (settings) and data (recordings and your media library).
  3. Optional: save a .env in the folder with your NAS user's PUID and PGID, one per line, for example PUID=1026 and PGID=100.
  4. In the NAS container app, create a Compose project (some apps call it a stack) in the folder you made.
  5. Upload docker-compose.example.yml, or paste its content.
  6. Start the project. The NAS container app downloads the Docker images and starts the Docker containers.
  7. In a browser, open http://<nas-ip>:3733 and proceed to step 2.

NOTE

The author's NAS is a Synology. On Synology DSM the file manager is File Station, and the container app is Container Manager (Project → Create, then tick Start the project once it is created). The first DSM user is often PUID=1026 and PGID=100. Docker is at /usr/local/bin, which is on the PATH only in an SSH login shell.

2. Run setup ​

The first visit to http://<host-ip>:3733 in a browser opens setup. Setup fills in what it can find, and you check each value before it saves:

  1. Start: confirm your time zone, then press Start setup. To see each component of the system first, press How it works; Start setup on its last step, or Skip, goes on to the TVHeadend step.

  2. TVHeadend: check the TVHeadend address. If Freetvarr installed TVHeadend for you, choose an admin username and a password of at least 8 characters. Press the eye button to check what you typed. Check the allowed networks (the address ranges the logins work from), then press Secure and connect. Freetvarr saves the logins in TVHeadend and connects to it. If you installed TVHeadend yourself, press Use my own TVHeadend login instead, enter the TVHeadend username and password you created for Freetvarr (TVHeadend step 8), and press Save and next.

  3. Channels: check the tuners and the transmitter your antenna points at, then press Find channels. The scan takes a few minutes, and Next is available when it finishes. If TVHeadend already has channels, press Next to keep them, or Scan again to add channels that are missing. A dialog asks you to confirm. The scan only adds channels; your favourites, live TV, and recordings stay as they are.

    If setup finds no tuner, press Enter the tuner's address, enter the tuner's IP address (on Docker Desktop, OrbStack, or WSL, also enter This computer's address), and press Use this address.

    In Australia, the scan also makes ABC, Seven, Nine, 10, and SBS your favourites (the HD channel of each where there is one), in that order, if you have no favourites yet. To change them, press Channels in the TV guide (Favourites).

  4. Guide: check the TV guide region, then press Set up guide. For any channel left without TV guide listings, setup pre-selects its best guess. Check each one, or choose No guide; to change a pick, click it and type part of a channel name or number. Then press Save and next. A +1 channel, such as 10 HD +1, gets the listings of its main channel one hour later (+1 channels). Outside Australia and New Zealand, enter an XMLTV guide address (the web address of a TV guide file) if you have one (XMLTV guide), or press Skip.

  5. Folders: Freetvarr checks the recordings folder (where TVHeadend saves recordings) and the TV folder of your media library. If the checks pass, press Next. If a check fails, do what its message says, or press Change folders.

  6. Plex: optional. Freetvarr looks for Plex and its access token. If Freetvarr connects to Plex, check the Plex library for TV episodes, movies, and one-off recordings (TV library, Movies library, and One-off library), press Create libraries if Plex has no library for your recordings yet, then press Next. Skip Plex leaves Plex out. To enter the Plex address and token yourself, press Connect Plex by hand (Plex).

The last step lists what setup saved (You’re set, or Nearly there when something is missing). When channels or the TV guide are missing, the list says so and links back to that step. RECORDINGS SAVE TO lists the folder for TV episodes, movies, and one-offs, with the Plex library for each when you chose one. With no movies folder, movies save to the one-off folder. The note under the list says how often Freetvarr imports new recordings, and says so when Import every recording is off. Press Start watching to finish and open Home (Open Freetvarr when something is still missing).

Press Finish later, confirm, and Settings opens. It keeps what you saved so far. To check or change any part later, open Settings → SYSTEM → Setup (Settings).

3. Record something ​

In Freetvarr, open the TV guide, press a programme, and press Record for one airing. Pick Every episode and press Record series for every episode. About a minute after a recording finishes, Freetvarr imports it into your library (it hardlinks or copies the file into the folders of your media library). Freetvarr also checks for finished recordings every 30 minutes (change it in Settings → SYSTEM → Schedule) (Series rules). Your recordings appear in Recordings. To check the whole setup, open Settings → SYSTEM → Health.

4. Save it as an app ​

On a tablet or phone, add Freetvarr to the Home Screen. Freetvarr then opens full screen from its own icon, like an app.

On an iPad or iPhone:

  1. Open http://<host-ip>:3733 in Safari.
  2. Tap the Share button.
  3. Tap Add to Home Screen, then Add.

On Android, open the address in Chrome, tap the ⋮ menu, then tap Add to Home screen.

In the Home Screen app, pull down from the top of a page to refresh it (Pull to refresh).

Configure ​

Every value in Freetvarr's .env is optional. These are the defaults:

ini
PUID=1000
PGID=1000
CONFIG_PATH=./config
DATA_PATH=./data
FREETVARR_PORT=3733

Set PUID and PGID to your own user (id -u and id -g). After a change, restart the Docker containers with the new values. In a terminal in the freetvarr folder, run:

sh
docker compose up -d

Configuration covers every variable, the folders under DATA_PATH, and the two recordings paths.

An existing TVHeadend ​

If TVHeadend already runs on another host or in another compose project:

  1. Delete the tvheadend service from your docker-compose.yml.

  2. Remove tvheadend from the depends_on of freetvarr.

  3. Mount the folder TVHeadend records into (a NAS share, for example) into the Freetvarr Docker container. Add a line like this to the volumes of the freetvarr service:

    yaml
    - /path/to/tvheadend/recordings:/data/recordings
  4. Run docker compose up -d.

  5. In the TVHeadend step of setup, enter http://<tvheadend-host>:9981 and the TVHeadend username and password you created for Freetvarr (TVHeadend step 8).

  6. On the Folders step of setup, press Change folders.

  7. Set Recordings folder, as Freetvarr sees it to the path of the folder inside the Freetvarr Docker container.

  8. Set Recordings folder, as TVHeadend sees it to the path TVHeadend writes to, then press Test beside it to compare it with TVHeadend.

The Freetvarr host's address must fall inside the allowed networks of the TVHeadend user. See The two recordings paths.

On a NAS ​

  • Sign in over SSH before you run the install script or docker compose, so Docker is on the PATH.
  • Create the config and data folders before the first start. Some NAS Docker builds refuse to mount a folder that does not exist. The install script creates them (with a container app, create them in the NAS file manager).
  • Set PUID and PGID in the .env to your NAS user's values from id.
  • Use a network tuner. Most NAS operating systems have no USB DVB drivers (Hardware requirements).

Updating ​

In a terminal in the freetvarr folder, download the new Docker images, then restart the Docker containers:

sh
docker compose pull
docker compose up -d

A Freetvarr browser tab left open during the update offers a card with Reload to load the new version.

To back up first, go back to an older version, or see what changes in each release, read Updating Freetvarr.

Where next ​

GPL-3.0-or-later. Not affiliated with or endorsed by SiliconDust, TVHeadend, or Plex.Titles and artwork in screenshots and videos belong to their owners and appear for demonstration only. Not affiliated with any broadcaster, studio, or Fetch TV. This product uses the TMDB API but is not endorsed or certified by TMDB. TMDB