前言 openwrt 是一个自由的、兼容性好的嵌入式 linux 发行版。作为软路由玩家必备的一款神器,可以实现诸如去广告,多拨和科学上网等多种功能。本文以 openwrt 在X86平台的安装为例,介绍其部署流程。
+前言 openwrt 是一个自由的、兼容性好的嵌入式 linux 发行版。作为软路由玩家必备的一款神器,可以实现诸如去广告,多拨和科学上网等多种功能。本文介绍openwrt在各种平台上的部署流程。
选择合适的设备
无论是传统的无线路由器还是小主机都有成为openwrt路由的潜力。截止到今天,已经有20多个品牌(小米,华硕,锐捷,华三等)30多种架构(x86,ipq,bcm,mtd等)支持刷入openwrt;你可以在这个网站找到符合你预算和其他要求的,能刷机的路由器。 -选择合适的系统
+传统家用无线路由器由于主频低,内存小,并不适合作为软路由;而 NAS-软路由一体式 又有 all in boom 的风险,因此推荐X86平台作为物理机。当然,也可以采用 armbian 平台或是开发板,例如网心云老母鸡、树莓派等设备。截至本文撰写时间,二手平台上的价格不太利好:一台J1900平台的售价往往在200左右,而专门的多网口工控机价格在200到1000不等,树莓派更是成为了理财产品,需要慎重选择。选择合适的系统
除了openwrt主线外,还可以选择:
-
-
iStoreOSiStoreOS是openwrt的一个分支,iStoreOS 提供了软件中心:iStore,以及较美观的界面和docker支持,对新手体验较好。
+LEDE 高质量,更新快速,具有新特性的openwrt分支。
+
+ -
+
iStoreOS iStoreOS是openwrt的一个分支,iStoreOS 提供了软件中心:iStore,以及较美观的界面和docker支持,对新手体验较好。
-
ImmortalWrt 是一个原版openwrt的分支,中文优化好,更新也勤快,内置镜像源可以直连下载&更新。
在X86小主机上面安装OpenWrt
-无论是作为主路由或是旁路由,传统路由器由于主频低,内存小,并不适合作为软路由;而 NAS-软路由一体式 又有 all in boom 的风险,因此推荐X86平台作为物理机。当然,也可以采用 armbian 平台或是开发板,例如网心云老母鸡、树莓派等设备。截至本文撰写时间,二手平台上的价格不太利好:一台J1900平台的售价往往在200左右,而专门的多网口工控机价格在200到1000不等,树莓派更是成为了理财产品,需要慎重选择。
-准备以下工具:
+如何得到一个openwrt系统
+-
+
- 可以在恩山论坛上使用他人编译好的现成的镜像,如"高大全","精品小包"等等,但存在一定风险; +
- 可以使用官方固件下载得到一个最小化的系统,再一步步添加自己要用的包; +
- 可以使用Openwrt 在线编译或Openwrt.ai在线编译 +一个固件; +
- 可以使用GitHub action 云编译一个固件; +
- 可以在本地linux环境中进行编译。 +
X86平台安装准备:
-
一个U盘与一台双网口物理机
@@ -128,7 +138,7 @@
安装流程:
+X86平台安装流程:
1.进入PE环境:
- 打开微PE,将其安装进U盘中,安装完成后将 img 工具和 openwrt 包一起放进去; @@ -158,7 +168,7 @@
-
@@ -221,7 +231,7 @@
新版本的openwrt(24.10)已经改用APK包管理器。
参考
+🔗
- Openwrt wiki
- OpenWrt在线定制编译 diff --git a/public/page/10/index.html b/public/page/10/index.html index 87264d5..8af0c5e 100644 --- a/public/page/10/index.html +++ b/public/page/10/index.html @@ -131,7 +131,7 @@
-前言 openwrt 是一个自由的、兼容性好的嵌入式 linux 发行版。作为软路由玩家必备的一款神器,可以实现诸如去广告,多拨和科学上网等多种功能。本文以 openwrt 在X86平台的安装为例,介绍其部署流程。
+前言 openwrt 是一个自由的、兼容性好的嵌入式 linux 发行版。作为软路由玩家必备的一款神器,可以实现诸如去广告,多拨和科学上网等多种功能。本文介绍openwrt在各种平台上的部署流程。
diff --git a/public/pagefind/fragment/en_555e29c.pf_fragment b/public/pagefind/fragment/en_555e29c.pf_fragment new file mode 100644 index 0000000..c6a10f8 Binary files /dev/null and b/public/pagefind/fragment/en_555e29c.pf_fragment differ diff --git a/public/pagefind/fragment/en_8c5eaa2.pf_fragment b/public/pagefind/fragment/en_8c5eaa2.pf_fragment deleted file mode 100644 index 54d1902..0000000 Binary files a/public/pagefind/fragment/en_8c5eaa2.pf_fragment and /dev/null differ diff --git a/public/pagefind/fragment/en_9d552f1.pf_fragment b/public/pagefind/fragment/en_9d552f1.pf_fragment deleted file mode 100644 index 464943a..0000000 Binary files a/public/pagefind/fragment/en_9d552f1.pf_fragment and /dev/null differ diff --git a/public/pagefind/fragment/en_d59e71c.pf_fragment b/public/pagefind/fragment/en_d59e71c.pf_fragment new file mode 100644 index 0000000..aed3937 Binary files /dev/null and b/public/pagefind/fragment/en_d59e71c.pf_fragment differ diff --git a/public/pagefind/index/en_1867229.pf_index b/public/pagefind/index/en_1867229.pf_index new file mode 100644 index 0000000..f0a407a Binary files /dev/null and b/public/pagefind/index/en_1867229.pf_index differ diff --git a/public/pagefind/index/en_1a36e62.pf_index b/public/pagefind/index/en_1a36e62.pf_index new file mode 100644 index 0000000..7acf419 Binary files /dev/null and b/public/pagefind/index/en_1a36e62.pf_index differ diff --git a/public/pagefind/index/en_25c989e.pf_index b/public/pagefind/index/en_25c989e.pf_index new file mode 100644 index 0000000..7ad2364 Binary files /dev/null and b/public/pagefind/index/en_25c989e.pf_index differ diff --git a/public/pagefind/index/en_31bb61a.pf_index b/public/pagefind/index/en_31bb61a.pf_index deleted file mode 100644 index 39799a5..0000000 Binary files a/public/pagefind/index/en_31bb61a.pf_index and /dev/null differ diff --git a/public/pagefind/index/en_7727842.pf_index b/public/pagefind/index/en_7727842.pf_index deleted file mode 100644 index 72ce12b..0000000 Binary files a/public/pagefind/index/en_7727842.pf_index and /dev/null differ diff --git a/public/pagefind/index/en_c86b685.pf_index b/public/pagefind/index/en_c86b685.pf_index deleted file mode 100644 index 284b8ca..0000000 Binary files a/public/pagefind/index/en_c86b685.pf_index and /dev/null differ diff --git a/public/pagefind/pagefind-entry.json b/public/pagefind/pagefind-entry.json index 7c6b878..07e4743 100644 --- a/public/pagefind/pagefind-entry.json +++ b/public/pagefind/pagefind-entry.json @@ -1 +1 @@ -{"version":"1.3.0","languages":{"en":{"hash":"en_d162758b46","wasm":"en","page_count":84}}} \ No newline at end of file +{"version":"1.3.0","languages":{"en":{"hash":"en_a2c3e2cccc","wasm":"en","page_count":84}}} \ No newline at end of file diff --git a/public/pagefind/pagefind.en_a2c3e2cccc.pf_meta b/public/pagefind/pagefind.en_a2c3e2cccc.pf_meta new file mode 100644 index 0000000..2fe76b8 Binary files /dev/null and b/public/pagefind/pagefind.en_a2c3e2cccc.pf_meta differ diff --git a/public/pagefind/pagefind.en_d162758b46.pf_meta b/public/pagefind/pagefind.en_d162758b46.pf_meta deleted file mode 100644 index 74e3cf5..0000000 Binary files a/public/pagefind/pagefind.en_d162758b46.pf_meta and /dev/null differ
uci set luci.main.mediaurlbase='/luci-static/bootstrap' uci commit luci /etc/init.d/uhttpd restart
然后重新访问 Web 界面,查看是否恢复正常。
-在arm架构的硬路由上面安装OpenWrt
+Arm平台安装OpenWrt:
相比X86平台,arm架构的设备兼容性不高,不能随便找一个包就能安装。以下是一般步骤: