FAQ  •  Register  •  Login

Step by Step: create a Serviio - FreeNAS server

<<

westlake12

Serviio newbie

Posts: 2

Joined: Sun Jan 22, 2012 2:33 pm

Post Sun Jan 22, 2012 3:12 pm

Re: Step by Step: create a Serviio - FreeNAS server

There's a simple way to add a startup script to Freenas so that the Serviio service starts automatically after a reboot.

This works in Freenas 7.2 (not sure about Freenas 8).

Using the Freenas WebUI:

Click System > Advanced
Click on the "Command Scripts" tab
Click the "+" sign to add a new command script
Add this line: sh /home/serviio-0.6.1/bin/serviio.sh (or modify if you have serviio.sh located in a different directory)
Use the pulldown menu and set it to run "PostInit" (meaning after Freenas boots).

Now, anytime I restart my Freenas machine, Serviio gets started automatically.
<<

ken_z71

Serviio newbie

Posts: 13

Joined: Sat Sep 24, 2011 2:43 am

Post Sun Jan 22, 2012 10:57 pm

Re: Step by Step: create a Serviio - FreeNAS server

[quote="westlake12"]Thanks to maltmoose and dboy on the workaround for the adding the required freebsd packages with the setenv PACKAGESITE. This worked well for me the second time around. I wanted to note for those of us blindly following instructions that you may need to edit the PACKAGESITE if you have an Intel based machine. Since I have an Intel P4, I had to use this to get it to work properly:

setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports ... le/Latest/

The first time, I used the AMD packages and I could still see pictures and stream music but none of the video worked (no files were visible on my TV). That's when I re-read the instructions and noted this mistake I made. After I redid the entire Serviio install with the proper packages, everything works fine now.

I wanted to post since this could be the problem for others having issues where only pictures and music are working and no video files are visible.

[quote="maltmoose"]Thought i'd post back as i had the same experience as dboy, however i found another solution other than manually downloading the packages as the original pkg_add way doesnt work on the latest amd64 version.

The below ftp allows you to use setenv before the pkg_add then it will download and install them for you as originally described.
I had a few warning on the version being newer but it all seemed to work ok

setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports ... le/Latest/
[/quote][/quote]


I was under the impression that the Intel vs AMD issue was more Intel is for 32 bit vs amd64 was for ANY 64 bit system.

Can anyone confirm ? Or does Serviio have the ability to use the 64 bit OS?
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Mon Jan 23, 2012 8:07 am

Re: Step by Step: create a Serviio - FreeNAS server

ken_z71 wrote:
westlake12 wrote:Thanks to maltmoose and dboy on the workaround for the adding the required freebsd packages with the setenv PACKAGESITE. This worked well for me the second time around. I wanted to note for those of us blindly following instructions that you may need to edit the PACKAGESITE if you have an Intel based machine. Since I have an Intel P4, I had to use this to get it to work properly:

setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports ... le/Latest/

The first time, I used the AMD packages and I could still see pictures and stream music but none of the video worked (no files were visible on my TV). That's when I re-read the instructions and noted this mistake I made. After I redid the entire Serviio install with the proper packages, everything works fine now.

I wanted to post since this could be the problem for others having issues where only pictures and music are working and no video files are visible.

maltmoose wrote:Thought i'd post back as i had the same experience as dboy, however i found another solution other than manually downloading the packages as the original pkg_add way doesnt work on the latest amd64 version.

The below ftp allows you to use setenv before the pkg_add then it will download and install them for you as originally described.
I had a few warning on the version being newer but it all seemed to work ok

setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports ... le/Latest/



I was under the impression that the Intel vs AMD issue was more Intel is for 32 bit vs amd64 was for ANY 64 bit system.

Can anyone confirm ? Or does Serviio have the ability to use the 64 bit OS?


serviio is 64bit.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zmcqdv

Serviio newbie

Posts: 1

Joined: Sat Feb 11, 2012 12:27 pm

Post Sat Feb 11, 2012 12:33 pm

Re: Step by Step: create a Serviio - FreeNAS server

Hi,

I have 0.7.5 TEST ONLY (revision 9496)
I am using AMD64
I have followed all the steps in Page 1

Files :
diablo-jre-freebsd7.amd64.1.6.0.07.02
serviio-0.6.2-linux.tar
I have changed the ip also on the text file.

When I run 'sh serviio.sh' in /usr/home/serviio-0.6.2/bin

I got this message :
Error occurred during initialization of VM
Unable to load ZIP library: /usr/local/diablo-jre1.6.0/lib/amd64/libzip.so

Any help is appreaciated.
Thanks.
<<

DjCalvin

Serviio newbie

Posts: 1

