Spaces:
Paused
Paused
re-enable dbus in subshell; x11vnc -nopw
Browse files21 unmodified lines2223242526272829304 unmodified lines3536373839404121 unmodified linessleep 2echo "[start-desktop] After Xvfb sleep 2" >&2# Start dbus for session (optional; avoid exit on failure so noVNC can still serve)# Disabled: can trigger set -e in some envs# dbus-daemon --session 2>/dev/null || trueecho "[start-desktop] Before XFCE background" >&2# Start XFCE (lightweight); use full path in case PATH is minimal4 unmodified linesecho "[start-desktop] XFCE started, starting x11vnc ..." >&2# x11vnc: share display :99 on port 5901 (do not exit on failure so noVNC can still start)x11vnc -display "$DISPLAY" -rfbport "$VNC_PORT" -forever -shared -noxdamage -bg || true# SSH (optional): do not let failures here stop noVNCset +e21 unmodified lines22232425262728294 unmodified lines3435363738394021 unmodified linessleep 2echo "[start-desktop] After Xvfb sleep 2" >&2# Start dbus for session (optional; run in subshell so failure never triggers set -e)( dbus-daemon --session 2>/dev/null ) || trueecho "[start-desktop] Before XFCE background" >&2# Start XFCE (lightweight); use full path in case PATH is minimal4 unmodified linesecho "[start-desktop] XFCE started, starting x11vnc ..." >&2# x11vnc: share display :99 on port 5901 (do not exit on failure so noVNC can still start)x11vnc -display "$DISPLAY" -rfbport "$VNC_PORT" -forever -shared -noxdamage -nopw -bg || true# SSH (optional): do not let failures here stop noVNCset +e
ubuntu-desktop/start-desktop.sh+3-4