JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1201  
Old 26.05.2020, 18:31
cliors cliors is offline
Baby Loader
 
Join Date: May 2020
Posts: 7
Default

I wish there was some manual for total newbies on how to install and run this on a linux server.
It would save me so much time when i would be able to download directly to my server.
Reply With Quote
  #1202  
Old 26.05.2020, 18:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

See
https://support.jdownloader.org/Know...bedded-devices
https://support.jdownloader.org/Know...tostart-script
__________________
JD-Dev & Server-Admin
Reply With Quote
  #1203  
Old 27.05.2020, 14:10
cliors cliors is offline
Baby Loader
 
Join Date: May 2020
Posts: 7
Default

Quote:
Originally Posted by Jiaz View Post
See
**External links are only visible to Support Staff**...
**External links are only visible to Support Staff**...
I actually think i installed it successfully.

I have questions however:

1) I did not performed this step yet https://support.jdownloader.org/Know...tostart-script
Where is this needed for?

2) I managed to perform a download and save it directly on my server but i used the my.jdownloader web interface for this.
I'm trying to figure out how to use Jdownloader2 to download files to the server? How to select a map on the server since Downloadmap only shows directory on my computer.
Reply With Quote
  #1204  
Old 27.05.2020, 15:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

1.) not required, only an example how to achieve autostart of JDownloader
2.) I'm sorry but I don't understand. You've installed/setup JDownloader on your server, then you just have to control that instance via https://my.jdownloader.org
I don't understand your question, sorry
__________________
JD-Dev & Server-Admin
Reply With Quote
  #1205  
Old 27.05.2020, 16:00
cliors cliors is offline
Baby Loader
 
Join Date: May 2020
Posts: 7
Default

Quote:
Originally Posted by Jiaz View Post
1.) not required, only an example how to achieve autostart of JDownloader
2.) I'm sorry but I don't understand. You've installed/setup JDownloader on your server, then you just have to control that instance via **External links are only visible to Support Staff**...
I don't understand your question, sorry
2) I was hoping i could control JDownloader (installed on server) with JDownloader installed on my desktop.

So the only way to control the server is by https://my.jdownloader.org/?

The reason i ask this, is because the desktop application has more info about the video when viewing "Download" tab (such as size, filetype etc)
Reply With Quote
  #1206  
Old 27.05.2020, 16:08
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,659
Default

you can't control a client with a client.
so you can either use browser extension, my.jdownloader.org webui, or apps that support mobile devices andriod/ios/etc
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #1207  
Old 27.05.2020, 16:16
cliors cliors is offline
Baby Loader
 
Join Date: May 2020
Posts: 7
Default

Quote:
Originally Posted by raztoki View Post
you can't control a client with a client.
so you can either use browser extension, my.jdownloader.org webui, or apps that support mobile devices andriod/ios/etc
Got it.
What about selecting a download folder on a server with the desktop client? Any plugin or work around or do i simply want to much ?

Last edited by cliors; 27.05.2020 at 16:19.
Reply With Quote
  #1208  
Old 27.05.2020, 17:37
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@cliors: There are ideas/thoughts about JDownloader with GUI connect/control headless/remote JDownloader instance but no real work done on that yet. Until then you can only use Webinterface/Apps/BrowserExtension and write own tools/scripts.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #1209  
Old 22.12.2020, 16:18
wuffwuff wuffwuff is offline
DSL Light User
 
Join Date: Sep 2009
Posts: 30
Default

Hallo,
ichmusste mein system neu machen .
leider ist das tutorial aus dem zyxel forum nicht mehr vorhanden
habe java installiert und jdownloader gestartet und die login daten eingegeben.

ich habe dieses script von früher angepasst und unter etc/ini.d abgelegt.
die rechte habe ich mit win scp auf 0755 gesetzt.
da es über ssh nicht geht.

sudo chmod 755 /etc/init.d/jd2-start.sh
chmod: cannot access `/etc/init.d/jd2-start.sh': No such file or directory

starten tut es nicht automatisch

was ist noch zu tun?

Code:
#!/ffp/bin/sh
DESC="JDownloader 2 Headless"
NAME=JDownloader2
PIDFILE=/i-data/9bce3fb0/Jdownloader/JDownloader.pid
USER=admin
RUN_AS=admin
COMMAND="/ffp/opt/java/jre/bin/java -- -jar /i-data/9bce3fb0/Jdownloader/JDownloader.jar"

d_start() {
sleep 10
start-stop-daemon --start --quiet --background --pidfile $PIDFILE --user $USER --chuid $RUN_AS --exec $COMMAND
}

d_stop() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE
sleep 10
if [ -e $PIDFILE ]
then rm $PIDFILE
fi
}

case $1 in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart)
echo  -n "Restarting $DESC: $NAME"
d_stop
sleep 10
d_start
echo ":"
;;
*)
echo "usage: $NAME [start|stop|restart]"
exit 1
;;
esac


exit

Last edited by wuffwuff; 22.12.2020 at 16:28.
Reply With Quote
  #1210  
Old 22.12.2020, 16:33
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@wuffwuff
Funktioniert das Skript überhaupt von Hand? stimmen alle Pfade?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #1211  
Old 23.12.2020, 21:22
wuffwuff wuffwuff is offline
DSL Light User
 
Join Date: Sep 2009
Posts: 30
Default

Habe festgestellt das mein scribt vom NAS unter /etc/init d immer wieder gelöscht wird, pfade stimmen
soweit
Reply With Quote
  #1212  
Old 24.12.2020, 13:14
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@wuffwuff: Evtl ist das nen InMemory Only Pfad oder wird beim Booten eingehängt? Aber das "Problem" sollte doch via Suchmaschine leicht gelöst sein?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #1213  
Old 23.08.2021, 20:40
kkkira kkkira is offline
JD Fan
 
Join Date: Aug 2009
Posts: 70
Default

Quote:
Originally Posted by T_Send View Post

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
and edit start_daemon () entry

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.
Hello,

what do i put in UMASK line?
Reply With Quote
  #1214  
Old 24.08.2021, 15:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

@kkkira: for example 000
see wintelguy.com/umask-calc.pl
__________________
JD-Dev & Server-Admin
Reply With Quote
  #1215  
Old 22.12.2023, 16:03
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,044
Default

I've just removed the sticky of this thread.
A lot of information in this thread is outdated.
By now we do now have several help articles and other forum threads about headless installation on different devices.
Here is a quick overview of some of them:Some of the mentioned threads will stay pinned in this subforum.
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
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 07:30.
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.