Skip to content

Commit 6ca0df7

Browse files
committed
update
1 parent 9c87f06 commit 6ca0df7

10 files changed

Lines changed: 386 additions & 4 deletions

File tree

archetypes/default.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ date: {{ .Date }}
44
draft: true
55
description: ""
66
showHero: false
7+
series: []
8+
series_order: 0
79
categories: []
8-
tags: []
10+
tags:
11+
-
912
slug: ""
1013
---

config/_default/languages.zh-CN.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ title = "真理工坊"
1919
2020
image = "img/avata.png"
2121
imageQuality = 96
22-
headline = "不那么伟大的计算机科学家正在学习如何改造世界。"
23-
bio = "less is more."
22+
headline = "潦草的出发胜过完美的准备"
23+
bio = "不那么伟大的计算机科学家正在学习如何改造世界。"
2424
links = [
2525
{ email = "mailto:[email protected]" },
2626
# { link = "https://link-to-some-website.com/" },

content/posts/2025-12-23-deploy-storj-node-under-gfw-and-cg-nat/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ date: 2025-12-23T22:36:13+08:00
44
draft: false
55
description: ""
66
showHero: false
7+
series: [设置storj node]
8+
series_order: 1
9+
categories: []
10+
tags:
11+
- storj
12+
- 容器
13+
- proxy
14+
- Linux
715
slug: "deploy-storj-node-under-gfw-and-cg-nat"
816
---
917

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
title: "家用 Ubuntu 规划"
3+
date: 2026-02-12T19:01:33+08:00
4+
draft: true
5+
description: ""
6+
showHero: false
7+
series: [家用 Ubuntu 系统]
8+
series_order: 1
9+
categories: []
10+
tags: []
11+
slug: "family-ubuntu-plan"
12+
---
13+
14+
- 弹出广告页面
15+
- 加速球
16+
- 非常多的托盘自启项目
17+
18+
勘察当前计算机使用的软件。
19+
20+
**浏览器**
21+
- edge浏览器
22+
- 2345浏览器
23+
- 谷歌浏览器
24+
- 火狐浏览器
25+
26+
Ubuntu可以使用火狐、Edge、Chrome作为替代。为了兼容性,默认使用Edge。
27+
28+
换浏览器
29+
- 书签
30+
- 密码
31+
- 启动页
32+
- 下载路径
33+
- 插件
34+
35+
**管家类**
36+
- 电脑管家
37+
- 2345管家
38+
39+
直接去掉。
40+
41+
42+
**AI类**
43+
- 元宝
44+
45+
用Wine或者直接用网页版。
46+
47+
**通信类**
48+
- QQ
49+
- 微信
50+
- 邮箱
51+
- 企业微信
52+
- 腾讯会议
53+
54+
腾讯统一用electron后,这些基本都有Linux版本了。
55+
56+
**办公文档类**
57+
- Microsoft 365
58+
- WPS
59+
- adobe pdf
60+
61+
用WPS 365和libre Office代替。
62+
63+
**网盘类**
64+
- Onedrive
65+
- 百度网盘
66+
67+
百度网盘有Linux客户端。
68+
69+
**娱乐**
70+
- 爱奇艺
71+
- 抖音
72+
- 优酷
73+
- 腾讯视频
74+
- QQ music
75+
- UVR5人声分离
76+
- 格式工厂
77+
78+
视频平台用网页版。QQ音乐有Linux客户端。剩下的用Wine或者找平替软件,例如格式工厂的平替MystiQ。
79+
80+
**开发类**
81+
- clash verge
82+
- VScode
83+
84+
原生Linux客户端。
85+
86+
**杂项**
87+
- 搜狗输入法
88+
- 向日葵
89+
- 压缩软件(Bandizip、2345好压)
90+
- 英伟达显卡面板
91+
- 萤石 studio
92+
93+
压缩软件:peazip
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
title: "家用 Ubuntu 存储"
3+
date: 2026-02-12T23:41:20+08:00
4+
draft: true
5+
description: ""
6+
showHero: false
7+
series: [家用 Ubuntu 系统]
8+
series_order: 2
9+
categories: []
10+
tags: []
11+
slug: ""
12+
---
13+
14+
电脑为120GB的SSD和1TB的HDD,将数据存在机械硬盘上可以显著降低SSD的负载,即满足应用需要的高速读写,又满足数据的大量存储需求。
15+
16+
## 获取硬盘信息
17+
18+
需要获取硬盘的文件系统和UUID
19+
20+
查找当前设备有什么硬盘
21+
22+
```sh
23+
lsblk
24+
```
25+
26+
列出指定硬盘分区的UUID和文件系统。记下ntfs和uuid的值
27+
28+
```sh
29+
lsblk -d -fs /dev/<location (example: sda2)>
30+
```
31+
32+
33+
34+
## 预处理挂载位置
35+
36+
创建一个空的文件夹,供硬盘挂载。为了防止硬盘未挂载时往目录内部写入数据,导致挂载后被覆盖,直接禁止所有人读写该目录。挂载后会继承硬盘的权限,可以正常使用。
37+
38+
```sh
39+
# 1. 创建目录
40+
sudo mkdir -p /mnt/hdd
41+
# 2. 设置所有权为root用户
42+
sudo chown root:root /mnt/hdd
43+
# 禁止在里访问内部内容
44+
sudo chmod 000 /mnt/hdd
45+
```
46+
47+
## 自动挂载
48+
49+
```sh
50+
sudo nano /etc/fstab
51+
```
52+
53+
```sh
54+
UUID=<your HD UUID> /mnt/<directory name> <FSTYPE> defaults 0 2
55+
```
56+
57+
58+
## 映射文件夹
59+
60+
迁移原文件夹
61+
62+
```sh
63+
mv /home/<user>/.config/QQ /mnt/hdd/Apps/
64+
mv /home/<user>/.xwechat /mnt/hdd/Apps/
65+
mv /home/<user>/.config/qqmusic /mnt/hdd/Apps/
66+
mv /home/gz/.config/QQ /mnt/hdd/Apps/
67+
mv /home/gz/.xwechat /mnt/hdd/Apps/
68+
mv /home/gz/.config/qqmusic /mnt/hdd/Apps/
69+
```
70+
71+
新建软连接
72+
73+
```sh
74+
ln -s /mnt/hdd/Apps/QQ /home/<user>/.config/QQ
75+
ln -s /mnt/hdd/Apps/WeChat /home/<user>/.xwechat
76+
```
77+
78+
```sh
79+
ln -s /mnt/hdd/home/gz/pub /home/gz/公共
80+
ln -s /mnt/hdd/home/gz/Videos /home/gz/视频
81+
ln -s /mnt/hdd/home/gz/tmpl /home/gz/模板
82+
ln -s /mnt/hdd/home/gz/Pictures /home/gz/图片
83+
ln -s /mnt/hdd/home/gz/Documents /home/gz/文档
84+
ln -s /mnt/hdd/home/gz/Downloads /home/gz/下载
85+
ln -s /mnt/hdd/home/gz/Music /home/gz/音乐
86+
ln -s /mnt/hdd/home/gz/Desktop /home/gz/桌面
87+
```
88+
89+
90+
```sh
91+
mv 下载 公共 图片 文档 桌面 模板 视频 音乐 /mnt/hdd/home/vincent/
92+
```
93+
94+
```sh
95+
ln -s /mnt/hdd/home/vincent/pub /home/vincent/公共
96+
ln -s /mnt/hdd/home/vincent/Videos /home/vincent/视频
97+
ln -s /mnt/hdd/home/vincent/tmpl /home/vincent/模板
98+
ln -s /mnt/hdd/home/vincent/Pictures /home/vincent/图片
99+
ln -s /mnt/hdd/home/vincent/Documents /home/vincent/文档
100+
ln -s /mnt/hdd/home/vincent/Downloads /home/vincent/下载
101+
ln -s /mnt/hdd/home/vincent/Music /home/vincent/音乐
102+
ln -s /mnt/hdd/home/vincent/Desktop /home/vincent/桌面
103+
```
104+
105+
## 参考文献
106+
107+
[How do I setup static mount via /etc/fstab for Linux? - Storj Docs](https://storj.dev/node/faq/linux-static-mount)
108+
109+
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
---
2+
title: "迁移至mihomo"
3+
date: 2026-02-13T18:12:24+08:00
4+
draft: false
5+
description: ""
6+
showHero: false
7+
series: [设置storj node]
8+
series_order: 2
9+
categories: []
10+
tags:
11+
- storj
12+
slug: "migrate-to-mihomo"
13+
---
14+
15+
查看架构,下载mihomo,如果选择二进制包要自行处理systemd的守护进程,见[官方文档](https://wiki.metacubex.one/startup/service/)
16+
17+
下载mihomo deb安装包。
18+
19+
使用apt包管理器安装
20+
21+
```bash
22+
sudo apt install ./mihomo-linux-arm64-vx.xx.xx.deb
23+
```
24+
25+
或者使用dpkg包管理器安装
26+
27+
```bash
28+
sudo dpkg -i mihomo-linux-arm64-vx.xx.xx.deb
29+
```
30+
31+
`/etc/mihomo`路径下创建`config.yaml`,写入下面的配置。所有用`<尖括号>`包裹的都需要自行修改。
32+
33+
```yaml
34+
proxy-providers:
35+
<provider-name>:
36+
url: "<机场给你的url>"
37+
type: http
38+
interval: 86400
39+
health-check: {enable: true,url: "https://www.gstatic.com/generate_204", interval: 300}
40+
override:
41+
additional-prefix: "[<前缀>]"
42+
proxies:
43+
- name: "direct"
44+
type: direct
45+
udp: true
46+
mixed-port: 7890
47+
ipv6: true
48+
allow-lan: true
49+
unified-delay: false
50+
tcp-concurrent: true
51+
external-controller: 0.0.0.0:9090
52+
external-ui: ui
53+
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
54+
secret: "<你设置的密码,用于控制面板登录>"
55+
geodata-mode: true
56+
geox-url:
57+
geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
58+
geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
59+
mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"
60+
asn: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb"
61+
find-process-mode: strict
62+
global-client-fingerprint: chrome
63+
profile:
64+
store-selected: true
65+
store-fake-ip: true
66+
sniffer:
67+
enable: true
68+
sniff:
69+
HTTP:
70+
ports: [80, 8080-8880]
71+
override-destination: true
72+
TLS:
73+
ports: [443, 8443]
74+
QUIC:
75+
ports: [443, 8443]
76+
skip-domain:
77+
tun:
78+
enable: true
79+
stack: mixed
80+
device: Meta
81+
dns-hijack:
82+
- "any:53"
83+
auto-route: true
84+
auto-redirect: true
85+
auto-detect-interface: true
86+
dns:
87+
enable: true
88+
ipv6: true
89+
enhanced-mode: fake-ip
90+
fake-ip-filter:
91+
- "+.storj.io"
92+
- "*"
93+
- "+.lan"
94+
- "+.local"
95+
default-nameserver:
96+
- tls://223.5.5.5
97+
- tls://223.6.6.6
98+
nameserver:
99+
- https://doh.pub/dns-query
100+
- https://dns.alidns.com/dns-query
101+
proxy-groups:
102+
- name: storj
103+
type: select
104+
include-all: true
105+
exclude-type: direct
106+
rules:
107+
- PROCESS-NAME,frpc,DIRECT
108+
- DOMAIN-KEYWORD,storj,storj
109+
- DOMAIN-SUFFIX,storj.io,storj
110+
- DST-PORT,7777,storj
111+
```
112+
113+
这个配置主要的功能是允许frpc直连,并将发往storj的流量代理。
114+
115+
设置mihomo开机自启
116+
117+
```bash
118+
sudo systemctl enable mihomo.service
119+
```
120+
121+
启动mihomo服务
122+
123+
```bash
124+
sudo systemctl start mihomo.service
125+
```
126+
127+
停止mihomo服务
128+
129+
```bash
130+
sudo systemctl stop mihomo.service
131+
```
132+
133+
查看mihomo服务状态
134+
135+
```bash
136+
sudo systemctl status mihomo.service
137+
```
138+
139+
关闭mihomo开机自启
140+
141+
```bash
142+
sudo systemctl disable mihomo.service
143+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "Family Ubuntu Remote"
3+
date: 2026-02-13T09:30:10+08:00
4+
draft: true
5+
description: ""
6+
showHero: false
7+
series: []
8+
series_order: 0
9+
categories: []
10+
tags: []
11+
slug: ""
12+
---

0 commit comments

Comments
 (0)