openwrt

小米路由器 r3g 刷机简记

重置路由 小米路由绑定路由器 获取开发版系统 获取root 密码 和 miwifi_ssh.bin bread 获取 https://www.right.com.cn/forum/thread-2640204-1-1.html https://www.right.com.cn/forum/thread-2527199-1-1.html https://blog.csdn.net/tyhao

openwrt 一键更新所有软件 opkg upgrade all packages

openwrt 后台更新需要一个个的点,有点麻烦 通过 ssh 进入 路由器 然后执行以下命令就可以了 ``` opkg update opkg list-upgradable | awk -F ‘ – ‘ ‘{print $1}’ | xargs opkg upgrade ``` ``` opkg update opkg upgrade $(opkg list-upgradable | aw

openwrt 安装 php 运行环境

opkg install php7 php7-cgi uci add_list uhttpd.main.interpreter='.php=/usr/bin/php-cgi'uci commit uhttpd/etc/init.d/uhttpd restartopkg install php7-mod-curl php7-mod-pdo php7-mod-pdo-sqlite

openwrt 报错:module ‘luci.cbi‘ not found

报错信息如下```bash/usr/lib/lua/luci/dispatcher.lua:1334: module 'luci.cbi' not found: no field package.preload['luci.cbi'] no file './luci/cbi.lua' no file '/usr/share/lua/luci/cbi.lua' no file '/u

openwrt 使用nginx http_auth_basic 来进行 用户认证配置

将路由器通过frp 代理到哇完后,一些内容不想被其他人知道,但是又想让部分人看到。可以通过 nginx的http auth模块。只有输入正确的用户密码才允许访问web内容。```nginx basic auth指令语法: auth_basic string | off;默认值: auth_basic off;配置段: http, server, locati