mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
update 2.PVE初始化配置.md.
更新:支持系统自动升级CPU微码 Signed-off-by: 秋刀狐狸 <9463297+callmer@user.noreply.gitee.com>
This commit is contained in:
+9
-4
@@ -42,17 +42,19 @@ sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian
|
||||
cat /etc/apt/sources.list
|
||||
```
|
||||
|
||||
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行:
|
||||
如果输出结果中有 USTC 的镜像地址,则表示命令已经正确执行。
|
||||
|
||||
如果希望能更新 CPU 的 `microcode` ,则需要手动添加镜像的 `non-free` 参数,完整系统源示例如下:
|
||||
|
||||
```bash
|
||||
## 输出内容参考:
|
||||
|
||||
deb https://mirrors.ustc.edu.cn/debian bullseye main contrib
|
||||
deb https://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
|
||||
|
||||
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib
|
||||
deb https://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
|
||||
|
||||
# security updates
|
||||
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib
|
||||
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
|
||||
```
|
||||
|
||||
此处我放出 Debian Bullseye 的完整镜像源以供参考, **非常不建议** 将 PVE 的系统源替换成完整的 Debian 源,以避免出现问题。
|
||||
@@ -173,6 +175,9 @@ apt install iperf iperf3 iftop net-tools ethtool
|
||||
|
||||
## 安装CPU调度调整工具
|
||||
apt install cpufrequtils
|
||||
|
||||
## 根据CPU厂商安装CPU微码工具
|
||||
apt install intel-microcode (amd64-microcode)
|
||||
```
|
||||
|
||||
其中 `fail2ban` 和 `unattended-upgrades` 为两个服务,后续会对其进行配置。
|
||||
|
||||
Reference in New Issue
Block a user