OpenWrt 项目是一个针对嵌入式设备的 Linux 操作系统。
固件选择及扩容:
openwrt国内镜像源:
1.中科大:
sed -i 's/downloads.openwrt.org/mirrors.ustc.edu.cn\/openwrt/g' /etc/opkg/distfeeds.conf
2.清华源:
sed -i 's_https\?://downloads.openwrt.org_https://mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf
中文包:
23.5版本:
luci-i18n-base-zh-cn
luci-i18n-firewall-zh-cn
luci-i18n-opkg-zh-cn
24.10版本以后:
luci-i18n-base-zh-cn
luci-i18n-firewall-zh-cn
luci-i18n-package-manager-zh-cn
https://mirror-03.infra.openwrt.org/releases/24.10.0/packages/x86_64/luci
指定网关、DNS:
tag:proxy,3,192.168.10.2
所有proxy标签的设备都分配网关为192.168.10.2
tag:proxy,6,192.168.10.2
所有proxy标签的设备都分配DNS为192.168.10.2
安装argon主题:
https://github.com/jerrykuku/luci-theme-argon/blob/master/README_ZH.md
命令:
apk命令 | opkg命令 | 说明 |
---|---|---|
apk update | opkg update | 刷新包源 |
apk add pkg | opkg install pkg | 安装指定包 |
apk del pkg | opkg remove pkg | 卸载指定包 |
链式命令: |
$ opkg update && opkg install dnsmasq-full
$ apk --update-cache add dnsmasq-full