Files
DAAS-Docker/start.sh
2026-02-23 13:09:32 +00:00

21 lines
430 B
Bash

#!/bin/bash
# VNC Passwort setzen (Standard: changeme)
echo "changeme" | vncpasswd -f > /root/.vnc/passwd
chmod 600 /root/.vnc/passwd
# xstartup konfigurieren
cat <<EOF > /root/.vnc/xstartup
#!/bin/bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec startxfce4 &
EOF
chmod +x /root/.vnc/xstartup
# VNC Server starten
vncserver -geometry 1280x800 -depth 24 $DISPLAY
# Container offen halten
tail -f /root/.vnc/*.log