Anyone had tried Serviio DLNA ?!

I found guide for My Book Live but dont know may it can be aply on My Cloud. Here is the link  http://community.wd.com/t5/My-Book-Live/GUIDE-Install-serviio-DLNA-Server-v1-2-1/td-p/567324

I using Serviio on Window PC and found that Serviio is better than Twonky very much.

SHPY2001,

Please be aware that this process may void the warranty of your WD My Cloud Personal Storage device.

1 Like

Thank you.

I know that but I take it oversea so can’t have warranty anymore. 

SHPY2001 wrote:

Thank you.

I know that but I take it oversea so can’t have warranty anymore. 

?¿?¿

AFIK warranty is worldwide and only time limited not location limited.

Check your serial number against this WD page to see if it’s still on warranty:

http://websupport.wdc.com/warranty/warrantycheck.asp?custtype=end

1 Like

SHPY2001.

sammarbella is correct. Western Digital products are warranted worldwide.

I had tried the guide in linkpage at first post with some fix for WD MyCloud. Thank God it’s not brick my NAS :smiley:

Take a look into log file of serviio , there’s no error. With Java 7 , it run faster than Java 6 in that guide. Here is the guide for MyCloud:

**************

Of course your gonna need to have PuTTY or Terminal ready to go

SSH into your drive

Run this command to remove the claims the MBL puts on some system files

rm -f /var/lib/dpkg/info/wd-nas.*

Now we want to rename our sources.list and create a new one

mv /etc/apt/sources.list /etc/apt/sources.list.bak

nano /etc/apt/sources.list

Now copy and paste the following sources into the blank PuTTY/Terminal window (Right click mouse button)

deb  http://ftp.us.debian.org/debian/ wheezy main

deb  http://www.deb-multimedia.org wheezy main non-free

Hit control and o

Hit enter

Hit control and x

This will save the file

Now we need to change permissions on the file

chmod 755 /etc/apt/sources.list

Now lets update our sources and install ffmpeg (Type  y  to install without verification if asked and also type  y  if asked to continue)

apt-get update

apt-get install deb-multimedia-keyring

apt-get update

apt-get install ffmpeg

Now let’s install Dcraw

apt-get install dcraw

Now let’s install Java (Type  y  when asked to continue and again when asked to install without verification)

apt-get install openjdk-7-jdk

Now we need to set our paths to Java

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-armhf/jre

export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-armhf/jre

Now we need to add user serviio and set any password

useradd -d /home/serviio -m serviio

passwd serviio

 Now we need to add serviio to the root group

usermod -a -G root serviio

 Now we are gonna make a dir for serviio and download and extract serviio

mkdir /usr/local/serviio/

cd /usr/local/serviio/

wget  http://download.serviio.org/releases/serviio-1.4-linux.tar.gz

tar -xf serviio-1.4-linux.tar.gz rm -f serviio-1.4-linux.tar.gz

Now let’s see if serviio will start…The terminal window should show just a green solid cursor on the bottom left after running these commands… This is good and serviio in running

cd serviio-1.4/bin

./serviio.sh

 Wait a minute to let the server create some files and hit control and c to stop the server

 Now let’s create the daemon script

nano /etc/default/serviiod

 Now copy and paste the following text into the blank PuTTY/Terminal window (Right click mouse button)

#########################################################

#- Daemon Script Configuration for Serviio Media Server

#- By Ian Laird

#- /etc/default/serviiod

#########################################################

 

NAME=“Serviio Media Server”

DAEMON=“/usr/local/serviio/serviio-1.4/bin/serviio.sh”    ## Update this to point at serviio_root/bin/serviio.sh

SERVICE_ACCOUNT=“root” ## DON’T RUN UNDER ROOT!

 

Hit control and o

Hit enter

Hit control and x

This will save the file

Now let’s create the startup script

