xpod

A minimal container build of X11 with VNC support.
git clone https://unitehenry.com/git/xpod.git
Log | Files | Refs | README

start.sh (407B)


      1 #!/bin/bash
      2 set -e
      3 
      4 Xvfb $DISPLAY -screen 0 $RESOLUTION -ac -nolisten tcp -extension RANDR +extension GLX &
      5 
      6 sleep 2
      7 
      8 x11vnc -display $DISPLAY \
      9         -forever \
     10         -shared \
     11         -rfbport $VNC_PORT \
     12         -passwd $VNC_PASSWORD \
     13         -xkb \
     14         -noxdamage \
     15         -repeat \
     16         &
     17 
     18 if [ ! -f /app.sh ]; then
     19     echo "/app.sh was not mounted to image"
     20     exit 1
     21 fi
     22 
     23 /app.sh
     24 
     25 wait