Page 1 of 1

DS112j with Linux-client-configuration

PostPosted: Mon Sep 24, 2012 8:20 pm
by linuxuser
It looks like I have managed the installation of the serviio-server on a Synology-DS112j:

  Code:
ps | grep serviio
 5408 serviio   2976 S    /bin/sh /volume1/@appstore/Serviio/bin/serviio.sh
 5413 serviio   223m S    /volume1/@appstore/java7/jre/bin/java -Xmx80m -Xms20M -XX:+UseParNewGC -XX:MinHeapFreeRatio=10 -XX
10020 root      2980 S    grep serviio


But I can't get it work to configure the server with the client.

So my 1st question is, can I use the client for configuration, using the NAS? No problem to use vi to edit files.

I installed serviio on my Ubuntu 12-04 too. No problem to configure serviio, as long as I try to configure the serviio-server of the Linux PC, but I can't get it work to configure the serviio-server on the NAS. I tried serviio-console.sh on the Ubuntu PC and changed the empty binding-address to the one of the NAS. I still see the media-directories of the PC and not of the NAS.

But I found in the log
  Code:
[DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface Unknown and address 192.168.178.70, timeout = 0


192.168.178.70 is the IP-address of the NAS. At the moment it is empty again at the field with the binding address.

Re: DS112j with Linux-client-configuration

PostPosted: Mon Sep 24, 2012 8:35 pm
by will

Re: DS112j with Linux-client-configuration

PostPosted: Mon Sep 24, 2012 9:01 pm
by linuxuser
Thanks for clarifying this. But I am still confused, how it works. Is it possible to configure different serviio-servers (different IPs) with 1 serviio-client (serviio-console.sh) or do I have to changes everytime I configure another serviio-server?

Also I am unsure what to do exactly.

http://www.serviio.org/component/conten ... e?id=21#q2
you have to set the console's system variable serviio.remoteHost to the IP address of the machine running Serviio server

I can't find anything how this has to be done? Do I have to edit my .profile in my home-dir?

  Code:
.profile
if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
   . "$HOME/.bashrc"
    fi
fi
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi


How is the syntax exactly?

http://www.serviio.org/component/conten ... e?id=21#q3
Edit file serviio.sh or serviio-console.sh and add the variable to JAVA_OPTS property.

Again, please give more info, where and what exactly, please.

  Code:
serviio-console.sh

DIRNAME=`dirname $0`
PROGNAME=`basename $0`
cygwin=false;
darwin=false;
linux=false;
case "`uname`" in
    CYGWIN*)
        cygwin=true
        ;;
    Darwin*)
        darwin=true
        ;;
    Linux)
        linux=true
        ;;
esac
if $cygwin ; then
    [ -n "$SERVIIO_CONSOLE_HOME" ] &&
        SERVIIO_CONSOLE_HOME=`cygpath --unix "$SERVIIO_CONSOLE_HOME"`
    [ -n "$JAVA_HOME" ] &&
        JAVA_HOME=`cygpath --unix "$JAVA_HOME"`   
fi
if [ "x$SERVIIO_CONSOLE_HOME" = "x" ]; then
    SERVIIO_CONSOLE_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_CONSOLE_HOME
if [ "x$JAVA" = "x" ]; then
    if [ "x$JAVA_HOME" != "x" ]; then
   JAVA="$JAVA_HOME/bin/java"
    else
   JAVA="java"
    fi
fi
SERVIIO_CONSOLE_CLASS_PATH="$SERVIIO_CONSOLE_HOME/lib/*:$SERVIIO_CONSOLE_HOME/config"
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"
if $cygwin; then
    SERVIIO_CONSOLE_HOME=`cygpath --path --windows "$SERVIIO_CONSOLE_HOME"`
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
    SERVIIO_CONSOLE_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CONSOLE_CLASS_PATH"`
fi
"$JAVA" -Xms5M -XX:+UseParNewGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 $JAVA_OPTS -classpath "$SERVIIO_CONSOLE_CLASS_PATH" org.serviio.console.ServiioConsole "$@"         


Edit:

After I edited line 57 in serviio-console.sh from


  Code:
JAVA_OPTS="-Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"


to

  Code:
JAVA_OPTS="-Dserviio.remoteHost=192.168.178.70 -Dserviio.home=$SERVIIO_CONSOLE_HOME -Djava.net.preferIPv4Stack=true"


serviio-console.sh hangs during the start. Server version on the NAS is 1.0-13 and I didn't change anything on the NAS with the scripts.

According to http://pcloadletter.co.uk/tag/serviio/ : Do not make this change on the NAS – only on the computer that runs the console.

Re: DS112j with Linux-client-configuration

PostPosted: Tue Sep 25, 2012 6:22 am
by will
You want to set the ip address of your nas in the serviio-console.sh script on your pc.

If it hangs, post a detailed log from both the nas and pc.

If you want to access different servers you have to change the ip each time. It may suit your needs better if you install the WebUI written in PHP so that you can use your Web browser to configure the server(s), or my Android app, ServiiDroid.

Re: DS112j with Linux-client-configuration

PostPosted: Tue Sep 25, 2012 9:37 am
by linuxuser
Where can I find logs?

Is there a log for the scanned files, so I see that the scan is finished?

Re: DS112j with Linux-client-configuration

PostPosted: Tue Sep 25, 2012 10:15 am
by will
http://wiki.serviio.org/doku.php?id=detail_logging edit the files in serviio/config and get the logs from serviio/logs