#!/bin/bash # Start an x11vnc server on display :0 at port 5183, with password auth and continue running after client disconnects x11vnc -display :0 -forever -loop -noxdamage -repeat -rfbauth ~/.vnc/passwd -rfbport 5183 -shared