TrueNAS Notes
This is not a guide to teach TrueNAS. If you need help installing TrueNAS, managing disks, pools, jails, or anything, go a googlin'...
Multimedia Sharing
TrueNAS Setup
- Create a Pool to hold the media (e.g.
data1
)
- Create a Dataset to hold the media (e.g.
data1/media
)
- Create a new User:
name: multimedia
id: 1000
(make a note of whatever this is on your NAS, also the group ID)
- Create a new SMB share:
path: /mnt/data1/media
name: media
purpose: Default share parameters
description: Multimedia
enabled: yes
- Edit the Share ACLs:
Share Name: media
- ACL1 SID:
S-1-1-0
ACL1 Domain: blank
ACL1 Name: Everyone
ACL1 Permission: FULL
ACL1 Type: ALLOWED
- Edit the Filesystem ACL:
Path: /mnt/data1/media
User: multimedia
Group: multimedia
- In the shell create the main data root folders:
cd /mnt/data1/media
mkdir -p films tv incoming/complete/films incoming/complete/tv
chown -R multimedia:multimedia .
Plex Setup
- Add the "Plex" plugin to TrueNAS (I like to use DHCP, but you can NAT too)
- Stop the Plex Jail
- Add mounts to the Plex Jail:
- Mount 1 Source:
/mnt/data1/media/films
Mount 1 Destination: /mnt/data1/iocage/jails/plex/root/media/films
Mount 1 Read Only: no
- Mount 2 Source:
/mnt/data1/media/tv
Mount 2 Destination: /mnt/data1/iocage/jails/plex/root/media/tv
Mount 2 Read Only: no
- Start the Plex Jail
- In the Jail Shell create a user and group to match the
multimedia
ones:
pw groupadd multimedia -g 1000
pw useradd multimedia -u 1000 -g multimedia -s /usr/sbin/nologin -d /var/empty
- Add the Plex user to the multimedia group:
pw usermod plex -G multimedia
- Restart the Plex Jail to reload the user config
SABnzbd Setup
- Add the "SABnzbd" plugin to TrueNAS
- Stop the SABnzbd Jail
- Add mounts to the SABnzbd Jail:
- Mount 1 Source:
/mnt/data1/media/films
Mount 1 Destination: /mnt/data1/iocage/jails/sabnzbd/root/media/films
Mount 1 Read Only: no
- Mount 2 Source:
/mnt/data1/media/tv
Mount 2 Destination: /mnt/data1/iocage/jails/sabnzbd/root/media/tv
Mount 2 Read Only: no
- Mount 3 Source:
/mnt/data1/media/incoming
Mount 3 Destination: /mnt/data1/iocage/jails/sabnzbd/root/media/incoming
Mount 3 Read Only: no
- Start the SABnzbd Jail
- In the Jail Shell create a user and group to match the
multimedia
ones:
pw groupadd multimedia -g 1000
pw useradd multimedia -u 1000 -g multimedia -s /usr/sbin/nologin -d /var/empty
- Add the SABnzbd user to the multimedia group:
pw usermod _sabnzbd -G multimedia
- Restart the SABnzbd Jail to reload the user config:
service sabnzbd restart
Radarr Setup
- Add the "Radarr" plugin to TrueNAS
- Stop the Radarr Jail
- Add mounts to the Radarr Jail:
- Mount 1 Source:
/mnt/data1/media/films
Mount 1 Destination: /mnt/data1/iocage/jails/radarr/root/media/films
Mount 1 Read Only: no
- Mount 2 Source:
/mnt/data1/media/incoming
Mount 2 Destination: /mnt/data1/iocage/jails/radarr/root/media/incoming
Mount 2 Read Only: no
- Start the Radarr Jail
- In the Jail Shell create a user and group to match the
multimedia
ones:
pw groupadd multimedia -g 1000
pw useradd multimedia -u 1000 -g multimedia -s /usr/sbin/nologin -d /var/empty
- Add the Radarr user to the multimedia group:
pw usermod radarr -G multimedia
- Restart the Radarr Jail to reload the user config:
service radarr restart
Sonarr Setup
- Add the "Sonarr" plugin to TrueNAS
- Stop the Sonarr Jail
- Add mounts to the Sonarr Jail:
- Mount 1 Source:
/mnt/data1/media/tv
Mount 1 Destination: /mnt/data1/iocage/jails/sonarr/root/media/tv
Mount 1 Read Only: no
- Mount 2 Source:
/mnt/data1/media/incoming
Mount 2 Destination: /mnt/data1/iocage/jails/sonarr/root/media/incoming
Mount 2 Read Only: no
- Start the Sonarr Jail
- In the Jail Shell create a user and group to match the
multimedia
ones:
pw groupadd multimedia -g 1000
pw useradd multimedia -u 1000 -g multimedia -s /usr/sbin/nologin -d /var/empty
- Add the Sonarr user to the multimedia group:
pw usermod sonarr -G multimedia
- Restart the Sonarr Jail to reload the user config:
service sonarr restart