Ubuntu 14.04 Sever安装Transmission笔记

软件·服务器 楚盟 500℃ 0评论

在老左博客QQ群里问,Linux下哪个程序下载BT好使,追忆过去推荐Transmission,他们都是老玩家推荐的肯定不会错,于是乎开始在Ubuntu下折腾Transmission安装配置,这个程序也是第一次用,看了很多文档目前还有点晕头转向,不过正常运行是木有问题的了,这里把基础安装笔记分享出来给需要折腾Linux下载BT的小伙伴们一起玩玩,少走弯路;

安装命令

sudo apt-get install transmission-daemon

此时返回的结果告诉我分配的端口是9091,本机IP是192.168.5.230,web登录地址就是http://192.168.5.230:9091,先不管直接浏览器访问此时返回403错误信息如下:

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.

大意是配置文件不正确,应该正确调试方能正常访问;
那么就先停止Transmission

sudo service transmission-daemon stop

接下来编辑Transmissio配置文件

sudo vim /etc/transmission-daemon/settings.json
{
    "alt-speed-down": 50,
    "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": 50,
    "bind-address-ipv4": "0.0.0.0",
    "bind-address-ipv6": "::",
    "blocklist-enabled": false,
    "blocklist-url": "http://www.example.com/blocklist",
    "cache-size-mb": 4,
    "dht-enabled": true,
    "download-dir": "/var/lib/transmission-daemon/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/debian-transmission/Downloads",
    "incomplete-dir-enabled": false,
    "lpd-enabled": false,
    "max-peers-global": 200,
    "message-level": 2,
    "peer-congestion-algorithm": "",
    "peer-id-ttl-hours": 6,
    "peer-limit-global": 200,
    "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": 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": "{2d6fbc4ac3beecf74c893fe7448f48aeeb368110hwOZ5F5E",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "transmission",
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": true,
    "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": true
}

接下来修改settings.json配置文件

第14行修改为“dht-enabled”: false,
第15行是下载目录修改成你自己的“download-dir”: “/home/downloads”,
第20行修改为“encryption”: 2,
第49行修改自定义的密码“rpc-password”: “123456”,
第52行修改成自定义的登录账号名称“rpc-username”: “5yun”,
第54行修改为“rpc-whitelist-enabled”: false,

修改完配置文件后,启动Transmission

sudo service transmission-daemon start

还木有完啊,继续…………

cd
mkdir torrent
sudo chmod -R 775 ./torrent
sudo usermod -a -G transmission root
sudo chgrp -R transmission ./torrent/

PS:特别需要注意下载目录用户组一定得是transmission才行,之前我搞错了导致下载出现问题;

终于完了…..transmission安装好麻烦啊……………….

转载请注明:楚盟博客 » Ubuntu 14.04 Sever安装Transmission笔记

发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址