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#q2you 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#q3Edit 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.