File size: 533 Bytes
15fec87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# Start VNC server
echo "🚀 Starting VNC Server..."
vncserver :1 -geometry $VNC_RESOLUTION -depth 24 -localhost no

# Start noVNC
echo "🌐 Starting noVNC..."
websockify --web=/usr/share/novnc/ $NOVNC_PORT localhost:$((5900 + 1)) &

# Start desktop environment
echo "🖥️ Starting Xfce Desktop..."
export DISPLAY=:1
xfce4-session &

echo "✅ GUI Environment Ready!"
echo "🔗 noVNC: http://localhost:6080"
echo "🔗 VNC: localhost:5901"
echo "🔑 Password: $VNC_PW"

# Keep container running
tail -f /dev/null