斐讯n1 armbian + incus + openwrt + openclash
1、 刷入 armbian
镜像下载 https://github.com/ophub/amlogic-s9xxx-armbian/releases
通过写盘软件,或者dd写入 u盘
找到你的 U 盘
diskutil list
卸载 U 盘
diskutil unmountDisk /dev/disk2
把
disk2换成你实际的 U 盘编号,注意用rdisk2而不是disk2,速度更快
sudo dd if=~/Downloads/Armbian_26.02.0_amlogic_s905d_trixie_6.12.74_server_2026.03.01.img of=/dev/rdisk2 bs=1m
插入 u盘 ,进入系统先按步骤初始化,然后执行
armbian-install
刷完 poweroff 关机,拔出 u盘
开机后,可以通过 armbian-config, 设置静态 ip
2、创建虚拟网桥
参考脚本 https://glog.loc.343700.xyz/post/armbian-chuang-jian-wang-qiao
3、安装 incus
# 更新包列表
apt update
# 安装 Incus 核心包
apt install -y incus incus-client
# 启动服务
systemctl enable --now incus
4、创建存储池
# 1. 创建目录存储池 (简单快速)
incus storage create default dir
# 2. 将存储池添加到 default profile
incus profile device add default root disk path=/ pool=default
# 3. 验证配置
incus profile show default
5、创建 openwrt 容器
创建容器
incus launch images:openwrt/24.10 openwrt
桥接到虚拟网桥
incus config device add openwrt eth0 nic \
nictype=bridged \
parent=br-lan \
name=eth0
设置静态 ip
incus file push - openwrt/etc/config/network << 'EOF'
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option device 'eth0'
option proto 'static'
option ipaddr '192.168.2.211'
option netmask '255.255.255.0'
option gateway '192.168.2.111'
option dns '192.168.2.111'
EOF
重启网卡
incus exec openwrt -- /etc/init.d/network restart
incus exec openwrt -- ip a show eth0
6、安装主题
下载 https://github.com/jerrykuku/luci-theme-argon/releases/tag/v2.4.3
software 搜索 luci-i18n-base-zh-cn 安装中文语言
7、安装 openclash
- 卸载 dnsmasq
- 安装 dnsmasq-full
- 解决读取不到随机数问题,ssh 连接 openwrt 执行
sed -i 's/procd_add_jail/: \0/g' /etc/init.d/dnsmasq /etc/init.d/dnsmasq restart /etc/init.d/dnsmasq status - 下载安装 https://github.com/vernesong/OpenClash/releases
- 遇到错误 module 'luci.cbi.datatypes' not found,ssh 连接 openwrt 执行
opkg install --force-reinstall luci-base luci-compat /etc/init.d/uhttpd restart - 防护墙设置
接受转发