transmission

sudo aptitude install transmission-daemon
sudo service transmission-daemon stop
sudo vim /etc/transmission-daemon/settings.json

"dht-enabled": false,
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"peer-limit-global": 960,
"peer-limit-per-torrent": 288,
"preallocation": 2,
"rename-partial-files": false,

  "watch-dir": "xxxxx",
   "watch-dir-enabled": true

# Legacy setting not needed anymore
"max-peers-global": 960,


Here's a handy script to make transmission work with your VPN (as long as it's PIA)


USER=
PASS=
IP=$(ip -o -4 addr list tun0 | awk '{print $4}')
PORT=$(curl -d "user=$USER&pass=$PASS&client_id=$(cat ~/.pia_client_id)&local_ip=$IP" https://www.privateinternetaccess.com/vpninfo/port_forward_assignment | grep -o '[0-9]\+')

echo $IP $PORT

sudo service transmission-daemon stop

sudo cat /etc/transmission-daemon/settings.json | sed "s/bind-address-ipv4.*/bind-address-ipv4\": \"$IP\",/" | sed "s/\"peer-port:\"/\"peer-port\": $PORT,/" > /tmp/settings.json

sudo cp /tmp/settings.json /etc/transmission-daemon/settings.json

rm /tmp/settings.json


sudo service transmission-daemon start

Comments