Forums

FastLaneJB
FastLaneJB
Offline
Resolved
0 votes
Hi all,

I know we have MiniDLNA, there's also MediaTomb and so on but this I believe is the best DLNA server you can run in Linux currently. It supports Transcoding of media in real time (I can transcode 720p content in real time to my Xbox 360). It will go on the Internet to fetch movie posters for movies, meta data to give Genre, Actors and such folders all filled in automatically. It also supports resuming playback on my Samsung DLNA TV which is the first reason I came across this as no other DLNA server I could find did this other than Samsung's own Windows only one.

By default it has a GUI console but there is a PHP based web interface which works well for our GUIless ClearOS boxes.

OK this is a rough guide for the moment as I wasn't noting it down as I installed it so I might miss something. So let us know if something doesn't workout right. This assumes a bit of command line knowledge but I'll try and flesh that out if people are struggling.

First of all Serviio is Java based so you'll need a JRE installed. You can get the link for the latest one which is jre-6u24-linux-i586-rpm.bin currently.

Java Download Links

Get the self extracting RPM version for Linux.

cd /tmp
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=47142


You'll need to rename is using mv as it'll get part of the URL on the end or did in my case. Now simply run it.

./jre-6u24-linux-i586-rpm.bin


This will install the JRE. Java is all sorted now.

You'll need ffmpeg installed for transcoding and thumbnails, etc to work. I've not tried it but I suspect it won't work without ffmpeg installed. I installed this off rpmforge. *** Add instructions on how to install RPMForge or better a link to a thread which discusses this ***

yum install --enablerepo=rpmforge ffmpeg


Now you need to download and install Serviio.

mkdir /opt/serviio
wget http://download.serviio.org/releases/serviio-0.5.1-linux.tar.gz
tar -zxvf serviio-0.5.1-linux.tar.gz /opt/serviio


I run this under a seperate user so lets make a user

useradd -d /opt/serviio -r serviio
chown serviio:serviio -R /opt/serviio


Now lets add in a init.d script for this. I've written my own, it's probably a bit rough but it works.

nano /etc/init.d/serviio


Init script below, paste this in.

#! /bin/sh
#
# /etc/init.d/serviio
#
#
### BEGIN INIT INFO
# Provides: serviio
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the serviio DLNA server in headless mode
### END INIT INFO

SERVIIO_HOME="/opt/serviio"
SERVIIO_DAEMON="serviio.sh"
SERVIIO_BIN="$SERVIIO_HOME/bin/$SERVIIO_DAEMON"
SERVIIO_USER="serviio"

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

check() {
# Check that we're a privileged user
[ $(id -u) = 0 ] || exit 4

# Check if SERVIIO_HOME exists
test -d "$SERVIIO_HOME" || exit 5

# Check if SERVIIO_BIN is executable
test -x "$SERVIIO_BIN" || exit 5
}

start() {
check

echo -n "Starting Serviio DLNA server: "
/usr/bin/sudo -u $SERVIIO_USER -H $SERVIIO_BIN -headless &

RETVAL=$?
if [ $RETVAL -eq 0 ]; then
touch /var/lock/subsys/serviio.sh
echo_success
else
echo_failure
fi
echo
return $RETVAL
}

stop() {
check

echo -n "Shutting down Serviio DLNA daemon: "
killproc "$SERVIIO_BIN"
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/serviio.sh
echo
return $RETVAL
}

restart() {
stop
start
}


case "$1" in
start)
start
;;
stop)
stop
;;
force-reload)
restart
;;
restart)
restart
;;
condrestart)
if [ -f /var/lock/subsys/serviio.sh ]; then
restart
fi
;;
status)
status serviio.sh
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|force-reload}"
RETVAL=2
esac

exit $RETVAL


Now lets add this in and fire it up

chmod +x /etc/init.d/serviio
chkconfig --add serviio
service serviio start


Hopefully the service will start fine but you cannot yet do anything with it. You need to be able to get the web interface installed.

cd /tmp
wget http://acidumirae.com/downloads/serviio-0.5.1b.zip
mkdir /opt/serviioweb
cd /opt/serviioweb
unzip /tmp/serviio-0.5.1b.zip
chown apache:apache /opt/serviioweb


You shouldn't need to change anything in the config.php as it's running on the same host as Serviio.

