VNC start on bootup will not work
Posted: Sat Jan 18, 2014 5:19 am
Greetings,
I am trying to get tightvnc to load upon booting with no sucess. I am following this tutorial
http://www.howtogeek.com/141157/how-to- ... -transfer/
I entered the following script in nano:
and then....
I get the following back
insserv script tightvnc is broken incomplete LSB
insserv missing 'Default-Start:'
insserv missing 'Default-Stop'
insserv Default-Start undefined, assuming empty start runlevel(s) for script 'tightvnc
insserv Default-Stop undefined, assuming empty stop runlevel(s) for script 'tightvnc
insserv fopen(.depend.stop.): permission denied
Any ideas? on what would cause this? Also if you could go through this a bit it's a case statement but that's about al I know
Thank you
I am trying to get tightvnc to load upon booting with no sucess. I am following this tutorial
http://www.howtogeek.com/141157/how-to- ... -transfer/
I entered the following script in nano:
Code: Select all
#!/bin/sh
### BEGIN INIT INFO
# Provides: tightvncserver
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start vnc server
# Description:
### END INIT INFO
case “$1″ in
start)
su pi -c ‘vncserver :1 -geometry 1600×900 -depth 16 -pixelformat rgb565:’
echo “VNC Started”
;;
stop)
pkill Xtightvnc
echo “VNC Terminated”
;;
*)
echo “Usage: /etc/init.d/tightvnc {start|stop}”
exit 1
;;
esacCode: Select all
sudo chmod 755 /etc/init.d/tightvnc
sudo update-rc.d tightvnc defaultsI get the following back
insserv script tightvnc is broken incomplete LSB
insserv missing 'Default-Start:'
insserv missing 'Default-Stop'
insserv Default-Start undefined, assuming empty start runlevel(s) for script 'tightvnc
insserv Default-Stop undefined, assuming empty stop runlevel(s) for script 'tightvnc
insserv fopen(.depend.stop.): permission denied
Any ideas? on what would cause this? Also if you could go through this a bit it's a case statement but that's about al I know
Thank you