Tips JDownloader and Filebot on Synology

I never spent time trying to run JDownloader and Filebot on my Synology. It's however a must-have for those who download e.g. series, so I decided to give it a try. And it rocks !

Click to Read More

First, you need Java installed on your NAS. Currently Jave SE 7 for JDownloader and Java SE 8 for Filebot.  [EDIT 2017] Both JDownloader and Filebot are now using Java SE 8.

Java 7

  1. Install the Package "Java Manager" from Oracle available via "Package Center" > "Utilities"
  2. Run that "Java Manager" and click on the button "Install Java"
  3. Follow the instructions:
    1. Download the .jar.gz file for Java SE 7 (Ex.: version 1.7.0_79 for my DS713+ is jdk-7u79-linux-i586.tar.gz) and
    2. Browser to pick that jar within the Java Manager and click OK

Java 8

  1. Open the "Settings" of the "Package Center" and go to the tab "Package Sources".
  2. Add a new entry named "Filebot" with the following url: https://app.filebot.net/syno/
  3. Go next to the section "Community" and install the Package "Unofficial Java Installer" (If you don't see it, click the Refresh button in "Package Center" or close and reopen it)
    1. Do not use the official Package "Java8 from Synology inc" (Located in the Developer Tools section) or the "Java SE Embedded 8 from Oracle". Filebot can't find them...

Filebot

It comes with several packages, such as those for its web interface, Filebot node and node.js, and Filebot itself. Install and configure them as explained here. Do not forget to Trust "Any Publisher" in the Package Center > Settings > General Tab.

My.JDownloader.Org

You need a free account on my.jdownloader.org to be configured in jdownloader (see here after).

JDownloader 2.0

The idea is basically very simple:

  1. Install JDownloader on your computer, configure it to run "unattended"
    1. Click the icon "User Interface" and under the "Window Management" section, check "silent mode",
    2. Click the icon "Bubble Notify" and set Show "Bubbles if..." = "Never",
    3. Click the icon "Tray Icon" and uncheck it.
  2. Add your accounts if any
    1. Click the icon "Account Manager", etc...
  3. Configure your MyJDownloader Account created previously
    1. Via the menu Settings > MyJDownloader, fill the MyAccount
    2. Define also a Device Name (Ex.: the Nickname of your NAS ;) )
  4. Exit JDownloader.
  5. Copy next the installation folder (C:\Users\<User>\AppData\Local\JDownloader 2.0) on your NAS as described here.
    1. jdownloader will be in  /volume1/@appstore/jdownloader
  6. Once installed, go to my.jdownloader.org to configure it.

Very useful detailed information (in Italian) are also available here: http://www.synologyitalia.com/guide-tips/installare-jdownloader-2-0-beta-su-nas-synology-t5796.html)

Trick:

  • Copy only the folders: Captchas, cfg, extensions, java, jd, libs, licences, logs, themes, tmp, tools, translations, update
  • Copy only the following files from the root: Core.jar, JDownloader.jar, build.json, license.txt
  • You will need to create a file S99jdownloader.sh. Do it with the command "touch" in a telnet/ssh session (or via the web console) and not with notepad on your PC, as it would not have the right encoding to be used on Linux.
  • Don't forget to set the security on those folders and files as specified in the detailed explanation from the Italian guide.
  • The settings related to the access via my.jdownloader.org are located in /cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json
    • among others, you may change in there the name of the device (i.e.: set the name of your NAS instead of the PC from which you copied the files)
  • If jdownloader  is not started try in a telnet/ssh session
    • first: sh /usr/local/etc/rc.d/S99jdownloader.sh start
    • and next, in the /volume1/@appstore/jdownloader folder: java -Djava.awt.headless=true -jar JDownloader.jar
  • Pay attention: the download path may not be like \\YourNas\OneShare (or \\\\YourNas\\OneShare).
    • It would result in storing downloaded files in /volume1/@appstore/jdownloader/\\YourNas\OneShare/
    • It must be like /volume1/OneShare
    • You may configure this in the "Settings" of my.jdownloader.org

I did change a bit the file S99jdownloader.sh to get more info:


#!/bin/sh
#
# Startup script for jdownloader2
#
# Stop myself if running
PIDFILE=/volume1/&amp;lt;some log share&amp;gt;/S99jdownloader.pid
#
start() {
sleep 1
if [ -f ${PIDFILE} ];
then
echo "JDownloader is already running"
exit 1
else
nohup java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar &amp;gt; /dev/null &amp;amp;
# write pidfile
echo $! &amp;gt; $PIDFILE
echo "JDownloader started within process" `cat ${PIDFILE}`
fi
}
#
stop() {
if [ -f ${PIDFILE} ];
then
kill `cat ${PIDFILE}`
echo "JDownloader running within process" `cat ${PIDFILE}` "has been stopped"
# remove pidfile
rm -f $PIDFILE
else
echo "JDownloader is not running"
exit 1
fi
}
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
# End

To troubleshot filebot, look at the "log" file in "/usr/local/filebot-node/data"

Think about configuring your OpenSubtitles account by executing as root (in a Putty console with sudo -i): filebot -script fn:configure

[Updated on 25/09/2017]

Tips Netgear JGS524E's 802.3ad Link Aggregation And Synology

Long time ago, I wanted to configured a Bond on my Synology to benefit the LAG feature of my Switch JGS524E (Netgear ProSafe® Plus). Unfortunately, it didn't work. Being lazy, I never investigated further. It's now done: I wrote to Netgear and they confirmed that only Static LAG is supported on JGS524E. Dynamic LAG, required to use Link Aggregation with Synology, is not.

Click to Read More

Concretely, Synology says in documentation that it requires IEEE 802.3ad (Dynamic) Link Aggregation (LACP, 802.1AX). While Netgear told me that the Switch ProSafe® Plus only supports static LAG. And that's how I learned that static LAG is not LACP (Link Aggregation Control Protocol) :/

Conclusion I did configure my Synology to use Adaptive Load Balancing and I did disable LAG on my Netgear...

Tips Audio track not available in Netflix on Chromecast

 

Although a French audio track was available for my movie, in Netflix, on my mobile (Android), it was not anymore once I started to cast that movie on my chromecast.

Click to Read More

NB: French audio track are available here in Belgium as in France.

The really weird thing is that this issue wasn't occuring for all the movies and series. I noticed it for the serie "Merlin", season 5. At the same time it was running fine for the serie "The 4400" for example (French audio track was well available in Netflix both on my mobile and on Chromecast for those).

To fix it, I started the App Chromecast and went into the tab Devices. In the Settings of my Chromecast, I set French as language.

If the problem comes back, using the same App Chromecast, reboot the device. It's a command available in the menu of the device's Settings. Next, start the movie with the right audio track on your mobile and then cast it to your Chromecast.

Et voilà.