likhonsheikh's picture
Upload start.sh with huggingface_hub
6bf3f1f verified
raw
history blame contribute delete
509 Bytes
#!/bin/bash
# Start Xvfb (virtual display)
Xvfb :99 -screen 0 1280x800x24 &
sleep 2
export DISPLAY=:99
# Start Xfce desktop
startxfce4 &
sleep 3
# Start x11vnc (VNC server)
x11vnc -display :99 -forever -shared -nopw -listen localhost -rfbport 5900 &
sleep 1
# Start websockify for noVNC (proxies VNC to websocket)
websockify --web=/usr/share/novnc 6080 localhost:5900 &
sleep 1
echo "Desktop environment started!"
echo "noVNC available on port 6080"
# Start Gradio app
cd /home/user/app
python3 app.py