[[fester112:jails_plex]]

Plex Media Server

This is a guide for installing the Plex Media Server plugin.

Click “Storage” in the left column, then “Pools”.

Click the three vertical dots to the right of your pool, and select “Add Dataset” from the pop-up menu.

You'll see the “Add Dataset” window.

  • In the “Name” text box type a name for the new media dataset (Fester very imaginatively used Media).
  • Leave the “Compression level” drop down selection box (2) at its default value (Inherit (lz4)).
  • In “Share Type” I selected Windows simply because most of the clients on Fester’s network are Windows machines.
  • Now click on the “Save” button.

Your dataset will be created. Click the > next to your pool name to show the datasets.


If all goes well the new dataset will be listed in the “Storage” page.
Click the three vertical dots to the right of the new dataset, and click “Edit Permissions” from the pop-up menu.

You'll see the “Edit Permissions” window.

  • In the “User” drop down selection box select whatever user you created when we created the experimental share (in Fester’s case this was TestUser).
  • In the “Group” drop down selection box select whatever group you created when we created the experimental share (in Fester’s case this was TestGroup).
  • Now click the “Save” button.

Now click “Sharing” in the left column, then “Windows (SMB) Shares”.

Click the “Add” button.

A new smaller window will pop up. In the “Path” section click the folder icon to the left, then browse to find your new Media dataset.

  • The “Path” text box should now display the chosen dataset.
  • Do not tick the “Use as home share:” tick box at the moment.
  • Give the share a name in the “Name” text box.
  • Do not tick the “Allow Guest Access:” tick box.
  • Now click the “Save” button.

If all goes well you will see the newly created SMB share entry.

Give the server some time to get the share up and running, then it is time to map the new network folder to a drive letter.

On the Windows client click on the “Start” button and go into “Computer” (this was on a Windows 7 machine). This should bring up a window that shows all the hard drives and any other devices connected to the Windows computer. Click on the “Map Network Drive” button.

  • From the “Drive:” drop down selection box (1) chose the drive letter you wish to assign to the shared folder (Fester accepted the default Y letter).
  • Now click the “Browse…” button (2). This will cause a window to pop up.
  • Navigate to the location of the shared folder by clicking on the server (in this case TestNAS1) (3) and then clicking on the shared folder itself (in this case Fester’s Plex Share) (4).
  • Now click the “OK” button (5).
  • The shared folder’s path name should appear in the “Folder:” text box (6).
  • Tick the “Reconnect at logon! Tick box (7).
  • Now click the “Finish” button (8).

If all has gone well you should find yourself in the shared folder. Here you can create other folders and save files. Test this to make sure there are no permissions problems. You should create a folder here for each type of media you want to use with the Plex Media Server (Movies, TV shows, Music, etc.).

Now copy a couple of media files (i.e. music, films, etc) into this folder. We will need these later to check the Plex media server.

The shared folder will now appear as another drive on your system and should look something like this.

Now click “Plugins” in the left column, than “Available”, and wait for the list to appear. If the Plugins page does not populate then check the DNS servers are configured properly in FreeNAS.

Scroll down and find the plugin you want (in Fester’s case this was the PlexMediaServer). Then, within that text area, scroll sideways if necessary until you see the three vertical dots on the far right. Click on those dots, and click “Install” from the pop-up menu.

You'll then see a window prompting you for network settings for the plugin.

DHCP is ticked by default, but is discouraged–services running on your network should generally have static IP addresses. Untick the DHCP box, select a network interface from the dropdown, enter an IP address that's available on your network, and select an IPv4 Netmask (in most cases, you'll use 24). Then click “Save.” An installation window will pop up for a few moments.

If all goes well, you'll see this once installation is finished:

Click the “Close” button. You'll be taken to the Installed Plugins page, showing this plugin as installed.

The plugin is installed, but it can't see the Media dataset we created. To address this, we'll need to add a mount point to the plugin. Begin by clicking on “Jails” in the left column.

You'll see your jails listed (in this example there's only one). Scroll sideways in the list if necessary to see the three vertical dots to the far right.

Click on the dots, and then select “Stop” from the pop-up menu.

You'll see a warning screen; click “Stop” again here.

Click on the dots again, and then select “Mount points” from the pop-up menu. You'll see the Mount Points page. Click “Actions”, then “Add Mount Point”.

You'll see the “Add Mount Point” screen. As before, you can manually type in paths for source and destination, or click the folder icons to browse to your desired path. Note that the “Destination” paths will always begin with /mnt/pool/iocage/jails/jailname/root/. If you want the dataset to appear as /media inside the jail, the destination would read /mnt/tank/iocage/jails/plex/root/media. Then click “Save”.

You're returned to the mount points screen, with your new mount point listed.

Now that the mount point has been added, you'll need to start the plugin again. Click “Plugins” in the left column, then “Installed”.

Scroll sideways if necessary to see the three vertical dots on the far right.

Click on the three dots, then click “Start” from the pop-up menu. To launch the Plex web interface, click on the three dots again, then click “Management”.

These instructions are current as of 27 May 2019. The Plex interface may change with time. The first time you launch the Plex web interface, it will ask you to log in to your plex.tv account.

This is not required. To skip this step, click on the tiny text in the bottom-right corner that says “What's this?”. You'll see this screen:

Read the screen and see if you want to register for a free plex.tv account. If not, scroll to the bottom and click on “Skip and accept limited functionality”. You'll see a screen explaining how Plex works.

Click “Got it!”. You'll see a page explaining the benefits of Plex Pass, which you can close by clicking the X in the upper-right corner.

The next page will ask you to name your server. You can call it anything you like. It will also offer to allow you to access your media outside your home. The security implications of this choice are beyond the scope of this guide. Click “Next” when you're finished.

You'll now be able to set up your media libraries. Click the “Add Library” button to start.

Select the media type. For this example, I'll use movies. Name the library and select your language, and click “Next” when you're finished.

Now you'll need to add one or more folders to this library. If you've followed the instructions above, we'll need to add /media/Movies. Begin by clicking “Browse for media folder”.

Then click to browse to the desired location. If you prefer, you can just type it in at the top of this window. Click “Add” when you've found it. Repeat as necessary to add more folders to this library, if desired. Click the “Add Library” button when you're finished.

You can add further libraries here (TV, Music, etc.) if desired. Click “Next” when you're done adding libraries.

The system will take a few minutes to set up the server. Once it finishes, you'll see the home screen.

  • fester112/jails_plex.txt
  • Last modified: 2019/05/27 14:44
  • by dan