I installed tightvncserver, started the service, logged in remotely with no issues. I created a file in /etc/init.d/ called vncboot.
### 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=root
HOME=/root
export USER HOME
case "$1" in
start)
echo "Starting VNC Server"
#Insert your favoured settings for a VNC session
/usr/bin/vncserver :1 -geometry 1440x900 -depth 24
/usr/bin/vncserver :2 -geometry 1280x800 -depth 16
;;
stop)
echo "Stopping VNC Server"
/usr/bin/vncserver -kill :0
;;
*)
echo "Usage: /etc/init.d/vncboot {start|stop}"
exit 1
;;
esac
exit 0
I ran the file several times and it worked just fine. It started and stopped the service as it was supposed to.
Then I added the file to start with the raspberry pi with
sudo update-rc.d vncboot
After this the screen goes to white login screen asking for login, password, and a dropdown list with: Default Xsession, LXDE, OpenBox. When I put in the correct login the screen goes black, then back to the login page. If I put in incorrect login info, I get a prompt that says incorrect.
I can ssh into the machine just fine. Any ideas of what happened or how I can fix this? Thanks.
systemdrather that SysVinitthe way you invoketightvncmay need revising... 8-( – SlySven Jan 24 '16 at 15:41