#61
|
|||
|
|||
![]()
I use Yosemite MAC and I have some questions:
- How to create /usr/local/etc/rc.d/S99jdownloader.sh (with SSH client) with a macbook pro? With the -> go to-command? I never saw my NAS as root directories, I only know my own folders like movies etc... - It looks like my Java is installed @ /var/packages/JavaManager/Java/jre/lib, but I never saw such a folder under my mac connections... After that I shuld copy paste the .sh file and it shuld work on DSM 5.1. I have some $PATH issues with my terminal, thats why I cant use it. Thank you, its a nice thread |
#62
|
|||
|
|||
![]()
Hi all,
newbie here with a DS2413+ - have installed Jdownloader to the letter (or at least I think I have! - as mentioned a newbie). If I reboot the synology it doesn't seem to be accessible from my.jdownloader.org, If i run a SSH terminal and from the jdownloader directory run java -Djava.awt.headless=true -jar JDownloader.jar & it works and I can connect from my.jdownloader.org when I close the ssh session though it closes the connection to my.jdownloader.org Is anyone able to give me any pointers as to where I should look for the issue or logs I can check or what I have done wrong? TIA |
#63
|
|||
|
|||
![]() Quote:
And indeed my JD started with my DSM 5.0 after I put the script S99jdownloader.sh in this folder instead of /usr/local/etc/rc.d/ Now my problem is that my JD is not updated even if I run the scheduled task of the script with the path /usr/local/etc/rc.d/S99jdownloader.sh Last edited by jpnn80; 26.11.2014 at 14:57. |
#64
|
|||
|
|||
![]() Quote:
|
#65
|
|||
|
|||
![]() Quote:
This is what I have done in the Task Scheduler I have created a new user-defined script to run as admin and in the user-defined script box I have typed /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar & This seems to be the main command from the S99jdownloader.sh file and successfully kicks it off for me. thanks for the guide everyone |
#66
|
|||
|
|||
![]()
Moved to a new post
Last edited by narco; 18.12.2014 at 19:05. Reason: can not delete |
#67
|
||||
|
||||
![]() Quote:
|
#68
|
|||
|
|||
![]()
hey guys,
my jdownloader 2 works perfect in headless mode on my synology nas. Now I'd like to stop the program with a simple script in the task scheduler...How can I do that? Something like: kill /volume1/@appstore/jdownloader/JDownloader.jar & ??? As you can see, I'm a newbie as well =)) |
#69
|
|||
|
|||
![]()
---
Last edited by felsi; 16.01.2015 at 12:44. |
#70
|
|||
|
|||
![]() Quote:
Quote:
I use JD unix server headless instance, accessing via WEB INTERFACE @ my.jdownloader.org To make it easy to manage I wrote "Start Stop Restart Status" SCRIPT Here is HOW-TO for newbies: 1. Create file jdownloader with text editor of your choice at /etc/init.d/ i.e.: Code:
sudo vim /etc/init.d/jdownloader 2. Paste this content and replace red-bold text with your variables: Code:
#! /bin/sh # /etc/init.d/jdownloader ### 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: T_Send's Starts/Stops/Restarts/Status the jDownloader2 Server Daemon ### END INIT INFO # Author: T_Send Contact: t_send@itnu.pl Web: www.itnu.pl set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="jDownloader2 Server" NAME="jdownloader" ## USER for new files ownership & make sure USER has read/write permission to DOWNLOAD-DIR USER=<User_Name_or_UID_to_run_as> GROUP=<Group_Name_or_GID_to_run_as> UMASK=<Change_umask_to_UMASK_before_starting> DIR="<path_to_JD_folder>" SCRIPT="/etc/init.d/$NAME" PIDFILE="$DIR/JDownloader.pid" JAVA="<complete_path_to_java_exec>" PARM="-Djava.awt.headless=true -jar $DIR/JDownloader.jar" STATUS="$JAVA $PARM" . /lib/lsb/init-functions start_daemon () { start-stop-daemon --start \ --chuid $USER \ --group $GROUP \ --umask $UMASK \ --oknodo \ --background \ --make-pidfile --pidfile $PIDFILE \ --exec $JAVA -- $PARM log_end_msg $? } case "$1" in start) log_daemon_msg "Starting daemon" "$DESC " start_daemon ;; stop) log_daemon_msg "Stopping daemon" "$DESC " start-stop-daemon --stop \ --pidfile $PIDFILE log_end_msg $? ;; restart) log_daemon_msg "Restarting daemon" "$DESC " start-stop-daemon --stop log_end_msg $? start_daemon ;; status) status_of_proc "$STATUS" "$DESC " && exit 0 || exit $? ;; *) log_action_msg "Usage: $SCRIPT {start|stop|restart|status}" || true exit 2 ;; esac exit 0 Ad.2. To find <complete_path_to_java_exec> follow by sym-links i.e. Code:
ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 paź 25 08:18 /usr/bin/java -> /etc/alternatives/java ls -l /etc/alternatives/java lrwxrwxrwx 1 root root 46 paź 25 08:18 /etc/alternatives/java -> /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 3. Save file, exit and run: sudo chmod 755 /etc/init.d/jdownloader 4. You're DONE. Now you can use: /etc/init.d/jdownloader start | stop | restart | status or service jdownloader start | stop | restart | status For init systemd system (i.e. new Debian Jessie) read 5.b. 5.a. (optional for sysvinit based systems i.e. Debian 7 Wheezy / Ubuntu): If you want to automatically start JD at system bootup, run: sudo update-rc.d jdownloader defaults (for sysvinit systems) 5.b. (optional for systemd based system i.e. new Debian 8 Jessie): run: systemctl daemon-reload - to reload scripts from /etc/init.d dir (otherwise next command won't work) systemctl enable jdownloader - to enable service autostart at boot systemctl disable jdownloader - to remove service autostart at boot systemctl status jdownloader - to show service status info systemctl start | stop jdownloader - to start or stop service Jessie is sysvinit backwards. For additional SCRIPT parameters read Code:
start-stop-daemon --help or man start-stop-daemon Hope it helps someone. Regards, T_Send Changelog: - Added info for systemd systems (i.e. new Debian 8 Jessie) - Added change umask before start option - Added Run As Group option - Changed PID location to JD HOME_DIR as it creates one on start, so it supports CLI commands after "Update & Restart" in WebInterface or other remote API. Last edited by T_Send; 04.06.2015 at 06:29. Reason: Upgrade |
#71
|
|||
|
|||
![]()
Thanks mate . very useful
|
#72
|
|||
|
|||
![]() Quote:
This was a really great tutorial and it really helped get this working! Everything is working fine now, except one thing: updating jdownloader via the settings tab seems to be broken/malfunction. It always starts updating but when its done my.jdownloader.org always tells me there is an update again. When I look into the log, it seem like he is caught in an update loop....could it be that he has writing problems when updating? But even when I temporary set all rights in the jdownloader folder on the synology on 777 it can't update. log comparison: first update try Code:
Thu Jan 22 21:39:51 GMT+01:00 2015 Package: package_1421958637716.awf Install Write Revision: 4841 ----------------Plugins---------------- ----------------Extensions---------------- extensions/JDChat.jar extensions/Scheduler.jar extensions/translator.jar ----------------Direct Files---------------- ----------------Core Files---------------- libs/irclib.jar libs/sequence-library.jar libs/sqljet.jar libs/svnkit.jar Code:
Thu Jan 22 21:46:54 GMT+01:00 2015 Package: package_1421959209027.awf Install Write Revision: 4841 ----------------Plugins---------------- ----------------Extensions---------------- extensions/JDChat.jar extensions/Scheduler.jar extensions/translator.jar ----------------Direct Files---------------- ----------------Core Files---------------- libs/irclib.jar libs/sequence-library.jar libs/sqljet.jar libs/svnkit.jar Any ideas what could be wrong or how to fix this issue? I don't want to update it the hard way by copy&paste always new external installs ![]() Thanks again for helping out. Best! |
#73
|
|||
|
|||
![]()
my jdownloader won't start automatically after synology restart.
When I connected via putty and run: Code:
nohup /volume1/@appstore/JavaManager/Java/bin/java -Djava.awt.headless=true -jar /volume1/@appstore/jdownloader/JDownloader.jar & What I noticed also I cannot see the file: /var/run/S99jdownloader.pid I;m not sure if this is important I tired also run schedule task with script S99jdownloader.sh but after that still not working. Only one way to run it is via putty. Thanks in advance for any help. |
#74
|
|||
|
|||
![]()
Hey guys,
managed to get jD working on my Synology DS212j with only 1 exception: automatic unrar is not working :( Here's the Log:
Spoiler:
Code:
------------------------Thread: 38:ExtractionExtension.log----------------------- --ID:38TS:1422129177373-1/24/15 8:52:57 PM - [org.appwork.txtresource.TranslationHandler(createTranslationResource)] -> Utils>ExtractionExtension.log>Load Translation file:/volume1/JDownloader/translations/org/jdownloader/extensions/extraction/translate/ExtractionTranslation.en.lng --ID:38TS:1422129178602-1/24/15 8:52:58 PM - [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib ID: Linux-arm --ID:38TS:1422129178603-1/24/15 8:52:58 PM - [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib Path: /volume1/JDownloader/tmp/7zip --ID:38TS:1422129179388-1/24/15 8:52:59 PM - [] -> net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/volume1/JDownloader/tmp/7zip/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so' at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:511) at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:383) at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:325) at org.jdownloader.extensions.extraction.multi.Multi.checkCommand(Multi.java:413) at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:602) at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:482) at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80) at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322) at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65) at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480) at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316) at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254) at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122) at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836) Caused by: java.lang.UnsatisfiedLinkError: /volume1/JDownloader/tmp/7zip/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so: ld-linux-armhf.so.3: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1083) at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:509) ... 13 more --ID:38TS:1422129179388-1/24/15 8:52:59 PM - [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Could not initialize Multiunpacker #1 --ID:38TS:1422129179389-1/24/15 8:52:59 PM - [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Lib Path: /tmp --ID:38TS:1422129179550-1/24/15 8:52:59 PM - [] -> net.sf.sevenzipjbinding.SevenZipNativeInitializationException: 7-Zip-JBinding initialization failed: Error loading native library: '/tmp/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so' at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:511) at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJARIntern(SevenZip.java:383) at net.sf.sevenzipjbinding.SevenZip.initSevenZipFromPlatformJAR(SevenZip.java:293) at org.jdownloader.extensions.extraction.multi.Multi.checkCommand(Multi.java:441) at org.jdownloader.extensions.extraction.ExtractionExtension.lazyInitOnceOnStart(ExtractionExtension.java:602) at org.jdownloader.extensions.extraction.ExtractionExtension.start(ExtractionExtension.java:482) at org.jdownloader.extensions.AbstractExtension.setEnabled(AbstractExtension.java:80) at org.jdownloader.extensions.AbstractExtension.init(AbstractExtension.java:322) at org.jdownloader.extensions.LazyExtension.create(LazyExtension.java:65) at org.jdownloader.extensions.ExtensionController.initModule(ExtensionController.java:480) at org.jdownloader.extensions.ExtensionController.loadJared(ExtensionController.java:316) at org.jdownloader.extensions.ExtensionController.load(ExtensionController.java:254) at org.jdownloader.extensions.ExtensionController.init(ExtensionController.java:122) at jd.SecondLevelLaunch$10$1$2.run(SecondLevelLaunch.java:836) Caused by: java.lang.UnsatisfiedLinkError: /tmp/SevenZipJBinding-XZJYm/lib7-Zip-JBinding.so: ld-linux-armhf.so.3: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1083) at net.sf.sevenzipjbinding.SevenZip.loadNativeLibraries(SevenZip.java:509) ... 13 more --ID:38TS:1422129179550-1/24/15 8:52:59 PM - [org.jdownloader.extensions.extraction.multi.Multi(checkCommand)] -> Could not initialize Multiunpacker #2 --ID:38TS:1422129179551-1/24/15 8:52:59 PM - [org.jdownloader.extensions.extraction.ExtractionExtension(lazyInitOnceOnStart)] -> Extractor org.jdownloader.extensions.extraction.multi.Multi plugin could not be initialized --ID:38TS:1422129179566-1/24/15 8:52:59 PM - [org.appwork.shutdown.ShutdownController(addShutdownVetoListener)] -> Utils>ExtractionExtension.log>ADD org.jdownloader.extensions.extraction.ExtractionExtension$3@1f45711 --ID:38TS:1422129179585-1/24/15 8:52:59 PM - [org.jdownloader.extensions.AbstractExtension(init)] -> Init Duration: 1696 not sure what to do to fix it tbh, maybe someone here can help?:) |
#75
|
|||
|
|||
![]() Quote:
can you share prtsc with permissions for file S99jdownloader.sh and /volume1/@appstore/jdownloader/ files *.* you can use WinSCP the easiest way. I want to comapre with my settings on DS1813+, For me also automatic unrar doessn't work :( but main issue is that jdownloader doesn't start automatically after synology restart |
#76
|
||||
|
||||
![]()
We use sevenzipjbind for extraction. At the moment we only provide library for windows(32/64)/mac(32/64)/linux(32/64/raspberrypi/odroid/cubox).
I need output from cat /proc/cpuinfo to check if extraction support is possible. Also help is welcome for crosscompiled libraries for headless devices ![]()
__________________
JD-Dev & Server-Admin |
#77
|
|||
|
|||
![]() Quote:
Code:
DiskStation> cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 54 model name : Intel(R) Atom(TM) CPU D2701 @ 2.13GHz stepping : 1 microcode : 0x10d cpu MHz : 2128.245 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm bogomips : 4256.49 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 54 model name : Intel(R) Atom(TM) CPU D2701 @ 2.13GHz stepping : 1 microcode : 0x10d cpu MHz : 2128.245 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm bogomips : 4255.76 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 54 model name : Intel(R) Atom(TM) CPU D2701 @ 2.13GHz stepping : 1 microcode : 0x10d cpu MHz : 2128.245 cache size : 512 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm bogomips : 4255.79 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 54 model name : Intel(R) Atom(TM) CPU D2701 @ 2.13GHz stepping : 1 microcode : 0x10d cpu MHz : 2128.245 cache size : 512 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 2 apicid : 3 initial apicid : 3 fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm bogomips : 4255.79 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: |
#78
|
||||
|
||||
![]()
how did you install jdownloader on the nas? It looks like you just copied your local(pc) configuration on it
![]() Remove Core.jar and start jd again, it will then update libraries to correct version. USE java -jar JDownloader.jar to install on devices, NEVER copy from other OS!
__________________
JD-Dev & Server-Admin |
#79
|
|||
|
|||
![]() Quote:
https://board.jdownloader.org/showpo...2&postcount=46 If I will use "USE java -jar JDownloader.jar" to install on devices, how I will be able to connect to jdownloader ? without configured myjdownloaded credential ? Last edited by castortray; 26.01.2015 at 17:15. |
#80
|
||||
|
||||
![]()
it will ask you for logins during installation (asks them on console)
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|