Joined: Fri Mar 02, 2012 7:57 pm

Post Fri Mar 02, 2012 8:05 pm

Re: Step by Step: create a Serviio - FreeNAS server

Im getting the exact Same error on 0.7.5 9898
tried the steps from here: http://forums.freebsd.org/showthread.php?t=6584 without any luck.
cant even do a java -version
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Mar 02, 2012 8:21 pm

Re: Step by Step: create a Serviio - FreeNAS server

rebuild libtools.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

pilothaz

Streaming enthusiast

Posts: 28

Joined: Thu Jun 02, 2011 6:47 pm

Post Sat Jul 28, 2012 3:01 am

Re: Step by Step: create a Serviio - FreeNAS server

Cerberus wrote:rebuild libtools.


Tried this, but still getting the issue.

Was there a resolution for this? Here is a list of my pkg_info:

ca_root_nss-3.12.11_1 The root certificate bundle from the Mozilla Project
curl-7.21.3_2 Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
damageproto-1.2.1 Damage extension headers
diablo-jre-1.6.0.07.02 Java Development Kit 1.6.0_07.02
dri2proto-2.3 DRI2 prototype headers
expat-2.0.1_2 XML 1.0 parser written in C
ffmpeg-0.7.8,1 Realtime audio/video encoder/converter and streaming server
fixesproto-5.0 Fixes extension headers
freetype2-2.4.7 A free and portable TrueType font rendering engine
gettext-0.18.1.1 GNU gettext package
gpac-libgpac-0.4.5_4,1 Gpac MPEG-4 Systems library and headers
javavmwrapper-2.3.5 Wrapper script for various Java Virtual Machines
jpeg-8_3 IJG's jpeg compression utilities
kbproto-1.0.5 KB extension headers
libGL-7.4.4 OpenGL library that renders using GLX or DRI
libGLU-7.4.4 OpenGL utility library
libX11-1.4.4,1 X11 library
libXau-1.0.6 Authentication Protocol library for X11
libXdamage-1.1.3 X Damage extension library
libXdmcp-1.1.0 X Display Manager Control Protocol library
libXext-1.3.0_1,1 X11 Extension library
libXfixes-5.0 X Fixes extension library
libXxf86vm-1.1.1 X Vidmode Extension
libdrm-2.4.12_1 Userspace interface to kernel Direct Rendering Module servi
libiconv-1.13.1_1 A character set conversion library
libogg-1.2.2,4 Ogg bitstream library
libpthread-stubs-0.3_3 This library provides weak aliases for pthread functions
libtheora-1.1.1_2 Theora video codec for the Ogg multimedia streaming system
libtool-fixed-2.4_1 Generic shared library support script -- the fixed version
libvorbis-1.3.2,3 Audio compression codec library
libvpx-0.9.7 VP8 Codec SDK
libxcb-1.7 The X protocol C-language Binding (XCB) library
libxml2-2.7.8_1 XML parser library for GNOME
libzip-0.10 A C library for reading, creating, and modifying zip archiv
mmv-1.01b.15 Move/Copy/Append/Link multiple files
opencv-core-2.3.1_1 OpenCV core libraries
orc-0.4.14_1 Library and toolset to operate arrays of data
par2cmdline-0.4_4 Tools for using Parity v2 Archive files
pcre-8.20 Perl Compatible Regular Expressions library
php52-5.2.17_4 PHP Scripting Language
php52-ctype-5.2.17_4 The ctype shared extension for php
php52-curl-5.2.17_4 The curl shared extension for php
php52-dom-5.2.17_4 The dom shared extension for php
php52-extensions-1.3_1 A "meta-port" to install PHP extensions
php52-filter-5.2.17_4 The filter shared extension for php
php52-gettext-5.2.17_4 The gettext shared extension for php
php52-hash-5.2.17_4 The hash shared extension for php
php52-iconv-5.2.17_4 The iconv shared extension for php
php52-json-5.2.17_4 The json shared extension for php
php52-pcre-5.2.17_4 The pcre shared extension for php
php52-pdo-5.2.17_4 The pdo shared extension for php
php52-pdo_sqlite-5.2.17_4 The pdo_sqlite shared extension for php
php52-posix-5.2.17_4 The posix shared extension for php
php52-session-5.2.17_4 The session shared extension for php
php52-simplexml-5.2.17_4 The simplexml shared extension for php
php52-spl-5.2.17_4 The spl shared extension for php
php52-sqlite-5.2.17_4 The sqlite shared extension for php
php52-tokenizer-5.2.17_4 The tokenizer shared extension for php
php52-xml-5.2.17_4 The xml shared extension for php
php52-xmlreader-5.2.17_4 The xmlreader shared extension for php
php52-xmlwriter-5.2.17_4 The xmlwriter shared extension for php
pkg-config-0.25_1 A utility to retrieve information about installed libraries
png-1.4.8 Library for manipulating PNG images
py27-cheetah-2.4.4 HTML template engine for Python
py27-markdown-2.1.0 Text markup to HTML conversion engine for Python
py27-openssl-0.13 Python interface to the OpenSSL library
py27-setuptools-0.6c11_1 Download, build, install, upgrade, and uninstall Python pac
py27-sqlite3-2.7.2_1 Standard Python binding to the SQLite3 library
py27-yenc-0.3 A yenc decoding module for Python in C
python27-2.7.2_3 An interpreted object-oriented programming language
schroedinger-1.0.10 High-speed Dirac codec
sqlite3-3.7.9 An SQL database engine in a C library
unrar-4.00,5 Extract, view & test RAR archives
unzip-6.0_1 List, test and extract compressed files in a ZIP archive
x264-0.116.2076 Library and tool for encoding H.264/AVC video streams
xextproto-7.2.0 XExt extension headers
xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
xproto-7.0.22 X11 protocol headers
xtrans-1.2.6 Abstract network code for X
xvid-1.3.2,1 An opensource MPEG-4 codec, based on OpenDivx
zip-3.0 Create/update ZIP files compatible with pkzip
<<

