Upload start.sh with huggingface_hub
Browse files
start.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Start Xvfb (virtual display)
|
| 4 |
+
Xvfb :99 -screen 0 1280x800x24 &
|
| 5 |
+
sleep 2
|
| 6 |
+
|
| 7 |
+
export DISPLAY=:99
|
| 8 |
+
|
| 9 |
+
# Start Xfce desktop
|
| 10 |
+
startxfce4 &
|
| 11 |
+
sleep 3
|
| 12 |
+
|
| 13 |
+
# Start x11vnc (VNC server)
|
| 14 |
+
x11vnc -display :99 -forever -shared -nopw -listen localhost -rfbport 5900 &
|
| 15 |
+
sleep 1
|
| 16 |
+
|
| 17 |
+
# Start websockify for noVNC (proxies VNC to websocket)
|
| 18 |
+
websockify --web=/usr/share/novnc 6080 localhost:5900 &
|
| 19 |
+
sleep 1
|
| 20 |
+
|
| 21 |
+
echo "Desktop environment started!"
|
| 22 |
+
echo "noVNC available on port 6080"
|
| 23 |
+
|
| 24 |
+
# Start Gradio app
|
| 25 |
+
cd /home/user/app
|
| 26 |
+
python3 app.py
|