binary1ne commited on
Commit
dbb9978
·
verified ·
1 Parent(s): a86238d

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +21 -0
start.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
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