transmission简介
Transmission是一个功能强大的开源BT客户端,它能够完美地在Windows、Linux、MacOS下运行,支持磁力链接,BT下载。
官网:https://transmissionbt.com
根据官方介绍,其功能特性有:
1、使用的资源比其他客户端少
2、原生Mac,GTK +和Qt GUI客户端
3、以守护进程运行
4、可以由Web和终端客户端进行远程控制
5、本地Peer发现
6、完全加密,支持DHT,μTP,PEX和磁力链接
Transmission在Linux下的安装
Debian系操作系统可以直接使用apt进行安装,而RedHat系一般是从源码编译安装。
编译环境:CentOS
Transmission版本:2.94
首先安装编译前所需的依赖
yum -y install gcc gcc-c++ make automake libtool gettext openssl-devel libevent-devel intltool libiconv wget
从官网下载相关源码到本机并解压
cd /usr/src && wget https://github.com/transmission/transmission-releases/raw/master/transmission-2.94.tar.xz
tar -xvf transmission-2.94.tar.xz
开始进行编译
cd transmission-2.94 && ./configure CFLAGS=-liconv
make && make install
修改配置文件
编译并完成后,会生成五个二进制文件,分别为:
transmission-create
transmission-daemon
transmission-edit
transmission-remote
transmission-show
通常在启动时只需要执行transmission-daemon这个文件。
在第一次执行该文件时,可通过附加-g选项并指定一个路径来保存transmission,若未加-g选项,则默认配置文件settings.json在/root/.config/transmission目录下(如果是以root身份执行的话)。以下是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,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/usr/local/transmission/downloads", #此处应填写下载目录
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 2,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"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": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0", #RPC监听的网卡,0.0.0.0代表监听所有网卡
"rpc-enabled": true, #开启通过RPC连接
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": true,
"rpc-password": "{xxx", #填写RPC密码,填写后重启会自从转变为hash值
"rpc-port": 9091, #RPC端口
"rpc-url": "/transmission/",
"rpc-username": "transmission", #RPC用户名
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false, #关闭白名单,否则未在白名单内的IP将无法通过web访问
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"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的启动及其他注意点
配置好修改好配置文件settings.json后,直接执行transmission-daemon即可令transmission在后台运行,要访问控制台时,只需要通过http协议在浏览器输入服务器IP加RPC端口,并且输入用户名密码即可。(如http://x.x.x.x:port)
在服务器上使用transmission下载版权电影时务必要确定主机所属商家是否无视DMCA(数字千年版权法),否则很容易因掉入版权方蜜罐而收到律师函。一般在版权管理宽松的欧洲某些国家,还有中国大陆是无视DMCA的,可以放心地使用。
评论