access rights issue with X

This commit is contained in:
mrrudy 2022-10-19 15:59:46 +02:00
parent 2d8d2c8ae8
commit f6e9f55638
2 changed files with 7 additions and 1 deletions

View file

@ -1945,6 +1945,12 @@ Run in the LXC console
```yaml
apt update && apt upgrade -y
```
⚠️ **Issue with X on Ubuntu 20.04 and Unprivileged**
If you really need to use Ubuntu below 22.04 there is an issue with access rights that prevents Xorg from starting on TTY7 on an Unprivileged container. Workaround exists but a change on the host machine is required so please accept the risk beforehand. On host execute:
```yaml
chmod 660 /dev/tty7
```
____________________________________________________________________________________________
</details>

View file

@ -165,7 +165,7 @@ __EOF__
cat > /etc/systemd/system/lightdm.service.d/override.conf << __EOF__
[Service]
ExecStartPre=/bin/sh -c '/usr/local/bin/preX-populate-input.sh'
SupplementaryGroups=video input audio
SupplementaryGroups=video input audio tty
__EOF__
systemctl daemon-reload
msg_ok "Set up device detection for xorg"