NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

boz0's avatar
boz0
Aspirant
Oct 13, 2010

JDownloader quick howto

Technically, this isn't an addon, but since it's about an app that's been requested several times as an addon, I figure this post has its place here.

Since JDownloader isn't yet a client/server app (it's in their todo list), and since I haven't found any serious alternatives (Tucan's CLI isn't quite up to speed yet, and development seems at best very slow), I decided to run JDownloader directly on my Ultra 4. The general idea is to install java on the readynas, then run jdownloader in a virtual X11 environment using xvfb to minimize required resources. Here's a quick'n'dirty rundown on how to get it to work, with no warranties whatsoever. Whatever you do, you do at your own risk!

- enable root ssh access to the readynas (warning : support can refuse to help you if you've enabled root access to the nas), using the EnableRootSSH plugin (http://www.readynas.com/?p=4203)
- login as root via ssh on the nas
- add the following line to /etc/apt/sources.list (thanks to this post : viewtopic.php?f=35&t=45891&start=0) :
deb http://archive.ubuntu.com/ubuntu dapper-backports main multiverse

- set debconf to run interactively by running the following command and then selecting "readline" :
dpkg-reconfigure debconf

- install java 6 :
apt-get update
apt-get install sun-java6-jre sun-java6-jdk

- once this is over, return debconf to non-interactive mode :
dpkg-reconfigure debconf

- install xvfb if it isn't installed already (can't remember whether it was already there) :
apt-get install xvfb

- add a few necessary libs to avoid grief later on
apt-get install libxtst6 libxi6

- download the official jdownloader install script from here : http://212.117.163.148/jd.sh (or see direct link here : http://jdownloader.org/download/index)
- set up a X11 server on your PC so that you can export your display (Linux : it's already there, MacOS : X11 included on the second DVD IIRC, Windows : download Xming from here : http://sourceforge.net/projects/xming/)
- on the readynas, export your display and run the jd.sh script :
export DISPLAY=your.pc.ip.address:0
chmod 755 jd.sh
./jd.sh

- JDownloader will then be downloaded, installed and updated on your NAS. You should get the window on your PC's X display
- in JDownloader's settings, activate the JDWebInterface plugin and configure it (I suggest SSL and a robust password if you intend to make that interface visible from the outside)
- in JDownloader's settings, click the checkboxes for the TOS for all the file hosters (since we'll be running it headless, we won't be able to validate the TOS directly)
- check that you can connect through your browser
- edit the jd.sh script and replace all 512m entries by 128m, as we don't want it eating too much memory (simple replace with vi : ":%s/512m/128m/g")
- run the jd.sh script through xvfb:
nohup xvfb-run ./jd.sh &


The last step is to setup jdownloader to restart when the nas reboots, which can be accomplished easily by setting a startup script in /etc/rc3.d (and which I'll have to do ASAP).

I'll try to answer questions in this thread if you have any.

14 Replies

Replies have been turned off for this discussion

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More