apt-get install x11vnc
/home/pi/.config/autostart/x11vnc.desktop with this in it: [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Name=x11VNC Comment= Exec=/usr/bin/x11vnc -display :0 -usepw -allow "192.168.100." -noxdamage -ncache 10 -ncache_cr -forever -shared -noipv6 -no6 -ultrafilexfer Icon=/usr/share/pixmaps/gksu-root-terminal.png StartupNotify=false Terminal=false
-o /var/log/x11vnc.log/etc/init.d/vncboot with the following content:### BEGIN INIT INFO
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.
### END INIT INFO
#! /bin/sh
# /etc/init.d/vncboot
USER=pi
HOME=/home/pi
export USER HOME
case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
#su - pi -c "/usr/bin/vncserver :0 -geometry 1280x800 -depth 16 -pixelformat rgb565"
su - pi -c "/usr/bin/x11vnc -display :0 -usepw -allow "10.194.130." -noxdamage -ncache 10 -ncache_cr -forever -shared -noipv6 -no6 -ultrafilexfer -o /var/log/x11vnc.log"
;;
stop)
echo "Stopping VNC Server"
/usr/bin/vncserver -kill :0
;;
*)
echo "Usage: /etc/init.d/vncboot {start|stop}"
exit 1
;;
esac
exit 0
chmod 755 vncboot
update-rc.d /etc/init.d/vncboot defaults update-rc.d vncboot defaults
See: https://www.raspberrypi.org/documentation/remote-access/vnc/
See http://c-nergy.be/blog/?p=8361 See http://randomstuffidosometimes.blogspot.se/2015/05/x11vnc-autostart-on-raspbian-raspberry.html
--
You received this message because you are subscribed to the Google Groups "Milwaukee Linux User's Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MilwaukeeLUG...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So which one are you doing?