wwihead
Posts: 12
Joined: Mon Nov 16, 2015 11:55 am

Tight VNC Server load on boot

Tue Nov 17, 2015 11:05 pm

Hi all,
I'm trying to follow the instructions on raspberrypi.org/documentation for loading a tightvncserver on boot of the pi. I'm new to this, so please forgive my basic question - how do I create a file within the directory /etc/init.d and how do I then save it, please?

Many thanks

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 12:12 am

There's a skeleton in /etc/init.d/skeleton. Copy that and save it with a new name in /etc/init.d. Then edit the new file to start tightvnc. Make the file executable with chmod 755 /etc/init.d/newfilename. Then use update-rc.d to activate it at boot time.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

wwihead
Posts: 12
Joined: Mon Nov 16, 2015 11:55 am

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 11:27 am

Thank you for the reply. I followed the instructions but I still get an active refusal from the pi to the viewer machine. Is there a way to check if the server is running on the pi after startup please?

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 11:32 am

sudo netstat -tlnp
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 11:40 am

wwihead wrote:Thank you for the reply. I followed the instructions but I still get an active refusal from the pi to the viewer machine. Is there a way to check if the server is running on the pi after startup please?
Have a look at this thread.

wwihead
Posts: 12
Joined: Mon Nov 16, 2015 11:55 am

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 11:54 am

Thank you. Tried netstat before and after a manual startup of vncserver and it appears it hadn't loaded on boot.

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 12:57 pm

Is your new /etc/init.d/newscript executable?
What happens if you run /etc/init.d/newscript start or /etc/init.d/newscript status
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

wwihead
Posts: 12
Joined: Mon Nov 16, 2015 11:55 am

Re: Tight VNC Server load on boot

Wed Nov 18, 2015 1:13 pm

Thank you both so much. I think I have solved it. The target machine was named incorrectly in the script and was refusing connections. Great forum and I've learnt so much already!

Return to “Beginners”