When remotely accessing my Pi via tightvnc my program won't run if the tightvncserver has been started automatically at boot.
I've run the Raspbian install from the latest noobs on a R Pi 2 with a newly formatted disc..
I've installed tightvncserver and remotely access the Pi from a PC.
When I start tightvncserver manually everything is fine and I can run my program from the PC without problems
However when I run tightvncserver at boot I get an error message when I run my program from the PC (see error message below).
To make tightvncserver run at boot I've modified
/etc/rc.local by adding the following line.
su - pi -c '/usr/bin/tightvncserver :1`
What do I need to do?
I've searched the web and found different ways of auto running tightvncserver but this seened the easiest.
Client is not authorized to connect to ServerClient is not authorized to connect to ServerTraceback (most recent call last): File "templight15.py", line 427, in <module> root = Tk() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1813, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display ":1.0" pi@raspberrypi2:~ $