Files
my-vault/00_Inbox/2026-01-07.md
T

125 lines
4.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-01-07
## Capture
### [[kepanoobsidian-skills Claude Skills for Obsidian]]
安装文档有问题,需要手动安装
[[AI Agent Systems Architectures, Applications, and Evaluation]]
### Adaption of Agentic AI
```url
### github .com/pat-jj/Awesome-Adaptation-of-Agentic-AI/blob/main/paper.pdf
```
[[ZeroLuawesome-nanobanana-pro 🚀 An awesome list of curated Nano Banana pro prompts and examples. Your go-to resource for mastering prompt engineering and exploring the creative potential of the Nano banana pro(Nano banana 2) AI image model.]]
### New Clash Config for Openwrt
在 OpenWrt 上安装 Nikki(即 MihomoTProxy 的现代版本)主要有两种方法:**通过 OPKG 软件包管理器安装(推荐)** 和 **手动上传 IPK 包安装**
以下是详细的分步安装指南:
### 准备工作
1. **确认架构**:你需要知道你的路由器 CPU 架构(如 `x86_64`, `aarch64_generic`, `mips_24kc` 等),以便下载对应的核心文件。
2. **更新软件源**:在执行任何安装命令前,务必更新软件包列表。
```bash
opkg update
```
---
### 方法一:使用 OPKG 在线安装(推荐)
如果你的 OpenWrt 固件已经添加了第三方软件源(如 ImmortalWrt 自带源),或者你想添加 Nikki 的官方源,这是最方便的方法。
1. **添加公钥和软件源**
SSH 登录到路由器,执行以下命令(以 `x86_64` 为例,其他架构请替换 URL 中的架构名):
```bash
# 下载公钥
wget https://downloads.nikki-org.io/key-builds.pub -O /etc/opkg/keys/key-builds.pub
# 添加软件源 (请将 x86_64 替换为你设备的架构)
echo "src/gz nikki https://downloads.nikki-org.io/snapshots/x86_64/generic/packages" >> /etc/opkg/customfeeds.conf
# 更新列表
opkg update
```
2. **安装插件**
```bash
opkg install nikki
```
*系统会自动处理依赖关系并安装。*
---
### 方法二:手动下载 IPK 安装(离线/手动)
如果无法通过源安装,可以手动下载文件上传安装。
#### 1. 下载必要文件
你需要下载两个主要文件:
* **Nikki 插件本体** (`luci-app-nikki` 或 `nikki`): 这是 Web 界面和控制脚本。
* **Mihomo 核心** (`mihomo`): 这是代理程序的二进制核心。
前往 [Nikki Release 页面](https://github.com/nikkinikki-org/OpenWrt-nikki/releases) 下载最新版 `.ipk` 文件。
#### 2. 安装依赖(关键步骤)
Nikki 依赖一些系统组件,必须先安装。SSH 执行:
```bash
opkg update
opkg install kmod-nft-tproxy kmod-nft-socket kmod-tun iptables-nft ip-full yq-go
```
*注意:如果是旧版 OpenWrt(21.02 及以下),可能需要安装 `iptables-mod-tproxy` 等旧版依赖,建议使用 OpenWrt 23.05 或更高版本。*
#### 3. 上传并安装
1. 使用工具(如 WinSCP 或 SCP 命令)将下载好的 `.ipk` 文件上传到路由器的 `/tmp` 目录。
2. 执行安装命令:
```bash
cd /tmp
opkg install mihomo_*.ipk # 先安装核心
opkg install nikki_*.ipk # 后安装插件
```
---
### 方法三:手动替换/更新核心(可选)
如果你安装好插件后发现核心版本太旧,或者需要特定版本,可以手动替换核心。
1. **下载核心**:去 [Mihomo GitHub Releases](https://github.com/MetaCubeX/mihomo/releases) 下载对应架构的 `mihomo-linux-xxx.gz` 文件。
2. **解压并重命名**:解压得到二进制文件,重命名为 `mihomo`。
3. **上传替换**
* 上传到 `/usr/bin/` 目录(或者插件设置中指定的路径)。
* 赋予执行权限:
```bash
chmod +x /usr/bin/mihomo
```
4. **重启服务**:在网页端重启 Nikki 插件。
---
### 安装后检查
安装完成后,刷新 OpenWrt 网页后台(LuCI),你应该能在 **"服务 (Services)"** 菜单下看到 **"Nikki"** 或 **"Mihomo"**。
**常见报错处理:**
* **缺少依赖**:如果安装时提示 `kmod-xxx not found`,说明你的固件内核版本与软件源不匹配,或者固件精简了该模块。这种情况下通常需要更换固件或自行编译固件。
* **核心无法启动**:检查是否下载了错误的 CPU 架构核心,或核心文件没有执行权限 (`chmod +x`)。
安装完成后,即可按照上一条回答中的步骤导入订阅并使用。
## Questions
<!-- What am I curious about today? -->
-
## Insights
<!-- What did I learn or realize? -->
-
## Connections
<!-- Links to other notes or ideas -->
-
## For Tomorrow
<!-- What needs follow-up? -->
-
---
*End of day: Ask Claude Code to review and find connections*