diff --git a/start.sh b/start.sh index d744ae8..6ba6b36 100644 --- a/start.sh +++ b/start.sh @@ -1,28 +1,16 @@ #!/bin/bash -export USER=root -export HOME=/root export DISPLAY=:1 -# VNC Passwort setzen -mkdir -p $HOME/.vnc -echo "${VNC_PASSWORD:-changeme}" | vncpasswd -f > $HOME/.vnc/passwd -chmod 600 $HOME/.vnc/passwd - -# Alte Locks entfernen (wichtig!) +# Alte Locks entfernen rm -rf /tmp/.X1-lock /tmp/.X11-unix/X1 -# xstartup korrekt setzen -cat > $HOME/.vnc/xstartup < /root/.vnc/passwd +chmod 600 /root/.vnc/passwd -chmod +x $HOME/.vnc/xstartup +# VNC Server starten und LightDM ausführen +vncserver :1 -localhost no -geometry 1280x800 -depth 24 -xstartup /etc/vnc/xstartup -# VNC Server starten -vncserver :1 -geometry 1280x800 -depth 24 - -tail -f $HOME/.vnc/*.log \ No newline at end of file +tail -f /root/.vnc/*.log \ No newline at end of file