Add Jdownloader to LinuxMCE

From LinuxMCE
Revision as of 21:54, 9 November 2011 by Twodogs (Talk | contribs)

Jump to: navigation, search


Probably you all know that, but for those who don't, Jdownloader is a download agent for direct download webpages such as rapidshare, megaupload, etc...

The procedure installs three different programs which are VNCSERVER, JRE and obviously, JDownloader

With this method, you'll be able to access JDownloader via VNC and also via WEB (for remote access)



Download & install packages

The first two packages (VNC4SERVER and JRE) are easy to install on your core.

In order to install them, you should enter on a shell prompt with root privileges:

apt-get install vnc4server apt-get install openjdk-6-jre

You have to download JDownloader linux zip file from Jdownloader homepage and save it in your prefered folder (for this tutorial, it will be /home/john)

Next step is to unzip the file you just downloaded, with the command:

unzip JDownloader_2010016.zip

It will create the folder /home/john/Jdownloader

You have the needed stuff on your CORE, lets go to the first execution.


Execution

vncserver :1 (the :1 defines VNC desktop 1, in my case it didn't make interferences with LMCE)

(The first time you open vncserver, you'll need to enter a password for VNC connections)

export DISPLAY=localhost:1

Finally, with this command it will launch Jdownloader on the VNC session.

java -Xmx512m -jar /home/john/JDownloader/JDownloader.jar


Launch your VNC client

Doesn't matter the client you use, I've tried both Tightvnc and RealVNC clients and they both work.

DON'T FORGET YOU HAVE TO ENTER :1 AT THE END OF THE IP!!!

The most common case would be 192.168.80.1:1

If you made this the right way, you should see Jdownloader on your remote window.


JDownloader config

First time you execute it, you have to set your preferences, such as language and save folder. Since I mainly download video, I set the download folder to my public video folder.

Activate Jdownloader Web access & add premium accounts

Go to settings -> Plugins & Addons -> Extensions and select "JD Webinterface"

It will create a new menu at the bottom on the left menu bar named "JD Webinterface", click on it.

check Autorefresh and set an interval of 5 (this is not important, so you could change to your own values and preferences)

Change port !!!, 8080 is also used by LMCE. Change it to 8081 for instance.

Mark "Need User Authentication"

Change Login Name and Login Password.

Finally, click on File -> Restart.

If you have premium accounts, you can add them on the premium menu.

Check web access

If you followed this wiki step by step, http://192.168.80.1:8081/ would take you to the webinterface.

If it works, the only step left is to open firewall ports to the core on the port 8081 so you can access the webinterface outside your home, which indeed, is the purpose of this tutorial.


Conclusions

I know it could be loaded on startup, but I'm not an advanced linux user, and sure I don't want to mess with inid.d or rc*.d stuff, so if any of you can complement this tutorial with that, I'll be happy.


Resources

This tutorial is possible thanks to this one [1]