JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 25.06.2022, 17:58
monk monk is offline
Modem User
 
Join Date: Jun 2022
Posts: 2
Default JDownloader headless

Hello,

First, many thanks to the JDowloader developer(s) for the work.
Second, sorry for my bad English, I go through google translate.

I was using JDownloader headless on an RPI with Raspbian GNU/Linux 10 (buster) headless.
I connected in ssh on the RPI then I started JD with the command java -jar JDownloader.jar and I accessed it through the web interface. It was great!

I made a new installation under Raspbian GNU/Linux 11 (bullseye), installed java default-jdk, downloaded and launched JD with this method (as I had to do the first time it seems to me): **External links are only visible to Support Staff****External links are only visible to Support Staff** .jdownloader.org/Knowledgebase/Article/View/52/0/install-jdownloader-on-nas-and-embedded-devices

Everything works fine, but the problem is that I end up with a GUI now that opens after running the command java -jar JDownloader.jar, and if I close it I lose the connection with MyJDownloader.

I didn't have this behavior before and I would like to find it again or at least be able to close the window without completely stopping JDownloader.
I tried to put an old version of java (8) but it's the same.

If anyone has an idea ... I'm a taker.
Thanks in advance.
Reply With Quote
  #2  
Old 25.06.2022, 19:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Quote:
Originally Posted by monk View Post
Everything works fine, but the problem is that I end up with a GUI now that opens after running the command java -jar JDownloader.jar, and if I close it I lose the connection with MyJDownloader.
This happens when you ssh session has valid X11 environment variable set/available and thus java will switch to GUI mode.
To manually disable GUI even if available, use
Quote:
java -Djava.awt.headless=true -jar JDownloader.jar ...
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 26.06.2022, 10:13
monk monk is offline
Modem User
 
Join Date: Jun 2022
Posts: 2
Default

Hello,

Effectively with this command I is not the GUI window.
I looked in the SSH settings and I have x11forwarding activated on the 2 configs.

By putting a headless version of java I could do without the -Djava.awt.headless=true parameter?
Reply With Quote
  #4  
Old 26.06.2022, 10:47
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,342
Default

Quote:
Originally Posted by monk View Post
By putting a headless version of java I could do without the -Djava.awt.headless=true parameter?
No. You should avoid headless version because it may be missing important packages that JDownloader might use. In a scenario/environment where you have X11 forwarded/available, just use the parameter.
__________________
JD-Dev & Server-Admin
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 11:39.
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.