华硕路由器N66U安装Transmission
1、第一步、格式化U盘成ext3,进入华硕固件的WEB GUI页面,开启jffs空间。注意要二步操作,首先Enable JFFS partition,应用;然后再Format JFFS partition at next boot选是,应用,重启路由。
第二步、telnet 192.168.1.1
第三步、安装entware
命令:entware-setup.sh
选择1
2、第四步、安装nano编辑器
命令:opkg install nano
3、第五步、安装Transmission
命令
opkg install transmission-daemon
opkg install transmission-web
4、第六步、建立文件夹
命令
mkdir /mnt/sda1/Torrent/
mkdir /mnt/sda1/Torrent/Incomplete
mkdir /mnt/sda1/Torrent/Watch
mkdir /mnt/sda1/Torrent/Completed
第七步、停止Transmission
命令
/opt/etc/init.d/S88transmission stop
5、第八步、修改路径。
命令
nano -w /opt/etc/transmission/settings.json
用光标找到"download-dir": "incomplete-dir": "watch-dir":三个开头的,修改后面的路径成以下这样。
"download-dir": "/mnt/sda1/Torrent/Completed",
"incomplete-dir": "/mnt/sda1/Torrent/Incomplete",
"watch-dir": "/mnt/sda1/Torrent/Watch",
按ctrl+x退出,y保存,回车
6、第九步:防火墙设置
命令:
nano -w /jffs/scripts/firewall-start
加入以下语句。
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT
iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT
按ctrl+x退出,y保存,回车
7、第十步、启用
命令:
chmod a+rx /jffs/scripts/firewall-start
/jffs/scripts/firewall-start
/opt/etc/init.d/S88transmission start