官网地址:https://transmissionbt.com/java
咱们要安装transmission-daemon版本才可以让transmission进程在后台执行。android
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)git
{ //下载目录 "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 }
执行加载配置文件和重启服务操做github
root@raspberrypi:~# service transmission-daemon reload root@raspberrypi:~# service transmission-daemon restart
root@raspberrypi:~# systemctl restart transmission-daemon.service
咱们能够使用浏览器来访问Transmission服务,格式为 主机ip(或域名)+端口(默认9091)。web
例如:http://transmission.imwork.net:9091/json
访问时服务器有可能提示403错误vim 403: Forbidden Unauthorized IP Address. Either disable the IP address whitelist or add your address to it. If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries. If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details. 咱们能够在配置文件中关闭白名单,或者将访问者ip加入到白名单之中解决此问题。windows |
成功链接后会提示输入用户名密码浏览器
分别是配置文件中rpc-username和rpc-password字段的值服务器
成功登录后进入下载控制台
使用上就很简单了,本身体验吧!
咱们也能够使用第三方客户端进行连接。
windows系统推荐使用Transmission Remote GUI
官网:https://sourceforge.net/projects/transgui/
android系统推荐使用Transdroid