#1
|
|||
|
|||
![]()
..is this the right way to start jdownloader headless on my linux server?
java -Djava.awt.headless=true -jar JDownloader.jar it is still in foreground on console with this: Start Update Update Message: Check for updates Update Progress: 3% Update Progress: -1% Update Message: Contact Server... Update Message: Check for updates Update Progress: 0% set PENDING |
#2
|
||||
|
||||
![]()
You start it via
java -jar JDownloader.jar -norestart (-Djava.awt.headless=true is not needed because a server normally has no head) you use the command till JDownloader asks for the MyJDownloader logins on console then you start it normally java -jar JDownloader.jar & (use su -c or nohup or screen to run in it background)
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
![]()
i started it before on desktop and set the myjdownloader credentials.
|
#4
|
||||
|
||||
![]()
Then its okay, but you should delete Core.jar again to make sure JDownloader installs the correct OS/Bitness Versions of all libraries. Copying a Windows Version to Linux will not work good
![]()
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
![]()
this is a remote computer with desktop.
i started JD on desktop there. when i put in console now java -jar JDownloader.jar -norestart on the remote machine a window with jdownloader popup here. also, java -jar JDownloader.jar & opens a window from remote machine... java -Djava.awt.headless=true -jar JDownloader.jar dont open a window |
#6
|
||||
|
||||
![]()
yes, because when you open within a deskopt, your terminal has a head
![]() eg login via ssh, then no head when you have an X11 active, then of course you need to specify -Djava.awt.headless=true
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
![]()
For anyone finding this while googling, looking for a Windows solution, you can easily run JD as a service in the background from PowerShell or Cmd like this:
Code:
choco install nssm nssm install JDownloader "%ProgramFiles%\JDownloader\JDownloader2.exe" nssm start JDownloader You can then control your JD from the browser: https://my.jdownloader.org (Assuming you've entered your My.JDownloader credentials in your JD Settings.) |
#8
|
||||
|
||||
![]()
Not sure how regularly services like that would run, but you might encounter issues with updating as that terminates the program while installing files and restarts itself post update. I know unix/linux they utilise a script to check pid files to ensure that the program is actually down vs normal run or updating.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
![]() |
Thread Tools | |
Display Modes | |
|
|