官方镜像下载
https://firmware-selector.openwrt.org/
如果您第一次接触这个,又没有好的网络基础,请下载immortalwrt
https://firmware-selector.immortalwrt.org
SHELL 输入这个命令 请不要忘记修改 111 和 wrt.img
qm importdisk 111 /var/lib/vz/template/iso/wrt.img local-lvm
安装扩容工具
25.12 之后使用 apk:
apk update
apk add parted losetup resize2fs blkid
如果这里提示下载失败,先检查 OpenWrt 的网络和 DNS 是否正常。
下载并加载扩容脚本
cd /root
wget -U "" -O expand-root.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=3"
chmod +x expand-root.sh
./expand-root.sh
然后运行根分区扩容脚本:
sh /etc/uci-defaults/70-rootpt-resize
按官方流程,这会扩展分区并触发重启;之后系统会继续扩展文件系统。重启期间先不要强制关闭虚拟机,等 OpenWrt 重新启动完成即可。
Argon(阿尔贡)主题 也就是天蓝白云主题
cd /tmp
apk update
wget -O luci-theme-argon-2.4.7-r1.apk \
"https://gh-proxy.com/https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.4.7/luci-theme-argon-2.4.7-r1.apk"
wget -O luci-app-argon-config-2.4.7-r1.apk \
"https://gh-proxy.com/https://github.com/jerrykuku/luci-theme-argon/releases/download/v2.4.7/luci-app-argon-config-2.4.7-r1.apk"
luci-theme-argon 是主题本身;luci-app-argon-config 是可选的主题设置界面。
安装
apk update
apk add --allow-untrusted \
/tmp/luci-theme-argon-2.4.7-r1.apk \
/tmp/luci-app-argon-config-2.4.7-r1.apk
正文完