nano /etc/init.d/serviio

 Now copy and paste the following text into the blank PuTTY/Terminal window (Right click mouse button)

    #!/bin/sh

    #

    #########################################################

    #- Daemon script for Serviio media server

    #- By Ian Laird; converted for Debian by Jacob Lundberg

    #- /etc/init.d/serviio

    #########################################################

    #

    ### BEGIN INIT INFO

    # Provides:          serviio

    # Required-Start:    $local_fs $remote_fs $network $syslog

    # Required-Stop:     $local_fs $remote_fs $network $syslog

    # Default-Start:     2 3 4 5

    # Default-Stop:      0 1 6

    # X-Interactive:     true

    # Short-Description: Start/stop serviio media server

    # Description:       The Serviio media server makes your media available to

    #                    all kinds of networked devices.

    ### END INIT INFO

 

 

    . /lib/lsb/init-functions

 

    if [-f /etc/default/rcS]; then

            . /etc/default/rcS

    fi

 

 

    DAEMON_STOP=" -stop"

    NAME=“$(basename $0)”

    PIDFILE=“/var/run/serviiod.pid”

    TIMEOUT=10

 

    if [-f /etc/default/serviiod]; then

            . /etc/default/serviiod

    fi

 

    [-x “$DAEMON”] || exit 0

 

 

    running() {

            if [“x$1” == “x”]; then

                    echo 0

                    return 1

            fi

 

            PS=$(ps h -p $(echo $1 | sed -r ‘s/[\t \n]+/ -p /’) | wc -l)

            echo $PS

 

            if [$PS -gt 0]; then

                    return 0

            else

                    return 1

            fi

    }

 

 

    start() {

       # Set up correct LANG

          if [-r /etc/default/locale]; then

             . /etc/default/locale

             export LANG LANGUAGE LC_MESSAGES LC_ALL LC_CTYPE

          fi

 

            log_daemon_msg “Starting Serviio media server daemon” “$NAME”

            start-stop-daemon --start -q -b -p “$PIDFILE” -m -c “${SERVICE_ACCOUNT}” -x “${DAEMON}”

            log_end_msg $?

    }

 

    stop() {

            log_daemon_msg “Stopping Serviio media server daemon” “$NAME”

            if [-r “$PIDFILE”]; then

                    PIDS=$(pstree -p $(

                    if running “$PIDS” > /dev/null; then

                            “${DAEMON}” “${DAEMON_STOP}”

                            for PID in $PIDS; do

                                    if running $PID > /dev/null; then

                                            kill -TERM $PID

                                    fi

                            done

                    fi

                    COUNTDOWN=$TIMEOUT

                    while let COUNTDOWN–; do

                            if ! running “$PIDS” > /dev/null; then

                                    break

                            fi

                            if [$COUNTDOWN -eq 0]; then

                                    for PID in $PIDS; do

                                            if running $PID > /dev/null; then

                                                    kill -KILL $PID

                                            fi

                                    done

                            else

                                    echo -n .

                                    sleep 1

                            fi

                    done

            fi

 

            if running “$PIDS” > /dev/null; then

                    log_end_msg 1

            else

                    rm -f “$PIDFILE”

                    log_end_msg $?

            fi

    }

 

    status() {

            echo -n “$NAME should be”

            if [-r “$PIDFILE”]; then

                    echo -n " up with primary PID $(

                    PIDS=$(pstree -p $(

                    RUNNING=$(running “$PIDS”)

                    if [[$RUNNING && $RUNNING -gt 0]]; then

                            echo -n " and $RUNNING processes are running."

                    else

                            echo -n " but it is not running."

                    fi

            else

                    echo -n " stopped."

            fi

            echo

    }

 

 

    case “${1:-}” in

            start)

                    start

            ;;

            stop)

                    stop

            ;;

            restart)

                    stop

                    start

            ;;

            status)

                    status

            ;;

            *)

                    log_success_msg “Usage: /etc/init.d/$NAME {start|stop|restart|status}”

                    exit 1

            ;;

    esac

 

    exit 0

 Ok now we need to set some permissions and update the startup and check the status of the server

chown serviio -R /usr/local/serviio

chmod 755 /etc/init.d/serviio

update-rc.d serviio defaults

/etc/init.d/serviio status

Ok now we need to install the web admin page for serviio

cd /root

wget  https://dl.dropboxusercontent.com/u/42061/WebUI%20v1.4beta.zip

cd /var/www/htdocs

unzip /root/WebUI\ v1.4beta.zip

mv /var/www/htdocs/serviioweb-1.4beta /var/www/htdocs/serviioweb

chmod -R 0755 serviioweb rm -f /root/WebUI\ v1.4beta.zip

Restore your sources.list

rm -f /etc/apt/sources.list

mv /etc/apt/sources.list.bak /etc/apt/sources.list

Ok let’s start the server!

/etc/init.d/apache2 restart

/etc/init.d/serviio start

 In your web browser go to

http://your mybooklive network name or IP/serviioweb

got it installed following your guide. 1 issue - had to get the startup script from the other post -  http://community.wd.com/t5/My-Book-Live/GUIDE-Install-serviio-DLNA-Server-v1-2-1/td-p/567324

your script was mising some stuff - bad copy/paste

worked pretty well… only downside - MKV transcoding is suuuper slow. wanted to used Serviio to transcove MKV for my PS3. I guess I will have to still look around for a workaround for MKV

At my home, there are 2 Sony TVs and 1 Samsung TV. 3 of them run at the same time with transcoding turn on . Everything’s ok . Offcouse transcode MKV (~4GB/file).

Hmm, weird. Mine was smooth for 2-3 sec then it got super choppy as soon as the picture had more stuff in it and it wasn’t  a plain black with some text background.
Would you mind posting your Serviio profile? How do you know it was actually transcribing? Did you see the trascribe folder have data in it?

Installed serviio without any issue last evening, test it for a couple of hours - it performs very well as generic DLNA server(15 GB full 3D HD .mkv) with LG Smart TV; didn’t try transcoding as I don’t need it.

After that I set up the WD My Cloud to enter the sleep mode(when idle) from the dashbord.

This morning woke it from sleep mode and found that apparently all the files(daemon&startap script, serviioweb and serviio directory itself) that I created last evening as root have disappeared. Other strange thing was that when I tried to reconnect with putty(same IP), it prompted for new SSH key as if the SSH server had generate another key.

Didn’t have the time to investigate further but it seems to me like a restore or something similar had happen overnight?

Has anyone experienced this before?

Will get back with update.

Regards,