JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 19.03.2017, 00:04
nb0023
Guest
 
Posts: n/a
Default Raspberry Pi: JDownloader remote access not working

I have a rPi 1 model b running Raspbian Jessie lite (headless). I want to install JD2 headless so that I can remotely send downloads to it using my phone, but I cant get it to work. I followed this guide, including installing Oracle Java 8, but it doesnt show up in my jdownloader. Here are the steps in order

Code:
sudo apt-get install oracle-java8-jdk
mkdir jdownloader
cd jdownloader
wget http://installer.jdownloader.org/JDownloader.jar
java -Djava.awt.headless=true -jar JDownloader.jar
This next step is where I encountered a problem because this file was empty, I was expecting a file where I would just fill in my details

Code:
sudo nano /home/pi/jdownloader/cfg/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json
I googled and found this and I filled in my password and email and saved the file

Code:
{ "password" : "mypassword", "email" : "email@home.org" }
I used **External links are only visible to Support Staff**this init file instead of the one in the tutorial because its in german.. I compared the two files and made some changes to DIR, and the JAVA path and I took out the USER = JD line

Code:
 
#!  / Bin / sh 
  # ## BEGIN INIT INFO 
  # Provides: JDownloader2 
  # Required-Start: networking 
  # Required-Stop: 
  # Default start: 2 3 4 5 
  # Default Stop: 0 1 6 
  # Short-Description: JDownloader2 server daemon 
  # Description: JDownloader2 server daemon 
  # ## END INIT INFO 

  DIR=”/home/pi/jdownloader”
  PIDFILE = " $ DIR /JDownloader.pid " 
   JAVA=”/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java”
  PARAM = " -Djava.awt.headless = true -jar $ DIR /JDownloader.jar " 

  Start_daemon () { 
  Start-stop-daemon --start --background --oknodo --chuid $ USER --make-pidfile --pidfile $ PIDFILE --exec $ JAVA - $ PARAM 
  } 
  Stop_daemon () { 
  Start-stop-daemon --stop --pidfile $ PIDFILE 
  } 
  # Switch case 
  Case " $ 1 " in 
  begin) 
  # On start 
  Echo " Start JDownloader " 
  Start_daemon 
  ;; 
  Stop) 
  # On stop 
  Echo " Stop JDownloader " 
  Stop_daemon 
  ;; 
  Restart) 
  # On restart 
  Echo " Restart JDownloader " 
  Start_daemon 
  Stop_daemon 
  ;; 
  * ) 
  # Default action 
  Echo " (start | stop | restart) " 
  ;; 
  Esac 
 Exit 0
and than I run these commands but it doesnt work (I'm unsure if I have correctly installed the init script)

Code:
pi@raspberrypi:~ $  sudo chmod +x /etc/init.d/jdownloader
pi@raspberrypi:~ $  sudo systemctl daemon-reload
pi@raspberrypi:/ $ sudo systemctl enable jdownloader
Synchronizing state for jdownloader.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d jdownloader defaults
Executing /usr/sbin/update-rc.d jdownloader enable
but nothing....

Edit: Seems like the jdownloader service is running

Code:
pi@raspberrypi:/ $ systemctl is-active jdownloader.service
active
Edit again: It seems the process is running

Code:
pi@raspberrypi:/ $ ps aux | grep jdownloader
pi       13362  0.0  0.3   4268  1652 pts/0    S+   16:10   0:00 grep --color=auto jdownloader
Edit: Turns out my java path was wrong. Its its the jdk-8-oracle-arm32-vfp-hflt folder not in jdk-8-oracle-arm-vfp-hflt but it still doesnt work

Last edited by nb0023; 19.03.2017 at 02:33.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 20:12.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.