File size: 509 Bytes
6bf3f1f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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