Transmission是一种BitTorrent客户端,特点是一个跨平台的后端和其上的简洁的用户界面。Transmission以MIT许可证和GNU通用公共许可证双许可证授权,因此是一款自由软件。
- 安装
sudo yum install transmission transmission-cli transmission-daemon
#或
sudo apt-get install transmission-cli transmission-daemon transmission
sudo service transmission-daemon start
-
修改配置文件
/var/lib/transmission-daemon/.config/transmission-daemon/settings.json
关于配置文件的修改:
修改前请一定确保transmission未在运行,否则任何修改都无效。
可以使用
sudo service transmission-daemon stop
sudo killall transmission-daemon
transmission的配置文件
{
"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-updates-enabled": true,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"compact-view": false,
"dht-enabled": false, #禁用DHT(不通过tracker寻找节点),PT需禁用,但BT下载设置为true会使得下载更好
"download-dir": "/media/nalansitan/sitan/transmission", #下载文件路径,需更改为你自己的路径,注意权限问题
"download-queue-enabled": true, #下载队列限制
"download-queue-size": 50, # 最大同时下载数,默认为5,太小
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/old/transmission", #未完成种子目录,最好和下载文件路径相同或至少在一个分区,,以免下载完成后移动文件浪费系统资源
"incomplete-dir-enabled": false,
"inhibit-desktop-hibernation": false,
"lpd-enabled": false, #禁用LDP(本地节点发现,用于在本地网络寻找节点),PT最好禁用
"main-window-height": 500,
"main-window-is-maximized": 1,
"main-window-width": 553,
"main-window-x": 50,
"main-window-y": 50,
"message-level": 1,
"open-dialog-dir": "/home/nalansitan",
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 960, #全局最大连接用户数,带宽和cpu给力的话可以设置的较高
"peer-limit-per-torrent": 120, #单个种子最大连接用户数
"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": false, #禁用PEX(节点交换,用于同已与您相连接的节点交换节点名单),PT需禁用,但BT下载设置为true会使得下载更好
"port-forwarding-enabled": true,
"preallocation": 1,
"prefetch-enabled": 1,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 99999999,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "你的远程管理密码",
"rpc-port": 9091, #默认远程管理端口
"rpc-url": "/transmission/",
"rpc-username": "你的远程管理用户名",
"rpc-whitelist": "127.0.0.1", #白名单地址,下面一行设置为true这行才有效
"rpc-whitelist-enabled": false, #不启用白名单,即任何网段均可远程管理
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "/home/nalansitan",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"show-backup-trackers": false,
"show-extra-peer-details": false,
"show-filterbar": true,
"show-notification-area-icon": false,
"show-options-window": true,
"show-statusbar": true,
"show-toolbar": true,
"show-tracker-scrapes": false,
"sort-mode": "sort-by-name",
"sort-reversed": false,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"statusbar-stats": "total-ratio",
"torrent-added-notification-enabled": true,
"torrent-complete-notification-enabled": true,
"torrent-complete-sound-command": "canberra-gtk-play -i complete-download -d 'transmission torrent downloaded'",
"torrent-complete-sound-enabled": true,
"trash-can-enabled": true,
"trash-original-torrent-files": false,
"umask": 0,
"upload-slots-per-torrent": 14,
"user-has-given-informed-consent": true,
"utp-enabled": true,
"watch-dir": "/home/nalansitan/Desktop",
"watch-dir-enabled": false
}
sudo service transmission-daemon start
-
远程管理
http://你的VPS的ip地址:9091/
-
美化
美化工具Github地址:https://github.com/ronggang/transmission-web-control
- 使用终端以
root
用户登录到你的系统,以下脚本假设你已经使用root
用户;(方法自行搜索) - 记住当前路径(如 /volume1/ ),以后用到,因为 wget 下载的文件会保存到当前目录;
- 获取最新的安装脚本:
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
- 请留意执行结果,如果出现
install-tr-control-cn.sh.1
之类的提示,表示文件已存在,请使用rm install-tr-control-cn.sh*
删除之前的脚本再重新执行上面的命令; - 如果提示
https
获取失败,请使用以下命令获取安装脚本:
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh --no-check-certificate
- 如果提示文件已存在,可以通过
rm install-tr-control-cn.sh
进行删除后再执行下载;或者在wget
后面添加-N
参数,如:
wget -N https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh --no-check-certificate
执行安装脚本
- 执行安装脚本(如果系统不支持
bash
命令,请尝试将bash
改为sh
):
bash install-tr-control-cn.sh
- 如果出现
Permission denied
之类的提示,表示没有权限,可尝试添加执行权限:
chmod +x install-tr-control-cn.sh
- 如果命令成功执行,将出现以下界面:

- 按照提示,输入相应的数字,按回车即可;
- 如果无法正常显示中文,请尝试设置SSH客户端编码为
UTF-8
,如依然不能显示中文,请下载并使用英文安装脚本install-tr-control.sh
wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control.sh --no-check-certificate