您的位置: 首页 » 技术小记 » transmission-daemon

transmission-daemon

作者:liyangyijie / 时间:February 2, 2015 /分类:技术小记 / 标签:none /阅览次数:4,002

大陆某云放出了一个抵金券,买个 2M带宽/512内存/1core/青岛 来试试水。

反正是debian系统,没啥难度,就是直接粗暴装上这个。

apt-get install transmission-daemon

接下来要停止运行状态:

 /etc/init.d/transmission-daemon stop

这个一定要停止,否则接下来的修改不会生效。

nano /etc/transmission-daemon/settings.json

看到一堆自定义的参数,为了简单生效,只需要修改几条就算了。

"download-dir": "/down",  #下载放置绝对路径
"incomplete-dir": "/down/temp",#下载临时文件路径
"rpc-authentication-required": true,#验证选项打开
"rpc-enabled": true, #打开网页访问
"rpc-password": "123",#123是自定义密码,这里直接输入明文即可
"rpc-port": 8932,#这个是访问端口设置 自定义一个
"rpc-username": "1234",#这个用户名 自定义
"rpc-whitelist-enabled": false,#白名单取消 方便公网访问

修改完成之后,就需要权限问题了,设定为755就够了,如果还有其他网盘程序要想直接删除权限的话,可以777

mkdir -p /down/temp
chmod -R 755 /down
chown -R debian-transmission:debian-transmission /down
 /etc/init.d/transmission-daemon start

接下来就直接访问地址例如:

http://公网IP:8932

接下来就是上传种子了


当然,这里是为了PT,所以呢还要得把DHT关掉,如果是公共的bt的话,为了防止迅雷吸血可以选择要求加密。


黑名单的话,国外有脚本可以快速制作出来。

https://github.com/walshie4/Ultimate-Blocklist

apt-get install python2.7 python-pip unzip zip -y
wget https://github.com/walshie4/Ultimate-Blocklist/archive/master.zip
unzip master.zip
cd Ultimate-Blocklis*
pip install -r requirements.pip
python UltimateBlockList.py

然后在当前目录下会出现,这个就是我们需要的黑名单实体了,挂到某些网站上,输入网址,更新名单就可以了。

上一篇 : DMM RSS 下一篇 : Anyconnect for win 客户端

添加新评论