I managed to get X Forwarding working with my pi b+ and mabook. All good so far and I can run a remote LXDE desktop.
However playing with python and trying to use the GPIO I need to run idle as sudo. However I cannot do this. I get the following error:
I have checked permissions and ownership of ~/.Xauthority, thats all fine.
Code: Select all
X11 connection rejected because of wrong authentication. Traceback (most recent call last): File "/usr/bin/idle", line 5, in <module> main() File "/usr/lib/python2.7/idlelib/PyShell.py", line 1427, in main root = Tk(className="Idle") File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display "localhost:10.0"
I have tried using the export display='IP:x.x.x.x'
but nothing works. Abit stuck! Can anyone help?