vault backup: 2024-02-05 21:02:46

This commit is contained in:
2024-02-05 21:02:46 +08:00
parent 826115a1a5
commit 2e49f8e80c
3 changed files with 100 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
aliases:
atlas: "[[Atlas/Card|Card]]"
created: 2023-07-27 14:59:53
modified: 2024-02-05 19:15:53
modified: 2024-02-05 20:51:59
tags:
- OpenWrt
Title: OpenWrt部署
@@ -46,7 +46,9 @@ Title: OpenWrt部署
## OpenClash
- [安装包下载](https://github.com/vernesong/OpenClash/releases)
- [[Clash订阅]]
- [机场](https://ssr.wtf/)
- [规则集](https://github.com/Loyalsoldier/clash-rules)
- [订阅文件](https://op.pkugsm.cf/docs/%E8%96%AF%E6%9D%A1.yaml)
### 插件设置
@@ -202,6 +204,8 @@ Title: OpenWrt部署
## Frp 内网穿透
在【系统-软件包】中安装 ipk 和 luci 界面
### 基本设置
- 服务器pkugsm.cf
@@ -237,8 +241,36 @@ Title: OpenWrt部署
## uHTTPd
iStoreOS 中已默认开启,目前我用于存放 tvbox 的订阅
iStoreOS 中已默认开启,目前我用于存放 tvbox 的订阅文件,文件的本地路径为 `/www/doc/TVBOX.txt` 订阅链接为 `192.168.1.100/doc/TVBOX.txt`
## Rclone
在【系统-软件包】中安装 ipk 和 luci 界面
去[官网](https://rclone.org/downloads/) 下载 Windows 版本的进行配置,因为配置过程中有一步需要调用 GUI 网页来鉴权,直接在 OpenWrt 命令行中无法完成这一步,因此在 Windows 上操作后再将配置文件导入 OpenWrt 中,配置文件路径为 `/root/.config/rclone`
### Windows 配置流程(以 OneDrive 为例)
- 输入 `rclone config` 开始配置
- 输入 `n` 创建一个新配置
- 根据要挂载的内容输入编号
- client_id 和 client_secret 留空
- 输入 `1` 选择全球区
- 输入 `n` 不编辑高级配置
- 输入 `y` 进行自动配置
- 输入 `1` 选择连接类型
- 输入 `y` 确认生成
- 输入 `q` 退出配置
- 资源管理器打开 `C:\Users\Administrator\AppData\Roaming\rclone` 将配置文件上传到 OpenWrt
### 挂载 OneDrive 并设置开机自动挂载
- 输入 `mkdir /mnt/OneDrive` 来创建用于挂载的文件夹
- 输入 `rclone mount onedrive:/ /mnt/onedrive --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000` 完成挂载
- 将 [[Rclone开机自动挂载]] 中的代码保存为 `rcloned` 并上传到 OpenWrt
- 在【系统-启动项-本地启动脚本】中将 `bash /etc/init.d/rcloned start` 这行代码添加进去
##
## 贴吧