mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-09-01 22:42:53 +08:00
适配 trixie 版本
This commit is contained in:
+12
-13
@@ -58,30 +58,26 @@ $ sudo systemctl restart ssh.service
|
||||
|
||||
当系统版本发生变化时,请参考 USTC 镜像站的官方说明 [USTC Mirror Help - Debian](https://mirrors.ustc.edu.cn/help/debian.html) 。
|
||||
|
||||
使用 `vim` 编辑器编辑 `debian.sources` 配置文件,执行以下命令。
|
||||
使用如下命令对 `debian.sources` 配置文件进行修改。
|
||||
|
||||
```bash
|
||||
## 编辑 debian.sources 配置文件
|
||||
$ sudo vim /etc/apt/sources.list.d/debian.sources
|
||||
```
|
||||
|
||||
删除里面全部内容,添加以下配置项,并保存。
|
||||
|
||||
```bash
|
||||
## 系统软件源配置项
|
||||
## 配置 Debian 系统默认软件源脚本
|
||||
|
||||
$ sudo cat > /etc/apt/sources.list.d/debian.sources <<EOF
|
||||
Types: deb
|
||||
URIs: https://mirrors.ustc.edu.cn/debian
|
||||
Suites: bookworm bookworm-updates
|
||||
Suites: trixie trixie-updates
|
||||
Components: main contrib non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
|
||||
Types: deb
|
||||
URIs: https://mirrors.ustc.edu.cn/debian-security
|
||||
Suites: bookworm-security
|
||||
Suites: trixie-security
|
||||
Components: main contrib non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
|
||||
EOF
|
||||
|
||||
```
|
||||
|
||||
为了防止 `Cloud-Init` 服务意外修改软件源配置,需要添加文件保护,执行以下命令。
|
||||
@@ -101,10 +97,10 @@ $ lsattr /etc/apt/sources.list.d/debian.sources
|
||||
|
||||
```bash
|
||||
## 添加 TS 签名密钥
|
||||
$ curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg > /dev/null
|
||||
$ curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg > /dev/null
|
||||
|
||||
## 添加 TS 软件源
|
||||
$ curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
||||
$ curl -fsSL https://pkgs.tailscale.com/stable/debian/trixie.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
|
||||
```
|
||||
|
||||
### 1.3.安装软件
|
||||
@@ -140,6 +136,9 @@ $ sudo apt install tailscale
|
||||
## 安装网络检测工具(可选)
|
||||
$ sudo apt install iftop iperf3 iperf
|
||||
|
||||
## 刷新 systemd 日志分类索引
|
||||
$ sudo journalctl --update-catalog
|
||||
|
||||
## 写入磁盘
|
||||
$ sudo sync
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user