pilothaz

Streaming enthusiast

Posts: 28

Joined: Thu Jun 02, 2011 6:47 pm

Post Tue Aug 21, 2012 7:08 pm

Re: Step by Step: create a Serviio - FreeNAS server

Still no issue? I have moved to minidlna, but would really really love to get back on Serviio.
<<

shrirange

Serviio newbie

Posts: 12

Joined: Tue Sep 11, 2012 6:30 am

Post Mon Sep 24, 2012 6:56 am

Re: Step by Step: create a Serviio - FreeNAS server

WD TV Live hub always say that device on which the movies are rendered should support the format say mkv. I do not understand this. If it is a media player it should display all the formats whichever TV it is. Even a CRT.
<<

harani

Serviio newbie

Posts: 4

Joined: Mon Dec 10, 2012 10:37 pm

Post Mon Dec 10, 2012 10:56 pm

Re: Step by Step: create a Serviio - FreeNAS server

hi I'm trying to install this on FreeNAS 0.7.2

everything seems to install ok with no errors. when i run serviio.sh it drops back to the command prompt after a few seconds and nothing seems to be running in the proccesses

the log files show a problem starting java.

i'm running it on an AMD Duron processor but i downloaded the Diablo I386 version of Java. is that right ? the only AMD version available seemed to be specifically for 64bit

below is the output of the log file





ERROR [MediaServer] An unexpected error occured. Ending the application. Message: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.serviio.mediabrowser.rest.MediaBrowserRestletApplication
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.serviio.mediabrowser.rest.MediaBrowserRestletApplication
at org.serviio.restlet.RestletServer.runServer(RestletServer.java:84)
at org.serviio.MediaServer.main(MediaServer.java:105)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.serviio.mediabrowser.rest.MediaBrowserRestletApplication
at org.serviio.restlet.RestletServer.createInstanceOfApplication(RestletServer.java:134)
at org.serviio.restlet.RestletServer.runServer(RestletServer.java:76)
... 1 more
Caused by: java.lang.ClassNotFoundException: org.serviio.mediabrowser.rest.MediaBrowserRestletApplication
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.serviio.restlet.RestletServer.createInstanceOfApplication(RestletServer.java:131)
... 2 more
<<

harani

Serviio newbie

Posts: 4

Joined: Mon Dec 10, 2012 10:37 pm

Post Tue Dec 11, 2012 10:35 pm

Re: Step by Step: create a Serviio - FreeNAS server

sorted this,

seems it wasn't loading all the .jar files needed
instead of specifying every single one in the SERVIIO_CLASS_PATH list i just specified the whole /lib/* folder

it now fires up ok :-)
<<

phn2

User avatar

Serviio lover

Posts: 77

Joined: Tue Jan 04, 2011 10:53 pm

Post Sat Jun 25, 2016 9:35 am

Re: Step by Step: create a Serviio - FreeNAS server

Any working solution as of today?
Having a hard time installing serviio on freenas...
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Mon Jun 27, 2016 10:27 am

Re: Step by Step: create a Serviio - FreeNAS server

Google on Freenas and Nas4free for more details.

This thread originated about how to install serviio on "freenas" that was later renamed to "nas4free".

There is a description here
http://forums.nas4free.org/viewtopic.php?f=79&t=4502
how to install serviio, but I dont know if it is updated, I havent used serviio myself for a while.
Previous

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 8 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.