This post documents the steps required to install qBittorrent , Jackett , Lidarr , Radarr , Sonarr , and Plex in TrueNAS jails version 12.0-U6
.
The FN11.3 iocage jails - Plex, Tautulli, Sonarr, Radarr, Lidarr, Jackett, Transmission, Organizr guide inspired me to write this guide. I’ll also briefly cover permissions.
Disclaimer# From Wikipedia on BitTorrent Legislation :
Although the protocol itself is legal, problems stem from using the protocol to traffic copyright infringing works, since BitTorrent is often used to download otherwise paid content, such as movies and video games.
See also: Legal issues with BitTorrent (Wikipedia)
I’ll only cover options that deviate from the defaults. I use DHCP reservations to manage my server IPs, so I use the dhcp=1
option to create jails.
Note that using hardlinks with the *arrs doesn’t work with this setup. For hardlinking to work, the torrent client and *arrs must share the same dataset and jail mount points.
Goals# The diagram above translates to the following requirements:
Each service lives inside a separate jail Each service inside the jail runs as a different user Each jail owns a dataset for configuration data Jails share media datasets, but only one user has write permissions. E.g., Radarr can only read (ro
) from the torrent dataset but write (rw
) to the movies dataset. Groups# Navigate to Accounts → Groups and add the following groups.
GID 850
Name qbittorrent
Samba Authentication unchecked
GID 354
Name jackett
Samba Authentication unchecked
GID 356
Name lidarr
Samba Authentication unchecked
GID 352
Name radarr
Samba Authentication unchecked
GID 351
Name sonarr
Samba Authentication unchecked
GID 972
Name plex
Samba Authentication unchecked
Users# Navigate to Accounts → Users and add the following users.
Full Name qBittorrent
Username qbittorrent
User ID 850
New Primary Group unchecked
Primary Group qbittorrent
Primary Group qbittorrent
Disable Password Yes
Shell nologin
Samba Authentication unchecked
Full Name Jackett
Username jackett
User ID 354
New Primary Group unchecked
Primary Group jackett
Disable Password Yes
Shell nologin
Samba Authentication unchecked
Full Name Lidarr
Username lidarr
User ID 356
New Primary Group unchecked
Primary Group lidarr
Disable Password Yes
Shell nologin
Samba Authentication unchecked
Full Name Radarr
Username radarr
User ID 352
New Primary Group unchecked
Primary Group radarr
Disable Password Yes
Shell nologin
Samba Authentication unchecked
Full Name Sonarr
Username sonarr
User ID 351
New Primary Group unchecked
Primary Group sonarr
Disable Password Yes
Shell nologin
Samba Authentication unchecked
Full Name Plex
Username plex
User ID 972
New Primary Group unchecked
Primary Group plex
Disable Password Yes
Shell nologin
Samba Authentication unchecked
Datasets# Navigate to Storage → Pools and add the datasets and permissions. We’ll use default 755
permissions for all datasets.
Jail Config Datasets# Path /mnt/vault0/apps/qbittorrent
User qbittorrent
Apply User checked
Group qbittorrent
Apply Group checked
Path /mnt/vault0/apps/jackett
User jackett
Apply User checked
Group jackett
Apply Group checked
Path /mnt/vault0/apps/lidarr
User lidarr
Apply User checked
Group lidarr
Apply Group checked
Path /mnt/vault0/apps/radarr
User radarr
Apply User checked
Group radarr
Apply Group checked
Path /mnt/vault0/apps/sonarr
User sonarr
Apply User checked
Group sonarr
Apply Group checked
Path /mnt/vault0/apps/plex
User plex
Apply User checked
Group plex
Apply Group checked
Path /mnt/vault0/media/torrents
User qbittorrent
Apply User checked
Group qbittorrent
Apply Group checked
Path /mnt/vault0/media/music
User lidarr
Apply User checked
Group lidarr
Apply Group checked
Path /mnt/vault0/media/movies
User radarr
Apply User checked
Group radarr
Apply Group checked
Path /mnt/vault0/media/series
User sonarr
Apply User checked
Group sonarr
Apply Group checked
Jails# Connect to TrueNAS via SSH or similar.
qBittorrent Jail# Navigate to http://<jail IP>:8080
in your browser and login with the default credentials.
Username Password admin
adminadmin
Navigate to Tools → Options... and change the Default Save Path to /mnt/torrents
:
Jackett Jail# Navigate to http://<jail IP>:9117
in your browser to use Jackett.
Lidarr Jail# Navigate to http://<jail IP>:8686
in your browser to use Lidarr.
Radarr Jail# Navigate to http://<jail IP>:7878
in your browser to use Radarr.
Sonarr Jail# Navigate to http://<jail IP>:8989
in your browser to use Sonarr.
Plex Jail# Navigate to http://<jail IP>:32400/web
in your browser to use Plex.