增加初始化脚本
This commit is contained in:
16
todo.md
16
todo.md
@@ -4,17 +4,21 @@
|
||||
|
||||
```bash
|
||||
# 在 systemd-networkd-wait-online.service Service 加入 TimeoutStartSec=2sec
|
||||
sudo vim /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
|
||||
sudo EDITOR=vim systemctl edit systemd-networkd-wait-online.service
|
||||
# 在打开的编辑器中添加:
|
||||
# [Service]
|
||||
# TimeoutStartSec=2sec
|
||||
```
|
||||
|
||||
### 配置时区
|
||||
|
||||
```bash
|
||||
sudo timedatectl set-timezone Asia/Shanghai
|
||||
```
|
||||
|
||||
## linux 下播放音频
|
||||
|
||||
```bash
|
||||
```bash
|
||||
sudo apt install libasound2-dev alsa-utils
|
||||
```
|
||||
|
||||
@@ -107,10 +111,14 @@ fi
|
||||
|
||||
### 自动登录
|
||||
|
||||
编辑 `/etc/systemd/system/getty.target.wants/getty@tty1.service` 文件,将 `ExecStart` 行修改为:
|
||||
使用 systemctl edit 修改 getty@tty1 服务:
|
||||
|
||||
```bash
|
||||
ExecStart=-/sbin/agetty --autologin <your_username> --noclear %I $TERM
|
||||
sudo EDITOR=vim systemctl edit getty@tty1.service
|
||||
# 在打开的编辑器中添加:
|
||||
# [Service]
|
||||
# ExecStart=
|
||||
# ExecStart=-/sbin/agetty --autologin <your_username> --noclear %I $TERM
|
||||
```
|
||||
|
||||
其中:
|
||||
|
||||
Reference in New Issue
Block a user