TA的每日心情 | 衰 2014-5-17 19:39 |
---|
签到天数: 5 天 [LV.2]偶尔看看I
普通用户
|
楼主 |
发表于 2010-3-9 13:36:22
|
显示全部楼层
本帖最后由 p_abing 于 2010-9-22 21:18 编辑
QNAP TS-419P组建RAID5后重建TRANSMISSION!
Raid5下的安装教程:
1.telnet 到你的NAS。
2.首先我们要先在线升级ipkg包的最新内容,输入下面的指令:
[~] # ipkg update
(注意:需要在NAS上设置DNS,我通过路由器,设置DNS为路由器地址:如192.168.1.1)。
3.升级完成后,开始在线安装transmission,目前ipkg已经更新transmission到2.04的版本(2010.09.21)了。
4.输入下面的命令:
[~] # ipkg install transmission
5.安装完成后我们要配置一个transmission的启动文件,输入如下面的命令:
[~] # vi /share/MD0_DATA/.qpkg/Optware/bin/transmission.sh
6.在文件中输入下面的内容:
/share/MD0_DATA/.qpkg/Optware/bin/transmission-daemon -g /share/Qdownload/transmission/.config/ -T -w /share/Qdownload/transmission/
(以上内容不换行)这里的MD0_DATA是RAID5的盘符。
提示:
但是我“5、6”两步中遇到Vi编辑问题。所以通过下载windows版本的VIM,在windows下对transmission.sh进行编辑,然后通过网上邻居将transmission.sh直接复制到Qdownload目录下后,用cp命令将文件复制到/share/HDA_DATA/.qpkg/Optware/bin下。
事先,在windows下通过Vim建立:transmission.sh,
输入(不换行):/share/MD0_DATA/.qpkg/Optware/bin/transmission-daemon -g /share/Qdownload/transmission/.config/ -T -w /share/Qdownload/transmission/
然后将transmission.sh复制到/Qdownload/下,
输入命令:
[~] # cp /Qdownload/transmission.sh /share/MD0_DATA/.qpkg/Optware/bin/
7.编辑完成保存后,要修改这个文件为可执行属性,输入:
[~] # chmod +x /share/MD0_DATA/.qpkg/Optware/bin/transmission。sh
8.然后就可以到/share/HDA_DATA/.qpkg/Optware/bin/目录下去启动transmission了:
[/share/MD0_DATA/.qpkg/Optware/bin] # ./transmission.sh
9.启动完成后,还不会产生配置文件,所以我们要先停一下transmission,直接 ps –ef找到transmission的进程Kill掉,如kill 1394,这时系统会在/share/MD0_DATA/Qdownload/transmission/.config/下,
创建一些transmission的配置文件,我们要修改settings.json文件。
提示:
但是我第9步中同样遇到Vi编辑问题。所以仍使用windows版本的VIM对settings.json进行编辑,将其复制到windows下对编辑后再复制回去,通过网上邻居直接进入/share/MD0_DATA/Qdownload/transmission/.config/目录,将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,
"dht-enabled": true,
"download-dir": "/share/Qdownload/transmission/",
"encryption": 0,
"incomplete-dir": "/root/Downloads",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"lpd-enabled": false,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": true,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 2.0000,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": false,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "登录密码",
"rpc-port": 9091,
"rpc-username": "你自己的登录名,默认是空白的",
"rpc-whitelist": "127.0.0.1",
"rpc-whitelist-enabled": false, 你需要远程管理的,建议关闭白名单,输入false或0
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"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-slots-per-torrent": 14
}
备注:
文本中的0和1的含义:0-false 1-true。
|
|