0

I'm writing a gtk python app that I'm testing on an ubuntu laptop, however I'm writing the script on my win7 desktop (sftp to update the script the laptop).

If I try to execute the script via SSH such as:

python /path/to/app.py

It gives me errors since obviously gtk won't render a window in putty such as:

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display

My question is, is there a way to execute the script via remote ssh that will open fine on the laptop? Its kind of a pain to have to save the script, then lean over and execute the script on the laptop.

Does anyone have any ideas how to do this?

1
  • So your script is stored in the Ubuntu laptop and you are editing it on your Windows desktop. You want that the window appears on your Windows system or in the Ubuntu one? Commented Oct 6, 2013 at 18:57

1 Answer 1

1

Install a X server on your Windows 7: http://sourceforge.net/projects/xming/

Then, don't forget to do ssh -X when you start the remote script.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.