Skip to content

Instantly share code, notes, and snippets.

@AyushSachdev
Created July 16, 2014 22:45
Show Gist options
  • Save AyushSachdev/6b93d818986cc314377c to your computer and use it in GitHub Desktop.
Save AyushSachdev/6b93d818986cc314377c to your computer and use it in GitHub Desktop.
Port 9091
#!/bin/sh
# VPN and Torrent on Ubuntu 14.04 on Digital Ocean
# References:
# Torrent - https://gist.github.com/timothyandrew/6162351
# Torrent - http://filesharefreak.com/2012/05/10/seedbox-from-scratch-new-server-to-seeding-in-less-than-5-minutes
# VPN - https://www.digitalocean.com/community/articles/how-to-setup-a-multi-protocol-vpn-server-using-softether
DIR="`pwd`"
apt-get update -y && apt-get upgrade -y
apt-get dist-upgrade -y
apt-get -y install python-software-properties vim
add-apt-repository -y ppa:transmissionbt/ppa
apt-get -y update
apt-get -y install transmission-cli transmission-common transmission-daemon nginx
# nano /etc/transmission-daemon/settings.json
# "download-dir": "/etc/share/ngninx/www"
# "rpc-authentication-required": false
# "rpc-whitelist-enabled": false
mkdir -p /usr/share/nginx/www
mkdir -p /usr/share/nginx/www/downloads
mkdir -p /usr/share/nginx/www/torrents
chmod -R 777 /usr/share/nginx/www
rm -f /usr/share/nginx/www/index.html
wget https://gist.githubusercontent.com/AyushSachdev/edc23605438f1cccdd50/raw/settings.json
mv $DIR/settings.json /etc/transmission-daemon/settings.json
wget https://gist.githubusercontent.com/AyushSachdev/edc23605438f1cccdd50/raw/nginx.conf
mv $DIR/nginx.conf /etc/nginx/nginx.conf
wget https://gist.githubusercontent.com/AyushSachdev/edc23605438f1cccdd50/raw/default-site
mv $DIR/default-site /etc/nginx/sites-enabled/default
/etc/init.d/transmission-daemon reload
/etc/init.d/nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment