Instructions for installing serviio on Linkstation
I have a Linkstation Pro v1 running Debian 6.0 but presumably it would also work on other models Linkstation live etc etc. First some things to note...
Serviio runs very slowly on my machine and not surprisingly is unable to transcode at anything like a usable rate. I did get it to download iplayer content and after a long while the files were available. The serviio server takes an age to start and makes the box rather sluggish (initially). Also the server seems to interfere with samba server starting but there is a way around this (see below). Finally on several occasions during this process my box shutdown and generated error beeps but everything came back again when I restarted the box.
So bearing that in mind, on to the installation... Usual warnings to make backups and possibly clone your NAS drive etc etc. I'm a Linux noob!
I have compiled this information from various googled sources and the serviio forums are a good place to search especially this thread: http://forum.serviio.org/viewtopic.php?f=14&t=3479
First login/su/sudo as root via a PuTTY Session
Now consider where you want to install the software. I chose my home directory /home/matt but wherever it is navigate there:
Now download the latest version of the serviio software. For me this was 0.6.1 but maybe try to get the latest version:
Unpack it in to your chosen directory:
tar xvf serviio-0.6.1-linux.tar.gz
Now install java and ffmpeg:
apt-get install default-jre
apt-get install ffmpeg
Now navigate to the bin directory of the serviio installation, for me:
You need to make the startup script executable:
chmod 777 serviio.sh
Now start serviio to check it's all working:
Serviio on my system seems to take up to 20 minutes to start up even with no media in the library to scan. So now is a good time to install the serviio console.
Serviio has no web interface and so on a headless system you need to run the console program from a different machine. The console enables you to configure serviio options. I use windows (other OSs available) so downloaded and installed the windows serviio package which comprises the server (service) and the console. If you want to also run serviio server from your other machine install both otherwise just choose to install the console.
You have to point the console to a particular IP address (your NAS box IP). To do this find the Serviio bin directory (probably either /Program Files (x86)/Serviio/bin/ or /Program Files/Serviio/bin and then in a text editor open up the file
And add this line replacing the xxx's with the ip address of your nas box.
It's now time to start up the console on windows. This usually takes up to a couple of minutes before you see anything happening but once the connection is made you will either see a box on the screen saying serviio media library is refreshing or you will see the yellow serviio console icon in the taskbar and you can open up the console by right clicking and selecting the option.
Remember when you are selecting where to add the media via the console that you need to add the path on your nas box i.e. where on the debian file system are your media files. For me this was:
You should by now be able to see the serviio server from your DLNA devices.
Next we need to create a boot time startup script otherwise you will have to manually start the server. I am getting out of my depth at this point so maybe people can suggest alternative or better ways of going about this.
Then create a text file for the serviio script
[if you're unfamiliar with vi then google some cheatsheets or maybe use webmin file manager which has a text editor]
Add the following:
### BEGIN INIT INFO
# Provides: serviio
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# X-Interactive: true
# Short-Description: Start/stop serviio
### END INIT INFO
Now save your file and then make it executable:
chmod +x serviio
And add the script to the boot sequence
update-rc.d serviio defaults
And you should see the following:
update-rc.d: using dependency based boot sequencing
NB if you ever want to remove it from the startup sequence then run:
update-rc.d -f serviio remove
Try rebooting your box and after the 20 minute startup time you should see the serviio server becomes available.
I found that for some reason having serviio run at boot interfered with samba starting. Now samba has it's own startup issues on my box (a documented bug) that I previously fixed by adding this line:
To the file /etc/rc.local immediately above the final line 'exit 0'
My suggested fix for serviio/samba here may be not to run the serviio startup script above but instead to change the end of the /etc/rc.local file to read:
Hope it works for you!