Archived
更新截图
This commit is contained in:
+20
-19
@@ -108,7 +108,7 @@ $ sudo apt full-upgrade
|
||||
$ sudo apt install qemu-guest-agent btop curl tmux logrotate cron neovim zsh git
|
||||
|
||||
## 安装系统自动更新工具
|
||||
$ sudo apt install unattended-upgrades powermgmt-base python3-gi
|
||||
$ sudo apt install unattended-upgrades powermgmt-base
|
||||
|
||||
## 安装网络工具
|
||||
$ sudo apt install nftables sshguard lsof knot-dnsutils
|
||||
@@ -152,14 +152,15 @@ Debian 系统默认编辑器为 `nano` ,推荐将默认编辑器更换为 `neo
|
||||
$ sudo update-alternatives --config editor
|
||||
|
||||
#### 系统默认编辑器示例输出
|
||||
There are 3 choices for the alternative editor (providing /usr/bin/editor).
|
||||
There are 4 choices for the alternative editor (providing /usr/bin/editor).
|
||||
|
||||
Selection Path Priority Status
|
||||
Selection Path Priority Status
|
||||
------------------------------------------------------------
|
||||
* 0 /bin/nano 40 auto mode
|
||||
1 /bin/nano 40 manual mode
|
||||
2 /usr/bin/nvim 30 manual mode
|
||||
3 /usr/bin/vim.tiny 15 manual mode
|
||||
* 0 /bin/nano 40 auto mode
|
||||
1 /bin/nano 40 manual mode
|
||||
2 /usr/bin/nvim 30 manual mode
|
||||
3 /usr/bin/vim.basic 30 manual mode
|
||||
4 /usr/bin/vim.tiny 15 manual mode
|
||||
|
||||
Press <enter> to keep the current choice[*], or type selection number: 2
|
||||
update-alternatives: using /usr/bin/nvim to provide /usr/bin/editor (editor) in manual mode
|
||||
@@ -231,7 +232,7 @@ $ sudo timedatectl set-timezone Asia/Shanghai
|
||||
$ date -R
|
||||
|
||||
#### 系统时间示例输出
|
||||
Mon, 26 Jun 2023 16:16:16 +0800
|
||||
Wed, 27 Aug 2025 17:02:17 +0800
|
||||
```
|
||||
|
||||
Debian 云镜像默认使用 `systemd-timesyncd.service` 同步时间,且需要调整为使用国内 NTP 服务器。
|
||||
@@ -273,21 +274,21 @@ $ sudo systemctl status systemd-timesyncd.service
|
||||
#### NTP 服务示例输出
|
||||
● systemd-timesyncd.service - Network Time Synchronization
|
||||
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; preset: enabled)
|
||||
Active: active (running) since Tue 2025-08-12 17:09:38 CST; 8s ago
|
||||
Invocation: ffb0d20e6a6649efb433fa290dc3286b
|
||||
Active: active (running) since Wed 2025-08-27 17:03:13 CST; 6s ago
|
||||
Invocation: 7dcb974725ac43638a4ae3df51644f84
|
||||
Docs: man:systemd-timesyncd.service(8)
|
||||
Main PID: 2820 (systemd-timesyn)
|
||||
Main PID: 4540 (systemd-timesyn)
|
||||
Status: "Contacted time server 203.107.6.88:123 (ntp.aliyun.com)."
|
||||
Tasks: 2 (limit: 4556)
|
||||
Memory: 1.6M (peak: 2.6M)
|
||||
CPU: 47ms
|
||||
Tasks: 2 (limit: 2317)
|
||||
Memory: 1.5M (peak: 2.2M)
|
||||
CPU: 261ms
|
||||
CGroup: /system.slice/systemd-timesyncd.service
|
||||
└─2820 /usr/lib/systemd/systemd-timesyncd
|
||||
└─4540 /usr/lib/systemd/systemd-timesyncd
|
||||
|
||||
Aug 12 17:09:38 DNST01 systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization...
|
||||
Aug 12 17:09:38 DNST01 systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization.
|
||||
Aug 12 17:09:38 DNST01 systemd-timesyncd[2820]: Contacted time server 203.107.6.88:123 (ntp.aliyun.com).
|
||||
Aug 12 17:09:38 DNST01 systemd-timesyncd[2820]: Initial clock synchronization to Tue 2025-08-12 17:09:38.425596 CST.
|
||||
Aug 27 17:03:12 DNST01 systemd[1]: Starting systemd-timesyncd.service - Network Time Synchronization...
|
||||
Aug 27 17:03:13 DNST01 systemd[1]: Started systemd-timesyncd.service - Network Time Synchronization.
|
||||
Aug 27 17:03:13 DNST01 systemd-timesyncd[4540]: Contacted time server 203.107.6.88:123 (ntp.aliyun.com).
|
||||
Aug 27 17:03:13 DNST01 systemd-timesyncd[4540]: Initial clock synchronization to Wed 2025-08-27 17:03:13.200663 CST.
|
||||
```
|
||||
|
||||
### 1.8.配置自动更新
|
||||
|
||||
Reference in New Issue
Block a user