4 # fredhuff is a different user than my normal user who is logged in on
5 # desktop zero. this is important for display isolation.
9 XAUTHORITY="/home/$USER/.Xauthority.vnc"
10 OPTIONS="-depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"
11 . /lib/lsb/init-functions
15 log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
16 su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
20 log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
21 su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"