樹莓派進階之路 (038) - P2P 文件下載機

硬件要求:python

  樹莓派開發板git

  USB外接硬盤github

一. Togetherweb

1. 更新安裝程序json

1 sudo apt-get update
2 sudo apt-get upgrade
3 sudo apt-get install python-software-properties  //樹莓派不用添加repo
4 sudo add-apt-repository ppa:deluge-team/ppa   //樹莓派不用添加repo,直接執行下面兩步

2. 安裝Deuge:vim

sudo apt-get install deluge deluged deluge-web

3. 配置後臺啓動bash

sudo vim /etc/rc.local   //在文件中添加:nohup deluge-web --fork &

4. 登錄:(地址:http://樹莓派ip地址:8112,默認密碼deluge)ssh

http://192.168.0.10:8112

二. 安裝transmissionsocket

1. 安裝transmission性能

sudo apt install transmission-daemon

2. 中止transmission

sudo /etc/init.d/transmission-daemon stop

3. 配置transmission

sudo vim /etc/transmission-daemon/settings.json
"rpc-password": "123",                    //主要是這行修改密碼
"rpc-whitelist": "*",                        //主要是這行修改白名單

4. 啓動transmission

sudo /etc/init.d/transmission-daemon start

5. 訪問(訪問地址:http://樹莓派ip地址:9091,默認用戶名transmission,可在settings.json修改)

http://192.168.0.10:9091

6. 安裝transmission面板

wget https://github.com/ronggang/transmission-web-control/raw/master/release/tr-control-easy-install.sh
sudo bash tr-control-easy-install.sh

三. Rtorrent

1. 安裝rtorrent和irssi(直接用一鍵腳本)

sudo bash -c "$(wget --no-check-certificate -qO - https://raw.githubusercontent.com/arakasi72/rtinst/master/rtsetup)"
sudo rtinst --ssh-default --rutorrent-stable  //安裝穩定版,ssh端口號不改變

2. 修改配置

sudo vim ~/.rtorrent.rc

3. 重啓

rt restart

4. 更換版本

sudo rtupdate

5. 訪問地址(http://樹莓派ip地址/rutorrent/或https://樹莓派ip地址/rutorrent/)

http://192.168.0.10/rutorrent/
或https://192.168.0.10/rutorrent/

6. 參考配置(因爲樹莓派性能通常,配置參考)

 1 throttle.global_down.max_rate.set = 0
 2 throttle.global_up.max_rate.set = 0
 3 throttle.max_downloads.global.set = 300
 4 throttle.max_uploads.global.set = 300
 5 throttle.min_peers.normal.set = 99
 6 throttle.max_peers.normal.set = 100
 7 throttle.min_peers.seed.set = -1
 8 throttle.max_peers.seed.set = -1
 9 throttle.max_downloads.set = 50
10 throttle.max_uploads.set = 50
11 trackers.numwant.set = 100
12 network.max_open_files.set = 600
13 network.max_open_sockets.set = 999
14 network.http.max_open.set = 99
15 pieces.memory.max.set = 800M
16 network.http.dns_cache_timeout.set = 25
相關文章
相關標籤/搜索