官網地址: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