50 lines
1.0 KiB
Markdown
50 lines
1.0 KiB
Markdown
|
|
|
|
# 1. Установить unit
|
|
```bash
|
|
sudo cp system_configs/bt-unblock.service /etc/systemd/system/bt-unblock.service
|
|
sudo cp system_configs/car-ui.service /etc/systemd/system/car-ui.service
|
|
```
|
|
|
|
# 2. Освободить tty1 для Car UI
|
|
```bash
|
|
sudo systemctl disable --now getty@tty1.service
|
|
sudo systemctl mask getty@tty1.service
|
|
```
|
|
|
|
# 3. Перечитать units
|
|
```bash
|
|
sudo systemctl daemon-reload
|
|
```
|
|
|
|
# 4. Включить автозапуск Car UI
|
|
```bash
|
|
sudo systemctl enable bt-unblock.service
|
|
sudo systemctl enable car-ui.service
|
|
```
|
|
|
|
# 5. Загружаться без Desktop
|
|
```bash
|
|
sudo systemctl set-default multi-user.target
|
|
```
|
|
|
|
# 6. Проверка
|
|
```bash
|
|
systemctl get-default
|
|
systemctl is-enabled car-ui.service
|
|
```
|
|
|
|
# 7. Перезагрузка
|
|
```bash
|
|
sudo reboot
|
|
```
|
|
|
|
## Включить Desktop
|
|
```bash
|
|
sudo systemctl disable car-ui.service
|
|
sudo systemctl unmask getty@tty1.service
|
|
sudo systemctl enable getty@tty1.service
|
|
sudo systemctl set-default graphical.target
|
|
sudo reboot
|
|
```
|