2019独角兽企业重金招聘Python工程师标准>>>
官网地址:https://transmissionbt.com/
安装Transmission
我们要安装transmission-daemon版本才能够让transmission进程在后台执行。
root@raspberrypi:~# apt-get install transmission-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libminiupnpc10 libnatpmp1 minissdpd transmission-cli transmission-common
Suggested packages:
natpmp-utils transmission-gtk
The following NEW packages will be installed:
libminiupnpc10 libnatpmp1 minissdpd transmission-cli transmission-common transmission-daemon
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 799 kB of archives.
After this operation, 3,516 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf transmission-common all 2.92-2+deb9u1 [288 kB]
Get:2 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf libminiupnpc10 armhf 1.9.20140610-4 [25.6 kB]
Get:3 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf libnatpmp1 armhf 20110808-4 [8,168 B]
Get:4 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf transmission-daemon armhf 2.92-2+deb9u1 [172 kB]
Get:5 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf minissdpd armhf 1.2.20130907-4.1 [18.4 kB]
Get:6 http://mirrors.neusoft.edu.cn/raspbian/raspbian stretch/main armhf transmission-cli armhf 2.92-2+deb9u1 [288 kB]
Fetched 799 kB in 18s (42.2 kB/s)
...
修改配置文件
root@raspberrypi:~# vim /etc/transmission-daemon/settings.json
主要修改以下内容(官方说明:https://github.com/transmission/transmission/wiki/Editing-Configuration-Files)
{
//下载目录
"download-dir": "/var/lib/transmission-daemon/downloads",
//下载队列开关
"download-queue-enabled": true,
//下载队列数量
"download-queue-size": 5,
//未完成目录
"incomplete-dir": "/var/lib/transmission-daemon/Downloads",
//未完成目录启用开关
"incomplete-dir-enabled": false,
//是否需要rpc鉴权 RPC(Remote Procedure Call)—远程过程调用
"rpc-authentication-required": true,
//rpc绑定地址
"rpc-bind-address": "0.0.0.0",
//rpc是否启用
"rpc-enabled": true,
//rpc主机白名单
"rpc-host-whitelist": "",
//rpc是否开启主机白名单
"rpc-host-whitelist-enabled": true,
//rpc密码
"rpc-password": "{ffe0479ff38ffb6bbe6de697313a63a5847e41eaFgNw3iaZ",
//rpc端口
"rpc-port": 9091,
//rpc访问地址
"rpc-url": "/transmission/",
//rpc用户名
"rpc-username": "transmission",
//rpc IP白名单
"rpc-whitelist": "127.0.0.1",
//rpc 是否开启IP白名单
"rpc-whitelist-enabled": true,
//速度下限(KB/s)
"speed-limit-down": 100,
//是否启用速度下限
"speed-limit-down-enabled": false,
//速度上限(KB/s)
"speed-limit-up": 100,
//是否启用速度上限
"speed-limit-up-enabled": false,
//上传数量
"upload-slots-per-torrent": 14,
//是否启用TP协议
"utp-enabled": true
}
执行加载配置文件和重启服务操作
root@raspberrypi:~# service transmission-daemon reload
root@raspberrypi:~# service transmission-daemon restart
启动Transmission进程
root@raspberrypi:~# systemctl restart transmission-daemon.service
访问web服务
我们可以使用浏览器来访问Transmission服务,格式为 主机ip(或域名)+端口(默认9091)。
例如:http://transmission.imwork.net:9091/
访问时服务器有可能提示403错误 我们可以在配置文件中关闭白名单,或者将访问者ip加入到白名单之中解决此问题。 |
成功连接后会提示输入用户名密码
分别是配置文件中rpc-username和rpc-password字段的值
成功登陆后进入下载控制台
使用上就很简单了,自己体验吧!
客户端
我们也可以使用第三方客户端进行链接。
windows系统推荐使用Transmission Remote GUI
官网:https://sourceforge.net/projects/transgui/
android系统推荐使用Transdroid
官网地址:http://www.transdroid.org/