delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/05/14:32:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2,FREEMAIL_FROM,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <30853289.post@talk.nabble.com>
Date: Sat, 5 Feb 2011 11:31:56 -0800 (PST)
From: davej1983 <dij1983 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygstart through SSH tunnel
In-Reply-To: <iij3sh$s24$1@dough.gmane.org>
MIME-Version: 1.0
References: <30850233 DOT post AT talk DOT nabble DOT com> <iij3sh$s24$1 AT dough DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Thanks for your help, and I will definitely look into Cygwin/X.

However, from the way you explained it, I'm not sure if I clearly explained
what I was trying to do. I'm not actually trying to get the file to open on
my local computer, rather I am trying to get them to open/execute on the
remote computer. 

For example if I am physically at Computer 1, and I tunnel into Computer 2,
I want the file to open on the screen of Computer 2. And what I don't
understand is that when I am physically at Computer 2 and type "cygstart
test.txt" it opens fine, its only when I do it over the tunnel it doesn't
work. As far as I understood it, when you are logged in through a SSH
tunnel, it is as if you are physically at the remote computer running
Cygwin. 

Is there some kind of block (permissions etc...) that prevent these commands
from being executed remotely? 

Sorry if I'm not being very clear, as I said, I'm pretty new to all of this,
so I'm still learning the proper terminology etc!

Thanks!
Dave


defaria wrote:
> 
> On 02/04/2011 10:00 PM, davej1983 wrote:
>> Hi, I'm fairly new to Cygwin, so this might be a pretty simple question,
>> but
>> so far I haven't had any luck finding an answer so far.
>>
>> I have an SSH server running on a remote computer, that I can log into
>> using
>> cygwin. While logged, if I use cygstart to try to open a file, or if I
>> try
>> to launch a program, it will not fully open/launch. For example, if I try
>> to
>> open a text file, notepad.exe will show up in the task manager, but won't
>> actually open. Does anyone have any idea what I am doing wrong? Any help
>> would be appreciated!
> You're making the invalid assumption that Microsoft wrote a network 
> aware windowing system. They didn't! It quite simply just doesn't work 
> that way. There are no concepts like an X server, a display or the 
> concept of saying "run this gui client here on this machine, but display 
> it's window on another display". Indeed Windows just blindly assumes 
> that you are logged in and present at the current machines physical 
> CRT... oops - showing my age - monitor and (guessing here) that the 
> appropriate structures are on the heap to put up this notepad.exe window 
> on the current machine (in your example, the remote computer - which 
> then fails, leaving notepad running but no visible window to interact
> with.
> 
> You might want to try installing Cygwin/X and using a true X server and 
> X clients.
> -- 
> Andrew DeFaria <http://defaria.com>
> One-seventh of your life is spent on Monday.
> 
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Cygstart-through-SSH-tunnel-tp30850233p30853289.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019