wifidog.pro 发表于 2015-2-2 14:09:48

OPENWRT安装wifidog

需要学会用ssh登录路由器用linux命令查看。ps 命令查看当前系统运行的进程信息free 命令查看内存使用和swap挂载情况ls 查看目录和文件cd 进入退出目录vi 查看编辑配置文件安装命令:#opkg update#opkg install nanouci set network.lan.ipaddr=使用pppoe设置Shell代码uci set network.wan.proto=pppoe    //设置wan口类型为pppoeuci set network.wan.username=[上网帐户]uci set network.wan.password=[上网密码]    //这两行设置pppoe用户名和密码如果要挂在上级路由下面,就需要进行下面的设置Shell代码uci set network.wan.proto=none    //关掉wanuci set network.lan.gateway=[上级路由ip]    //网关指向上级路由uci set network.lan.dns=[上级路由ip]    //dns指向上级路由uci set dhcp.lan.ignore=1    //关掉lan的dhcp最后对无线网络进行配置Shell代码uci set wireless.@wifi-device.disabled=0    //打开无线uci set wireless.@wifi-device.txpower=17    //设置功率为17dbm 太高会烧无线模块uci set wireless.@wifi-device.channel=6    //设置无线信道为6uci set wireless.@wifi-iface.mode=ap    //设置无线模式为apuci set wireless.@wifi-iface.ssid=[自己设置SSID]    //设置无线SSIDuci set wireless.@wifi-iface.network=lan    //无线链接到lan上uci set wireless.@wifi-iface.encryption=psk2    //设置加密为WPA2-PSKuci set wireless.@wifi-iface.key=[密码]    //设置无线密码提交应用配置Shell代码uci commit    //应用/etc/init.d/network restart    //重启网络服务安装luci管理界面Shell代码opkg update // 更新软件列表opkg list-installed // 查看已安装软件opkg install luci // 安装LUCIopkg install luci-i18n-chinese // 支持中文luci-app-firewall - 0.10.0-1luci-i18n-english - 0.10.0-1luci-lib-core - 0.10.0-1luci-lib-ipkg - 0.10.0-1luci-lib-lmo - 0.10.0-1luci-lib-nixio - 0.10.0-1luci-lib-sys - 0.10.0-1luci-lib-web - 0.10.0-1luci-mod-admin-core - 0.10.0-1luci-mod-admin-full - 0.10.0-1luci-proto-core - 0.10.0-1luci-proto-ppp - 0.10.0-1luci-sgi-cgi - 0.10.0-1luci-theme-base - 0.10.0-1luci-theme-openwrt - 0.10.0-1即可完成LUCI的安装。输入以下命令开启支持web服务的uhttpd,并设置其为自启动:Shell代码/etc/init.d/uhttpd enable # 开机自启动/etc/init.d/uhttpd start # 启动uhttpd- Wifidog你可以尝试执行以下命令安装Wifidog:opkg update # Optionalopkg install wifidog--sftp安装opkg updateopkg install vsftpd openssh-sftp-server/etc/init.d/vsftpd enable/etc/init.d/vsftpd startSSH工具:1.WINSCP2.putty中文版 中文的使用的难度相对低一点3.熟练一些的用户推荐 SecureCRT操作多台设备的时候,十分的方便。这个自行搜索安装吧~引用自:www.wifidog.pro
页: [1]
查看完整版本: OPENWRT安装wifidog