0

I am trying blink an LED using some python code, but the problem is I am unable to run the idle in root mode, i.e., when I type sudo idle in the lxterminal it's showing errors such as

PuTTy X11 proxy: Unsupported authorisation protocol

and some more.

this the error that I am getting when I have tried to run idle in root mode

1

You can not open programs that uses GUI via ssh. Use remote desktop using a decent vnc or xrdp as per your platform. You can make use of plain python shell by issuing sudo python and start executing your code.


Edit:

You can make use of ssh -X .. if you're using linux. and use export DISPLAY=:0 before issuing GUI commands to make it work on your original display.

For windows (PuTTy), you will have to enable X11 forwarding support.

Hope it helps.

  • 1
    ssh -X may work. – joan Jul 2 '15 at 7:20
  • He said he is using lxterminal, doesn't it mean he does it locally? After all lxterm (or lxterminal) is GUI app, right? – Piotr Kamoda Jul 2 '15 at 13:25
  • @PiotrKamoda He mentioned putty in his question. Even though he mentioned lxterminal, my guess is, he is connecting it via ssh. Again, it's my guess. Also, It is very common error for guys trying to execute a GUI program via remote access. – dhruvvyas90 Jul 2 '15 at 13:36
  • actually am using a laptop without a hdmi cable to connect to the raspberry pi so i am using putty and even i hav an other problem i dont get any icons as i get acess to raspberry (i.e)as the window opens i will only get the logo of raspberry in the middle and nothng else. to get acess to it i left click ooon the screen and create a new folder and then acess the apllications through that folder. – Sharath Vedala Jul 2 '15 at 16:32
  • @SharathVedala If you want to use python shell, you can do it on your ssh by issuing sudo python. IDLE is similar shell with good graphics and everything. – dhruvvyas90 Jul 2 '15 at 16:37
0

Like the folks above have said, you can run python from PuTTY by simply running sudo python and this will solve being able to run python in text mode from your Windows system. And to control LEDs that's all you need.

The error you are getting has to do with Windows not being able to open a GUI program running on your RPi. If you really wanted to see your RPi's GUI apps on Windows you can do this by running an X11 server (the Linux GUI system) on your Windows system. Check out the xming project and instructions for using it with PuTTY.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.