Page 1 of 2
[HOWTO] install Plex in a jail via thebrig
Posted: 25 Aug 2013 18:27
by russb123
I have been banging my head trying to get plex media server installed in nas4free. I currently have a fresh full install on a 64gb SSD, but would like to figure out the install inside a jail so I can switch to a embedded if I want. Installing thebrig was simple by following the instructions in this forum, but now I am lost.
Could someone help me with step by step (complete newbie here) for installing Plex using the brig.
Thank you all.
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 26 Aug 2013 01:26
by russb123
Ok I think I figured it out:
1. Follow instructions here to install theBrig :
viewtopic.php?f=79&t=3894
2. Inside thebrig gui (after initial setup) create a jail by clicking on the "+" on the current jails tab
3. Give the jail a useful name (plex in this case) and a ip for your network, i used 192.168.1.201 I left everything else as default except I chekced all the official freebsd files (not sure if any/all are needed)
4. Click Add.
5. Click apply once back into the current jails tab. After this I had to refresh my browser to get the "on-line view" on the top of the page to show.
6 Click the green button below action to start the jail.
7 Once started goto your SSH (putty) command line.
8. type jls - you should see the ip and name of the jail you just created. If you do not something is wrong and you should stop here till you get it running
9 now type jexec 1 csh This will log you into your jails root and is needed for the next steps The "1" is the ID number of the jail it could be another number if you have more jails
10 type fetch
http://plexrpms.markwalker.dk/FreeBSD-P ... .4.125.tbz
11 type pkg_add plexmediaserver-0.9.8.4.125.tbz
12. For this next step I use Winscp
http://winscp.net/eng/download.php browse to the etc folder inside your jail mine was /mnt/mypool/jails/plex/etc scroll down to rc.conf and double click it
13 at the bottom of the file add: plexmediaserver_enable="YES"
14 Click save and exit
15 Go back to your SSH (putty) command line and type: /usr/local/etc/rc.d/plexmediaserver start
16 If all is well you should get a confirmation of the start
17. use your web browser and point to {ip used for jail}:32400/web in my case it was 192.168.1.201:32400/web and enjoy
I hope this helps someone else.
I am currently trying to figure out how to make mounts inside the jail point to mypool outside the jail to add my library. if anyone can help me my jail is /mnt/mypool/jails/Plex and I need to someohow get access to /mnt/mypool/Media/Movies from there.
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 26 Aug 2013 01:32
by raulfg3
Revise Info about fstab in thebrig:
viewtopic.php?f=79&t=3894#p20142
and beware: You need to have a 64 bit CPU ( Plex only works on 64bit CPU), so you need to have a CPU & N4F x64 not a x86
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 26 Aug 2013 06:40
by alexey123
russb123 wrote: if anyone can help me my jail is /mnt/mypool/jails/Plex and I need to someohow get access to /mnt/mypool/Media/Movies from there.
I don't understand your problem
What force prevents you do next:
Create folder for mount (from NAS4Free )
Code: Select all
mkdir /mnt/mypool/jails/Plex/mnt/movies
add to the window Fstab line
Code: Select all
/mnt/mypool/Media/Movies /mnt/mypool/jails/Plex/mnt/movies nullfs ro 0 0
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 05 Sep 2013 02:42
by russb123
Thanks guys that did the trick.
Now can anyone guess why my PS3 or Xbox 360 on the same network cannot see the plexmedia server when it scans for media servers? I also have a Roku and that works, but it has my myplex username and password to connect with.
Any ideas I could try would be great. The only port I have forwarded on my router is 32400 to the ip of the jail my plex install is in.
Thanks again!
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 05 Sep 2013 03:09
by russb123
I was able to figure out my own answer. I just added some things to my rc.conf. I am not sure if everything I put in is needed, i just compared it to my default installed rc.conf and put whatever looked like it was for networking.
My rc.conf now looks like this for my plex install inside a full jail:
Code: Select all
sendmail_enable="NONE"
syslogd_flags="-ss"
rpc_bind="NO"
network_interfaces="re0"
cron_flags="$cron_flags -J 15"
mdnsresponder_enable="YES"
samba_enable="YES"
sshd_enable="YES"
plexmediaserver_enable="YES"
hostname="Plex.local"
ipv4_addrs_re0="192.168.1.202/24"
defaultrouter="192.168.1.1"
netwait_enable="YES"
netwait_ip="192.168.1.1"
netwait_if="re0"
plexmediaserver_support_path="/usr/local/plexdata"
plexmediaserver_tmp="/tmp"
gateway_enable="YES"
After I restarted the jail my xbox saw the plex media server immediately and I was able to start a movie from it.
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 05 Sep 2013 07:39
by alexey123
russb123 wrote:
My rc.conf now looks like this for my plex install inside a full jail:
sendmail_enable="NONE"
syslogd_flags="-ss"
rpc_bind="NO"
network_interfaces="re0"
cron_flags="$cron_flags -J 15"
mdnsresponder_enable="YES" <--- your jail have mdnsresponder ?
samba_enable="YES" <--- you jail have samba ???
sshd_enable="YES" <-- If jail have SSH, can you connect into ?
plexmediaserver_enable="YES"
hostname="Plex.local"
ipv4_addrs_re0="192.168.1.202/24" <--- jail cannot change IP adress
defaultrouter="192.168.1.1" <---- Just no need
netwait_enable="YES" <------- no need
netwait_ip="192.168.1.1" <---- no need
netwait_if="re0" <------- no need
plexmediaserver_support_path="/usr/local/plexdata"
plexmediaserver_tmp="/tmp"
gateway_enable="YES" <--- your jail ran as gateway? WOW!! Can you wrote howto?
Hmmmmm.
russb123 wrote:After I restarted the jail my xbox saw the plex media server immediately and I was able to start a movie from it.
What problem?
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 05 Sep 2013 14:36
by russb123
I answered my own problem. It is my post above that asks the question

