# This script aims to start the x11vnc service when called # It's not advised to put this in your startup script # as the service may well start without a password CSESSION=`ps wwwaux | grep /var/run/gdm | awk -F'-auth' ' { print $2 } ' | cut -d" " -f2` killall x11vnc x11vnc -auth $CSESSION -display :0 -noxdamage -repeat &