HOWTO: Serviio on QNAP TS-459 Pro+ (Intel)
I decided to write my experience with installing Serviio on my QNAP TS-459 Pro+ (firmware 3.4.2 build 0331T) since it was a little bit different from other experiences I read in the forums.
Recently a qpkg package has been created that makes the installation much easier. So you can make your life easier by skipping the installation instructions below and just downloading and installing the qpkg package instead.
This installation is for version 0.5.x
I want to thank patters & grisbilen for their tutorials that helped me to get my serviio server running. And also everyone else for helping to solve the issues I encountered while setting up.
Note that I will use "MD0_DATA" in my path's, this might be different depending on what kind of RAID configuration you have on your NAS.
1. Download, install & enable Optware & JRE QPKG's from the QNAP administration
2. Install nano & lame (you can skip nano if you prefer using vi which is already installed)
3. Make a symlink for lame
4. Install optware-devel, mktemp & yasm (these are required to successfully compile ffmpeg. Installing mktemp will fix an issue that you might encounter if you use the preinstalled version of mktemp)
5. Download & compile ffmpeg
- Code:
cd /share/MD0_DATA/.qpkg/
wget http://download.serviio.org/opensource/ffmpeg-26303.tar.gz
tar xvzf ffmpeg-26303.tar.gz
cd ffmpeg/
export PATH=/opt/bin:/opt/sbin:$PATH; ./configure --arch=x86 --enable-ssse3 --prefix=/opt --extra-cflags='-I/opt/include' --extra-ldflags='-L/opt/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame
make
make install
6. Download, configure & start Serviio
Add the following to JAVA_OPTS string:
Dserviio.remoteHost ip address should be the ip address of the NAS (this will enable you to later setup the Serviio console on a different machine to connect to Serviio server running on the NAS.)
Now you can manually start Serviio by running:
7. Install Serviio console on a different machine & connect to Serviio server (Windows 7)
Download the Serviio installer and during the installation only select the console.
Go to "C:\Program Files (x86)\Serviio\bin" (the default installation path, it might be different if you choose a different path during installation)
Open "ServiioConsole.exe.vmoptions" with notepad and add the following line (using the ip address of you NAS:
You should now be able to run the console and it should connect to Serviio server running on the NAS.
Make sure you change the default transcoded files location (/tmp) to something on else. /tmp is on the ramdisk and I had issues with ffmpeg crashing because of limited space. In my case I did the following:
Then I added that path to the transcoded files location.
8. Make Serviio autorun on startup
First we need to configure QNAP to run scripts on startup. This is documented on the QNAP wiki
Basically you need to add some lines of code to the Optware.sh script located in /opt
You can download the script from here and replace the existing one.
Now you can add some scripts to /opt/etc/init.d to autorun at startup.
Add the following to the script file
Now create another script file to run serviio
Add the following to the script file
- Code:
#!/bin/sh
## Serviio start Script
case "$1" in
stop)
echo "Stopping Serviio..."
"/share/MD0_DATA/.qpkg/serviio/bin/serviio.sh -stop" > /dev/null 2>&1 &
echo "Serviio stopped"
;;
start)
# start Serviio in background mode
echo "Starting Serviio..."
"/share/MD0_DATA/.qpkg/serviio/bin/serviio.sh" > /dev/null 2>&1 &
echo "Serviio Started"
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 { start | stop | restart}" >&2
exit 1
;;
esac
Make the files executable
Now you should be able to reboot the NAS and Serviio should start automatically.
Hopefully this will help some people getting their QNAP system setup to run Serviio.
DMR: Samsung LE40B650 | Sony PS3