Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Aug 17, 2018 9:27 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jan 12, 2012 1:47 am 
Offline
Newbie

Joined: Thu Sep 29, 2011 10:49 pm
Posts: 8
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:

Code:
cd /home/matt


Now download the latest version of the serviio software. For me this was 0.6.1 but maybe try to get the latest version:
Code:
wget http://download.serviio.org/releases/serviio-0.6.1-linux.tar.gz


Unpack it in to your chosen directory:

Code:
tar xvf serviio-0.6.1-linux.tar.gz


Now install java and ffmpeg:

Code:
apt-get update
apt-get install default-jre
apt-get install ffmpeg


Now navigate to the bin directory of the serviio installation, for me:

Code:
cd /home/matt/serviio-0.6.1/bin


You need to make the startup script executable:
Code:
chmod 777 serviio.sh


Now start serviio to check it's all working:

Code:
sh serviio.sh


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

Quote:
ServiioConsole.exe.vmoptions 


And add this line replacing the xxx's with the ip address of your nas box.

Quote:
-Dserviio.remoteHost=xxx.xxx.xxx.xxx


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:

Quote:
/mymounts/d1p6/netshares/media


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.

Navigate to:

Code:
cd /etc/init.d/


Then create a text file for the serviio script

Code:
vi serviio


[if you're unfamiliar with vi then google some cheatsheets or maybe use webmin file manager which has a text editor]

Add the following:

Code:
#!/bin/bash
### BEGIN INIT INFO
# Provides:          serviio
# Required-Start:    $local_fs $remote_fs $network $syslog
# Required-Stop:     $local_fs $remote_fs $network $syslog
# Default-Start:     
# Default-Stop:     
# X-Interactive:     true
# Short-Description: Start/stop serviio
### END INIT INFO

/home/matt/serviio-0.6.1/bin/serviio.sh


Now save your file and then make it executable:

Code:
chmod +x serviio


And add the script to the boot sequence
Code:
update-rc.d serviio defaults


And you should see the following:
Quote:
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:

Quote:
/etc/init.d/samba restart


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:

Quote:
/etc/init.d/samba restart
/home/matt/serviio-0.6.1/bin/serviio.sh
exit 0


Hope it works for you!


Top
   
PostPosted: Sat Feb 25, 2012 4:47 pm 
Offline
Total Newbie

Joined: Sat Feb 25, 2012 4:25 pm
Posts: 1
I couldn't install Java with apt-get

Code:
apt-get install default-jre
W: You may want to run apt-get update to correct these problems
E: Couldn't find package default-jre


Code:
apt-get update             
0% [Connecting to 172.16.37.216 (172.16.37.216)]
W: Couldn't stat source package list http://172.16.37.216 buffalo-marvell-armel-sdk2p0/main Packages (/usr/local/apt/var/lists/172.16.37.216:8080_update_terastation%5fx_dists_buffalo-marvell-armel-sdk2p0_main_binary-arm_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.


So I tried installing JamVM with ipkg, but when I try to start serviio.sh I get
Code:
Unrecognised command line option: -XX:+UseParNewGC


Does someone have an idea how to get Java running so I can get serviio to work?


Top
   
PostPosted: Sat Feb 25, 2012 5:42 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
Your package server is wrong (at least until you are not running your own
package server in your private network, which is unlikely, because you
wouldn't had asked this question then).
172.16.x.x is a private IP address which is NOT routable through Internet.
Let me guess: you are trying to use apt-get on a box with stock firmware
and not on a box where the stock firmware was replaced by Debian.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited