diff --git a/content/awesome-arch-linux.md b/content/awesome-arch-linux.md index 65efe51..a053020 100644 --- a/content/awesome-arch-linux.md +++ b/content/awesome-arch-linux.md @@ -365,6 +365,63 @@ sudo powerprofilesctl set balanced # 切换到“省电”模式 sudo powerprofilesctl set power-saver ``` +## 其他性能优化 + +``` +Profile‑sync‑daemon +将浏览器配置文件和缓存挂载到内存,退出时再写回磁盘: + +sudo pacman -S profile-sync-daemon +systemctl --user enable --now psd.service + +Systemd‑oomd +启用 systemd 自带的内存超载保护守护进程: + +sudo pacman -S systemd-oomd +sudo systemctl enable --now systemd-oomd + +Bpftune +加载 BPF 性能调优脚本(网络、I/O、调度等): + +sudo pacman -S bpftune +sudo systemctl enable --now bpftune + +Ananicy‑Cpp +根据预设规则给游戏、多媒体和后台任务打优先级标签: + +sudo pacman -S ananicy-cpp +sudo systemctl enable --now ananicy-cpp +``` + +## 常用命令 + +``` +更新系统:sudo pacman -Syu + +重新安装所有软件包:sudo pacman -Qq | sudo pacman -S - + +Reset keyrings: + +sudo rm -rf /etc/pacman.d/gnupg +sudo pacman-key --init +sudo pacman-key --populate archlinux + +移除数据库锁:sudo rm -f /var/lib/pacman/db.lck + +清理软件包缓存:sudo pacman -Sc (或 -Scc 完全清空) + +删除孤立软件包:sudo pacman -Rns $(pacman -Qtdq) + +Install Gaming packages:sudo pacman -S steam wine lutris dxvk + +排序镜像: + +sudo pacman -S reflector +sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist + +更改 DNS 服务器:编辑 /etc/systemd/resolved.conf 中的 DNS=1.1.1.1 8.8.8.8,然后 sudo systemctl restart systemd-resolved +``` + ## 在Arch Linux上安装Docker diff --git a/content/awesome-openwrt.md b/content/awesome-openwrt.md index fb89bd1..912e8a9 100644 --- a/content/awesome-openwrt.md +++ b/content/awesome-openwrt.md @@ -407,6 +407,19 @@ opkg list-upgradable | grep luci- | cut -f 1 -d ' ' | xargs opkg upgrade # 如果要更新所有软件,包括 OpenWRT 内核、固件等 opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade + +# 固件版本号 +vim /etc/os-release + +# 脚本&脚注 +vim /etc/openwrt_release + +# ASCII字符画 +vim /etc/banner + +# 登录脚本显示 +vim /etc/profile +vim /vim /etc/profile.d/30-sysinfo.sh ``` ## 常用仓库 diff --git a/public/awesome-arch-linux/index.html b/public/awesome-arch-linux/index.html index fa66e0b..e799343 100644 --- a/public/awesome-arch-linux/index.html +++ b/public/awesome-arch-linux/index.html @@ -448,6 +448,57 @@ # 切换到“省电”模式 sudo powerprofilesctl set power-saver +
Profile‑sync‑daemon
+将浏览器配置文件和缓存挂载到内存,退出时再写回磁盘:
+
+sudo pacman -S profile-sync-daemon
+systemctl --user enable --now psd.service
+
+Systemd‑oomd
+启用 systemd 自带的内存超载保护守护进程:
+
+sudo pacman -S systemd-oomd
+sudo systemctl enable --now systemd-oomd
+
+Bpftune
+加载 BPF 性能调优脚本(网络、I/O、调度等):
+
+sudo pacman -S bpftune
+sudo systemctl enable --now bpftune
+
+Ananicy‑Cpp
+根据预设规则给游戏、多媒体和后台任务打优先级标签:
+
+sudo pacman -S ananicy-cpp
+sudo systemctl enable --now ananicy-cpp
+
+更新系统:sudo pacman -Syu
+
+重新安装所有软件包:sudo pacman -Qq | sudo pacman -S -
+
+Reset keyrings:
+
+sudo rm -rf /etc/pacman.d/gnupg
+sudo pacman-key --init
+sudo pacman-key --populate archlinux
+
+移除数据库锁:sudo rm -f /var/lib/pacman/db.lck
+
+清理软件包缓存:sudo pacman -Sc (或 -Scc 完全清空)
+
+删除孤立软件包:sudo pacman -Rns $(pacman -Qtdq)
+
+Install Gaming packages:sudo pacman -S steam wine lutris dxvk
+
+排序镜像:
+
+sudo pacman -S reflector
+sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
+
+更改 DNS 服务器:编辑 /etc/systemd/resolved.conf 中的 DNS=1.1.1.1 8.8.8.8,然后 sudo systemctl restart systemd-resolved
+
一般推荐在qemu虚拟机中安装,这里仅做示例:
sudo pacman -S docker
diff --git a/public/awesome-openwrt/index.html b/public/awesome-openwrt/index.html
index 9a5685d..e6b9922 100644
--- a/public/awesome-openwrt/index.html
+++ b/public/awesome-openwrt/index.html
@@ -501,6 +501,19 @@
# 如果要更新所有软件,包括 OpenWRT 内核、固件等
opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
+
+# 固件版本号
+vim /etc/os-release
+
+# 脚本&脚注
+vim /etc/openwrt_release
+
+# ASCII字符画
+vim /etc/banner
+
+# 登录脚本显示
+vim /etc/profile
+vim /vim /etc/profile.d/30-sysinfo.sh
src/gz kwrt_core https://dl.openwrt.ai/releases/24.10/targets/x86/64/6.6.83
diff --git a/public/pagefind/fragment/en_1bc6910.pf_fragment b/public/pagefind/fragment/en_1bc6910.pf_fragment
new file mode 100644
index 0000000..42dfd8e
Binary files /dev/null and b/public/pagefind/fragment/en_1bc6910.pf_fragment differ
diff --git a/public/pagefind/fragment/en_3a978e6.pf_fragment b/public/pagefind/fragment/en_3a978e6.pf_fragment
deleted file mode 100644
index b5fdc7f..0000000
Binary files a/public/pagefind/fragment/en_3a978e6.pf_fragment and /dev/null differ
diff --git a/public/pagefind/fragment/en_90f4559.pf_fragment b/public/pagefind/fragment/en_90f4559.pf_fragment
new file mode 100644
index 0000000..1016387
Binary files /dev/null and b/public/pagefind/fragment/en_90f4559.pf_fragment differ
diff --git a/public/pagefind/fragment/en_e78a56d.pf_fragment b/public/pagefind/fragment/en_e78a56d.pf_fragment
deleted file mode 100644
index 57fb17d..0000000
Binary files a/public/pagefind/fragment/en_e78a56d.pf_fragment and /dev/null differ
diff --git a/public/pagefind/index/en_19717c7.pf_index b/public/pagefind/index/en_19717c7.pf_index
new file mode 100644
index 0000000..57bb23a
Binary files /dev/null and b/public/pagefind/index/en_19717c7.pf_index differ
diff --git a/public/pagefind/index/en_2b926b0.pf_index b/public/pagefind/index/en_2b926b0.pf_index
deleted file mode 100644
index d947bf8..0000000
Binary files a/public/pagefind/index/en_2b926b0.pf_index and /dev/null differ
diff --git a/public/pagefind/index/en_4ab17da.pf_index b/public/pagefind/index/en_4ab17da.pf_index
deleted file mode 100644
index 555e635..0000000
Binary files a/public/pagefind/index/en_4ab17da.pf_index and /dev/null differ
diff --git a/public/pagefind/index/en_4add406.pf_index b/public/pagefind/index/en_4add406.pf_index
new file mode 100644
index 0000000..29035eb
Binary files /dev/null and b/public/pagefind/index/en_4add406.pf_index differ
diff --git a/public/pagefind/index/en_5924bdd.pf_index b/public/pagefind/index/en_5924bdd.pf_index
new file mode 100644
index 0000000..4d496f1
Binary files /dev/null and b/public/pagefind/index/en_5924bdd.pf_index differ
diff --git a/public/pagefind/index/en_98eed27.pf_index b/public/pagefind/index/en_98eed27.pf_index
deleted file mode 100644
index 9e1ff80..0000000
Binary files a/public/pagefind/index/en_98eed27.pf_index and /dev/null differ
diff --git a/public/pagefind/index/en_bd8eb4d.pf_index b/public/pagefind/index/en_bd8eb4d.pf_index
new file mode 100644
index 0000000..9039096
Binary files /dev/null and b/public/pagefind/index/en_bd8eb4d.pf_index differ
diff --git a/public/pagefind/index/en_ddbabf6.pf_index b/public/pagefind/index/en_ddbabf6.pf_index
deleted file mode 100644
index 4caabc1..0000000
Binary files a/public/pagefind/index/en_ddbabf6.pf_index and /dev/null differ
diff --git a/public/pagefind/index/en_f2895ea.pf_index b/public/pagefind/index/en_f2895ea.pf_index
new file mode 100644
index 0000000..0b19d1b
Binary files /dev/null and b/public/pagefind/index/en_f2895ea.pf_index differ
diff --git a/public/pagefind/index/en_f5907bc.pf_index b/public/pagefind/index/en_f5907bc.pf_index
deleted file mode 100644
index 2749c03..0000000
Binary files a/public/pagefind/index/en_f5907bc.pf_index and /dev/null differ
diff --git a/public/pagefind/pagefind-entry.json b/public/pagefind/pagefind-entry.json
index 5f15137..12e1d57 100644
--- a/public/pagefind/pagefind-entry.json
+++ b/public/pagefind/pagefind-entry.json
@@ -1 +1 @@
-{"version":"1.3.0","languages":{"en":{"hash":"en_153c70164b","wasm":"en","page_count":98}}}
\ No newline at end of file
+{"version":"1.3.0","languages":{"en":{"hash":"en_149cec42a2","wasm":"en","page_count":98}}}
\ No newline at end of file
diff --git a/public/pagefind/pagefind.en_149cec42a2.pf_meta b/public/pagefind/pagefind.en_149cec42a2.pf_meta
new file mode 100644
index 0000000..d0397f3
Binary files /dev/null and b/public/pagefind/pagefind.en_149cec42a2.pf_meta differ
diff --git a/public/pagefind/pagefind.en_153c70164b.pf_meta b/public/pagefind/pagefind.en_153c70164b.pf_meta
deleted file mode 100644
index 17185f4..0000000
Binary files a/public/pagefind/pagefind.en_153c70164b.pf_meta and /dev/null differ