start.sh hinzugefügt

This commit is contained in:
2026-02-23 13:09:32 +00:00
parent 51e7426c76
commit cc9679bfac

21
start.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/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