Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'argument': 0.05; 'works.': 0.09; 'cc:addr:python-list': 0.11; 'mostly': 0.14; '>>': 0.16; 'cc:name:python list': 0.16; 'holy': 0.16; 'ssh': 0.16; 'ssh,': 0.16; 'subject:Tkinter': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.18; 'bit': 0.19; 'machine': 0.22; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; '>': 0.26; 'extension': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'on,': 0.29; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'usually': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'know.': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'remote': 0.38; 'problems': 0.38; 'pm,': 0.38; 'that,': 0.38; 'how': 0.40; 'even': 0.60; 'love': 0.65; '30,': 0.65; 'subject:couldn': 0.84; 'subjected': 0.84; 'works!': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YsybbemPBfyfVOKTQVHOLpBeMMHtQp7vIv1SrawmqKw=; b=sxXajb2occqavKx0XWR6djBXdxdcIWUQJRl/rOMli0MubCmKmBHGF8wJrP8Q9NyhXV 8QzotdY+RTZHTgHBXh6W0UvDys9QrsQZDjHEym/jbLDL7CBtL/7uvrT0X7Fv103hdJgh qVqQ+E4q0Paw0IkbD7D3oFZ9DNSWAo7puAFUyfcqY+oQpoUvG64RxLgbRNvpKhgskTIz 3CmaXLyb3FEz0atefSzSwYMWz1fTb3fMwEQNovXS3vd1LYm/WGjAlP1Eg73CmDly7OS9 8Zt8W2DnJq8+80454hQoMgqRvx67IYXhKRfhWZUm9OOcfuBBGwHoM45r3yp9xbzXsstY J42w== MIME-Version: 1.0 X-Received: by 10.50.50.236 with SMTP id f12mr374985igo.8.1388383171286; Sun, 29 Dec 2013 21:59:31 -0800 (PST) In-Reply-To: <52c0e898$0$2877$c3e8da3$76491128@news.astraweb.com> References: <52c0aed1$0$29981$c3e8da3$5496439d@news.astraweb.com> <52c0e898$0$2877$c3e8da3$76491128@news.astraweb.com> Date: Mon, 30 Dec 2013 00:59:31 -0500 Subject: Re: Tkinter problem: TclError> couldn't connect to display ":0 From: Jason Swails To: "Steven D'Aprano" Content-Type: multipart/alternative; boundary=047d7bd75b3abc9cbc04eeba2568 Cc: python list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 78 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388383522 news.xs4all.nl 2944 [2001:888:2000:d::a6]:34314 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62876 --047d7bd75b3abc9cbc04eeba2568 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Dec 29, 2013 at 10:29 PM, Steven D'Aprano 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 > > 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. > I usually use "ssh -Y". The -Y argument toggles trusted forwarding. From the ssh man-page: -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls. I've found -Y is a bit faster than -X in my experience (I've never really had many problems with X-forwarding on LANs in my experience -- even with OpenGL windows) --047d7bd75b3abc9cbc04eeba2568 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On Su= n, Dec 29, 2013 at 10:29 PM, Steven D'Aprano <steve@pearwood.info> wrote:
>> So you need to X-forward from the remote m= achine to the machine you are
>> physically on, or perhaps it's the other way (X is really weir= d). 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.
I usually u= se "ssh -Y". =A0The -Y argument toggles trusted forwarding. =A0Fr= om the ssh man-page:

=A0 =A0 =A0-Y =A0 =A0 =A0Enables trusted X11 forwarding. =A0Trusted X11 for= wardings are not subjected to the X11
=A0 =A0 =A0 =A0 =A0 =A0 =A0SECURIT= Y extension controls.

I've found -Y is a bit faster than -X in my experience (I've never = really had many problems with X-forwarding on LANs in my experience -- even= with OpenGL windows)
--047d7bd75b3abc9cbc04eeba2568--