极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8351|回复: 0

让Cubieboard成为BT下载机(一)

[复制链接]
发表于 2014-8-4 20:55:13 | 显示全部楼层 |阅读模式
linux的BT下载软件有许多,现在NAS中用比较多的是transmission,transmission可以下载BT也可以下Pt,安装方法也很简单。安装如下:
  • 安装transmission-daemon
apt-get update
apt-get install transmission-daemon
  • 首先启动transmission-daemon生成配置文件
transmission-daemon
  • 结束transmission-daemon进程,否则之后的配置不会生效
killalll transmission-daemon
  • 修改位于.config目录下的配置文件,开启远程和密码认证
nano  .config/transmission-daemon/settings.json

修改"rpc-authentication-required": true,-->如果网页远程连接不想输密码的可以改成false
修改"rpc-password": "你的程序密码",
修改"rpc-username": "你的程序远程用户名"
修改"rpc-whitelist-enabled": false,-->这里一定要为false,否则不能通过网页远程连接,

  • 修改位于etc目录下的配置文件
vi /etc/transmission-daemon/settings.json
修改"download-dir": "/root/Downloads",-->下载完成后,文件存放位置
修改"incomplete-dir": "/root/Downloads",
修改"incomplete-dir-enabled": true,
修改"rpc-authentication-required": true,
修改"rpc-enabled": true,-->这个要为true,否则不能远程连接
修改"rpc-authentication-required": true,
修改"rpc-password": "你的程序密码",-->直接输入就可以,启动transmission时,会自动加密
修改"rpc-username": "你的程序远程用户名"
修改"rpc-whitelist-enabled": false,
修改"rpc-port": 9091-->网页的远程连接端口,默认为9091,可以自己修改,

  • 至此配置文件修改完成,启动transmission-daemon
transmission-daemon

个人的transmission配置
{
    "alt-speed-down": 500,
    "alt-speed-enabled": true,
    "alt-speed-time-begin": 480,
    "alt-speed-time-day": 127,
    "alt-speed-time-enabled": true,
    "alt-speed-time-end": 1425,
    "alt-speed-up": 32,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": true,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": false,
    "download-dir": "/mnt/data/Downloads",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    "encryption": 0,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/mnt/data/Downloads",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-limit-global": 240,
    "peer-limit-per-torrent": 60,
    "peer-port": 50275,
    "peer-port-random-high": 65535,
    "peer-port-random-low": 49152,
    "peer-port-random-on-start": false,
    "peer-socket-tos": "default",
    "pex-enabled": false,
    "port-forwarding-enabled": false,
    "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": "{53dc27f91e2f8105b729517853bf80fb6a8f7b34dmvymw2E",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "admin",
    "rpc-whitelist": "*.*.*.*",
    "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": false,
    "umask": 18,
    "upload-limit": 100,
    "upload-limit-enabled": 0,
    "upload-slots-per-torrent": 14,
    "utp-enabled": false
}

原文作者:唯一月
原文链接:http://forum.cubietech.com/forum ... &extra=page%3D2

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-3-29 21:09 , Processed in 0.051109 second(s), 17 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表