Tkinter problem: TclError> couldn't connect to display ":0

Chris Angelico rosuav at gmail.com
Mon Dec 30 05:11:10 CET 2013


On Mon, Dec 30, 2013 at 2:29 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote:
>
>> On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano
>> <steve+comp.lang.python at pearwood.info> wrote:
>>> So you need to X-forward from the remote machine to the machine you are
>>> physically on, or perhaps it's the other way (X is really weird). I
>>> have no idea how to do that, but would love to know.
>>
>> With SSH, that's usually just "ssh -X target", and it'll mostly work.
>
> Holy cow, it works! Sloooooooowly, but works.
>
>
> steve at runes:~$ ssh -X ando.pearwood.info
> steve at ando.pearwood.info's password:
> Last login: Mon Dec 30 10:10:13 2013 from orac
> [steve at ando ~]$ python2.7 test.py
> [steve at ando ~]$

On a LAN, it's not even slow! I've actually run VLC through ssh -X and
watched a DVD that was in a different computer's drive. That was fun.

You can even get a Windows X server and run Linux GUI programs on a
Windows client. *Very* useful if you're working with both types of
computer.

ChrisA



More information about the Python-list mailing list