JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > International Support > JDownloader 2
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05.04.2018, 15:52
Chercheursoft Chercheursoft is offline
Baby Loader
 
Join Date: Apr 2018
Location: France
Posts: 6
Thumbs up Jdownloader in Synology

Hi

There is already this kind of thread but it becomes very old with many answers in both English and German that makes it hard to follow

The above procedure explains what I did to have Jdownloader working inside my Synology DS216/II with latest DSM F/W.
This procedure is deeply made from explanations coming from existing threads

Hi if it can help, here is what I made to have Jdownloader working and restarting in case of Syno restart:

Install JAVA8 (from Paquet center)

Create a Jdownloader directory inside /volume1/@appstore/
Go to that directory and follow instructions of :https://support.jdownloader.org/Know...bedded-devices

Take care it needs to be in Root mode (so perform a sudo -i and enter password before)

make: wget http://installer.jdownloader.org/JDownloader.jar

then: java -jar JDownloader.jar -norestart
repeat this command until JDownloader asks you to enter your MyJDownloader login/password on console
you can now remote control your JDownloader instance via MyJDownloader with the credentials created before


At this step it should already work with https://my.jdownloader.org/ and proper login/password created during the installation.

Stop Jdownloader

Go to /usr/local/etc and create a directory /rc.d
Inside this directory create a file S99jdownloader.sh with the following content

#!/bin/sh
#
# Startup script for jdownloader2
#
# Stop myself if running
PIDFILE=/volume1/@appstore/Jdownloader/JDownloader.pid
#
start() {
sleep 5
nohup /volume1/@appstore/Java8/j2sdk-image/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/Jdownloader/JDownloader.jar >/dev/null 2>/dev/null&
}
#
stop() {
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}`
# remove pidfile
rm -f $PIDFILE
}
#
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 10
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac
# End

Chmod this file to 0777

Reboot your NAS ..........et voila !

I have also this line in the task scheduler menu (non activated)

/usr/local/etc/rc.d/S99jdownloader.sh start (in root mode)
In case you want to restart manually without rebooting the NAS

For all those settings you have to validate the SSH and my advice is to devalidate the SSH as soon as you do not need as SSH can be dangerous for security


My doubt about this configuration is "will the .sh file keep when there will be a DSM update ?"

Good luck

Philippe

Last edited by Jiaz; 06.04.2018 at 10:40.
Reply With Quote
 


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 17:58.
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.