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

  1. Create a Pool to hold the media (e.g. data1)
  2. Create a Dataset to hold the media (e.g. data1/media)
  3. Create a new User:
    name: multimedia id: 1000 (make a note of whatever this is on your NAS, also the group ID)
  4. Create a new SMB share:
    path: /mnt/data1/media
    name: media
    purpose: Default share parameters
    description: Multimedia
    enabled: yes
  5. 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
  6. Edit the Filesystem ACL:
    Path: /mnt/data1/media
    User: multimedia Group: multimedia
  7. 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

  1. Add the "Plex" plugin to TrueNAS (I like to use DHCP, but you can NAT too)
  2. Stop the Plex Jail
  3. 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
  4. Start the Plex Jail
  5. 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
  6. Add the Plex user to the multimedia group:
    pw usermod plex -G multimedia
  7. Restart the Plex Jail to reload the user config

SABnzbd Setup

  1. Add the "SABnzbd" plugin to TrueNAS
  2. Stop the SABnzbd Jail
  3. 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
  4. Start the SABnzbd Jail
  5. 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
  6. Add the SABnzbd user to the multimedia group:
    pw usermod _sabnzbd -G multimedia
  7. Restart the SABnzbd Jail to reload the user config:
    service sabnzbd restart

Radarr Setup

  1. Add the "Radarr" plugin to TrueNAS
  2. Stop the Radarr Jail
  3. 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
  4. Start the Radarr Jail
  5. 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
  6. Add the Radarr user to the multimedia group:
    pw usermod radarr -G multimedia
  7. Restart the Radarr Jail to reload the user config:
    service radarr restart

Sonarr Setup

  1. Add the "Sonarr" plugin to TrueNAS
  2. Stop the Sonarr Jail
  3. 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
  4. Start the Sonarr Jail
  5. 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
  6. Add the Sonarr user to the multimedia group:
    pw usermod sonarr -G multimedia
  7. Restart the Sonarr Jail to reload the user config:
    service sonarr restart