mirror of
https://github.com/Dichgrem/Blog.git
synced 2025-07-31 17:09:30 -04:00
update:arch
This commit is contained in:
@ -365,6 +365,63 @@ sudo powerprofilesctl set balanced
|
|||||||
# 切换到“省电”模式
|
# 切换到“省电”模式
|
||||||
sudo powerprofilesctl set power-saver
|
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
|
## 在Arch Linux上安装Docker
|
||||||
|
|
||||||
|
@ -407,6 +407,19 @@ opkg list-upgradable | grep luci- | cut -f 1 -d ' ' | xargs opkg upgrade
|
|||||||
|
|
||||||
# 如果要更新所有软件,包括 OpenWRT 内核、固件等
|
# 如果要更新所有软件,包括 OpenWRT 内核、固件等
|
||||||
opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
|
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
|
||||||
```
|
```
|
||||||
## 常用仓库
|
## 常用仓库
|
||||||
|
|
||||||
|
@ -448,6 +448,57 @@
|
|||||||
</span><span># 切换到“省电”模式
|
</span><span># 切换到“省电”模式
|
||||||
</span><span>sudo powerprofilesctl set power-saver
|
</span><span>sudo powerprofilesctl set power-saver
|
||||||
</span></code></pre>
|
</span></code></pre>
|
||||||
|
<h2 id="qi-ta-xing-neng-you-hua">其他性能优化</h2>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>Profile‑sync‑daemon
|
||||||
|
</span><span>将浏览器配置文件和缓存挂载到内存,退出时再写回磁盘:
|
||||||
|
</span><span>
|
||||||
|
</span><span>sudo pacman -S profile-sync-daemon
|
||||||
|
</span><span>systemctl --user enable --now psd.service
|
||||||
|
</span><span>
|
||||||
|
</span><span>Systemd‑oomd
|
||||||
|
</span><span>启用 systemd 自带的内存超载保护守护进程:
|
||||||
|
</span><span>
|
||||||
|
</span><span>sudo pacman -S systemd-oomd
|
||||||
|
</span><span>sudo systemctl enable --now systemd-oomd
|
||||||
|
</span><span>
|
||||||
|
</span><span>Bpftune
|
||||||
|
</span><span>加载 BPF 性能调优脚本(网络、I/O、调度等):
|
||||||
|
</span><span>
|
||||||
|
</span><span>sudo pacman -S bpftune
|
||||||
|
</span><span>sudo systemctl enable --now bpftune
|
||||||
|
</span><span>
|
||||||
|
</span><span>Ananicy‑Cpp
|
||||||
|
</span><span>根据预设规则给游戏、多媒体和后台任务打优先级标签:
|
||||||
|
</span><span>
|
||||||
|
</span><span>sudo pacman -S ananicy-cpp
|
||||||
|
</span><span>sudo systemctl enable --now ananicy-cpp
|
||||||
|
</span></code></pre>
|
||||||
|
<h2 id="chang-yong-ming-ling">常用命令</h2>
|
||||||
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>更新系统:sudo pacman -Syu
|
||||||
|
</span><span>
|
||||||
|
</span><span>重新安装所有软件包:sudo pacman -Qq | sudo pacman -S -
|
||||||
|
</span><span>
|
||||||
|
</span><span>Reset keyrings:
|
||||||
|
</span><span>
|
||||||
|
</span><span>sudo rm -rf /etc/pacman.d/gnupg
|
||||||
|
</span><span>sudo pacman-key --init
|
||||||
|
</span><span>sudo pacman-key --populate archlinux
|
||||||
|
</span><span>
|
||||||
|
</span><span>移除数据库锁:sudo rm -f /var/lib/pacman/db.lck
|
||||||
|
</span><span>
|
||||||
|
</span><span>清理软件包缓存:sudo pacman -Sc (或 -Scc 完全清空)
|
||||||
|
</span><span>
|
||||||
|
</span><span>删除孤立软件包:sudo pacman -Rns $(pacman -Qtdq)
|
||||||
|
</span><span>
|
||||||
|
</span><span>Install Gaming packages:sudo pacman -S steam wine lutris dxvk
|
||||||
|
</span><span>
|
||||||
|
</span><span>排序镜像:
|
||||||
|
</span><span>
|
||||||
|
</span><span>sudo pacman -S reflector
|
||||||
|
</span><span>sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
|
||||||
|
</span><span>
|
||||||
|
</span><span>更改 DNS 服务器:编辑 /etc/systemd/resolved.conf 中的 DNS=1.1.1.1 8.8.8.8,然后 sudo systemctl restart systemd-resolved
|
||||||
|
</span></code></pre>
|
||||||
<h2 id="zai-arch-linuxshang-an-zhuang-docker">在Arch Linux上安装Docker</h2>
|
<h2 id="zai-arch-linuxshang-an-zhuang-docker">在Arch Linux上安装Docker</h2>
|
||||||
<p>一般推荐在qemu虚拟机中安装,这里仅做示例:</p>
|
<p>一般推荐在qemu虚拟机中安装,这里仅做示例:</p>
|
||||||
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sudo pacman -S docker
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>sudo pacman -S docker
|
||||||
|
@ -501,6 +501,19 @@
|
|||||||
</span><span>
|
</span><span>
|
||||||
</span><span># 如果要更新所有软件,包括 OpenWRT 内核、固件等
|
</span><span># 如果要更新所有软件,包括 OpenWRT 内核、固件等
|
||||||
</span><span>opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
|
</span><span>opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade
|
||||||
|
</span><span>
|
||||||
|
</span><span># 固件版本号
|
||||||
|
</span><span>vim /etc/os-release
|
||||||
|
</span><span>
|
||||||
|
</span><span># 脚本&脚注
|
||||||
|
</span><span>vim /etc/openwrt_release
|
||||||
|
</span><span>
|
||||||
|
</span><span># ASCII字符画
|
||||||
|
</span><span>vim /etc/banner
|
||||||
|
</span><span>
|
||||||
|
</span><span># 登录脚本显示
|
||||||
|
</span><span>vim /etc/profile
|
||||||
|
</span><span>vim /vim /etc/profile.d/30-sysinfo.sh
|
||||||
</span></code></pre>
|
</span></code></pre>
|
||||||
<h2 id="chang-yong-cang-ku">常用仓库</h2>
|
<h2 id="chang-yong-cang-ku">常用仓库</h2>
|
||||||
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>src/gz kwrt_core https://dl.openwrt.ai/releases/24.10/targets/x86/64/6.6.83
|
<pre style="background-color:#151515;color:#e8e8d3;"><code><span>src/gz kwrt_core https://dl.openwrt.ai/releases/24.10/targets/x86/64/6.6.83
|
||||||
|
BIN
public/pagefind/fragment/en_1bc6910.pf_fragment
Normal file
BIN
public/pagefind/fragment/en_1bc6910.pf_fragment
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/fragment/en_90f4559.pf_fragment
Normal file
BIN
public/pagefind/fragment/en_90f4559.pf_fragment
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_19717c7.pf_index
Normal file
BIN
public/pagefind/index/en_19717c7.pf_index
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_4add406.pf_index
Normal file
BIN
public/pagefind/index/en_4add406.pf_index
Normal file
Binary file not shown.
BIN
public/pagefind/index/en_5924bdd.pf_index
Normal file
BIN
public/pagefind/index/en_5924bdd.pf_index
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_bd8eb4d.pf_index
Normal file
BIN
public/pagefind/index/en_bd8eb4d.pf_index
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/pagefind/index/en_f2895ea.pf_index
Normal file
BIN
public/pagefind/index/en_f2895ea.pf_index
Normal file
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
{"version":"1.3.0","languages":{"en":{"hash":"en_153c70164b","wasm":"en","page_count":98}}}
|
{"version":"1.3.0","languages":{"en":{"hash":"en_149cec42a2","wasm":"en","page_count":98}}}
|
BIN
public/pagefind/pagefind.en_149cec42a2.pf_meta
Normal file
BIN
public/pagefind/pagefind.en_149cec42a2.pf_meta
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user