Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!
Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL
[HOW TO] Plex Media Server for N4F Embedded (No Jail Need)
Moderator: crest
Forum rules
• Set-Up Guide • FAQs • Forum Rules
Post Reply Search this topic… First unread post • 26 posts • Page 1 of 1
[HOW TO] Plex Media Server for N4F Embedded (No
Jail Need)
#1
JoseMR
by JoseMR » June 9th, 2015, 1:32 am Hardware & Software Guru
Hi again folks, I've prepared another very simple guide on how to install and run the latest Plex
Media Server without Jail setups, for NAS4Free 9.3 x64 Embedded platforms, the Posts: 1252
Joined: April 16th, 2014, 4:15 am
recommended installation method. Location: PR
Contact:
Status: Of ine
This method requires the help of mount_unionfs to unify the /usr/local le system in order to
transparently install the Plex package to the mounted location, note that this method will not break
and/or modify your NAS4Free Embedded because will not going to unify /var under any
circumstance.
First decide and create the directories that will be used for unionfs and the Plex Media Server with
your own paths:
Now go to System|Advanced|Command scripts and add the following command for mount
/usr/local as PostInit:
then reboot the server, after reboot from console/SSH type this command:
and you should see the newly mounted le system line like this:
Name: plexmediaserver_plexpass_support_path
Value: /mnt/data/plexdata
Comment: Plex data location
Name: plexmediaserver_plexpass_tmp
Value: /mnt/data/plextmp
Comment: Plex tmp location
Tip: you may want to edit the existing size of /var from 128MB to 256MB to prevent errors while
fetching the Plex package:
Last steps to do, install Plex Media Server package and set auto-start on reboots.
Now install Plex Media Server from Console/SSH with the following command:
after package installation please skip any on-screen instructions and reboot server.
To upgrade Plex using this installation method just use the following commands below:
This will reinstall Plex over the previous Plex installation replacing old les with the new ones, and
Plex will reload the existing libraries, con guration and metadata as they are located in the
plexdata folder.
If you still want to install also upgrade packages in a normal fashion using this installation method
please read This
Currently tested and working on NAS4Free 9.3 x64 Embedded with either UFS/ZFS mount points.
Notes:
1) Stay aware of the Bugs/Limitations of mount_unionfs
2) Please never unify the entire /var directory as this leads to strange behaviors/breakage, read
more Here
3) Be aware that there is some strange bug/issues with NAS4Free 10.1 and Plex, for some reasons
the main Plex service crash/exit on signal 6 by itself, so this method is currently working on
NAS4Free 9.3 so far.
Disclaimer: This Plex Media Server installation guide is provided AS-IS and I'm not responsible for
any data loss or damage caused by the instructions provided in this guide, use at your own risk.
Last edited by JoseMR on October 8th, 2016, 10:33 pm, edited 6 times in total.
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#2
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#3
Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#4
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#5
Posts: 5000
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size Joined: June 22nd, 2012, 10:13 pm
only 22TB usable Location: Madrid (ESPAÑA)
Contact:
Wiki Status: Of ine
Last changes
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#6
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#7
MikeMac
by MikeMac » June 24th, 2015, 11:54 pm Forum Moderator
I personally had installed Plex into chroot (created by Finch). There is an advantage over jailed
installation - no "networks issues where Plex/DLNA are not visible on the network" Posts: 498
Joined: October 7th, 2012, 11:12 pm
Location: Moscow, Russia
I am not sure about advantage over this metod - but in chroot I have completelly separated Contact:
Status: Of ine
FreeBSD, with possibility to update it, install any sw and update it.
More, I use chroot on a separate dataset and have snapshot functionality similar to root on zfs, but
on embedded nas4free.
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#8
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#9
Also with this method I got Plex running in just few minutes with only few settings through the
WebGUI and very minimal CLI.
But yes, not every application can run without /var like in this method, in that case Jails is the way
to go.
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#10
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#11
Posts: 16
Joined: November 28th, 2012, 7:35 pm
Contact:
Status: Of ine
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#12
Posts: 309
Joined: June 23rd, 2012, 9:59 am
Protected by smoothiebox Red,Green, Location: Steinkjer,Norway
Purple,Orange Zones/VLAN`s Contact:
Powered by AMD A10-6700T Status: Of ine
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#13
Regarding the Plex package plexmediaserver is the old Plex package name, is now called
plexmediaserver-plexpass(don't requires Plexpass membership for free usage) so you may have
to uninstall the old Plex package before install the new Plex server.
To upgrade Plex using the installation method on this thread just use the following commands
below:
This will reinstall Plex over the previous Plex installation replacing old les with the new ones, and
Plex will reload the existing libraries, con guration and metadata as they are located in the
plexdata folder.
Regards
EDIT:
If you want to install also upgrade packages in a normal fashion you must unify /var/db in order
for the system to be aware of the installed packages
I have tested it under a VM and it don't break NAS4Free Embedded WebGUI and I found no strange
behaviors so far, though I'm still testing this on real hardware, so proceed at your own risk.
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#14
Am I rigth ?
I create a dataset 'plex' where I create the 3 folders. I put mount_unionfs command, I reboot, but
the command df -h doesn't show:
<above>:/mnt/data/usr/local
only :
Thanks
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#15
Correct, don't put that line to PostInit if Embedded, also you may want to edit the parameter
plexmediaserver_plexpass_enable and change to NO or just delete the parameter under
System|Advanced|rc.conf to prevent it from starting manually as well.
ernie wrote:
And with the rst step I don't have:
<above>:/mnt/data/usr/local
I create a dataset 'plex' where I create the 3 folders. I put mount_unionfs command, I reboot, but
the command df -h doesn't show:
<above>:/mnt/data/usr/local
/mnt/data/usr/local is the path on my example, you need to edit the path with your own, for
example /mnt/pool1/plexdataset.
ernie wrote:
Is mount_unionfs reserved to folder and no dataset ?
However I've noticed that you have /usr/local and /var/db already mounted:
DO NOT try to duplicate /usr/local, /var/db system directories or you will end up with a Server
internal error and unresponsive Console/SSH, and booting from LiveCD/USB is required to
x/replace the con g.xml
If you need Plex just use pkg install plexmediaserver-plexpass and mannually add the required
parameters to System|Advanced|Command scripts, System|Advanced|rc.conf and Access|Users
and Groups on the main Server.
Also you may want to try and play with Plex under a VM before making changes, the easiest way
to get Plex up and running in minutes is with my ezPlex Add-On script, it will auto create an Unionfs
under Embedded or natively install if Full followed by the required WebGUI entries.
Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#16
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#17
Since ezPlex will look for directory patterns like /usr/local and var/db on the current directory,
ezPlex is not an option unless you temporary disable the unionfs reboot and x the /usr_local,
/var_db directory patterns(not recommended)
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#18
- phpvbox:
-zrep:
Do I use in fact the mount of phpvbox for also zrep and also Plex ?
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#19
Do I use in fact the mount of phpvbox for also zrep and also Plex ?
Yes, Unionfs will just unify/extend /urs/loca/ and /var/db in order for the system transparently
install packages like a native FreeBSD installation, thats why I never give unionfs directory a name
related with a speci c package, because unionfs is for every package you install, therefore
preventing confusion.
Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#20
1) which mount union do I need to use for Plex : zrep or phpvbox ? Posts: 1424
Joined: August 26th, 2012, 7:09 pm
2) if I use ezplex, which folder will be used ? mount of zrep or phpvbox ? Location: France - Val d'Oise
Contact:
Status: Of ine
It will be good perhaps for add-on/extensions to have a reference rule for mount union : all will
use mount union in /pool/addon/var or /pool/addon/usr
where pool can change but not the end.
It will perhaps simplify compatibility between extensions/add on.
Thanks for your answer, and feel free to comment my last remark/proposition.
Edit
Based on a discussion with Sea1150, more information.
Zrep is using a mount on the lower layer.
Phpvbox is on the upper layer.
So it works.
Now a question: which layer plex will see ? I think the upper layer.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#21
You can use any existing /usr/local Unionfs for Plex, /var/db is optional but recommended for the
system be aware of the installed packages so you can easily update/upgrade/delete them with
pkg command, zrep union seems okay except for the lower layer.
2) if I use ezplex, which folder will be used ? mount of zrep or phpvbox ?
You can use ezPlex.php on any existing /usr/local, /var/db unions, however your unionfs has an
odd directory structure: /usr_local instead /usr/local same with /var_db.
The problem is that ezPlex will auto create/mount the Unionfs for you or skip the creation/mount if
the directories exist, but the directory structure needs to be for example:
/mnt/pool1/sup/opt/usr/local same with /var/db, so installing by hand is preferred.
It will be good perhaps for add-on/extensions to have a reference rule for mount union : all will
use mount union in /pool/addon/var or /pool/addon/usr
where pool can change but not the end.
It will perhaps simplify compatibility between extensions/add on.
If I understand correctly you should not worry about Extensions compatibility issues, Extensions like
TheBrig, Extended-GUI and so on, they are simply scripts and php web pages to add extra
functionality to NAS4Free and can be installed on any dedicated persistent location, however is
mandatory to install of cial FreeBSD packages under Unionfs or Jails on NAS4Free Embedded ,
since the default install location for FreeBSD packages is /usr/local, and the pkg database is
located by default in /var/db.
Edit
Based on a discussion with Sea1150, more information.
Zrep is using a mount on the lower layer.
Phpvbox is on the upper layer.
So it works.
Now a question: which layer plex will see ? I think the upper layer.
Based in my experience, I've tested and had no success with Plex on the lower layer(below)
unions, and expected results in the upper layer.
Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#22
Zrep is using lower layer. Plex will use supper layer. Posts: 1424
Joined: August 26th, 2012, 7:09 pm
Do I need to change the name of folder var_db and usr_local, even if it is not the same layer ? Location: France - Val d'Oise
Contact:
Status: Of ine
BR
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
ernie wrote:
Thanks JoseMR Posts: 1252
Joined: April 16th, 2014, 4:15 am
Location: PR
Zrep is using lower layer. Plex will use supper layer. Contact:
Do I need to change the name of folder var_db and usr_local, even if it is not the same layer ? Status: Of ine
BR
It really don't matter unless you plan to run ezPlex.php or just want to x the directory structure to
its default on purpose.
If you planning on x the directory structure to look like /usr/local instead of usr_local you need to
temporarily disable the union_mount PostInit commands and reboot .
After reboot verify with df -h if no unionfs is mounted, then rename usr_local to local then create a
directory called usr in the same dir of local then move local directory to usr, same apply to var_db
Then re-enable the mount_unionfs PostInit commands with the new directory structure. e.g:
mount_unionfs -o below /mnt/pool1/sup/opt/usr/local and same for /var/db
If you feel uncomfortable with the console/ssh, the easiest way to accomplish this is with WinSCP
or Filezilla
Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#24
Posts: 1424
Joined: August 26th, 2012, 7:09 pm
NAS 1&2: Location: France - Val d'Oise
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC Contact:
XigmaNAS 12.0.0.4.6766 embedded Status: Of ine
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on
sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail eddi1984
NewUser
Need)
#25
Posts: 1
by eddi1984 » April 22nd, 2016, 6:49 pm
Joined: April 22nd, 2016, 6:46 pm
Contact:
Hi folks, Status: Of ine
I am following the instructions to the "t", however, after the reboot, the directories that I created
(/mnt/data/usr/local) are gone after the reboot. What am I missing.
Thanks.
Re: [HOW TO] Plex Media Server for N4F Embedded (No Jail
Need)
#26
your shared disk, also remember if you will try UnionFS to install packages, make sure is UFS, since
mounting UnionFS from UFS to ZFS can cause unexpected behaviors, also if you don't want to mess Posts: 1252
around with NAS4Free or how to run Plex, you could try my latest Plex Add-On for NAS4Free: Joined: April 16th, 2014, 4:15 am
Location: PR
viewtopic.php?f=71&t=10506 Contact:
it does not require jails, unionfs or complex con gurations. and I'm providing upgrades on time Status: Of ine
Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
JoseMRPubServ(temporary down)
Quick Reply
Subject: Re: [HOW TO] Plex Media Server for N4F Embedded