I access this by going to http://serviio as I don't need this available externally. To do this you need to edit /etc/hosts

nano /etc/hosts


On the line which has your server IP and host names, add in serviio so mine looks like this

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.1 server.domain.com server system serviio


Restart dnsmasq just incase.

service dnsmasq restart


now recreate a new config file for Apache to serve this.

nano /etc/httpd/conf.d/serviio.conf


And paste this in

<VirtualHost *:80>
ServerName serviio
ServerAlias serviio
DocumentRoot /opt/serviioweb
</VirtualHost>


There's no password protection on this site but it's only available from the same network which is home for me. Cannot do much harm with it so I left it that way.

Finally restart Apache.

service httpd restart


Now go to http://serviio on your PC (Must obviously be using ClearOS for it's DNS server else this won't resolve).

You should get the webconfig up. You can add paths to index here, see clients that are discovered and so on.

Been running it for about a week and it's been rock solid stable so far. A lot more effort to get working than MiniDLNA but the extra features in my case more than make up for this.

I might see if I can package this up but I've never done that before. However I'm a big on that approach based on the great work Tim has done with his add-ins :)
Thursday, March 24 2011, 09:50 PM
Share this post:
Responses (64)
  • Accepted Answer

    ToyotaHEAD
    ToyotaHEAD
    Offline
    Tuesday, September 30 2014, 07:22 AM - #Permalink
    Resolved
    0 votes
    Hey guys I have installed serviio from the marketplace but it doesn't seem to want to start. Any thoughts? I have had a quick peak over in the clearos logs but don't even see serviio listed as a possible log....


    Help :blink:
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 19 2013, 09:06 PM - #Permalink
    Resolved
    0 votes
    Hi,
    I have used miniDLNA for a couple of years and it is good, but the lack of transcoding makes me look elsewhere. I have found Serviio to be a hot candidate for my next server upgrade.

    But I really want a integrated "install with a click" type of DLNA server. Well, since Serviio is not available in the marketplace, I thought I should try to do something myself...

    I have now managed to build an (almost) working serviio rpm + a fully working serviio-WebUI rpm that I can install from locally. For those of you who would like to get some advice, from a beginner ... ;-) Here goes:

    To install serviio 1.3 "manually" into /usr/share/serviio :

    ffmpeg >0.11 is needed. Since ffmpeg-1.2.3 is broken (Oct 2013) in clearos repository we need a work around: Add

    rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
    nano /etc/yum.repos.d/atrpms.repo

    Add following text

    [atrpms]
    name=Fedora Core $releasever - $basearch - ATrpms
    baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
    gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
    enabled=0
    gpgcheck=1

    Save and exit (<ctrl-o>, <enter>, <ctrl-z>;)


    yum install --enablerepo=atrpms --enablerepo=clearos-core ffmpeg

    I know, I know. The above is really not something that one would recommend, mixing files from two repositories, but in this case I believe it works.


    yum install --enablerepo=clearos-core java


    Here I do my yum localinstall serviio, and yum localinstall serviio-WebUI. But since I only have them on my local computer you will have to do it manually:


    useradd -d /usr/share/serviio -r serviio
    chown -R serviio:serviio /usr/share/serviio

    yum install wget
    wget http://download.serviio.org/releases/serviio-1.3.1-linux.tar.gz
    tar -C /usr/share -zxvf serviio-1.3.1-linux.tar.gz
    mv /usr/share/serviio-1.3.1 /usr/share/serviio
    chown serviio:serviio /usr/share/serviio*


    Make sure that the /usr/share/serviio/bin/serviio.sh is executable if not run: chmod +x /usr/share/serviio/bin/serviio.sh

    Add script for running it as a service:


    nano /etc/init.d/serviio


    Add the following text in the file:

    #! /bin/sh
    #
    # chkconfig 35 85 15
    # description: Start the serviio DLNA server in headless mode
    ### BEGIN INIT INFO
    # Provides: serviio
    # Required-Start: $network
    # Required-Stop: $network
    # Default-Start: 3 5
    # Default-Stop: 0 1 2 6
    # Description: Start the serviio DLNA server in headless mode
    ### END INIT INFO

    SERVIIO_HOME="/usr/share/serviio"
    SERVIIO_DAEMON="serviio.sh"
    SERVIIO_BIN="$SERVIIO_HOME/bin/$SERVIIO_DAEMON"
    SERVIIO_USER="serviio"

    # Source function library.
    . /etc/rc.d/init.d/functions

    RETVAL=0

    check() {
    # Check that we're a privileged user
    [ $(id -u) = 0 ] || exit 4

    # Check if SERVIIO_HOME exists
    test -d "$SERVIIO_HOME" || exit 5

    # Check if SERVIIO_BIN is executable
    test -x "$SERVIIO_BIN" || exit 5
    }

    start() {
    check
    echo -n "Starting Serviio DLNA server: "
    /bin/su --session-command="$SERVIIO_BIN -headless" $SERVIIO_USER &
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
    touch /var/lock/subsys/serviio.sh
    echo_success
    else
    echo_failure
    fi
    echo
    return $RETVAL
    }

    stop() {
    check
    echo -n "Shutting down Serviio DLNA daemon: "
    # Retrieve JAVA Serviio process ID
    PIDDAEMON=`pgrep $SERVIIO_DAEMON`
    [ -z "$PIDDAEMON" ] || PIDJAVA=`ps -o pid= --ppid $PIDDAEMON`
    # Kill the daemon
    killproc "$SERVIIO_BIN"
    RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/serviio.sh
    echo
    # Kill the JAVA Serviio process if exists
    [ -z "$PIDJAVA" ] || kill -9 $PIDJAVA
    return $RETVAL
    }

    restart() {
    stop
    start
    }


    case "$1" in
    start)
    start
    ;;
    stop)
    stop
    ;;
    force-reload)
    restart
    ;;
    restart)
    restart
    ;;
    condrestart)
    if [ -f /var/lock/subsys/serviio.sh ]; then
    restart
    fi
    ;;
    status)
    status serviio.sh
    ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|force-reload}"
    RETVAL=2
    esac

    exit $RETVAL


    We need to add the ffmpeg directory to the serviio.sh script:

    nano /usr/share/serviio/bin/serviio.sh

    Look for the line that starts with "JAVA-OPTS=..." and add the ffmpeg-location almost at the end. The line shall look like this:

    JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dffmpeg.location=/usr/bin/ffmpeg"

    Save and exit

    Time to start up:

    chmod +x /etc/init.d/serviio
    chkconfig --add serviio
    chkconfig serviio on
    service serviio start


    First time serviio starts it will create the database etc. DO NOT stop the service during the first minute or so Before it has finished, that will leave a half-created database, and serviio will not start next time...

    Check that serviio is still running:

    service serviio status


    If it says that serviio is running then Everything is good! If not, please go back and sort out what have gone wrong Before you continue.

    Now it is time for the web GUI. This is a very simple install, without password, so it can probably be enhanced a bit. My ultimate goal is however to integrate it into the marketplace just like BackupPC or so, but I probably need a bit of help for that...


    wget https://github.com/SwoopX/Web-UI-for-Serviio/archive/Serviio-1.3.zip
    yum install unzip
    unzip Serviio-1.3 -d /usr/share/serviio-WebUI
    chown serviio:serviio /usr/share/serviio-WebUI*
    mv /usr/share/serviio-WebUI/Web-UI-for-Serviio-Serviio-1.3 serviio-WebUI


    Update: I had a problem with that php-mbstring is not installed in the ClearOS sandbox. Tim B helped me by pointing out that there is a special package webconfig-php-mbstring for this purpose. So we go ahead and install that one.

    Run the following to install php-mbstring in the ClearOS sandbox:

    yum install webconfig-php-mbstring


    Time to fix a handle in the sandbox webserver:

    nano /usr/clearos/sandbox/etc/httpd/conf.d/serviio-WebUI.conf

    Add following text

    <Directory /usr/share/serviio-WebUI/>
    order deny,allow
    deny from all
    allow from 127.0.0.1
    allow from 192.168.0.0/16
    allow from 10.0.0.0/8
    allow from 172.16.0.0/12
    </Directory>
    Alias /serviio /usr/share/serviio-WebUI

    Save and exit

    Now, it shall work. Go to https://your.clearos.server:81/serviio you shall now see the serviio-console. The WebUI is really not needed, there are serviio apps for Android and IOS and you can use them instead (or both if you like).

    Like I said, I have managed to put all this into two rpms, why I might have forgotten something when I tried to give you all details above.

    /Fred
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 03 2013, 07:06 PM - #Permalink
    Resolved
    0 votes
    Was there ever an RPM/update guide for 6.4 created?
    Ive progressed through the original and slightly corrected versions (but still using 0.5.1) and the service starts ok.
    However, there seems to be a problems with web content.

    I get the following displayed on my web browser when accessing the IP addr of the server:

    error && $tab!="about") { $tab = "error"; } ?>

    Not sure whether its fundamental to 6.4, or something more basic?

    TIA
    Andy
    The reply is currently minimized Show
  • Accepted Answer

    archange
    archange
    Offline
    Sunday, April 07 2013, 05:39 PM - #Permalink
    Resolved
    0 votes
    Hi,

    I'm having some trouble updating serviio from version 1.1 to v. 1.2.1
    As far as I have read on their site, all you need to do is stop the service and the console, overwrite with the new version, but keep the /library intact. I did that, plus changed the owner tor the folder paths to serviio:serviio as in the original install.

    After restarting the service, the console correctly displays the new version, the library and everything looks right, however there is no server discoverable on my network...

    Any ideas on what I might be missing here?

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    anwoke8204
    anwoke8204
    Offline
    Saturday, March 16 2013, 12:23 AM - #Permalink
    Resolved
    0 votes
    hi, I followed the instructions and installed serviio 1.2 as well as serviioweb 1.1 but when I navigate to myip/serviio it comes up with a 404 not found error, not sure what im doing wrong, ive created all the config files and everyting but its still not comming up
    The reply is currently minimized Show
  • Accepted Answer

    archange
    archange
    Offline
    Friday, February 22 2013, 06:53 PM - #Permalink
    Resolved
    0 votes
    Is there a kind soul who would adapt this guide for Clearos, complete with necessary dependencies and repositories?

    http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux
    The reply is currently minimized Show
  • Accepted Answer

    archange
    archange
    Offline
    Tuesday, February 19 2013, 10:52 PM - #Permalink
    Resolved
    0 votes
    Seems the Serviio guys are pretty adamant in using the recompiled version of ffmpeg available on their site.
    I have tried making use of this guide: http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

    Thing is that it's not well suited for clearos. The checkinstall options return a lot of errors for me and the install from source procedure is unfortunately a bust...

    Can anyone jump in with a few tips or comments?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 19 2013, 09:14 PM - #Permalink
    Resolved
    0 votes
    Csaba Balogh wrote:
    I can try using Serviio 1.1 with an other WebUI, Serviio WebUI v0.6.2-d for example, or I need to reinstall a previous version of Serviio ? Thank you Patrick.


    You can use both, because it uses different ports.
    Good luck.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 19 2013, 08:28 PM - #Permalink
    Resolved
    0 votes
    I can try using Serviio 1.1 with an other WebUI, Serviio WebUI v0.6.2-d for example, or I need to reinstall a previous version of Serviio ? Thank you Patrick.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, February 18 2013, 08:09 PM - #Permalink
    Resolved
    0 votes
    Csaba Balogh wrote:
    I installed Serviio 1.1 and WebUI v1.3beta on my ClearOS 6.3 server, I can access from my Win7 PC under http://192.168.2.101/serviioweb/, server status is green, but I cannot change anything in it because while saving I get the message Error:error. I am able to see the serviio media server on my network - but nothig is shared in the folders. How can I add folders or modifyy options in the web interface? Serviio and webgui are installed in /opt/serviio and /opt/serviioweb. Thanks.



    Same here.
    I've used another webgui [LINK]and than you can save your settings.
    unfortunately Serviio is not working fine with my mediaplayer
    The reply is currently minimized Show
  • Accepted Answer

    archange
    archange
    Offline
    Monday, February 04 2013, 08:39 PM - #Permalink
    Resolved
    0 votes
    Hi,

    Which ffmpeg is recommended for serviio compatibility, please?
    The default one and the rpmforge one seems not to wanna play along with the serviio media browser...

    200, Stream not found, NetStream.Play.StreamNotFound, clip: '[Clip] 'http://serviio:23424/cds/resource/187/MEDIA_ITEM/FLV-0/MEDIUM,flv_player?authToken=59fe275fba03451492b67378352f129c''


    Thanks in advance for any pointers!
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 30 2012, 01:33 PM - #Permalink
    Resolved
    0 votes
    I installed Serviio 1.1 and WebUI v1.3beta on my ClearOS 6.3 server, I can access from my Win7 PC under http://192.168.2.101/serviioweb/, server status is green, but I cannot change anything in it because while saving I get the message Error:error. I am able to see the serviio media server on my network - but nothig is shared in the folders. How can I add folders or modifyy options in the web interface? Serviio and webgui are installed in /opt/serviio and /opt/serviioweb. Thanks.

    http://www.clearfoundation.com/media/kunena/attachments/legacy/images/2012_12_30_152814-20121230.png

    http://www.clearfoundation.com/media/kunena/attachments/legacy/images/2012_12_30_152933.png

    http://www.clearfoundation.com/media/kunena/attachments/legacy/images/2012_12_30_153002.png

    http://www.clearfoundation.com/media/kunena/attachments/legacy/images/2012_12_30_153020.png

    http://www.clearfoundation.com/media/kunena/attachments/legacy/images/2012_12_30_155508.png
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 26 2012, 02:15 PM - #Permalink
    Resolved
    0 votes
    Did you get the path right? (conf.d not con.d)
    /etc/httpd/conf.d/serviio.conf

    The initial instructions configure a virtual host called 'serviio' (on port 80)...sounds like you are trying to access the site by subdirectory rather than just 'serviio'. Try using this config instead if you just want a single directory alias:-
    Alias /serviioweb /opt/serviioweb

    <Directory /opt/serviioweb/>
    Order allow,deny
    Allow from all
    </Directory>


    Did you restart httpd after making changes? then point your browser at URL http://yourserver/serviioweb
    The reply is currently minimized Show
  • Accepted Answer

    anwoke8204
    anwoke8204
    Offline
    Monday, November 26 2012, 04:41 AM - #Permalink
    Resolved
    0 votes
    ok so I have serviio installed in 6.3 but when I go to install serviioweb I can't access the site, I have checked the apache logs and it is looking for serviioweb under /var/www/html/serviioweb even though I have created the config file under /etc/httpd/con.d/serviio.conf and told it to use /opt/serviioweb for the document root. Why can't I get it to accept that for the document root? any ideas?
    The reply is currently minimized Show
  • Accepted Answer

    anwoke8204
    anwoke8204
    Offline
    Thursday, November 22 2012, 09:37 AM - #Permalink
    Resolved
    0 votes
    everytime I try to add a repository of media that is in a flexshare it gives me "cannot put repository" after I click save after manually adding /var/flexshare/shares/media using the add path option. how can I add a path that is in a flexshare to serviio?



    edit. this was solved after updating to serviio 1.0.1
    The reply is currently minimized Show
  • Accepted Answer

    arobinson
    arobinson
    Offline
    Tuesday, August 07 2012, 01:28 PM - #Permalink
    Resolved
    0 votes
    I managed to get serviio running on 6.2. What i ended up doing was doing the install as it was explained at the begining of this topic, but I ended up installing serviidroid on my Android phone instead of using the webui. System works like a champ now!
    The reply is currently minimized Show
  • Accepted Answer

    arobinson
    arobinson
    Offline
    Saturday, August 04 2012, 06:48 PM - #Permalink
    Resolved
    0 votes
    I seem to be having the same problem. I can get into the web interface, but any changes I make do not seem to save.
    The reply is currently minimized Show
  • Accepted Answer

    privasoft
    privasoft
    Offline
    Sunday, April 29 2012, 12:01 AM - #Permalink
    Resolved
    0 votes
    Sorry to revive an older thread, however has anybody tried the web-interface in 6.2 yet ?

    I can seem to get the service installed and started with no errors, got ffmpeg installed and seemingly working (no real way to test it yet though), however I cannot get the web-interface to work at all...
    The reply is currently minimized Show
  • Accepted Answer

    brend
    brend
    Offline
    Friday, February 24 2012, 02:41 PM - #Permalink
    Resolved
    0 votes
    Solved :).

    If the service does not start, check the Serviio install dir. If you follow the howto, probably Serviio is installed in /opt/serviio/serviio-0.5.1 instead of /opt/serviio/. Just change the dir or the location of the files and everything works fine.
    The reply is currently minimized Show
  • Accepted Answer

    brend
    brend
    Offline
    Friday, February 24 2012, 01:41 PM - #Permalink
    Resolved
    0 votes
    Dear all,

    I followed the howto, but the serviio.sh script seems not to start. When I start the script, no feedback is given

    [root@brend ~]# service serviio start
    [root@brend ~]#


    When I check the status, I get back:
    serviio.sh has stopped.. 



    The script I use is the standard script, pasted it below. Does anyone have tips how to get serviio running?

    #! /bin/sh
    #
    # /etc/init.d/serviio
    #
    #
    ### BEGIN INIT INFO
    # Provides: serviio
    # Required-Start: $network
    # Required-Stop: $network
    # Default-Start: 3 5
    # Default-Stop: 0 1 2 6
    # Description: Start the serviio DLNA server in headless mode
    ### END INIT INFO

    SERVIIO_HOME="/opt/serviio"
    SERVIIO_DAEMON="serviio.sh"
    SERVIIO_BIN="$SERVIIO_HOME/bin/$SERVIIO_DAEMON"
    SERVIIO_USER="serviio"

    # Source function library.
    . /etc/rc.d/init.d/functions

    RETVAL=0

    check() {
    # Check that we're a privileged user
    [ $(id -u) = 0 ] || exit 4

    # Check if SERVIIO_HOME exists
    test -d "$SERVIIO_HOME" || exit 5

    # Check if SERVIIO_BIN is executable
    test -x "$SERVIIO_BIN" || exit 5
    }

    start() {
    check

    echo -n "Starting Serviio DLNA server: "
    /usr/bin/sudo -u $SERVIIO_USER -H $SERVIIO_BIN -headless &

    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
    touch /var/lock/subsys/serviio.sh
    echo_success
    else
    echo_failure
    fi
    echo
    return $RETVAL
    }

    stop() {
    check

    echo -n "Shutting down Serviio DLNA daemon: "
    killproc "$SERVIIO_BIN"
    RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/serviio.sh
    echo
    return $RETVAL
    }

    restart() {
    stop
    start
    }


    case "$1" in
    start)
    start
    ;;
    stop)
    stop
    ;;
    force-reload)
    restart
    ;;
    restart)
    restart
    ;;
    condrestart)
    if [ -f /var/lock/subsys/serviio.sh ]; then
    restart
    fi
    ;;
    status)
    status serviio.sh
    ;;
    *)
    echo $"Usage: $0
    {start|stop|status|restart|condrestart|force-reload}"
    RETVAL=2
    esac

    exit $RETVAL
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, February 15 2012, 07:35 PM - #Permalink
    Resolved
    0 votes
    Hi All,

    I succeed to let serviio working but i can't get acces to the webgui. Installed and configured like in this thread but i can't let the webgui work.

    is the correct address: https://servername:81/serviio ?

    Trying to let it work for days now without succes....
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, January 29 2012, 06:04 PM - #Permalink
    Resolved
    0 votes
    F. van Tour wrote:
    Thanks FastLaneJB, this is doing the trick. No error on FFmpeg anymore. However serviio seems to have other problems now as it cannot link to its library for some reason. I think I need to do some more investigation here...

    -Frank


    Apparently I had to set access rights to the serviio directory, by chown, which I thought I did .. Or not. Now the serviio service is working great. Thx to all making this possible.

    -Frank
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, January 07 2012, 05:13 AM - #Permalink
    Resolved
    0 votes
    I have made it through the entire install all the way to the last code and I get this error:

    [root@system ~]# service httpd restart
    httpd: unrecognized service


    and I also am not able to get the webconfig to resolve in my browser.

    Please Help :)
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, December 24 2011, 07:45 PM - #Permalink
    Resolved
    0 votes
    Thanks FastLaneJB, this is doing the trick. No error on FFmpeg anymore. However serviio seems to have other problems now as it cannot link to its library for some reason. I think I need to do some more investigation here...

    -Frank
    The reply is currently minimized Show
  • Accepted Answer

    FastLaneJB
    FastLaneJB
    Offline
    Tuesday, December 20 2011, 09:29 PM - #Permalink
    Resolved
    0 votes
    This will probably be why.

    Your ffmpeg is in /usr/local/bin/ and it will be wanting it in /usr/bin/ from a init.d script

    Easy solution to this would be to do

    ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg


    Give that a whirl and hopefully it'll sort it out for you. By having a link it'll save you from say having to copy it from /usr/local/bin to /usr/bin each time you compile and install a new ffmpeg.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 20 2011, 09:14 PM - #Permalink
    Resolved
    0 votes
    Tim Burgess wrote:
    Where is ffmpeg installed? what's the output of 'which ffmpeg' and 'rpm -q ffmpeg'

    The PATH environment for init scripts is different to your normal bash login.


    which ffmpeg gives /usr/local/bin/ffmpeg

    rpm -q ffmpeg gives package ffmpeg is not installed

    But i did not use rpm to install ffmpeg. I installed It this way

    cd /usr/share
    wget http:/ffmpeg.org/releases/ffmpeg-0.8.5.tar.gz
    tar -xzvf ffmpeg-0.8.5.tar.gz
    cd ffmpeg
    ./configure
    make
    make install

    Had to install yasm too in order to install ffmpeg
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 20 2011, 01:06 PM - #Permalink
    Resolved
    0 votes
    Where is ffmpeg installed? what's the output of 'which ffmpeg' and 'rpm -q ffmpeg'

    The PATH environment for init scripts is different to your normal bash login.
    The reply is currently minimized Show
  • Accepted Answer

    Jimmy
    Jimmy
    Offline
    Sunday, December 18 2011, 05:12 AM - #Permalink
    Resolved
    0 votes
    Hi,

    Decided to revisit this. I tried the newer versions of serviio and serviioweb, but for some reason could not get it to work.

    I have gotten it to work with serviio-0.5.2-linux.tar.gz, and the corresponding serviio-0.5.2.2b.zip (Web UI).
    its showing up in my xbox360 at least, have yet to watch it ;)

    edit: using JB's script.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 12 2011, 09:08 PM - #Permalink
    Resolved
    0 votes
    Ok succeeded in geting the daemon script working. However serviio starts but is stopped by an error, cannot run program ffmpeg. Has anybody encountered the same problem? When directly starting serviio from its Bin dir, its working fine.

    -Frank
    The reply is currently minimized Show
  • Accepted Answer

    Leonard
    Leonard
    Offline
    Saturday, November 12 2011, 04:51 PM - #Permalink
    Resolved
    0 votes
    Nah it's a fail! ..... :( will have to work on this some more as it looks fantastic!
    The reply is currently minimized Show
  • Accepted Answer

    Leonard
    Leonard
    Offline
    Saturday, November 12 2011, 02:17 PM - #Permalink
    Resolved
    0 votes
    Well currently running 0.6 and when I add a library and press save I'm left with a white page httpd/error_log shows
    PHP Fatal error: Class 'DOMDocument' not found in /opt/serviioweb/lib/serviio.php on line 488, referer: http://serviio/?tab=library

    So I install php-xml

    everything installs great! so lets add that library now.....Uh oh! white page again this time httpd/error_log shows

    Invalid argument supplied for foreach() in /opt/serviioweb/lib/serviio.php on line 521, referer: http://serviio/?tab=library

    clueless with php :)

    EDIT: Although I get the white page and error in the log file the library path has been added so I'm going to test it thoroughly ......Fingers crossed....
    The reply is currently minimized Show
  • Accepted Answer

    Leonard
    Leonard
    Offline
    Saturday, November 12 2011, 01:33 PM - #Permalink
    Resolved
    0 votes
    sorted on it now :)
    The reply is currently minimized Show
  • Accepted Answer

    FastLaneJB
    FastLaneJB
    Offline
    Saturday, November 12 2011, 01:32 PM - #Permalink
    Resolved
    0 votes
    Weird. The forum is modifying the text at the & point. Just copy and paste the links as they appear and they work fine. Clicking on them it then modifies them...
    The reply is currently minimized Show
  • Accepted Answer

    Leonard
    Leonard
    Offline
    Saturday, November 12 2011, 01:25 PM - #Permalink
    Resolved
    0 votes
    Humm them links don't seem to work.. Ive just installed the ones on this thread will update them as we speak .... The requested topic does not exist.
    The reply is currently minimized Show
  • Accepted Answer

    FastLaneJB
    FastLaneJB
    Offline
    Saturday, November 12 2011, 01:08 PM - #Permalink
    Resolved
    0 votes
    Hi NeoNapster,

    I've seen that before. Are you running the latest version of the WebGUI?

    [url]http://forum.serviio.org/viewtopic.php?f=17&t=1310[/url]

    Also maybe even better but there is a new WebGUI it would seem that runs directly off the Serviio HTTP engine so it starts and stops with it's service. I've not tried this yet as I've just noticed it but this would be a better option I think if the GUI is good enough.

    [url]http://forum.serviio.org/viewtopic.php?f=17&t=2427[/url]

    If you give this new one a try I'd love to know what you think. Guess I'll get around to giving it a whirl myself sooner or later :)
    The reply is currently minimized Show
  • Accepted Answer

    Leonard
    Leonard
    Offline
    Saturday, November 12 2011, 01:02 PM - #Permalink
    Resolved
    0 votes
    Install went spot on however, when I save anything at all, transcoding settings or even add a directory I get errors, the following is from when I saved transcoding (Web page reports Cannot put transcoding[color=#FF0000][/color])

    /var/log/httpd/error_log snip

    [Sat Nov 12 12:57:20 2011] [error] [client **.**.**.**] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /opt/serviioweb/lib/serviio.php on line 392, referer: http://serviio/?tab=transcoding

    Any ideas???
    The reply is currently minimized Show
  • Accepted Answer

    gwblok
    gwblok
    Offline
    Thursday, November 10 2011, 07:23 PM - #Permalink
    Resolved
    0 votes
    I like this idea, I recently installed miniDNLA, but I much perfer Serviio, as I use it on my windows machine. I thought this was genius
    "I'd still like to see ClearOS at some point having a plugin system for Flexshare so it would be possible to add a tick box to a share which if ticked would enable that directory on serviio" - FastLaneJB

    Would be nice if there was an "app store" type function where after the setup, I could go in and add Serviio, virtualbox, click next, and watch it install, all from the webconfig portal. That might be more for the "Home Edition" than the Enterprise Version.

    Been using ClearOS for 7 years now, finally getting used to calling it ClearOS vs ClarkConnect. Great product, and with additions like Serviio, virtualbox, etc, I'll keep using it and offloading more things to it that I won't need windows for anymore.
    The reply is currently minimized Show
  • Accepted Answer

    FastLaneJB
    FastLaneJB
    Offline
    Monday, October 31 2011, 08:35 PM - #Permalink
    Resolved
    0 votes
    Hi Tim,

    I did think it stopped the java instance as well rather than just the serviio.sh however I generally never did restart it or my server. It just kept on plugging away nicely :)

    I'm no longer running ClearOS at the moment. I'd love to go back but I had to switch to pfSense for my routing as I couldn't work out the more advanced routing rules I required with regards to usinfg an OpenVPN tunnel as a WAN interface with some traffic routed down it. So I've got ESXi running with pfSense and a few Windows servers currently. It works nicely but it takes up far more of my time keeping it humming along than ClearOS ever did.

    I'll still keep an eye on this and will try all the beta's of 6.1. I'm hoping someone with more routing knowledge with me will make a module for the Marketplace to solve my issue. I'd happily pay for it.

    Serviio is up to version 6.x now with the main new feature being it can add Internet streams and transcodes them. So you can add a YouTube channel, BBC's iPlayer (Here's where a VPN tunnel would come in nicely for people outside of the UK if ClearOS could do it), etc.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 30 2011, 07:10 PM - #Permalink
    Resolved
    0 votes
    Just managed to get the daemon script working, at least I get no errors. But when I check the service serviio, I get the message serviio.sh is stopped. What is blocking the service to start, could it be the serviio user? and the echo in the file are echoed where so yo uhave some feedback on whats going on?

    Any help is appreciated. BTW serviio is working fine when started manually.

    -Frank
    The reply is currently minimized Show
  • Accepted Answer

    andy
    andy
    Offline
    Monday, August 15 2011, 06:51 PM - #Permalink
    Resolved
    0 votes
    i actually started reading into the minidlna thread and found your RPM for it on page 5 (we should really get a how-to on that)...just trying to get the 360 to find some videos on the server at this point, need to do some more reading to get it running :P
    The reply is currently minimized Show
Your Reply