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

树莓派搭建bt下载机、即是安装transmission

时间:2018-09-14 17:24:31      阅读:261      评论:0      收藏:0      [点我收藏+]

标签:original   efault   form   ssi   The   erp   end   rpc   完成   

Transmission是一种BitTorrent客户端,

  • 安装:sudo apt-get install transmission-daemon

  • 给用户授权:sudo usermod -a -G pi debian-transmission

  • 设置Transmission的配置文件:sudo vim /etc/transmission-daemon/settings.json

{
    "alt-speed-down": 15,
    "alt-speed-enabled": false,
    "alt-speed-time-begin": 540,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": false,
    "alt-speed-time-end": 1020,
    "alt-speed-up": 15,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": true,
    "blocklist-url": "http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz",#可以不修改
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/home/pi/Downloads",#修改
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/home/pi/Downloads",#修改
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 50,
    "peer-port": 51413,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": true,
    "port-forwarding-enabled": true,
    "preallocation": 1,
    "prefetch-enabled": 1,
    "queue-stalled-enabled": true,
    "queue-stalled-minutes": 30,
    "ratio-limit": 2,
    "ratio-limit-enabled": false,
    "rename-partial-files": true,
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "raspberry",#修改
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "transmission",#修改
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": false,#修改
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": false,
    "script-torrent-done-filename": "",
    "seed-queue-enabled": false,
    "seed-queue-size": 10,
    "speed-limit-down": 100,
    "speed-limit-down-enabled": false,
    "speed-limit-up": 100,
    "speed-limit-up-enabled": false,
    "start-added-torrents": true,
    "trash-original-torrent-files": true,
    "umask": 0,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true#修改
}

  • 设置下载目录为用户目录下的Downloads文件夹:

"download-dir": "/home/pi/Downloads",

  • 设置未下载完成数据存放地点为Downloads文件夹:

"incomplete-dir": "/home/pi/Downloads",

  • 设置Web登陆密码为:raspberry

"rpc-password": "raspberry",

  • 设置Web登陆用户名:transmission

"rpc-username": "transmission",

  • 允许Web登陆:(设置为true)

"utp-enabled": true

  • 设置完成之后,保存setting.json文件,重新启动transmission服务:

sudo service transmission-daemon reload

  • 到这里可以在浏览器中输入你的树莓派的ip地址和端口号访问transmission的web界面了,比如你的树莓派地址是:192.168.1.10,那么在浏览器中输入:

192.168.1.10:9091

  • 登陆的用户名和密码使用配置文件中设置的内容,例子中的用户名是:transmission,密码是:raspberry。

  • 如果遇到permission问题,按照文中的下载地址,使用以下命令提升Downloads目录的权限:

sudo chmod 777 -R /home/pi/Downloads/

  • 关于 transmission 配置的详细信息请参考:EditConfigFiles。

  • 修改 transmission 用户名和密码的方法:

  • 1.先停止服务: sudo service transmission-daemon stop

  • 2.修改配置文件,下面两项分别是用户和密码,你看到这个是加密的密码,没关系直接把密码改为你想要的密码明文就可以:

  • “rpc-username”: “transmission”,
  • “rpc-password”: “{2dc2c41724aab07ccc301e97f56360cb35f8ba1fGVVrdHDX”,
  • 3.再此启动服务 :sudo service transmission-daemon start 。启动的时候 transmission 会自动把新密码加密。

  • 另外,transmission 默认监听 51413 端口,最好在路由器上做个端口转发,把这个端口转到它的 IP 地址。

技术分享图片

树莓派搭建bt下载机、即是安装transmission

标签:original   efault   form   ssi   The   erp   end   rpc   完成   

原文地址:https://www.cnblogs.com/guguobao/p/9647336.html

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