DeaDSouL
Dabbler
- Joined
- Dec 21, 2015
- Messages
- 34
Hi, I had an issue with the emby-plugin as mentioned here.
And since I couldn't solve it, and no FreeNAS developer/expert suggested where to look at in order to troubleshoot it :(..
I thought why not trying to manually install Emby in a standard jail? And it worked!! :D:D
Anyway, here are the steps:
1) Navigate to Jails, and click on "Add Jail":
Configure it as you like, then add
2) Select the created Jail and click on the "Shell" icon in bottom-bar.
3) SSH Daemon:
If you want to auto start the ssh-daemon in jail whenever it runs:
Then, lets start ssh-daemon:
Otherwise, do:
4) Users:
First, create the home directory:
Adding new user, in order to use it when we ssh-ing to our jail:
make sure when it says: "Login group is deadsoul. Invite deadsoul into other groups? []:" you type: wheel
so that the user has the ability to become root. (instead of "deadsoul" it will show the username you've chosen)
Now, close the shell window.
5) SSH to your jail.
6) Become root:
By default, you won't be able to compile any ports and that's because of the port collection support of the FreeBSD version that FreeNAS is using as its standard jail has been ended.
To get around that:
hit:
hit:
type:
hit:
hit:
type:
hit:
7) Getting and updating ports tree:
8) Installing Emby:
9) Custom FFMPEG:
Delete the pre-compiled version of 'ffmpeg' that your jail has:
Install 'ffmpeg' build dependencies:
In case the previous command installed 'ffmpeg', let's delete it so that we can compile it later:
Head to the 'ffmpeg' port folder:
Now, let's configure it:
Make sure to check those options:
After that, compile 'ffmpeg':
PS: If you want to accept all default options, try:
Now, just sit back and wait till it finish its thing.
10) Emby server:
Enable the auto start of Emby server whenever the jail starts
Finally, run emby
Otherwise, if you want to run it this time only, do:
That's it!!
Happy NASign :p
And since I couldn't solve it, and no FreeNAS developer/expert suggested where to look at in order to troubleshoot it :(..
I thought why not trying to manually install Emby in a standard jail? And it worked!! :D:D
Anyway, here are the steps:
1) Navigate to Jails, and click on "Add Jail":
Configure it as you like, then add
allow.raw_sockets=true
to the "Sysctls" field. (I don't know what it is, but it's always there in pluginjail. Could someone tell us what is it for?)2) Select the created Jail and click on the "Shell" icon in bottom-bar.
3) SSH Daemon:
If you want to auto start the ssh-daemon in jail whenever it runs:
Code:
$ sysrc sshd_enable="YES"
Then, lets start ssh-daemon:
Code:
$ service sshd start
Otherwise, do:
Code:
$ service sshd onestart
4) Users:
First, create the home directory:
Code:
$ mkdir /home
Adding new user, in order to use it when we ssh-ing to our jail:
Code:
$ adduser
make sure when it says: "Login group is deadsoul. Invite deadsoul into other groups? []:" you type: wheel
so that the user has the ability to become root. (instead of "deadsoul" it will show the username you've chosen)
Now, close the shell window.
5) SSH to your jail.
Code:
$ ssh username@jail_host_or_ip
6) Become root:
Code:
$ su -
By default, you won't be able to compile any ports and that's because of the port collection support of the FreeBSD version that FreeNAS is using as its standard jail has been ended.
To get around that:
Code:
$ vi /etc/make.conf
hit:
Shift+g
<-- without '+' just Shift
and g
hit:
o
type:
ALLOW_UNSUPPORTED_SYSTEM=yes
hit:
Escape
hit:
:
<-- colontype:
wq
hit:
Enter
7) Getting and updating ports tree:
Code:
$ portsnap fetch extract $ portsnap fetch update
8) Installing Emby:
Code:
$ pkg install emby-server
9) Custom FFMPEG:
Delete the pre-compiled version of 'ffmpeg' that your jail has:
Code:
$ pkg delete -f ffmpeg
Install 'ffmpeg' build dependencies:
Code:
$ pkg install `make build-depends-list | tr '\n' ' ' | sed 's/\/usr\/ports\///g' | sed 's/audio\/lame //g'`
In case the previous command installed 'ffmpeg', let's delete it so that we can compile it later:
Code:
$ pkg delete -f ffmpeg
Head to the 'ffmpeg' port folder:
Code:
$ cd /usr/ports/multimedia/ffmpeg
Now, let's configure it:
Code:
$ make config
Make sure to check those options:
- lame
- SMB
- ass
- opus
- x265
After that, compile 'ffmpeg':
Code:
$ make install clean
PS: If you want to accept all default options, try:
Code:
$ make -DBATCH install clean
Now, just sit back and wait till it finish its thing.
10) Emby server:
Enable the auto start of Emby server whenever the jail starts
Code:
$ sysrc emby_server_enable="YES"
Finally, run emby
Code:
$ service emby-server start
Otherwise, if you want to run it this time only, do:
Code:
$ service emby-server onestart
That's it!!
Happy NASign :p
Last edited: