JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 18.09.2015, 19:39
markoweber
Guest
 
Posts: n/a
Default start headless in background

..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
Reply With Quote
  #2  
Old 19.09.2015, 18:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,914
Default

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
Reply With Quote
  #3  
Old 23.09.2015, 14:55
markoweber
Guest
 
Posts: n/a
Default

i started it before on desktop and set the myjdownloader credentials.
Reply With Quote
  #4  
Old 23.09.2015, 16:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,914
Default

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
Reply With Quote
  #5  
Old 23.09.2015, 18:31
markoweber
Guest
 
Posts: n/a
Default

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
Reply With Quote
  #6  
Old 23.09.2015, 18:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 81,914
Default

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
Reply With Quote
  #7  
Old 19.02.2024, 13:06
forivin forivin is offline
DSL Light User
 
Join Date: Sep 2013
Posts: 34
Default

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
If you don't have chocolatey, you can manually install nssm and skip the choco command.

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.)
Reply With Quote
  #8  
Old 19.02.2024, 14:19
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,687
Default

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. :]
Reply With Quote
Reply

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 23:29.
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 - 2025, Jelsoft Enterprises Ltd.