#21
|
|||
|
|||
![]()
Hi,
I have noob question I can start JD with shell script with command: Code:
java -Dghostawt.library.path=libs/ghostawt/linux32 -cp "./*:libs/*:libs/ghostawt/*" ghostawt.GhostRunner org.jdownloader.startup.Main -console THX Regards |
#22
|
||||
|
||||
![]()
You no longer need GhostAWT to run a headless instance.
grab JDownloader.jar, and run in unix/linux/mac Code:
java -Djava.awt.headless=true -jar JDownloader.jar Code:
javaw -Djava.awt.headless=true -jar JDownloader.jar
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] Last edited by raztoki; 18.09.2014 at 13:49. |
#23
|
|||
|
|||
![]()
Thank you very much.
Can you tell me what command will stop it? Can't find it... ![]() |
#24
|
||||
|
||||
![]()
sorry not sure, I assume you can shutdown via API/My JD
alternatively think JD listens to system calls to close program, just hope there is enough time for JD to stop downloads and shutdown before os terminates. when running from terminal, ctrl c will shutdown for instance.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#25
|
|||
|
|||
![]()
If you install JDownloader headlessly as explained above (latest method), how do you get My JD to connect to your machine? After all, the local JD is not yet configured with username and password.
|
#26
|
||||
|
||||
![]()
you have to copy a my.jdownloader config from a working copy.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#27
|
|||
|
|||
![]()
Alright, thanks. Is there a way to alter a working copy from GUI mode to headless mode? Would certainly save some time.
|
#28
|
||||
|
||||
![]()
Not that I'm aware of.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#29
|
|||
|
|||
![]()
I found out you don't need a working copy to access myjdownloader if you do the following:
Install JD from the command line, then shut it down and delete the my.jdownloader config file. At some point during the next start, you are asked for user name and password. |
#30
|
||||
|
||||
![]()
@Achim W.
thanks for feedback, learn something new every day! =] raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#31
|
|||
|
|||
![]()
I'm still searching for a way to headlessly integrate an existing reconnect shell script. It seems it is not possible by using the web interface. Please let me know if there is a solution.
|
#32
|
|||
|
|||
![]()
Thanks for this manual. I tried it using the .jar installer and it works by launching it with Putty on my Synology DS412+.
I just can't get it to launch from my NAS with task manager. I added a user-defined script in the Task Manager with following command: Code:
java -Djava.awt.headless=true -jar /volume1/@appstore/JDownloader2/JDownloader.jar When I go to My JDownloader website it doesn't show up anymore and when I ran the script with Putty it did. Can someone help me please? EDIT: I just was thinking I had to make a script (.sh-file) for making it to work. What do I need to put in the file? Last edited by J-J; 09.10.2014 at 16:26. Reason: Adjustment |
#33
|
||||
|
||||
![]()
if your using auto startup, make sure the user that's starting object/script is the same as the user that installed JD, otherwise you could have permission issues (read and write).
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#34
|
|||
|
|||
![]() Quote:
I granted these permissions: And then set user to Admin (me) in Task Scheduler: I put java -Djava.awt.headless=true -jar /volume1/JDownloader2/JDownloader.jar in a file named "JDownloader.sh" and used /volume1/JDownloader2/JDownloader.sh as "User-difined script" It just doesn't work :( Last edited by J-J; 11.10.2014 at 00:34. |
#35
|
|||
|
|||
![]()
On the user task, your 2nd picture, I see /volume1/JDownloader2/JDownloader.jar, but I think that must point to the JDownloader.sh, btw I think that you need more "code" to launch it, I don't know synology?, but I think that you need to copy from other examples from the web
|
#36
|
|||
|
|||
![]()
Yes and that's the thing. I'm a noob concerning scripts. Don't know anything about how to get started.
I also tried pointing is to the '.sh'-file but NOTHING happens |
#37
|
|||
|
|||
![]()
I'm a Linux noob myself, but I know that a typical script has this as the first line:
Code:
#!/bin/bash |
#38
|
|||
|
|||
![]()
Hi guys, just found this thread via google. Unfortunately Pyload stopped supporting SJ.Org so I have to look for an alternative. I was hoping since years that jDownloader will be available for NAS.
So is this already an alternative for Pyload or are there any disadvantages? Thanks. |
#39
|
||||
|
||||
![]()
JD will run where you have platform that supports Java && system resources to support JDownloader. If you read this threat you will see that it's possible to run on NAS by the provided information.
BTW. its been possible for years but it did required xterm. raztoki
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#40
|
|||
|
|||
![]()
Thx but as far as I know there are not many NAS which support Java. That's why jDownloader was never ported for NAS. I asked that many years ago.
I've got an QNAP TS 210 but I'm pretty sure it does not support Java. So no way to install jDownloader? Sorry if the question is stupid, I just don't get it ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|