码迷,mamicode.com
首页 > 其他好文 > 详细

树莓派进阶之路 (038) - P2P 文件下载机

时间:2018-05-08 16:24:08      阅读:468      评论:0      收藏:0      [点我收藏+]

标签:/etc   white   upload   进阶   for   time   cert   smi   add   

硬件要求:

  树莓派开发板

  USB外接硬盘

一. Together

1. 更新安装程序

sudosudo apt- apt-get update
get updat sudo apt-get upgrade
sudo apt-get install python-software-properties  //树莓派不用添加repo
sudo add-apt-repository ppa:deluge-team/ppa   //树莓派不用添加repo,直接执行下面两步

2. 安装Deuge:

sudo apt-get install deluge deluged deluge-web

3. 配置后台启动

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

4. 登陆:(地址:http://树莓派ip地址:8112,默认密码deluge)

http://192.168.0.10:8112

二. 安装transmission

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

 

树莓派进阶之路 (038) - P2P 文件下载机

标签:/etc   white   upload   进阶   for   time   cert   smi   add   

原文地址:https://www.cnblogs.com/jikexianfeng/p/9005902.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!