Spaces:
Paused
Paused
File size: 434 Bytes
44e3507 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/bin/bash
set -e
# Start virtual display
Xvfb :0 -screen 0 $RESOLUTION &
# Start window manager
fluxbox &
# Start VNC server
x11vnc -display :0 -forever -passwd $VNC_PASSWORD -listen 0.0.0.0 -xkb -rfbport $VNC_PORT &
# If HOST_DISPLAY is set, connect to host display
if [ "$HOST_DISPLAY" == "1" ]; then
echo "Using host display"
exec android-studio
else
echo "Starting with dummy display"
exec android-studio
fi
|