Skip to content

Instantly share code, notes, and snippets.

@Peregrinox
Last active May 2, 2024 11:04
Show Gist options
  • Save Peregrinox/50cd06ca6af4203968eb281dd829df95 to your computer and use it in GitHub Desktop.
Save Peregrinox/50cd06ca6af4203968eb281dd829df95 to your computer and use it in GitHub Desktop.
install of jdownloader headless

after installing java:

sudo apt-get install libjna-java

Now, download and install jdownloader:

mkdir jd2
cd jd2
curl -O http://installer.jdownloader.org/JDownloader.jar
java -Djava.awt.headless=true -jar /home/osmc/jd2/JDownloader.jar

after a long time of: ... Update Progress: 32,835% Update Message: Download Updates... ...

kill the java process executing jdownloader and launch again with:

java -Djava.awt.headless=true -jar /home/osmc/jd2/JDownloader.jar

This time, jdownloader will ask you your myjdownloader credentials:

|---------------------------Headless Information-------------------------------
|       MyJDownloader Setup
|       Los datos de la cuenta de 'My.JDownloader' no son correctos.
|       Compruebe su Nombre de Usuario/Correo Electrónico y Contraseña!
|       Enter y -> Enter Logins
|       Enter n -> Exit JDownloader
$ y
|       Please Enter your MyJDownloader Email:

|       Please Enter your MyJDownloader Password(not visible):

|------------------------------------------------------------------------------

Ctrl+Z
bg %1

To automate launh of Jdownloader on restart:

$ crontab -e

enter the line:

@reboot java -Djava.awt.headless=true -jar /home/osmc/jd2/JDownloader.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment