Hi there
I have successfully put my new Raspberry Pi B+ on to my home network with a static ip address. I am able to ping the Pi from my PC and the Pi has access to the Internet. I intend to be able to access the Pi remotely from my PC to save upon monitors, keyboards, etc lying around in limited space. I have been following the instructions on how to do this in the publication - Raspberry Pi for Beginners - which I got from WH Smith. I have installed the VNC server with the command sudo apt-get install tightvncserver with out a problem and then ran it with the comand tightvncserver. I was asked to set up a password which I did and all seemed well. The next step - Configuring the boot service (to get VNC running after each boot of the Pi) - calls for script to be written in the nano text editor as follows:
#!/bin/sh
# /etc/init.d/tightvncserver
#Set the VNUSER variable to the name of the user to start tightvncserver under
VNCUSER='pi'
case "$1" in
start)
su $VNCUSER -c '/usr/bin/tightvncserver :1'
echo "Starting TightVNC server for $VNCUSER"
;;
stop)
pkill Xtightvnc
echo "Tightvncserver stopped"
;;
*)
echo "Usage: /etc/init.d/tightvncserver {start|stop}"
exit 1
;;
esac
exit 0
After typing in this script, I saved it by using Ctrl & X and typing y when prompted to save it.
It is the next and final step of the instructions, editing the permissions, where the problem occurs. In the LX Terminal, you are required to enter the command: sudo chmod 755 /etc/init.d/tightvncserver This is followed by the command: update-rc.d tightvncserver defaults and, after hitting enter, it is at this point that I think the problem occurs. The screen scrolls a number of files, stating that access is denied after each one. The final instruction is to reboot using the command sudo reboot. This I do but when I try to access the Pi using the VNC viewer on my PC, it doesn't connect.
I have reinstalled Raspian and followed the instructions several times, each time with the same result. I have also tried it with the ssh server is enabled on the Pi to se if that made a difference but it didn't.
I would be grateful if anyone could help me sort this out as I have spent several hours trying to no avail.
Many thanks, in anticipation.
Andy