Login    Register
Forum rules
Set-Up GuideFAQsForum Rules
  • Author
    Message

[HOWTO] Install serviio on NAS4Free

Postby asmodeas » 20 Nov 2012 21:07

OK, this post is closed, and you can continue in a new thread: viewtopic.php?f=79&t=4502



Here's how I got serviio running in a jail on NAS4free including transcoding. Most, if not all of this was from fsbruva and himbrr posts. Feel free to improve on this as I am not a FreeBSD or Serviio expert.

This install is recomended for all N4F install , embeded or full, and install into a jail is the default /prefered method of installing packages in nas4Free to avoid problems.

to start, create a new jail called serviio by following the jail guide: http://wiki.nas4free.org/doku.php?id=documentation:howto:jails

if you use wiki and have a working jail named serviio use this post to create a new jail called serviio

from shell check your jail number:
Code: Select all
rnas:~# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.201   serviio                       /jail/serviio
     2  192.168.1.202   kissdx                        /jail/kissdx
     3  192.168.1.203   minidlna                      /jail/minidlna
rnas:~#


once you know number, log into your jail:
Code: Select all
rnas:~# jexec 1 csh
root@serviio:/ #


Once inside the jail grab a portage tree. (not needed in TheBrig, because you can manage /install from TheBrig WebGUI)
Code: Select all
portsnap fetch
portsnap extract


Once that's done build ffmpeg1 and make sure the correct options (listed below) are selected:
Code: Select all
cd /usr/ports/multimedia/ffmpeg1
make config


Build with these options:
AMR_NB
AMR_WB
FAAC
LAME
RTMP
THEORA
VORBIS
VPX
X264
XVID

Then build and install.
Code: Select all
make install clean


This takes a while. I took the default options that popped up for dependencies.

When this is done build and install openjdk6 from ports. (You might be ok to install this from packages but I built it from ports.)
Code: Select all
cd /usr/ports/java/openjdk6
make install clean


Once again, this takes a while and I accepted the default build options.

Fetch and install Serviio.
Code: Select all
cd /tmp
fetch http://kairoh.bitbucket.org/serviio-webui/dist/serviio-webui-unix-1.0.1-c.tar.gz
fetch http://download.serviio.org/releases/serviio-1.1-linux.tar.gz
tar xvf serviio-1.1-linux.tar.gz -C /usr/local/etc/
tar xvf serviio-webui-unix-1.0.1-c.tar.gz -C /usr/local/etc/serviio-1.1
mkdir /usr/local/etc/prefs
pw groupadd dlna -g 933
pw useradd dlna -g dlna -u 933 -s /usr/sbin/nologin -c "DLNA Daemon" -d /usr/local/etc/serviio-1.1/prefs/
chown -R dlna:wheel /usr/local/etc/serviio-1.1


EDIT 08-01-2013: If you have old serviio-1.0.1 and want to upgrade to serviio-1.1 read this: http://www.serviio.org/component/content/article/21#q8

Now edit /etc/hosts file inside your jail, and add an entry with your jail's IP address and hostname.
Code: Select all
192.168.1.201       serviio.homenas.local
EDIT:26-02-2013: This line is really important, I install serviio to my friend and do not work because is not exact the name of the jail, if you name your jail serviio, this line can be:
Code: Select all
192.168.1.201       serviio
without homenas.local

Create a /usr/local/sbin/serviiod file, and fill it with:
Code: Select all
#!/bin/sh
### ====================================================================== ###
##                                                                          ##
##  Serviio start Script                                                    ##
##                                                                          ##
### ====================================================================== ###

