Transmission全新安装和配置
1. cd /opt/bin2. ./ipkg install transmission
3. mkdir -p /opt/etc/transmission
4. /opt/bin/transmission-daemon -g /opt/etc/transmission
5. killall transmission-daemon
345这三步是为了让transmission生成配置文件后修改
6. vi /opt/etc/transmission/settings.json 注意修改几处标为黄色的地方
"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": "\/tmp\/hdd\/media", (设定下载目录)
"encryption": 1,
"incomplete-dir": "\/opt\/etc\/transmission\/Incomplete",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true, (启用账号密码模式访问web控制页面)
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{888b1368da3a94c372253c7bc391d77b6f2d4c07Mdk4ZhPn",
"rpc-port": 9091,
"rpc-username":"root",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false,(关闭白名单)
"speed-limit-down": 260, (限速260KB,据说高了容易死机)
"speed-limit-down-enabled": true,(开启限速)
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"umask": 18,
"upload-slots-per-torrent": 14
7. 在/opt/etc/init.d目录下建立启动脚本
vi /opt/etc/init.d/S50transmission
内容为
#!/bin/sh
/opt/bin/transmission-daemon --paused -t -u root -v toor -g /opt/etc/transmission
(-u root -v toor 这两个参数分别是设定账号和密码)
给S50transmission加上执行权限,以后就能开机自动运行transmission了。
chmod +x S50transmission
8. 实现Transmission排队下载和崩溃后自动恢复 transmission是很不错,如果有点linux 知识,可以利用shell实现很多功能,如,可以写个小shell使用tansmission-remote控制transmision排队下载,利用cron启动和暂停tansmission,利用sdparm休眠usb移动硬盘,可以每隔6小时暂停tansmission,休眠移动硬盘,30分钟后再重新启动 tramsmission,这样可以让机器或移动硬盘有个短暂休息, 打开script_torrent_done_enabled,每个torrent下载完后,可以利用ssmtp发邮件,自己的手机设置一下推送就可以随时收到(如果要是有联通或移动的邮箱,还可以收到邮件到达的通知短信),装transmission-web,只要手机能上网,就可以随时查看或下载
页:
[1]