Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Alistair1231/8d6b5b087de571c59750d52a6f91cf81 to your computer and use it in GitHub Desktop.
Save Alistair1231/8d6b5b087de571c59750d52a6f91cf81 to your computer and use it in GitHub Desktop.
/*-----------------------------------------------------------*\
| THIS IS JUST A BACKUP FOR MY SERVER MIGRATION... |
| EVERYTHING MIGHT BE WRONG. IT WORKED FOR ME |
| AFTER MUCH FIDDLING I MIGHT HAVE FORGOTTEN SOME DETAILS |
\*------------------------------------------------------------*/
//tested with ubuntu 16.04 headless
//PIA setup
docker network create pia_network
// https://hub.docker.com/r/itsdaspecialk/pia-openvpn
docker run --cap-add=NET_ADMIN --net=pia_network --name=pia -d \
--restart=always \
--dns 209.222.18.222 --dns 209.222.18.218 \
-e 'REGION=Netherlands' \
-e 'USERNAME=____' \
-e 'PASSWORD=____' \
itsdaspecialk/pia-openvpn
/*
___jd2 setup___
https://hub.docker.com/r/plusminus/jdownloader2-headless/
*/
docker run -d --name jd2 \
-v /config/jd2:/opt/JDownloader/cfg \
-v /home/alistair1231/:/root \
--net=container:pia \
plusminus/jdownloader2-headless
/*
myJD credentials in
/config/jd/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json
like this:
{ "email" : "email@home.org", "password" : "mypasswort" }
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment