路由器脱机下载.doc_第1页
路由器脱机下载.doc_第2页
路由器脱机下载.doc_第3页
路由器脱机下载.doc_第4页
路由器脱机下载.doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

0、路由为WRT54G v4,8M Flash和64M RAM,刷固件DD-WRT v24-sp2 (10/10/09) mega,扩展SD/MMC MOD或USB口,建议用USB接口接硬盘,因为SD口为GPIO仿SPI时序,所以CPU占用极高,极易造成路由重启。添加USB口:SD扩展:升级内存和FLASH:(网络论坛上有不少)1、准备优盘或是移动硬盘,按自己需求格式化,安装软件的分区必须为ext3或2,安装好WINSCP2、DD-WRT版本DD-WRT v24-sp2 (10/10/09) mega,打开SSH管理功能,开启jffs2功能,启用usb支持,选择磁盘挂载点为mnt3、加载优盘或硬盘:提前建好jffs和opt目录,在dd的管理诊断命令里面,加入以下语句: umount /jffs umount /opt mount -bind /mnt/jffs /jffs mount -bind /jffs/opt /opt 重启路由,如果一切顺利的话在DD的WEB管理页面上应该看到JFFS2的内容变成了你挂载的硬盘的容量。4、下载opt.tar.gz文件:/p/oleg-for-mss-base/downloads/list 通过WINSCP把opt.tar.gz文件传到/jffs目录里面 下载samba安装文件,打开/feeds/optware/oleg/cross/stable, 在里面找文件名为samba_*.*.*-*_mipsel.ipk的文件下载后用winscp传至/jffs目录5、telnet到路由器,进入/jffs目录解压opt.tar.gz文件到当前目录:tar zxvf opt.tar.gz6、挂载opt到/opt:mount -o bind /jffs/opt /opt7、输入:opt/bin/ipkg update8、安装samba:opt/bin/ipkg install samba_*.*.*-*_mipsel.ipk9、设置SAMBA3:用winscp打开opt/etc/samba/smb.conf,没有这个文件就自己建一个,内容为globalbind interfaces only = yesinterfaces = /24workgroup = WORKGROUPserver string = Linksys WRT54Gguest account = rootsecurity = shareload printers = nosocket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVEnetbios name = bh3nvnbrowseable = yesdns proxy = noguest ok = yesguest only = nolog level = 1max log size = 100encrypt passwords = yespreserve case = yesshort preserve case = yesdos charset = UTF-8unix charset = UTF-8display charset = UTF-8wins support = yestime server = yesos level = 255local master = yesdomain master = yespreferred master = yeshosts allow = /24jffspath = /jffsbrowseable = yeswritable = yesmmcpath = /mmcbrowseable = yeswritable = yestorrentpath = /mnt/torrentbrowseable = yeswritable = yesDownloadspath = /mnt/downloadsbrowseable = yeswritable = yes以上ip地址按自己路由器修改,用winscp打开opt/etc/init.d/S08samba文件將 samba_active=0 改成 samba_active=1保存退出10、启动SAMBA3输入opt/etc/init.d/S08samba系统提示:Starting nmbd:Starting smbd:这样samba就启动了11、安装rTorrent和Screen输入opt/bin/ipkg install rtorrent输入opt/bin/ipkg install screen12、用winscp打开/jffs/opt/etc/rtorrent.conf文件,清除原来内容后直接把下面内容复制后贴进去scgi_port = :5000min_peers = 40max_peers = 200max_uploads = 15port_range = 51777-51780use_udp_trackers = yesdht = ondht_port = 6885umask = 0000peer_exchange = yesdownload_rate = 0upload_rate = 30check_hash = noencryption = allow_incoming,enable_retry,prefer_plaintextdirectory =/mnt/downloadssession = /mnt/torrent/sessionschedule = watch_directory,5,5,load_start=/mnt/torrent/*.torrentschedule = untied_directory,5,5,stop_untied=schedule = ratio,30,60,stop_on_ratio=5encoding_list = UTF-8split_file_size = 2146435072然后建好以上所需的目录13、启动rTorrent:输入/opt/bin/rtorrent -n -o import=/opt/etc/rtorrent.conf14、安装lighttpd,WEB界面控制必须得到lighttpd和php的支持输入opt/bin/ipkg install lighttpd编辑 /jffs/opt/etc/lighttpd/lighttpd.conf修改server.modules = ( mod_access, mod_fastcgi, mod_scgi )在最后部添加:scgi.server = (/RPC2 =( =(host = ,port = 5000,check-local = disable)把# server.event-handler = freebsd-kqueue # needed on OS X修改成server.event-handler = poll否则可能web页面有问题telnet端输入opt/etc/init.d/S80lighttpd提示成功后在浏览器地址栏输入http:/ip地址:8081/提示lighttpd server is running.说明lighttpd运行成功要实现lighttpd和rtorrent的开机自动运行,请在DD的管理-命令中添加如下启动命令:/opt/bin/rtorrent -n -o import=/opt/etc/rtorrent.confopt/etc/init.d/S80lighttpd restart15、安装PHP输入opt/bin/ipkg install php如果提示有个bzip2没有安装完成,与busybox-links冲突。解决办法如下:输入opt/bin/ipkg remove busybox再输入opt/bin/ipkg remove busybox-links然后再输入opt/bin/ipkg install php16、安装PHP-fcgi输入opt/bin/ipkg install php-fcgi安装完成后编辑一个文件名为info.php文件,内容为放到/jffs/opt/share/www目录,然后再浏览器中输入http:/ip地址:8081/info.php显示php version图形界面表示安装成功17、到/p/rutorrent/,下载rtorrent-2.8.tar.gz在电脑上用winrar解压后,把rtorrent文件夹放到/jffs/opt/share/www目录18、编辑 /opt/etc/php.ini在extension=xxxx很多的地方添加一行extension=pdo_sqlite.so19、然后再浏览器输入http:/路由器ip地址

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论