Serviio plugin in FreeNAS 9.1.1

Status
Not open for further replies.

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
That's because they're not using pbi to install it.
They're just installing it as if it's on a normal FreeBSD machine through the ports tree.

Are you sure you followed the installation instructions in that page? They're pretty clear and easy to follow.
 

Vlad

Dabbler
Joined
Aug 26, 2013
Messages
14
I'm absolutely sure.
Some thing is different.
Did you install Serviio on freenas 9 ?
 

Keith Manns

Dabbler
Joined
Nov 13, 2013
Messages
16
I'm needing help with this myself. But also keep in mine what is clear to you may not be clear to someone else. Either way, it seem Vlad and myself are thinking the same thing. It would just be better for us noobies to install if there was better instructions written (Or if the FreeNas guys include it like they included Plex). Right now I'm having to host Serviio on my main computer and map it to my NAS. I would RATHER have it be all on one machine.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Sorry about that. You are correct that clarity is a rather subjective thing.
Which part exactly from the instructions that you have an issue with?
 

laspo

Cadet
Joined
Apr 3, 2014
Messages
8
Hi, I'm also trying to install Serviio on Freenas 9.2. Can someone confirm that what I'm about to do is correct:
1) Create a jail for Serviio
2) Use PuTTy to enter jail
3) Look up the Serviio port for instructions: http://www.freshports.org/net/serviio/
4) First install packages that are "required to run", this means: ffmpeg and openjdk6
5) Install the port using the command: cd /usr/ports/net/serviio/ && make install clean

Are there any configuration options to watch out for?

Thanks in advance,


Laspo
 
D

dlavigne

Guest
3) Look up the Serviio port for instructions: http://www.freshports.org/net/serviio/
4) First install packages that are "required to run", this means: ffmpeg and openjdk6

The port itself will install the ffmpeg dependency, see its Makefile: http://svnweb.freebsd.org/ports/head/net/serviio/Makefile?revision=349471&view=markup. It looks like it expects you to take care of the version of openjdk you want to use. Note that serviio is currently marked as restricted, so you will need to first put a # in front of the RESTRICTED line in the Makefile.

Are there any configuration options to watch out for?

This will always be listed on the port's freshports page. In this case, it says:

Configuration Options
No options to configure
 

laspo

Cadet
Joined
Apr 3, 2014
Messages
8
As you'll see, I'm still a noob in this FreeNAS environment but I'm learning steadily.
Okay, so I created a jail and ran "pkg install java/openjdk6". I had no idea about the configuration options so I just went ahead with the default.
At the end it says :
Code said:
Make sure that the freetype module is loaded. If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

FontPath "/usr/local/lib/X11/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.

This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and procfs(5) mounted on /proc.
If you have not done it yet, please do the following:
mount -t fdescfs fdesc /dev/fd
mount -t procfs proc /proc

To make it permanent, you need the following lines in /etc/fstab:
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0


What does this mean/do and should I modify the fstab file? If so, I can't seem to find how to insert a number (within the vi insert mode) so i couldn't insert a 0.
Also when trying to run the mount commands, it says "Operation not permitted".

Afterwards I ran the command "portsnap fetch extract" and "make install clean" in usr/ports/net/serviio. This installed a lot of things. I just took the default options every time. But in the end, it stopped at this:

Code said:
checking for LIBFFI... no
configure: error: Package requirements (libffi >= 3.0.0) were not met:

Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libffi', required by 'world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
===> Script "configure" failed unexpectedly.
Please report the problem to novel@FreeBSD.org [maintainer] and attach the
"/usr/ports/security/p11-kit/work/p11-kit-0.20.2/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/sbin/pkg_info -Ea).
*** [do-configure] Error code 1

Stop in /usr/ports/security/p11-kit.
*** [lib-depends] Error code 1

Stop in /usr/ports/security/gnutls.
*** [install] Error code 1

Stop in /usr/ports/security/gnutls.
*** [lib-depends] Error code 1

Stop in /usr/ports/multimedia/ffmpeg.
*** [install] Error code 1

Stop in /usr/ports/multimedia/ffmpeg.
*** [run-depends] Error code 1

Stop in /usr/ports/net/serviio.

Any ideas? Do I have to install libffi separately?


EDIT: I just deleted the jail and started over by following the guide given in the first post. This took a long time! Why did it take so much longer?
Anyway the only difference with the guide was that there wasn't an ffmpeg1 folder (only ffmpeg and ffmpeg0). So I went with ffmpeg and continued. In the end, I ran "service serviio start" but I couldn't detect any dlna server so I don't think it's working. Is there some log that I can print out and analyze?

Thanks in advance!
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
Just to let you know, works still more or less the same way (used 9.2.1.9 + Serviio 1.5).
Necessary changes: (Step 8iii)
-Had to manually set a correct portsnap server as the EU one had a bad file (option -s, file /var/db/portsnap/serverlist)
-Package system had to be updated (pkg update && pkg upgrade)
-Installed java via pkg (pkg install openjdk8-8.31.13)
Then continued with 8iv
-ffmpg1 ->ffmpg
Make, build, install

Finally, go to /usr/local/etc/rc.d/serviio and change user to your user with access to shared filesystem

Configure with ServiiDroid as recommended:)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Just to let you know, works still more or less the same way (used 9.2.1.9 + Serviio 1.5).
Necessary changes: (Step 8iii)
-Had to manually set a correct portsnap server as the EU one had a bad file (option -s, file /var/db/portsnap/serverlist)
-Package system had to be updated (pkg update && pkg upgrade)
-Installed java via pkg (pkg install openjdk8-8.31.13)
Then continued with 8iv
-ffmpg1 ->ffmpg
Make, build, install

Finally, go to /usr/local/etc/rc.d/serviio and change user to your user with access to shared filesystem

Configure with ServiiDroid as recommended:)
you shouldn't edit the init script to change the user. you should set that in rc.conf
 

Rand

Guru
Joined
Dec 30, 2013
Messages
906
I assume then
: ${serviio_user="dlna"} is conditionally and will only be set if i dont have
serviio_user="myuser" in rc.conf ? :)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I assume then
: ${serviio_user="dlna"} is conditionally and will only be set if i dont have
serviio_user="myuser" in rc.conf ? :)
correct
 

MoonPie

Dabbler
Joined
Dec 13, 2014
Messages
20
I followed this thread and installed Serviio 1.5 but I want to upgrade to 1.5.1. Serviio web site says to simple locate the install directory and overwrite the files with the new ones. When I look for the install directory I can not find it. Can someone help me with the upgrade. Thanks...
 
Status
Not open for further replies.
Top