How to install Plex Media Server on FreeNas 11.2

By | February 18, 2019

This post may contain affiliate links. Please read my disclosure for more info.

Plex brings together all the media that matters to you, organizing your personal collections alongside stellar online content, streaming music, and more, making it all look beautiful in one universal interface.

How to Installing Plex Media Server on FreeNas 11.2

The guide below is the general overview of you to install and run Please Media Server on FreeNas, I recommend watching the video below to make the instructions make sense.

Create Server and Mount Points

  1. Log onto FreeNas GUI
  2. Jails –> ADD –> Jail Name –> Latest Release –> Next –> DHCP Autoconfigure IPv4 –> Autoconfigure IPv6 –> Next –> Submit
  3. SSH to FreeNas Server using Putty –> jls (List Jails) –> jexec # (Number of your Jail)
  4. make folder in your /mnt folder ready for mount point ( e.g. mkdir /mnt/movies )
  5. type exit to exit from jail
  6. In FreeNas GUI Shutdown Jail
  7. Add Mount Point to /mnt/movies from your FreeNas server
  8. Start Jail

Installing Plex

While in your jail through SSH run the following:

To receive the newest FreeBSD packages including Plex Media Server packages run:

# pkg update 

To Install Plex (Free Version or Paid Plex Pass version)

# pkg install plexmediaserver

or

# pkg install plexmediaserver-plexpass

Checking For Updates

Here are the manual instructions on how to logon and check for Plex media server updates: 

  1. SSH to your FreeNas Server and logon
  2. jls (To give you a list of Jails)
  3. jexec # (Number of your Jail)
  4. pkg update && pkg upgrade -y (To Search for updates and install)

If there are any updates available they will be installed automatically. After any upgrade to your Plex Media Server package you must restart Plex media server service with the following for your upgrade to take affect:

# service plexmediaserver restart

or

# service plexmediaserver_plexpass restart

Subscribe For More Random Tips

13 thoughts on “How to install Plex Media Server on FreeNas 11.2

  1. Kasper

    Thanks for this, been battling with the “plugin” version not installing, and it was really frustrating, this video help me get it running in 10 minutes.

    Reply
  2. Stu

    FreeNAS v10 and v11 are train wrecks really. The quality control around release management seems to have gone to pot. Features that aren’t stable, undocumented behaviours, and all the while the advice from the development team is “ask on the forums” which is such a lame response. Very disappointed in the current state of play, and I’m not the only one.

    Reply
  3. Harper

    Can you elaborate on Step 7: Add Mount Point to /mnt/movies from your FreeNas server

    I don’t understand what we’re trying to do here. I would think that from within the jail I’d want to mount my NFS share that I have already setup on FreeNAS but you’re saying go to my FreeNAS server and mount my jail’s directory onto (something)? I’m confused. Thanks!

    Reply
    1. My Random Tips Post author

      In the video I show how the mount part is done.

      But to answer your question, we are not linking NFS share mounts into the jail.

      The purpose of mount points in this step, is linking a folder that is on your FreeNAS server to your jail so it has access.

      As the jail is isolated on FreeNAS, Plex won’t be able to see the movies saved on your primary NAS.

      So when drives are added into FreeNAS it gets pointed to the directory where the movies was mounted into.

      The video should visually what I mean.

      But please feel free to ask more if required.

      Reply
  4. JcMo

    3 days I spent fighting with the plugins and 10 mins watching your vid cured it…I need a drink.

    One question I had, and its likely pretty dumb, is do you go back and create more mount points for “TV Shows” and “Music” folders? I attempted this and couldn’t get the jail to start again, it said there was no clear path. I deleted those mount points and it fired right up…

    Thanks!

    Reply
  5. My Random Tips Post author

    Generally i find i need to create the folder first, then point it from my freenas server into the jail, the video shows this linkage more clearly, let me know how you go.

    Reply
  6. sam

    I keep getting this error { jexec: execlp: /usr/local/bin/zsh: No such file or directory}
    when I type jexec and the JID for the Plex jail listed when i type jls.

    Reply
  7. Justin

    Don’t rebuild your server.

    jexec # /bin/tcsh

    For some reason the z shell isn’t available in a jail.

    Reply
  8. Doug

    Trying to get Plex setup per your video and ran into a snag;
    I am sure I am missing something simple…
    New install of FreeNAS-11.2-U3 this week, above post stated a complete reinstall was done to resolve problem.

    [email protected][/mnt]# jls
    JID IP Address Hostname Path
    1 Plex /mnt/reds/iocage/jails/Plex/root
    [email protected][/mnt]# jexec 1
    jexec: execlp: /usr/local/bin/zsh: No such file or directory <— cannot figure out why I am getting this error
    [email protected][/mnt]#

    [email protected][/mnt]# echo $PATH
    /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.