Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -2,14 +2,20 @@
|
|
| 2 |
# Start Xvfb for virtual display
|
| 3 |
Xvfb $DISPLAY -screen 0 1280x1024x16 &
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
# Start Fluxbox as a minimal window manager
|
| 6 |
fluxbox &
|
| 7 |
|
| 8 |
-
# Start x11vnc
|
| 9 |
-
x11vnc -display $DISPLAY -nopw -forever -shared &
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Start noVNC to provide web access
|
| 12 |
/usr/share/novnc/utils/launch.sh --vnc localhost:$VNC_PORT --listen $NOVNC_PORT &
|
| 13 |
|
| 14 |
-
# Start Google Chrome
|
| 15 |
-
google-chrome --no-sandbox --disable-gpu --disable-dev-shm-usage --display=$DISPLAY
|
|
|
|
| 2 |
# Start Xvfb for virtual display
|
| 3 |
Xvfb $DISPLAY -screen 0 1280x1024x16 &
|
| 4 |
|
| 5 |
+
# Wait for Xvfb to start
|
| 6 |
+
sleep 2
|
| 7 |
+
|
| 8 |
# Start Fluxbox as a minimal window manager
|
| 9 |
fluxbox &
|
| 10 |
|
| 11 |
+
# Start x11vnc with logging and retry mechanism
|
| 12 |
+
x11vnc -display $DISPLAY -nopw -forever -shared -rfbport $VNC_PORT -o $X11VNC_LOG &
|
| 13 |
+
|
| 14 |
+
# Wait for x11vnc to initialize
|
| 15 |
+
sleep 2
|
| 16 |
|
| 17 |
# Start noVNC to provide web access
|
| 18 |
/usr/share/novnc/utils/launch.sh --vnc localhost:$VNC_PORT --listen $NOVNC_PORT &
|
| 19 |
|
| 20 |
+
# Start Google Chrome with DBUS disabled
|
| 21 |
+
google-chrome --no-sandbox --disable-gpu --disable-dev-shm-usage --disable-session-crashed-bubble --no-first-run --display=$DISPLAY
|