Archived
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a2c3034c2 | ||
|
|
252580cb9e | ||
|
|
e8dbdcb201 | ||
|
|
264c5ee1c1 | ||
|
|
0e992e2b21 | ||
|
|
7305c0dc70 | ||
|
|
6d8c36bb54 | ||
|
|
9a68f1afeb | ||
|
|
0bfcd004c0 | ||
|
|
583b7aef9e | ||
|
|
3765fcb0a9 |
+3
-1
@@ -246,7 +246,9 @@ apt install intel-microcode (amd64-microcode)
|
||||
|
||||

|
||||
|
||||
在创建最后一个物理网口的 PVE 网桥时,需要额外配置 `IPv4/IPv6` 和对应的 `网关` 参数。
|
||||
在创建最后一个物理网口的 PVE 网桥时,需要额外配置 `IPv4` 地址和对应的 `网关` 参数。
|
||||
|
||||
`IPv6` 仅需填写地址,无需填写 `网关` 参数。
|
||||
|
||||
在所有物理网口的 PVE 网桥创建完成后,可以点击 `应用配置` 按钮,此时页面会失去连接。
|
||||
|
||||
|
||||
+9
-6
@@ -44,11 +44,11 @@ sudo systemctl restart ssh.service
|
||||
|
||||
### 1.2.配置系统软件源
|
||||
|
||||
使用 SSH 工具登录 Debian 虚拟机,常用 SSH 工具可以看之前的文章中的 [SSH 工具推荐](./1.PVE系统安装.md#03ssh工具) 。
|
||||
使用 SSH 工具登录 Debian 虚拟机,常用 SSH 工具可以看之前文章中的 [SSH 工具推荐](./1.PVE系统安装.md#03ssh工具) 。
|
||||
|
||||
首先需要对 Debian 系统的软件源进行修改,这里使用 USTC 的软件源。
|
||||
首先需要对 Debian 系统的软件源进行修改,这里使用 USTC 镜像站作为演示。
|
||||
|
||||
如果以后系统版本发生变化,参考使用 snullp 大叔开发的 [配置生成器](https://mirrors.ustc.edu.cn/repogen/) 。
|
||||
以后当系统版本发生变化时,请参考使用 snullp 大叔开发的 [配置生成器](https://mirrors.ustc.edu.cn/repogen/) 。
|
||||
|
||||
逐条执行以下命令:
|
||||
|
||||
@@ -96,7 +96,7 @@ sudo apt dist-upgrade
|
||||
|
||||
```bash
|
||||
## 安装系统软件
|
||||
sudo apt install qemu-guest-agent zsh git curl htop lm-sensors fail2ban vim tmux
|
||||
sudo apt install qemu-guest-agent zsh git curl htop lm-sensors vim tmux nftables sshguard
|
||||
|
||||
## 安装系统自动更新工具
|
||||
sudo apt install unattended-upgrades apt-listchanges powermgmt-base python3-gi
|
||||
@@ -109,6 +109,9 @@ sudo apt install snapd
|
||||
|
||||
## 安装 Adguard Home
|
||||
sudo snap install adguard-home
|
||||
|
||||
## 写入磁盘
|
||||
sudo sync
|
||||
```
|
||||
|
||||
Adguard Home 安装完成后,先停止其服务:
|
||||
@@ -118,7 +121,7 @@ Adguard Home 安装完成后,先停止其服务:
|
||||
sudo snap stop adguard-home
|
||||
```
|
||||
|
||||
### 1.3.配置系统网卡
|
||||
### 1.3.配置网卡IPv4
|
||||
|
||||
使用 `Cloud-Init` 并给虚拟机分配了静态 IPv4 地址后,虚拟机的网卡还会从路由器的 DHCP 再获取一个 IPv4 地址。
|
||||
|
||||
@@ -587,7 +590,7 @@ sudo systemctl status systemd-timesyncd.service
|
||||
sudo mkdir /etc/systemd/timesyncd.conf.d
|
||||
|
||||
## 创建 NTP 配置文件
|
||||
sudo nano /etc/systemd/timesyncd.conf.d/server-ntp.conf
|
||||
sudo nano /etc/systemd/timesyncd.conf.d/server_ntp.conf
|
||||
```
|
||||
|
||||
在 nano 编辑器对话框中输入以下内容,并保存:
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 156 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 74 KiB |
@@ -0,0 +1,24 @@
|
||||
# This configuration file is customized by fox
|
||||
# Optimize system parameters
|
||||
|
||||
kernel.panic = 20
|
||||
kernel.panic_on_oops = 1
|
||||
|
||||
net.core.default_qdisc = fq_codel
|
||||
net.ipv4.tcp_congestion_control = bbr
|
||||
|
||||
# Other adjustable system parameters
|
||||
|
||||
net.ipv4.conf.all.log_martians = 1
|
||||
|
||||
net.ipv4.icmp_ratelimit = 100
|
||||
net.ipv4.igmp_max_memberships = 100
|
||||
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
net.ipv4.tcp_keepalive_time = 120
|
||||
net.ipv4.tcp_max_orphans = 4096
|
||||
net.ipv4.tcp_max_tw_buckets = 4096
|
||||
net.ipv4.tcp_syncookies = 1
|
||||
|
||||
net.ipv6.conf.all.use_tempaddr = 0
|
||||
net.ipv6.conf.default.use_tempaddr = 0
|
||||
Reference in New Issue
Block a user