#!/usr/bin/env bash # # This script is intended as a simple and quick substitude for proprietary # desktop sharing programs. It opens a VNC connection in viewonly mode for # readonly screen sharing over VNC. # # Requirements: # x11vnc # Check for x11vnc which x11vnc 2>/dev/null 1>/dev/null if [[ $? == 1 ]]; then echo "x11vnc is not installed. Please install and run again." exit 1 fi password="${1}" if [[ -z ${password} ]]; then echo -e "\nPlease enter a temporary session password.\n\n"\ "Note, do not use your user password.\n"\ "You will need to share this with everyone connecting." read password fi echo "Starting screenshare" x11vnc -viewonly -ssl -passwd ${password} -forever -autoport 5900 -quiet