DD-WRT上运行Optware最简单的方法,在华硕N16上测试通过
这是一个最新的,最简单的在路由上使用Optware的方法, 建议你使用一个带usb的路由,以及最新的DD-Wrt版本。
USB版本的用户,请不要用JFFS2,禁用它。另外有些服务很占CPU资源,比如Twonky,使用它们请确保你的硬件足够强大。
下面以DD-WRT的Mega版本为例,演示如何安装Optware。
首先,准备一个usb存储器,可以是u盘,可以是移动硬盘。格式化城ext3格式。因为这个格式支持最好。
分区格式化可以用linux系统,或者xp下用Paragon.Partition.Manager.Professional。
在Services -> USB把所有support都enable。
Disk Mount Point设置成/opt,保存重启。
telnet或者ssh进入路由,用putty工具。
执行mount,可以见到如下提示
root@DD-WRT:~#mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext3 (rw)
root@DD-WRT:~#
证明硬盘已经挂在上。
用以下命令安装Optware
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware
这个过程大概需要10-20分钟。
安装好后过一分钟重启路由。
启动好后一分钟后登陆ssh或者telnet
登陆后用mount查看磁盘挂载情况,用df -h查看磁盘容量。
执行service命令可以看到当前服务运行情况
service命令可带参数见下:
service - show all services (enabled/disabled)
service <service name> - if “status” parameter is supported, will show service status, otherwise will show whether specified service is running
service <service name> on - Enable the script, allowing execution (chmod +x /opt/etc/init.d/S<servicescript>)
service <service name> off - Disable the script, disallowing execution (chmod -x /opt/etc/init.d/S<servicescript>)
service <service name> start - Start/execute the script, as long as service is enabled (i.e. permissions allow execution)
service <service name> stop Stop/kill the script, if the service is running
service <service name> restart Stop/kill the script, if the service is running, and then start/execute the script, as long as service is enabled
service <service name> <parameter> - Run the script with the parameter.
我们首先要启用xinetd,这个打印服务需要
service xinetd on
service xinetd start
Twonky很占cpu,禁用之
service twonky stop
service twonky off
OK,到此为止,Optware安装完成,试试打印,bt呗~
要用打印功能,要开启Watchprinter
service watchprinter on
service watchprinter start
试用结果:
无线打印10M的PDF文件完美,BT下载全速3M/s一夜无死机,内存占用90M/128M