Poweruser01 commited on
Commit
193f3c1
·
verified ·
1 Parent(s): 1d9c908

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +22 -0
start.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Start Xvfb for virtual display
4
+ Xvfb $DISPLAY -screen 0 1280x1024x16 &
5
+
6
+ # Wait for Xvfb to start
7
+ sleep 2
8
+
9
+ # Start Fluxbox as a minimal window manager
10
+ fluxbox &
11
+
12
+ # Start x11vnc with logging and retry mechanism
13
+ x11vnc -display $DISPLAY -nopw -forever -shared -rfbport $VNC_PORT -o $X11VNC_LOG &
14
+
15
+ # Wait for x11vnc to initialize
16
+ sleep 2
17
+
18
+ # Start noVNC to provide web access
19
+ /usr/share/novnc/utils/launch.sh --vnc localhost:$VNC_PORT --listen $NOVNC_PORT &
20
+
21
+ # Start Brave Browser with DBUS disabled
22
+ brave-browser --no-sandbox --disable-gpu --disable-dev-shm-usage --disable-session-crashed-bubble --no-first-run --display=$DISPLAY