Files
DAAS-Docker/start.sh
2026-02-24 10:15:24 +00:00

16 lines
386 B
Bash

#!/bin/bash
export DISPLAY=:1
# Alte Locks entfernen
rm -rf /tmp/.X1-lock /tmp/.X11-unix/X1
# VNC Passwort setzen
mkdir -p /root/.vnc
echo "${VNC_PASSWORD:-vncpass}" | vncpasswd -f > /root/.vnc/passwd
chmod 600 /root/.vnc/passwd
# VNC Server starten und LightDM ausführen
vncserver :1 -localhost no -geometry 1280x800 -depth 24 -xstartup /etc/vnc/xstartup
tail -f /root/.vnc/*.log