Running remote programs locally
Harold L Hunt II
huntharo@msu.edu
Mon Sep 1 01:42:00 GMT 2003
You don't set them on the same line. He was typing in short-hand. What
he meant was:
export DISPLAY=127.0.0.1:0.0
ssh -X linuxcomputer
Now, you will notice that following the directions in the Cygwin/XFree86
User's Guide (which says to do this in an xterm) does not require
setting DISPLAY at all. The reason for this is that the xterm already
has DISPLAY set (or else it wouldn't have been able to connect to the X
Server in the first place). So, doing this from an xterm drops a step
from the instructions and makes it a little more fool-proof.
Hope that helps,
Harold
Andrew Clarke wrote:
> Thanks for your response. After reading the others' responses, this was
> the final clincher for me. It also helps me for times like now when I'm
> working on some random wireless link (Starbucks, in this instance) and
> I'm behind a proxy server or for some other reason can't refer to myself
> by my IP. This way I don't have to type xterm -display
> some.random.ip.number:0 which of course doesn't work in this instance.
>
> I do have one question though: why do I set my DISPLAY environment
> variable on the same line as my ssh call? What's the deal with that?
>
> Thanks again,
> - Andrew.
>
> -----Original Message-----
> From: cygwin-xfree-owner@cygwin.com
> [mailto:cygwin-xfree-owner@cygwin.com] On Behalf Of Alexander Gottwald
> Sent: Wednesday, August 27, 2003 11:57
> To: cygwin-xfree@cygwin.com
> Subject: Re: Running remote programs locally
>
>
> On Wed, 27 Aug 2003, Andrew Clarke wrote:
>
>
>>Hi. I'm new to cygwin although I've been using Unix/Linux on and off
>>for several years. I have the full cygwin-xfree package loaded and
>
> I'm
>
>>trying to ssh into my Linux computer and run applications locally.
>
> So,
>
>>this is the process I go through:
>>
>>Start bash shell
>>Run 'xwin &'
>>When it comes up, I 'ssh linuxcomputer' and enter my password
>
>
> try DISPLAY=localhost:0.0 ssh -X linuxcomputer. This enables encrypted
> X11 communication over the ssh channel. You will not require the xhost
> call anymore.
>
> bye
> ago
>
>
More information about the Cygwin-xfree
mailing list