Samstag, 30. Januar 2010

torrent client, the 2010 edition

Forget rtorrent, newest releases often report "bencoded" error, therefore swicth to

tranmission

sudo apt-get install transmission transmission-deamon

then edit the /etc/transmission-daemon/settings.json to be compliant with tor privoxy, local port settings, watch dir. Bes sure to sto the deamon before editing the file


{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"dht-enabled": true,
"download-dir": "\/home\/daevu\/finished",
"encryption": 1,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 62078,
"peer-port-random-high": 64000,
"peer-port-random-low": 62000,
"peer-port-random-on-start": true,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "127.0.0.1",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": true,
"proxy-port": 8118,
"proxy-type": 2,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{9da631e4ce6a9d2e6408c781a2c18c41e5f03250qeZzHteA",
"rpc-port": 9091,
"rpc-username": "",
"rpc-whitelist": "192.168.*.*",
"rpc-whitelist-enabled": true,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 5,
"speed-limit-up-enabled": true,
"umask": 18,
"upload-slots-per-torrent": 14,
"watch-dir": "\/home\/daevu\/torrents\/",
"watch-dir-enabled": true
}



check on client:
install daemon
add torrent
$ transmission-remote -a one.torrent two.torrent
transmission-remote -tall --start


To move finished torretns to a predefined directory

- sudo apt-get install php5-cli
- add stop-and-move-finished.php script, modify it to your needs and
- make a cronjob
0,10,20,30,40,50 * * * * /usr/bin/php /home/daevu/top-and-move-finished.php >/dev/null 2>&1