Skip to content

Instantly share code, notes, and snippets.

@tuxmartin
Created March 22, 2016 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxmartin/901fd269b4600e25d878 to your computer and use it in GitHub Desktop.
Save tuxmartin/901fd269b4600e25d878 to your computer and use it in GitHub Desktop.
JDownloader Ubuntu 12.04 LTS server
1) vytvorit ucet na http://my.jdownloader.org/
2) pridat uzivatele
# adduser dl
3) stahnout instalator, nainstalovat a prihlasit se:
# su dl
$ wget http://installer.jdownloader.org/JDownloader.jar
$ java -jar JDownloader.jar
4) ja pouzivam skript na spusteni:
cat /home/dl/jdownloader2/start.sh
#!/bin/bash
java -Djava.awt.headless=true -jar /home/dl/jdownloader2/JDownloader.jar &
5) a spoustim to behem bootovani z /etc/rc.local:
cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
su - dl -c " /home/dl/jdownloader2/start.sh" &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment