Spaces:
Paused
Paused
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -1,19 +1,17 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
# 1. Start
|
| 4 |
-
# We set the resolution to 1400x900 to match your app's geometry
|
| 5 |
Xvfb :1 -screen 0 1440x960x24 &
|
| 6 |
export DISPLAY=:1
|
| 7 |
|
| 8 |
-
# 2. Start
|
| 9 |
fluxbox &
|
| 10 |
|
| 11 |
-
# 3. Start your
|
| 12 |
python main.py &
|
| 13 |
|
| 14 |
-
# 4. Start
|
| 15 |
x11vnc -display :1 -nopw -forever -quiet &
|
| 16 |
|
| 17 |
-
# 5. Start NoVNC (
|
| 18 |
-
# It bridges the VNC stream to the web port 7860
|
| 19 |
/usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen 7860
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
# 1. Start Virtual Monitor (1440x960 resolution)
|
|
|
|
| 4 |
Xvfb :1 -screen 0 1440x960x24 &
|
| 5 |
export DISPLAY=:1
|
| 6 |
|
| 7 |
+
# 2. Start Window Manager
|
| 8 |
fluxbox &
|
| 9 |
|
| 10 |
+
# 3. Start your App
|
| 11 |
python main.py &
|
| 12 |
|
| 13 |
+
# 4. Start VNC Server (Connecting monitor to network)
|
| 14 |
x11vnc -display :1 -nopw -forever -quiet &
|
| 15 |
|
| 16 |
+
# 5. Start NoVNC (Connecting network to Browser)
|
|
|
|
| 17 |
/usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen 7860
|