mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
更新文档
This commit is contained in:
+31
-3
@@ -249,9 +249,6 @@ $ sudo timedatectl set-timezone Asia/Shanghai
|
||||
|
||||
## 检查系统时间
|
||||
$ date -R
|
||||
|
||||
#### 系统时间示例输出
|
||||
Mon, 26 Jun 2023 16:16:16 +0800
|
||||
```
|
||||
|
||||
Debian 云镜像默认使用 `systemd-timesyncd.service` 同步时间,且需要调整为使用国内 NTP 服务器。
|
||||
@@ -459,6 +456,16 @@ $ sudo systemctl restart systemd-resolved.service
|
||||
|
||||
### 1.10.配置 Dnsmasq
|
||||
|
||||
检查 `dnsmasq.service` 服务状态,确保该服务开机自启。
|
||||
|
||||
```bash
|
||||
## 检查 dnsmasq.service
|
||||
$ sudo systemctl status dnsmasq.service
|
||||
|
||||
## 设置 dnsmasq.service 开机自启
|
||||
$ sudo systemctl enable dnsmasq.service
|
||||
```
|
||||
|
||||
`Dnsmasq` 的主配置文件一般位于 `/etc` 目录下,修改配置文件之前,使用以下命令将其备份。
|
||||
|
||||
```bash
|
||||
@@ -542,3 +549,24 @@ server=fdac::1
|
||||
## 重启 dnsmasq.service
|
||||
$ sudo systemctl restart dnsmasq.service
|
||||
```
|
||||
|
||||
### 1.11.配置 ZSH
|
||||
|
||||
`Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。
|
||||
|
||||
```bash
|
||||
## 返回 home 目录
|
||||
$ cd
|
||||
|
||||
## 使用 curl 安装 oh-my-zsh
|
||||
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
|
||||
## 或者使用 wget 安装 oh-my-zsh
|
||||
$ sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
|
||||
|
||||
## 询问是否切换默认 shell,输入 Y
|
||||
|
||||
#### 示例输出
|
||||
Time to change your default shell to zsh:
|
||||
Do you want to change your default shell to zsh? [Y/n] y
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user