操作系统 CentOS 5.7
$ cat /proc/version #查看内核 $ cat /etc/issue #查看发行版
$ yum install vsftpd
yum -y update yum -y install gcc gcc-c++ m4 make automake libtool gettext openssl-devel perl-XML-Parser wget -c http://download.transmissionbt.com/files/transmission-2.12.tar.bz2 wget -c http://pkgconfig.freedesktop.org/releases/pkgconfig-0.18.tar.gz wget -c http://curl.haxx.se/download/curl-7.21.2.tar.gz wget -c http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz wget -c http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gz tar zxvf pkgconfig-0.18.tar.gz cd ./pkgconfig-0.18 ./configure make && make install cd .. tar zxvf curl-7.21.2.tar.gz cd ./curl-7.21.2 ./configure make && make install cd .. tar zxvf intltool-0.40.6.tar.gz cd ./intltool-0.40.6 ./configure make && make install cd .. tar zxvf libevent-1.4.14b-stable.tar.gz cd ./libevent-1.4.14b-stable ./configure make && make install cd .. tar jxvf transmission-2.12.tar.bz2 cd ./transmission-2.12 ./configure make && make install cd ..
启动一次transmission-daemon生成配置文件$ /user/local/bin/transmission-daemon -g transmission_config
如果transmission没有安装在上述路径,可以用$ which transmission-daemon查看。
-g参数是指定配置文件目录,不加的话默认在$HOME/.config/transmission-daemon/。
杀掉transmission-daemon进程,然后修改配置文件
$ vi transmission_config/settings.json
配置文件内容如下,根据需要修改,rpc-开头的项是WebUI的配置项。
{ "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, "blocklist-url": "http://www.example.com/blocklist", "cache-size-mb": 4, "dht-enabled": true, "download-dir": "/home/transmission/Downloads", "encryption": 1, "idle-seeding-limit": 30, "idle-seeding-limit-enabled": false, "incomplete-dir": "/home/transmission/Downloads", "incomplete-dir-enabled": false, "lpd-enabled": false, "message-level": 2, "peer-congestion-algorithm": "", "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": "default", "pex-enabled": true, "port-forwarding-enabled": true, "preallocation": 1, "prefetch-enabled": 1, "ratio-limit": 2, "ratio-limit-enabled": false, "rename-partial-files": true, "rpc-authentication-required": true, //如果不用rpc-whitelist的话最好设为true,如果不想共享的话。 "rpc-bind-address": "0.0.0.0", "rpc-enabled": true, "rpc-password": "{bdf290ea269d849f9d7756b92d62759c97b9ed4bCrPGsEIO",//认证密码,此处为加密后的,可以用明文输入,再次启动transmission //时会自动转成密文 "rpc-port": 9091, //web管理端口 "rpc-url": "/transmission/", "rpc-username": "", "rpc-whitelist": "127.0.0.1", "rpc-whitelist-enabled": true, //此处固定IP可以设为true,同时在rpc-whitelist中加入你的IP,动态IP一定设为false "script-torrent-done-enabled": false, "script-torrent-done-filename": "", "speed-limit-down": 100, "speed-limit-down-enabled": false, "speed-limit-up": 100, "speed-limit-up-enabled": false, "start-added-torrents": true, "trash-original-torrent-files": false, "umask": 18, "upload-slots-per-torrent": 14, "utp-enabled": true }
再次启动transmission-daemon,就可以用浏览器web登陆管理BT下载了。
$ yum install lftp