User Tools

Site Tools


refresh_on_demand_linux

This is an old revision of the document!


HOW TO REFRESH ONLINE FOLDERS ON DEMAND FROM THE CLIENT

Please read __THE NEED FOR REFRESH ON DEMAND__ article for the background.

The ability to implement “Force Refresh” feed items in the Refresh.groovy is based on 6 prerequisite one time implementations. These steps have been explained in detail in the link provided above.

Below are only the steps that differ in linux.

1) Install curl (libcurl) with ssl enabled using apt-get/yum/rpm based on the Unix/Linux flavor you are using, if its not already installed.

2) Same as in the article linked above.

3) Same as in the article linked above.

4) In your linux console/ssh, logged in as root, go to $SERVIIO_HOME/bin/ directory. Look for the following files: serviio.sh and serviio-console.sh. In both files, search for JAVA_OPTS=.

Add/Update -Dffmpeg.location=$SERVIIO_HOME/bin/ffmpeg-wrapper.sh within the double-quotes after JAVA_OPTS=.

Note: There are other options within double-quotes after JAVA_OPTS= as well. Do not change any other option, just add the above option.

5) Download the attached file ffmpeg-wrapper.sh and save/overwrite it in $SERVIIO_HOME/bin/ Make it executable. Open it is a text editor and save it with linux line termination (or use dos2Unix).

6) Same as in the article linked above.

Restart Serviio and ENJOY!!!

ffmpeg-wrapper.sh for Linux/Synology: ffmpeg-wrapper.zip

Note: Most the code of ffmpeg-wrapper.sh is from the Serviio for Synology available from http://pcloadletter.co.uk. I have only made a few changes to enable support for Refresh.groovy.

refresh_on_demand_linux.1349104830.txt.gz · Last modified: 2012/10/01 15:20 by ttguy