From 5833cf2c6dac514a19db1235a85d58bdcd186c6c Mon Sep 17 00:00:00 2001 From: FlintyLemming Date: Thu, 22 Sep 2022 14:46:25 +0800 Subject: [PATCH] Add HomeLab Category --- content/categories/HomeLab/_index.md | 9 +++ .../index.zh-cn.md | 72 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 content/categories/HomeLab/_index.md create mode 100644 content/post/8e7cc0b5b40540faac8f561bec460a72/index.zh-cn.md diff --git a/content/categories/HomeLab/_index.md b/content/categories/HomeLab/_index.md new file mode 100644 index 0000000..1fd41da --- /dev/null +++ b/content/categories/HomeLab/_index.md @@ -0,0 +1,9 @@ +--- +title: "Home Lab" +description: "Homo Lab" +slug: "home-lab" +image: "https://img.mitsea.com/blog/categories/home-lab.png?x-oss-process=style/ImageCompress" +style: + background: "#ffb336" + color: "#fff" +--- diff --git a/content/post/8e7cc0b5b40540faac8f561bec460a72/index.zh-cn.md b/content/post/8e7cc0b5b40540faac8f561bec460a72/index.zh-cn.md new file mode 100644 index 0000000..332ee64 --- /dev/null +++ b/content/post/8e7cc0b5b40540faac8f561bec460a72/index.zh-cn.md @@ -0,0 +1,72 @@ ++++ +author = "FlintyLemming" +title = "【归档】ClashR 路由器安装" +date = "2019-11-11" +description = "" +categories = ["HomeLab", "Network"] +tags = ["Clash"] +image = "https://img.mitsea.com/blog/posts/2020/05/%E5%8E%9F%E7%94%9F%E7%94%A8%E6%88%B7%E7%9A%84%20iQOO%20%E7%94%9F%E5%AD%98%E6%8C%87%E5%8D%97/title.jpg?x-oss-process=style/ImageCompress" ++++ + +## 下载内核 + +[frainzy1477/luci-app-clash](https://github.com/frainzy1477/luci-app-clash/releases) + +在这里下载 Clash 的 luci app,你可以把它想象成一个壳子,不包含内核。一般下载 xxx-2_all.ipk 那个文件。 + +[frainzy1477/clashr](https://github.com/frainzy1477/clashr/releases/tag/v0.16.3) + +在这里根据自己的处理器下载内核文件。 + +## 安装 + +1. 首先需要将 ipk 文件放到路由器中,这里使用 scp,默认就放在 tmp 文件夹下 + + ```bash + scp <路由器的登陆账号>@<路由器的本地IP地址>:<放入的路径> + ``` + + 就像下面这样 + + ```jsx + scp /Users/flintylemming/Downloads/luci-app-clash_1.2.7-2_all.ipk [root@192.168.1.1](mailto:root@192.168.1.1):/tmp + ``` + + 之后提示输入密码,输入即可 + + ![](https://img.mitsea.com/blog/posts/2019/11/ClashR%20%E8%B7%AF%E7%94%B1%E5%99%A8%E5%AE%89%E8%A3%85/1.png?x-oss-process=style/ImageCompress) + +2. 然后通过 SSH 登陆后安装(当然也可以用网页端的那个终端,注意登陆一定要用 root 登陆,用户名不能置空) + + ```bash + ssh root@<路由器IP地址> + ``` + + 通过 cd 和 ls 的命令,定位和找到刚才传入的安装包 + + ```bash + cd /tmp + ls + ``` + + ![](https://img.mitsea.com/blog/posts/2019/11/ClashR%20%E8%B7%AF%E7%94%B1%E5%99%A8%E5%AE%89%E8%A3%85/2.png?x-oss-process=style/ImageCompress) + +3. 使用 opkg 命令安装,名字太长可以使用通配符 + + ```bash + opkg install luci-app-clash* + ``` + + ![](https://img.mitsea.com/blog/posts/2019/11/ClashR%20%E8%B7%AF%E7%94%B1%E5%99%A8%E5%AE%89%E8%A3%85/3.png?x-oss-process=style/ImageCompress) + +4. 安装完毕后,刷新网页,在服务下就能看到 Clash 了 + + ![](https://img.mitsea.com/blog/posts/2019/11/ClashR%20%E8%B7%AF%E7%94%B1%E5%99%A8%E5%AE%89%E8%A3%85/4.png?x-oss-process=style/ImageCompress) + +5. 这只是个壳子,实际上你点开客户端,内核里是没得选的,需要我们放入内核 + + ![](https://img.mitsea.com/blog/posts/2019/11/ClashR%20%E8%B7%AF%E7%94%B1%E5%99%A8%E5%AE%89%E8%A3%85/5.png?x-oss-process=style/ImageCompress) + +6. 通过同样的方法安装刚才下载的内核 ipk 文件,之后即可选择内核,至此安装完毕。 + +> Photo by [NASA](https://unsplash.com/@nasa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/global?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) \ No newline at end of file