找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
广告投放联系QQ68610888广告投放联系QQ68610888
查看: 1267|回复: 3

[N1盒子] 斐讯n1 armbian + incus + openwrt + open克拉斯

[复制链接]
发表于 2026-3-15 15:14 | 显示全部楼层 |阅读模式
本帖最后由 sanqizou 于 2026-3-15 15:25 编辑

1、刷入 armbian

镜像下载 https://github.com/ophub/amlogic-s9xxx-armbian/releases

通过写盘软件,或者 dd 写入 u 盘

找到你的 U 盘
  1. diskutil list
复制代码
卸载 U 盘
  1. diskutil unmountDisk /dev/disk2
复制代码
把 disk2 换成你实际的 U 盘编号,注意用 rdisk2 而不是 disk2,速度更快
  1. 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 盘,进入系统先按步骤初始化,然后执行
  1. armbian-install
复制代码

刷完 poweroff 关机,拔出 u 盘

开机后,可以通过 armbian-config, 设置静态 ip

2、创建虚拟网桥

参考脚本

创建 https://gist.github.com/zouzongh ... bf010bcdd04836d8628
删除https://gist.github.com/zouzongh ... eb926f2ffe3c7c014a9

3、安装 incus

  1. apt update
  2. apt install -y incus incus-client
  3. systemctl enable --now incus
复制代码

4、创建存储池
  1. incus storage create default dir
  2. incus profile device add default root disk path=/ pool=default
  3. incus profile show default
复制代码

5、创建 openwrt 容器

创建容器
  1. incus launch images:openwrt/24.10 openwrt
复制代码
桥接到虚拟网桥
  1. incus config device add openwrt eth0 nic nictype=bridged parent=br-lan name=eth0
复制代码
设置静态 ip
  1. incus file push - openwrt/etc/config/network << 'EOF'
  2. config interface 'loopback'
  3.     option device 'lo'
  4.     option proto 'static'
  5.     option ipaddr '127.0.0.1'
  6.     option netmask '255.0.0.0'
  7. config interface 'lan'
  8.     option device 'eth0'
  9.     option proto 'static'
  10.     option ipaddr '192.168.2.211'
  11.     option netmask '255.255.255.0'
  12.     option gateway '192.168.2.111'
  13.     option dns '192.168.2.111'
  14. EOF
复制代码
重启网卡
  1. incus exec openwrt -- /etc/init.d/network restart
  2. 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、安装 open克拉斯

1. 卸载 dnsmasq
2. 安装 dnsmasq-full
3. 解决读取不到随机数问题,ssh 连接 openwrt 执行
  1. sed -i 's/procd_add_jail/: \0/g' /etc/init.d/dnsmasq
  2. /etc/init.d/dnsmasq restart
  3. /etc/init.d/dnsmasq status
复制代码
4. 下载安装 https://github.com/vernesong/OpenClash/releases
5. 遇到错误 module 'luci.cbi.datatypes' not found,ssh 连接 openwrt 执行
  1. opkg install --force-reinstall luci-base luci-compat
  2. /etc/init.d/uhttpd restart
复制代码

6. 防护墙设置 接受 转发

只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
发表于 2026-3-19 00:35 | 显示全部楼层
感谢分享
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

发表于 2026-4-1 09:49 | 显示全部楼层
感谢分享~~
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

发表于 2026-4-1 15:16 | 显示全部楼层
用了好久的本论坛大佬的openwrt改版+nikki 突然就不能用了 新版本也是缺各种各样核心 折腾了fnos+istore docker还是缺少核心,关注这个备用了
只谈技术、莫论政事!(点击见详情) | 互相尊重、友善交流、切勿过度反应、玻璃心。胡乱输入灌水等操作将会被封禁ID。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /2 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2026-8-23 19:50

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 电话:13506125623

快速回复 返回顶部 返回列表