Re: [HOWTO] install Plex in a jail via thebrig
Posted: 15 Sep 2013 03:20
by tfast500
i mapped my movies,pictures, and music using the fstab however its dont detecting any of my media?
/mnt/Storage/Public/Movies /mnt/Storage/Jail/Plex/mnt/Movies nullfs rw 0 0
/mnt/Storage/Public/Pictures /mnt/Storage/Jail/Plex/mnt/Pictures nullfs rw 0 0
/mnt/Storage/Public/Music /mnt/Storage/Jail/Plex/mnt/Music nullfs rw 0 0
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 15 Sep 2013 03:23
by tfast500
never mind i figured it out the owner and groups were not set properly
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 16 Sep 2013 19:31
by oleost
Howto install PlexConnect
Enter jail (Replace 1 with your Jail ID)
Fetch Plexconnect and unzip
Code: Select all
fetch https://github.com/iBaa/PlexConnect/archive/master.zip
unzip master.zip
Installing Pyton27 and Nano
Code: Select all
pkg_add -v -r python27
pkg_add -v -r nano
And then I copy a previosly made cert. file to correct folder in Jail.
https://langui.sh/2013/08/27/appletv-ssl-plexconnect/
Code: Select all
EXIT
cp /mnt/PATH_TO/trailers.pem /mnt/PATH_TO/Jail/plex/PlexConnect-master/assets/certificates/
jexec 1 csh
Start PlexConnect so it creates Settings.cfg
When it started Exit using CTRL + C
Change the 2 lines below
Code: Select all
ip_pms = 10.0.0.30 # This one you have to change to your Jail IP address
enable_plexgdm = False # This one you have to change from True to False
To start it you have to type.
Code: Select all
/bin/sh /PlexConnect-master/PlexConnect_daemon.bash start
Re: Can someone help me install Plex in a jail via thebrig?
Posted: 28 Sep 2013 11:47
by MikeMac
russb123 wrote:I just added some things to my rc.conf.
Thank you very much, after adding lines to rc.conf Plex DLNA server appears!
In acording with my testing, addition of just four lines as below are enough
Code: Select all
plexmediaserver_enable="YES"
hostname="Plex.local"
plexmediaserver_support_path="/usr/local/plexdata"
plexmediaserver_tmp="/tmp"
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 02 Dec 2013 16:28
by calculus
Hello,
i installed successfully plex media server using this guide. Everything is working except library update (automatic nor periodic). Library update works only manually (if i hit update button).
An other user solved the same problem after server restart, but it didnt work for me.
Maybe this is a cron issue?
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 07 May 2014 18:39
by simplyme
Hi guys, I have followed the guide and got Plex installed and I can access it via it's own GUI but it cannot see any of the files I have.
I added folders on the Gui , eg. /mnt/Media/Movies & /mnt/Media/Music but it fails to see any. Do I need to set permissions anywhere?
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 07 May 2014 21:02
by raulfg3
simplyme wrote:I added folders on the Gui , eg. /mnt/Media/Movies & /mnt/Media/Music but it fails to see any. Do I need to set permissions anywhere?
revise that really your media files are in /mnt/Media/Movies & /mnt/Media/Music
do an ls -l to see owner and permission.
and probably user plex must be in the wheel group ( you can do it on the N4F webGUI).
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 08 May 2014 15:23
by simplyme
No Plex user showing? I can see in process log file, Plex has a user id of 972
ls -l just shows Root user
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 08 May 2014 16:54
by raulfg3
simplyme wrote:No Plex user showing? I can see in process log file, Plex has a user id of 972
ls -l just shows Root user
Go to webGUi and add user 972 as user plex in group wheel, define bash as shell login and define a path for home like /mnt/yourpoolyouplexjail/mnt/Media
reboot and see if this time show multimedia files.
PD: please post ls -l in /mnt/Media and in /mnt/Media/Movies inside your jail to be sure that you have files here.
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 10 May 2014 03:02
by simplyme
I have done this and still no luck
Below example is of my TV folder:
root@Plex:/mnt/XBMC # ls -l
total 16
drwxrwxrwx 4 root wheel 512 May 10 00:26 Kids
drwxrwxrwx 4 root wheel 512 May 10 00:25 Movies
drwxrwxrwx 2 root wheel 512 May 10 00:27 Music
drwxrwxrwx 2 root wheel 512 May 10 00:27 TV
root@Plex:/mnt/XBMC/TV # ls -l
total 0
fstab is as below:
/mnt/Media/XBMC/Media/TV /mnt/Media/Jail/Plex/mnt/XBMC/TV nullfs rw 0 0
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 10 May 2014 09:19
by raulfg3
simplyme wrote:/mnt/Media/XBMC/Media/TV /mnt/Media/Jail/Plex/mnt/XBMC/TV nullfs rw 0 0
change fstab by:
Code: Select all
/mnt/Media/XBMC/Media /mnt/Media/Jail/Plex/mnt/XBMC nullfs rw 0 0
once done stop jail, wait 20 seconds and restart jail, this time must work
PD: Be sure that /mnt/Media/Jail/Plex/mnt/XBMC exist before to start jail ( stop jail and do a cd /mnt/Media/Jail/Plex/mnt/XBMC from outside the jail to check that folder exist, if do not exist, you must create first
Code: Select all
mkdir /mnt/Media/Jail/Plex/mnt/XBMC
)
once you can see media files inside your jail, you can add any media folder that you want to plex in the plex webGUI; Eg: you can add /mnt/Media/Jail/Plex/mnt/XBMC/TV but not to add /mnt/Media/Jail/Plex/mnt/XBMC/Kids
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 10 May 2014 11:30
by simplyme
Something so simple! Thank you Raul - that's been driving me mad

