From 7097fb5d7326b927c53b064fcc97e42af7d8755d Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Mon, 1 Jan 2024 13:49:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 07.PVE制作TS服务器.md | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/07.PVE制作TS服务器.md b/07.PVE制作TS服务器.md index 1cc40fc..1a618d0 100644 --- a/07.PVE制作TS服务器.md +++ b/07.PVE制作TS服务器.md @@ -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 @@ -541,4 +548,25 @@ server=fdac::1 ```bash ## 重启 dnsmasq.service $ sudo systemctl restart dnsmasq.service -``` \ No newline at end of file +``` + +### 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 +```