SERVIIO_HOME=/usr/local/etc/serviio-1.1
SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/plugins/*:$SERVIIO_HOME/config"


# Find the best max heap size for JAVA ( From kairoh's serviio-webui
# scripts - https://kairo.bitbucket.org/serviio-webui, who references
# Platter's (http://pcloadletter.co.uk/2012/01.15/serviio-syno-paackages
JAVA_MAX_HEAP=512M
RAM=$(dmesg | grep 'real memory'| uniq | awk '{print $4/1048576}')
if [ $RAM -le 128 ]; then
    JAVA_MAX_HEAP=80M
elif [ $RAM -le 256 ]; then
    JAVA_MAX_HEAP=192M
fi

# Setup Serviio specific properties - might not need to specify ffmpeg
JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/local/bin/ffmpeg1"
JVM_OPTS="-Xmx${JAVA_MAX_HEAP} -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20"

# A kludge to get the -D... flags to Java, rather than to Serviio itself:
for o in "$@"
do
   case $o in
   -D*)
      JAVA_OPTS="$JAVA_OPTS $o"
      ;;
   esac
done

# Execute the JVM in the foreground
exec java $JVM_OPTS $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.restui.ServiioWrapper "$@"


Create a /usr/local/etc/rc.d/serviio file, and fill it with:
Code: Select all
#!/bin/sh

# $FreeBSD: ports/net/serviio/files/serviio.in,v 1.2 2012/01/14 08:56:27 dougb Exp $
#
# PROVIDE: serviio
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable serviio:
#
# serviio_enable="YES"

. /etc/rc.subr

name=serviio
rcvar=serviio_enable
command=/usr/local/sbin/serviiod

load_rc_config $name

serviio_user=${serviio_user-"dlna"}

command_args=" &"

stop_cmd="$command -stop"

run_rc_command $1


Make both files executable.
Code: Select all
chmod +x /usr/local/sbin/serviiod
chmod +x /usr/local/etc/rc.d/serviio


Enable serviio in your /etc/rc.conf file.
Code: Select all
serviio_enable="YES"


make a link to /etc/rc.d

Code: Select all
ln /usr/local/etc/rc.d/serviio /etc/rc.d/serviio
not recomended last in this same forum. viewtopic.php?f=79&t=1796&start=75#p16945

At this point you should be able to start serviio.
Code: Select all
/usr/local/etc/rc.d/serviio start


Serviio should now be up and running. Browse to the console http://<your serviio jail ip>:8123/serviio/console to get started. Refer to the Serviio documentation on how to configure.


PD: You can notice a delay in UPnP renders to detect serviio, this is due a problem with multicast and jails, actually, I do not know how to solve, but if you wait several minutes, finally serviio is show (in the upnp render) and works great.
NewUser
asmodeas
 
Posts: 7
Joined: 17 Nov 2012 05:42

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 24 Nov 2012 12:20

Ok I use the instructions in this post and I have a working serviio on a jail.


Serviio console - Google Chrome.jpg


now I have 14 days to test it and test if can do transcoding :

Serviio 1.0.1-a-b.jpg
You do not have the required permissions to view the files attached to this post.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 24 Nov 2012 12:38

my first problem, I can't add my files:
I see Error: data.accessGroupIds is undefined.

Serviio error- Mozilla Firefox.jpg


Code: Select all
Welcome to NAS4Free!
rnas:~# jexec 1 hsd
jexec: execvp(): hsd: No such file or directory
rnas:~# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.201   proto                         /jail/proto
rnas:~# jexec 1 csh
You have mail.
root@proto:/ # cd /mnt/Video
root@proto:/mnt/Video # ls -l
total 90
drwxrwxrwx  37 21  wheel   37 Nov 11 10:47 Aparcadas
drwxrwxrwx   2 21  wheel    8 Jun 24 17:50 Clara y Belen
drwxrwxrwx  12 21  wheel   15 Nov 23 15:32 Disney
drwxrwxrwx   4 21  wheel    4 Feb  5  2012 Documentales
-rwxrwxrwx   1 21  wheel  256 Nov 24 11:28 EDID_GSM_0xBC9C_0x00000000.ted
drwxrwxrwx  13 21  wheel   15 Oct 10 15:04 Infantil
drwxrwxrwx  34 21  wheel   34 Nov  9 15:34 Manga
drwxrwxrwx  35 21  wheel   35 Nov 21 08:08 Manga Sub
drwxrwxrwx  12 21  wheel   13 Oct 29 22:45 Peliculas AVI
drwxrwxrwx   4 21  wheel   46 Oct 27 16:35 Peliculas Manga
drwxrwxrwx  10 21  wheel   13 Nov 16 22:20 Series
drwxrwxrwx  24 21  wheel   46 May  8  2012 Videos Musicales
root@proto:/mnt/Video #


how to define 21=root or dlna
You do not have the required permissions to view the files attached to this post.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 24 Nov 2012 21:44

Edit on: 20-01-2013 to add HOWTO add serviio.log to Nas4Free log WebGUI

First, you need to konw where is serviio.log file located:
Code: Select all
/jail/serviio/usr/local/etc/serviio-1.1/log/serviio.log


Now you need to edir rc.conf in Webgui to add a variable name "serviio_logfile" and use previos valua as data.

serviio_logfile.jpg


now you can do the same that I do in minidlna, amule, etc..

Now How to add serviio.log to Nas4Free log:

I do the work using notes from: http://masterut.blogspot.com.es/2011/12/samsung-tv-freenas-07-mediatomb-dlna.html

First you need to edit file /usr/local/www/diag_log.inc use Advanced|File Editor to locate and load , so is ready to edit.

locate fuppes lines:

Code: Select all
$fuppes_logfile = rc_getenv_ex("fuppes_logfile", "{$g['varlog_path']}/fuppes.log");


copy & paste & edit fuppes to minidlna like this:
Code: Select all
$fuppes_logfile = rc_getenv_ex("fuppes_logfile", "{$g['varlog_path']}/fuppes.log");
$serviio_logfile = rc_getenv_ex("serviio_logfile", "{$g['varlog_path']}/serviio.log");



Find next fuppes section:

Code: Select all
array(
      "visible" => TRUE,
      "desc" => gettext("fuppes"),
      "logfile" => $fuppes_logfile,
      "filename" => "fuppes.log",
      "type" => "plain",
      "pattern" => "/^(.*)$/",
      "columns" => array(
         array("title" => gettext("Event"), "class" => "listlr", "param" => "", "pmid" => 1)
      )),



Do the same , copy & paste and edit copy to sustitute fuppes by minidlna

Code: Select all
array(
      "visible" => TRUE,
      "desc" => gettext("DLNA"),
      "logfile" => $fuppes_logfile,
      "filename" => "fuppes.log",
      "type" => "plain",
      "pattern" => "/^(.*)$/",
      "columns" => array(
         array("title" => gettext("Event"), "class" => "listlr", "param" => "", "pmid" => 1)
      )),
array(
      "visible" => TRUE,
      "desc" => gettext("serviio"),
      "logfile" => $serviio_logfile,
      "filename" => "serviio.log",
      "type" => "plain",
      "pattern" => "/^(.*)$/",
      "columns" => array(
         array("title" => gettext("Event"), "class" => "listlr", "param" => "", "pmid" => 1)
      )),



save and test, go to Diagnostics|Log and select the new amuled log.

if you do all well this are the result:

serviio diagnosis log.jpg



and for comparasion pourpouses, this is my modified diag_log.inc:

diag_log.zip
You do not have the required permissions to view the files attached to this post.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 24 Nov 2012 21:59

ok: answer in serviio forum: http://forum.serviio.org/viewtopic.php? ... Ids#p56768

You must use version "c" because version "a" have this problem.

Code: Select all
fetch http://kairoh.bitbucket.org/serviio-webui/dist/serviio-webui-unix-1.0.1-c.tar.gz


I edit my first post to reflect last changes.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby asmodeas » 26 Nov 2012 03:56

Thanks raulfg3 for noticing this. I used X11 forwarding when running the console at first. I never ran into this problem.
NewUser
asmodeas
 
Posts: 7
Joined: 17 Nov 2012 05:42

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 28 Nov 2012 06:52

still problems, I actually add folders , using Google Chrome , and IE 9 ( Firefox Do not Work),but content is not show ( but serviio works and is show in my SamsungTV but no one video file is show.ç

I revise serviio.log and scan for files is done, but not show ( I test old serviio prior to 1 last week to be sure if is serviio problem or a problem with config or jail). <- I suspect from latest version license problem

finally I do a new reinstall, and use latest 1.0.1-c version, and now works flawsely, it's amazing.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby fsbruva » 05 Dec 2012 16:14

Be careful. I think your rc.conf variable about allowing chflags needs to be in the Nas4free rc.conf (either gui or file). Otherwise, the kernel will not allow a jail to change a flag that will permit it more access. Consider - we are using jails for segregation of functionality. However, jails are designed so that if a jail gets compromised (user obtains remote root access), they cannot do any damage to the host system. Because of this, I suspect that allowing chflags in the jail's rc.conf will probably do nothing. If a hacker obtained access, they could easily change that rc.conf value, and gain more permissions and control. If you want to buildworld, you will need the chflag setting in Nas4free, not the jail.
PowerUser
fsbruva
 
Posts: 481
Joined: 21 Sep 2012 12:50

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 12 Dec 2012 21:10

I do a new reinstall ( using the latest console) and now i see the content, still persist the problem with firefox that can't add content, but solved using Google chrome to add content.

PD: I Recommend to all user that have a SAMSUNG TV to use it.


Thanks to all user that help me , specially to fsbruva.

Serviio console - Google Chrome - Ver 1.0.1.-a must be c.jpg



Serviio console - Google Chrome.jpg



Serviio console - Mozilla Firefox.jpg
You do not have the required permissions to view the files attached to this post.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby himbrr » 23 Dec 2012 10:36

Hi guys,

a new version of serviio is available :)
Lot's of fixes and features for the mediabrowser.

Can you please update your HOWTO?
I'm currently testing, if all is working fine.
Webgui is not working correctly with 1.1.
But I think there will be soon an update :)

EDIT:
The Webgui is working fine, but I had to make a clean installation of serviio :(
When I tried to migrate the old DB, serviio won't start and the Webgui wasn't working fine.
Please use the latest version from http://kairoh.bitbucket.org/serviio-webui/
PowerUser
himbrr
 
Posts: 170
Joined: 21 Oct 2012 19:16
Location: Germany

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 23 Dec 2012 20:37

I need some days to update, currently i am out with my family, and write this using a blakberry (very dificult)
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby peterpm » 01 Jan 2013 20:42

I've got 1.1 working with no problems, however 1.1 seems slower to me compared 1.0.1. Take 1-2 more minutes TV to find it..
NewUser
peterpm
 
Posts: 4
Joined: 23 Dec 2012 11:35

Re: [HOWTO] Install serviio on NAS4Free

Postby himbrr » 02 Jan 2013 13:15

peterpm wrote:Take 1-2 more minutes TV to find it..

Yes, but I think this is related to nas4free.
I have Fuppes (Host) and Serviio (Jail) enabled. Both take a lot of time to be found by my TVs.

My Ubuntu server machine with mediatomb was found directly with no delay. So I think this is not only a problem of Serviio...
PowerUser
himbrr
 
Posts: 170
Joined: 21 Oct 2012 19:16
Location: Germany

Re: [HOWTO] Install serviio on NAS4Free

Postby peterpm » 04 Jan 2013 06:13

himbrr wrote:
peterpm wrote:Take 1-2 more minutes TV to find it..

Yes, but I think this is related to nas4free.
I have Fuppes (Host) and Serviio (Jail) enabled. Both take a lot of time to be found by my TVs.

My Ubuntu server machine with mediatomb was found directly with no delay. So I think this is not only a problem of Serviio...


The strange is that mediatomb does not want to work at all for my samsung TV - server is up, but no videos or anything :-)
Serviio rocks :)
NewUser
peterpm
 
Posts: 4
Joined: 23 Dec 2012 11:35

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 04 Jan 2013 08:42

himbrr wrote:
peterpm wrote:Take 1-2 more minutes TV to find it..

Yes, but I think this is related to nas4free.
I have Fuppes (Host) and Serviio (Jail) enabled. Both take a lot of time to be found by my TVs.

My Ubuntu server machine with mediatomb was found directly with no delay. So I think this is not only a problem of Serviio...



I'm really sure that delay is because serviio (or minidlna or any app that need multicast) are installed inside a jail, and jails (in general) have problems with multicast.

But at this time I don't know how to solve, if someone know how to open multicast to in-out the jail, I can test his suggest.
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby dam012345 » 05 Jan 2013 22:16

Hello and thanks for this HOWTO,

Got a NAS4Free machine with FUPPES ok.

I try to set-up Serviio to replace FUPPES.

My jail is up with Serviio 1.1 and Ajax WebUI v1.0.1-c but i wonder how to add shared folder to my library :

When I use "Add local..." button on Servioo console, i see nothing under " /mnt " folder.

I think i should populate the " /jail/conf/fstab.proto " file with my NAS4Free (host) mount points (zfs pool) but don't know how to do.

May someone help ?
You do not have the required permissions to view the files attached to this post.
NewUser
dam012345
 
Posts: 2
Joined: 28 Sep 2012 20:22

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 05 Jan 2013 22:42

is really easy, see my other HOWTO install minidlna to understand: viewtopic.php?f=79&t=2099

basically you need to create one line per mountpoint inside the fstab.proto ( or inside fstab.serviio in my case)

A B nullfs ro 00

in my case:
Code: Select all
/mnt/NAS-A/Video /jail/serviio/mnt/Video nullfs ro 0 0
/mnt/NAS-A/Musica /jail/serviio/mnt/Musica nullfs ro 0 0
/mnt/NAS-A/Fotos /jail/serviio/mnt/Fotos nullfs ro 0 0


where: A= /mnt/NAS-A/Video is my folder under my pool NAS-A that contains all my videos ( inside Videos I have a lot of folders like series, Disney, etc...)
B = /jail/serviio/mnt/Video is the path to jail where I want that Video are mounted ( first you need to create folder Video inside mnt)
when you are inside the jail you need to navigate to /mnt and you see your Video mount point.

Remember that your jail can have other name , eg; serviio so your fstab can be named: fstab.serviio .

in my case I have 3 jails and this are my mount points:

Code: Select all
Filesystem                     Size    Used   Avail Capacity  Mounted on
/dev/ufsid/50b1233560844913      2G    323M    1.5G    18%    /
devfs                          1.0k    1.0k      0B   100%    /dev
procfs                         4.0k    4.0k      0B   100%    /proc
NAS-A                          7.1T    6.8T    319G    96%    /mnt/NAS-A
/mnt/NAS-A/jail                7.1T    6.8T    319G    96%    /jail
<above>:/usr                   7.1T    7.1T    1.5G   100%    /jail/conf/root/usr
/mnt/NAS-A/Video               7.1T    6.8T    319G    96%    /jail/serviio/mnt/Video
/mnt/NAS-A/Musica              7.1T    6.8T    319G    96%    /jail/serviio/mnt/Musica
/mnt/NAS-A/Fotos               7.1T    6.8T    319G    96%    /jail/serviio/mnt/Fotos
devfs                          1.0k    1.0k      0B   100%    /jail/serviio/dev
/mnt/NAS-A/Video               7.1T    6.8T    319G    96%    /jail/kissdx/mnt/Video
/mnt/NAS-A/Musica              7.1T    6.8T    319G    96%    /jail/kissdx/mnt/Musica
/mnt/NAS-A/Fotos               7.1T    6.8T    319G    96%    /jail/kissdx/mnt/Fotos
devfs                          1.0k    1.0k      0B   100%    /jail/kissdx/dev
/mnt/NAS-A/Video               7.1T    6.8T    319G    96%    /jail/minidlna/mnt/Video
/mnt/NAS-A/Musica              7.1T    6.8T    319G    96%    /jail/minidlna/mnt/Musica
/mnt/NAS-A/Fotos               7.1T    6.8T    319G    96%    /jail/minidlna/mnt/Fotos
devfs                          1.0k    1.0k      0B   100%    /jail/minidlna/dev
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby dam012345 » 06 Jan 2013 22:52

it works ok, thank you!
NewUser
dam012345
 
Posts: 2
Joined: 28 Sep 2012 20:22

Re: [HOWTO] Install serviio on NAS4Free

Postby belanzo » 07 Jan 2013 17:20

Hi!

Thank you for this excellent post!
When I installed and configured Serviio the version was 1.0.1.
Now version 1.1 was released.

I would like to ask if I want to upgrade to 1.1, is it enough to replace changed files and add new files
for the existing (serviio-1.0.1) directory or I need to create a fresh serviio-1.1 directory?

Best Regards,

BeLANzO
NewUser
belanzo
 
Posts: 5
Joined: 07 Jan 2013 17:13
Location: Hajdúböszörmény - Hungary

Re: [HOWTO] Install serviio on NAS4Free

Postby raulfg3 » 11 Jan 2013 12:26

Update HOWTo to latest serviio 1.1 , please read first post of the thread.

Now I have a working serviio 1.1 on my NAS
Site Admin
raulfg3

User avatar
 
Posts: 4014
Joined: 22 Jun 2012 20:13
Location: Madrid (ESPAÑA)

Re: [HOWTO] Install serviio on NAS4Free

Postby jasch » 12 Jan 2013 13:32

Hi, i having some Problem to get it work.
Jail is set up and running fine.
Serviio setup all ok but servio issnt running.(have tried multiple times to make new jails.....)
Code: Select all
root@proto:/ # /usr/local/etc/rc.d/serviio start
Starting serviio.
root@proto:/ #
root@proto:/ # /usr/local/etc/rc.d/serviio status
serviio is not running.
root@proto:/ #


When i look with ps, i see a few seconds after start
Code: Select all
 PID TT  STAT    TIME COMMAND
90320 ??  IsJ  0:00.01 /usr/sbin/syslogd -s
90380 ??  SsJ  0:00.03 sendmail: accepting connections (sendmail)
90383 ??  IsJ  0:00.00 sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail)
90387 ??  SsJ  0:00.01 /usr/sbin/cron -s
90405  0  SJ   0:00.32 csh
90695  0  SJ   0:01.05 /usr/local/openjdk6/bin/java -Xmx512M -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRati
90761  0  R+J  0:00.00 ps -A


but then nothing anymore, it looks like there is maybe an Problem wtih java, but i dont now.
When installing java i got this Message at the end
Code: Select all
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

Maybe this has something to do with it.
NAS4Free 9.1.0.1 rev.849 x64 - Intel S3420GPLX - Xeon L3426 - 16GB ECC - 2x IBM M1015 SAS (LSI IT FW) - Intel RES2SV240 SAS Expander - 2x Chenbro RM23212 MiniSAS - 10GBe Infiniband - Bunch of Disks
PowerUser
jasch
 
Posts: 101
Joined: 25 Jun 2012 08:25
Location: Germany

Re: [HOWTO] Install serviio on NAS4Free

Postby DanAddz » 16 Jan 2013 11:30

Hay ive tried to install this into my jail and am having the below problem?

Code: Select all
root@serviio:/usr/ports/multimedia/ffmpeg1 # make install clean
===>  License GPLv3 LGPL3 accepted by the user
===>  Found saved configuration for ffmpeg1-1.0.1
=> ffmpeg-1.0.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://ffmpeg.org/releases/ffmpeg-1.0.1.tar.bz2
fetch: http://ffmpeg.org/releases/ffmpeg-1.0.1.tar.bz2: No address record
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ffmpeg-1.0.1.tar.bz2
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ffmpeg-1.0.1.tar.bz2: No address record
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** [do-fetch] Error code 1

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

Stop in /usr/ports/multimedia/ffmpeg1.


Any Ideas why this is happening?
PowerUser
DanAddz
 
Posts: 75
Joined: 23 Dec 2012 05:32

Re: [HOWTO] Install serviio on NAS4Free

Postby jasch » 16 Jan 2013 12:01

you have extracted ports after fetching?

Code: Select all
portsnap fetch extract
NAS4Free 9.1.0.1 rev.849 x64 - Intel S3420GPLX - Xeon L3426 - 16GB ECC - 2x IBM M1015 SAS (LSI IT FW) - Intel RES2SV240 SAS Expander - 2x Chenbro RM23212 MiniSAS - 10GBe Infiniband - Bunch of Disks
PowerUser
jasch
 
Posts: 101
Joined: 25 Jun 2012 08:25
Location: Germany

Re: [HOWTO] Install serviio on NAS4Free

Postby DanAddz » 16 Jan 2013 12:14

What do you mean??

I just followed the top post? Should I do that code?

Thanks
PowerUser
DanAddz
 
Posts: 75
Joined: 23 Dec 2012 05:32

Re: [HOWTO] Install serviio on NAS4Free

Postby jasch » 16 Jan 2013 12:44

Since i could net get it working following the Howto, i made a different approach.
I followed the howto to the point to install serviio itself, there i made it different and installed servio from ports.
Code: Select all
cd /usr/ports/net/serviio/ && make install clean

the i added entry to /etc/rc.conf
Code: Select all
serviio_enable=YES
#Console access from remote
serviio_args=-Dserviio.remoteHost=you.derviio.ip.adress


serviio is now running and i can connect via console from my win7 client.
now i wanted to add web interface

Code: Select all
cd /tmp
fetch http://kairoh.bitbucket.org/serviio-webui/dist/serviio-webui-unix-1.0.1-c.tar.gz
tar xvf serviio-webui-unix-1.0.1-c.tar.gz -C /usr/local/share/java/classes/serviio

trying now to start /usr/local/share/java/classes/serviio/serviio-webui.sh gave me an error(wrong path)
to fix this i edited serviio-webui.sh
change (delete bin)
Code: Select all
# Setup the classpath
WEBUI_CLASSPATH="$SERVIIO_HOME/config"
LIB=${SERVIIO_HOME}/plugins
for jar in `ls -1 ${LIB}/*.jar`; do WEBUI_CLASSPATH="${WEBUI_CLASSPATH}:${jar}"; done
LIB=${SERVIIO_HOME}/bin
for jar in `ls -1 ${LIB}/*.jar`; do WEBUI_CLASSPATH="${WEBUI_CLASSPATH}:${jar}"; done

to
Code: Select all
# Setup the classpath
WEBUI_CLASSPATH="$SERVIIO_HOME/config"
LIB=${SERVIIO_HOME}/plugins
for jar in `ls -1 ${LIB}/*.jar`; do WEBUI_CLASSPATH="${WEBUI_CLASSPATH}:${jar}"; done
LIB=${SERVIIO_HOME}/
for jar in `ls -1 ${LIB}/*.jar`; do WEBUI_CLASSPATH="${WEBUI_CLASSPATH}:${jar}"; done


now webui is working and i can access ist.

But there 2 "minimal" things left first when i start thw web gui i get
Code: Select all
root@serviio:/usr/local/share/java/classes/serviio/bin # ./serviio-webui.sh
log4j:WARN No appenders could be found for logger (org.serviio.restui.ApplicationInstanceManager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Jan 16, 2013 1:39:11 PM org.restlet.engine.http.connector.HttpClientHelper start
INFO: Starting the default HTTP client
Jan 16, 2013 1:39:11 PM org.restlet.engine.http.connector.HttpServerHelper start
INFO: Starting the internal HTTP server on port 8123

so some log warning

and second in the webinterface the arrows are not shown, instead â...
Image

Maybe someone can give me a hand on this.
And Last what would be a good way to start the web sh on startup.

MFG Alex
Last edited by jasch on 16 Jan 2013 12:51, edited 1 time in total.
NAS4Free 9.1.0.1 rev.849 x64 - Intel S3420GPLX - Xeon L3426 - 16GB ECC - 2x IBM M1015 SAS (LSI IT FW) - Intel RES2SV240 SAS Expander - 2x Chenbro RM23212 MiniSAS - 10GBe Infiniband - Bunch of Disks
PowerUser
jasch
 
Posts: 101
Joined: 25 Jun 2012 08:25
Location: Germany

Next

Return to Jails

Who is online

Users browsing this forum: Google [Bot] and 1 guest