start.sh hinzugefügt
This commit is contained in:
21
start.sh
Normal file
21
start.sh
Normal 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
|
||||
Reference in New Issue
Block a user