Re: [HOWTO] install Plex in a jail via thebrig
Posted: 05 Jul 2014 00:18
by rexxcalibur
Hi guys!
I firstly want to say that I have used this forum for a good few years to help me build and mod my NAS4free servers and have found them to be very useful. Thanks for all the help! Just wondering if anyone know how to update the Plex server after it has been installed using this method?
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 05 Jul 2014 07:13
by dreamcat4
Well pkg_add is no longer supported by FreeBSD. SO I don't expect you can get the newest Plex pkg versions anymore from those old FreeBSD repos. You can install newest NAS4Free r999. Then run FreeBSD-update inside your jail. Then upgrade the pkg_* tools to pkgng the standard FreeBSD ways with some efforts. But it would probably be a lot easier / faster just to create a new Plex jail from scratch, install the latest Plex (from pkgng). And manually move across your old config files / Media Database in to the new jail.
Also, in a few weeks I will eventually make a new tutorial especially for Plex, to install into Finch chroot (not Brig). But it's not terribly high on my list of priorities. Until then there are the more general jails HowTo's to follow.
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 22 Oct 2020 18:59
by liver
Code: Select all
nas: ~# jexec 12 $SHELL
root@plex:/ # service plexmediaserver status
plexmediaserver is running as pid 26775.
root@plex:/ # fetch -o - http://127.0.0.1:32400/web
fetch: http://127.0.0.1:32400/web: Not Found
help to solve the problem
root@plex:/ # fetch -o -
http://127.0.0.1:32400/web/index.html
return HTML
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 22 Oct 2020 21:05
by raulfg3
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 22 Oct 2020 21:07
by raulfg3
liver wrote: ↑22 Oct 2020 18:59
Code: Select all
nas: ~# jexec 12 $SHELL
root@plex:/ # service plexmediaserver status
plexmediaserver is running as pid 26775.
root@plex:/ # fetch -o - http://127.0.0.1:32400/web
fetch: http://127.0.0.1:32400/web: Not Found
help to solve the problem
root@plex:/ # fetch -o -
http://127.0.0.1:32400/web/index.html
return HTML
This have no sense.
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 22 Oct 2020 21:19
by liver
raulfg3 wrote: ↑22 Oct 2020 21:07
liver wrote: ↑22 Oct 2020 18:59
Code: Select all
nas: ~# jexec 12 $SHELL
root@plex:/ # service plexmediaserver status
plexmediaserver is running as pid 26775.
root@plex:/ # fetch -o - http://127.0.0.1:32400/web
fetch: http://127.0.0.1:32400/web: Not Found
help to solve the problem
root@plex:/ # fetch -o -
http://127.0.0.1:32400/web/index.html
return HTML
This have no sense.
Code: Select all
nas: ~# fetch -o - http://192.168.1.9:32400/web
fetch: http://192.168.1.9:32400/web: Not Found
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 22 Oct 2020 21:27
by liver
i'am have Version 11.1.0.4.5673, update plex extension and then plext not starting...
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 23 Oct 2020 08:33
by raulfg3
liver wrote: ↑22 Oct 2020 21:27
i'am have Version 11.1.0.4.5673, update plex extension and then plext not starting...
post more info to help you, on the plex extension forum
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 23 Oct 2020 13:22
by liver
there I was told to update the system up.
it seems to me it's not the system. I put Plex on the 12th version freebsd. nothing changed.
Re: [HOWTO] install Plex in a jail via thebrig
Posted: 23 Oct 2020 18:05
by raulfg3
please use more words to describe your problem, it's really hard to identify why you want to install plex into the brig, and what means
liver wrote: ↑23 Oct 2020 13:22
there I was told to update the system up.
it seems to me it's not the system. I put Plex on the 12th version freebsd. nothing changed.