[[fester112:jails_plex]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
fester112:jails_plex [2016/06/08 02:01] – external edit A User Not Logged infester112:jails_plex [2019/05/27 14:44] (current) – [Initial Plex Setup] Add Plex Home page image dan
Line 1: Line 1:
 ====== Plex Media Server ====== ====== Plex Media Server ======
- 
 This is a guide for installing the Plex Media Server plugin. This is a guide for installing the Plex Media Server plugin.
  
 ===== Create the Media Dataset ===== ===== Create the Media Dataset =====
 +Click "Storage" in the left column, then "Pools".
  
-Go to the “Services” page.\\ +{{:fester112:pasted:20190527-130751.png}}
-{{:fester:ff4a9fe0ede1e650f1f9da121c4b6b5b.png}}\\ +
-Now switch off the “CIFS” service.\\ +
-{{:fester:5be61b1c17a458698be07744eef0089f.png}}\\ +
-We now need to create a dataset for storing all the media (i.e. films, music, etc) you have on your server.+
  
-  * Go to the “Storage” page (1). +Click the three vertical dots to the right of your pool, and select "Add Dataset" from the pop-up menu.
-  * Select the volume (it will turn blue when you choose it) (2) (in Fester’s case this was Tank1). +
-  * Now click on the “Create Dataset” button (3).+
  
-{{:fester:37cb8aae65ca593ecd6d8e3d0b9bc705.png}}+{{:fester112:pasted:20190527-130827.png}}
  
-  * In the “Dataset Name:” text box (1) type a name for the new media dataset (Fester very imaginatively used **Media**). +You'll see the "Add Dataset" window.
-  * Leave the “Compression Level:” drop down selection box (2) at its default value (**lz4**). +
-  * In “Share type:” I selected **Windows**  simply because most of the clients on Fester’s network are Windows machines. +
-  * Now click on the “Add Dataset” button (4).+
  
-{{:fester:a1d8639661fbf89f6690084d02d1b522.png}}+{{:fester112:pasted:20190527-131010.png}}
  
- \\ If all goes well the new dataset will be listed in the “Storage” page. \\ Select the new dataset (it should turn blue when selected) (1). \\ Now click on the “Change Permissions” button (2).+  * 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.
  
-{{:fester:3d87fde693b2fdd6431a63f4344cb855.png}}+Your dataset will be created.  Click the **>** next to your pool name to show the datasets.
  
-  * In the “Owner (user):” drop down selection box (1) select whatever user you created when we created the experimental share (in Fester’s case this was TestUser). +{{:fester112:pasted:20190527-131143.png}}
-  * In the “Owner (group):” drop down selection box (2) select whatever group you created when we created the experimental share (in Fester’s case this was TestGroup). +
-  * Tick the “Set permission recursively:” tick box (3). +
-  * Now click the “Change” button (4).+
  
-{{:fester:edc888dd46532fc3f576f8fb93d59f0b.png}}+ \\ 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.
  
-===== Add Media Share =====+{{:fester112:pasted:20190527-131248.png}}
  
-Now go to the “Sharing” page.+You'll see the "Edit Permissions" window.
  
-{{:fester:9efbed461546eb54bef5d719a203ab3b.png}}+{{:fester112:pasted:20190527-131518.png}}
  
-Now click the “Windows (CIFS)” button (1and then click the “Add Windows (CIFS) Share” button (2).+  * 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.
  
-{{:fester:470fe07bdd3f98dc95402995bfcb81d1.png}}+===== Add Media Share =====
  
-A new smaller window will pop up.  In the “Path:” section click the “Browse” button.+Now click "Sharing" in the left column, then "Windows (SMB) Shares".
  
-{{:fester:5856bd9fcc2c35a008988d98214c22f9.png}}+{{:fester112:pasted:20190527-131629.png}}
  
-The window should now expand a little and allow you to navigate to the newly created dataset (1).  When you have it selected click the “Close” button (2).+Click the "Add" button.
  
-{{:fester:dc60e91ef274b2e6994462a6761308f4.png}}+{{:fester112:pasted:20190527-131829.png}}
  
-  * The “Path:” text box (1) should now display the chosen dataset. +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.
-  * Do not tick the “Use as home share:” tick box (2) at the moment. +
-  * Give the share a name in the “Name:” text box (3). +
-  * Put a tick in the “Apply Default Permissions:” tick box (4) if a tick is not present. +
-  * Do not tick the “Allow Guest Access:” tick box (5). +
-  * Now click the “OK” button (6).+
  
-{{:fester:75d1ca90de2f709830f64f1ae97e6e60.png}}+  * 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 CIFS share entry (1).  You will now be asked if you wish to enable the CIFS share service.  Click the “Yes” button (2).+{{:fester112:pasted:20190527-131959.png}}
  
-{{:fester:7bc0ce60d48809d8131b01aa0cf3bcc9.png}} +If all goes well you will see the newly created SMB share entry 
- +
-The CIFS share service should now turn on. +
- +
-{{:fester:a5088a7ea6bf93d064bfea32eb5a931a.png}}+
  
 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. 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.
Line 100: Line 88:
 ===== Install the Plex Plugin ===== ===== Install the Plex Plugin =====
  
-Now go to the “Plugins” page and wait for the page to become populated\\  \\ (If the Plugins page does not populate then check the DNS servers are configured properly in FreeNAS.) \\  \\  \\  \\ Scroll down and select the plugin you want by clicking on it (in Fester’s case this was the PlexMediaServer) (1) and then click the “Install” button (2). \\  \\  \\  \\ A small window with a warning message will pop up. Just click the “OK” button. \\  \\  \\  \\ You should now see something like this. \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\ When the Plex plugin has installed go to the Jails” page\\  \\  \\  \\ Make a note of the IP address assigned to the Plex media server (it is under the “IPv4 Address” heading)\\ Now select the “plexmediaserver_1” jail (1) (it will turn blue when selected) and click on the “Add Storage” button (2). \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\ A new smaller window will pop up. \\ In the “Source:” section click the “Browse” button\\  \\  \\  \\ The window should now expand a little and allow you to navigate to the newly created dataset (1)\\ When you have it selected click the “Close” button (2)\\  \\  \\  \\ In the “Destination:” section click the “Browse” button\\  \\  \\  \\  \\ The window should now expand a little and allow you to navigate to the folder within the Jail you wish to use (1) (Fester used the media folder)\\ When you have it selected click the “Close” button (2)\\  \\  \\  \\ Now click on the “OK” button\\  \\  \\  \\ Remain within the “Jails” page and check that the storage for the Plex media server has been created by clicking on the “Storage” button (1)You should see an entry that relates to the newly created storage (2)\\  \\  \\  \\  \\  \\  \\  \\  \\ Now go back to the “Plugins” page\\ Click on the “Installed” button (1)\\ Now switch on the Plex media server service by clicking on the “On/Off” button (2)\\  \\  \\  \\ Give the Plex service a moment to get running.+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. 
 + 
 +{{:fester112:pasted:20190527-132207.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-132350.png}} 
 + 
 +You'll then see a window prompting you for network settings for the plugin. 
 + 
 +{{:fester112:pasted:20190527-132539.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-132736.png}} 
 + 
 +If all goes well, you'll see this once installation is finished: 
 + 
 +{{:fester112:pasted:20190527-133716.png}} 
 + 
 +Click the "Close" button.  You'll be taken to the Installed Plugins page, showing this plugin as installed. 
 + 
 +{{:fester112:pasted:20190527-133859.png}} 
 + 
 +===== Configure a Mount Point ===== 
 +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. 
 + 
 +{{:fester112:pasted:20190527-134154.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-134602.png}} 
 + 
 +Click on the dots, and then select "Stop" from the pop-up menu. 
 + 
 +{{:fester112:pasted:20190527-134616.png}} 
 + 
 +You'll see a warning screen; click "Stop" again here. 
 + 
 +{{:fester112:pasted:20190527-134304.png}} 
 + 
 +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"
 + 
 +{{:fester112:pasted:20190527-134426.png}} 
 + 
 +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"
 + 
 +{{:fester112:pasted:20190527-135100.png}} 
 + 
 +You're returned to the mount points screen, with your new mount point listed. 
 + 
 +===== Restart the Plugin ===== 
 +Now that the mount point has been added, you'll need to start the plugin again.  Click "Plugins" in the left column, then "Installed"
 + 
 +{{:fester112:pasted:20190527-135452.png}} 
 + 
 +Scroll sideways if necessary to see the three vertical dots on the far right. 
 + 
 +{{:fester112:pasted:20190527-135524.png}} 
 + 
 +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"
 + 
 +{{:fester112:pasted:20190527-135942.png}} 
 + 
 +===== Initial Plex Setup ===== 
 +**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 [[https://plex.tv|plex.tv]] account. 
 +{{:fester112:pasted:20190527-140754.png}} 
 + 
 +**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: 
 +{{:fester112:pasted:20190527-140821.png}} 
 + 
 +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. 
 +{{:fester112:pasted:20190527-141045.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-141524.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-141707.png}} 
 + 
 +You'll now be able to set up your media libraries Click the "Add Library" button to start. 
 + 
 +{{:fester112:pasted:20190527-142138.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-142304.png}} 
 + 
 +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"
 + 
 +{{:fester112:pasted:20190527-142357.png}} 
 + 
 +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. 
 + 
 +{{:fester112:pasted:20190527-142542.png}} 
 + 
 +You can add further libraries here (TV, Music, etc.) if desired.  Click "Next" when you're done adding libraries. 
 + 
 +{{:fester112:pasted:20190527-142812.png}}
  
-===== Configure Plex Media Server =====+The system will take a few minutes to set up the server.  Once it finishes, you'll see the home screen.
  
-Now open your web browser and type in the following web address. \\  \\ FreeNASAssignedWebAddressHere:32400/web \\  \\ In Fester’s case this would look like this. \\  \\ 192.168.0.9:32400/web \\  \\ If you don’t know the IP address that FreeNAS assigned to the Plex media server you can find it in the “Jails” page listed under the “IPv4 Address” heading. \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\ If all goes well you should be presented with the Plex Media Server web GUI. You should see something like this. \\  \\  \\  \\ Follow the on screen instructions to setup the Plex media server as you need it. As each person’s preferences are different I won’t cover that here. If you have any problems there is a wealth of information on the Plex website. \\  \\ Whatever you do make sure you click the “Add Library” button so you can tell Plex where to find the folder within the Jail that links to the media share. If you don’t do this you will not be able to use your media files in Plex. \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\  \\ Fester likes music (let’s go Disco!) so I picked Music as the “Library Type” (1). \\ In the “Name” text box you can give the library a meaningful name (Fester stuck with Music). \\ Now click the “Add Folders” button (3). \\  \\  \\  \\ Next click on the folder icon (1) and from the list that appears select the “media” folder (2). \\ Now click the “ADD” button (3). \\  \\  \\  \\  \\  \\  \\  \\ Now click the “ADD LIBRARY” button. \\  \\  \\  \\ If all goes well your media should appear (in Fester’s case two test files). You should see something like this.+{{:fester112:pasted:20190527-144408.png}}
  
  • fester112/jails_plex.txt
  • Last modified: 2019/05/27 14:44
  • by dan