public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* How to remotly launch application with SSH and Cygwin/X server
@ 2010-02-09 23:31 Fabien Tillay
2010-02-09 23:48 ` Larry Hall (Cygwin X)
2010-02-26 16:09 ` __Ricardo__
0 siblings, 2 replies; 6+ messages in thread
From: Fabien Tillay @ 2010-02-09 23:31 UTC (permalink / raw)
To: cygwin-xfree
Hi,
I've got a problem with Cygwin/X server (via Cygwin 1.7.1)
Assuming we have a PC on Linux called X and a PC on Windows called Y.
I want to send a SSH command from X to Y which launchs firefox on Y.
(ie Windows)
Firstly, if I go to Y (Windows) and launch a Cygwin shell and then
enter the 'firefox' command (firefox is in the PATH environment
variable of course), the Firefox is launched correctly and I can
navigate to whatever I want.
If I send a SSH command from X (Linux) to Y (Windows) with the firefox
command : ssh username@Y_IP_ADDRESS firefox, I've got a firefox.exe
process in the task manager of Y but Firefox is in the background (ie
there is no Firefox window).
I have set the DISPLAY environment variable to :0.0.
Do you know why it is launched in background ?
Is there a mean of displaying Firefox launched from the Linux box on Windows ?
Thanks
Silver
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to remotly launch application with SSH and Cygwin/X server
2010-02-09 23:31 How to remotly launch application with SSH and Cygwin/X server Fabien Tillay
@ 2010-02-09 23:48 ` Larry Hall (Cygwin X)
2010-02-26 16:09 ` __Ricardo__
1 sibling, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin X) @ 2010-02-09 23:48 UTC (permalink / raw)
To: cygwin-xfree
On 02/09/2010 06:31 PM, Fabien Tillay wrote:
> Hi,
>
> I've got a problem with Cygwin/X server (via Cygwin 1.7.1)
> Assuming we have a PC on Linux called X and a PC on Windows called Y.
> I want to send a SSH command from X to Y which launchs firefox on Y.
> (ie Windows)
>
> Firstly, if I go to Y (Windows) and launch a Cygwin shell and then
> enter the 'firefox' command (firefox is in the PATH environment
> variable of course), the Firefox is launched correctly and I can
> navigate to whatever I want.
> If I send a SSH command from X (Linux) to Y (Windows) with the firefox
> command : ssh username@Y_IP_ADDRESS firefox, I've got a firefox.exe
> process in the task manager of Y but Firefox is in the background (ie
> there is no Firefox window).
>
> I have set the DISPLAY environment variable to :0.0.
No matter. Firefox on Windows knows nothing of X Windows anyway. No
surprise, right?
> Do you know why it is launched in background ?
> Is there a mean of displaying Firefox launched from the Linux box on Windows ?
Generally, no. Depending on the version of Windows and Cygwin you're running,
you can go to the Control Panel->Administrative Tools->Services->Cygwin SSHD->
Log On and enable "Allow service to interact with desktop" if you're already
running the service with "Local System". Pretty much for any other case, you
can't do on Windows what you want to do.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to remotly launch application with SSH and Cygwin/X server
2010-02-09 23:31 How to remotly launch application with SSH and Cygwin/X server Fabien Tillay
2010-02-09 23:48 ` Larry Hall (Cygwin X)
@ 2010-02-26 16:09 ` __Ricardo__
2010-02-26 18:04 ` Mike Ayers
1 sibling, 1 reply; 6+ messages in thread
From: __Ricardo__ @ 2010-02-26 16:09 UTC (permalink / raw)
To: cygwin-xfree
I have similar problem with Cygwin 1.7.1's SSHD. I'm unable to start any
Windows GUI program via SSH. Strange is the problem doesn't occur in
SSHD shipped with cygwin 1.5.25-7, which I had installed yesterday. In
version 1.5
enough thing to do was enable service option: "Allow interact with desktop",
then GUI applications were able to be correctly run via ssh. In version 1.7
switch on this option in Cygwin SSHD service option doesn't help.
Application cannot
draw himself, and generates tons of denial access errors.
I tried also grant acces in Local Policies to user,
Generate security audits
Replace process level token
Create process token
didn't help too :(
I have Win XP SP2, under this system I had installed Cygwin 1.5 and launch
GUI apps via ssh
worked. Now I have Win XP SP2 too, but current Cygwin version is 1.7.1 - It
doesn't work.
I tried to find answer to this problem, and I saw this problem is not a new
one (people
complains since A.D. ~2006), but nobody could definitly answer how to make
it work, or
at least say that is impossible to do at all.
If someone has some info, please help. Thanks.
Ricardo.
silver95 wrote:
>
> Hi,
>
> I've got a problem with Cygwin/X server (via Cygwin 1.7.1)
> Assuming we have a PC on Linux called X and a PC on Windows called Y.
> I want to send a SSH command from X to Y which launchs firefox on Y.
> (ie Windows)
>
> Firstly, if I go to Y (Windows) and launch a Cygwin shell and then
> enter the 'firefox' command (firefox is in the PATH environment
> variable of course), the Firefox is launched correctly and I can
> navigate to whatever I want.
> If I send a SSH command from X (Linux) to Y (Windows) with the firefox
> command : ssh username@Y_IP_ADDRESS firefox, I've got a firefox.exe
> process in the task manager of Y but Firefox is in the background (ie
> there is no Firefox window).
>
> I have set the DISPLAY environment variable to :0.0.
> Do you know why it is launched in background ?
> Is there a mean of displaying Firefox launched from the Linux box on
> Windows ?
>
> Thanks
> Silver
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://x.cygwin.com/docs/
> FAQ: http://x.cygwin.com/docs/faq/
>
>
>
--
View this message in context: http://old.nabble.com/How-to-remotly-launch-application-with-SSH-and-Cygwin-X-server-tp27523977p27720120.html
Sent from the cygwin-xfree mailing list archive at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How to remotly launch application with SSH and Cygwin/X server
2010-02-26 16:09 ` __Ricardo__
@ 2010-02-26 18:04 ` Mike Ayers
[not found] ` <27722202.post@talk.nabble.com>
0 siblings, 1 reply; 6+ messages in thread
From: Mike Ayers @ 2010-02-26 18:04 UTC (permalink / raw)
To: cygwin-xfree
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 528 bytes --]
> From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree-
> owner@cygwin.com] On Behalf Of __Ricardo__
> Sent: Friday, February 26, 2010 8:09 AM
> didn't help too :(
> I have Win XP SP2, under this system I had installed Cygwin 1.5 and
> launch
> GUI apps via ssh
> worked. Now I have Win XP SP2 too, but current Cygwin version is 1.7.1
> - It
> doesn't work.
You are trying to launch the Windows screen apps as the user that owns the screen, correct?
Thanks,
Mike
\x16º&s(0|_ç«zÛ«ovóÉb²Ö«r\x172\b§ÅúÞ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to remotly launch application with SSH and Cygwin/X server
[not found] ` <27722202.post@talk.nabble.com>
@ 2010-06-10 17:24 ` Larry Hall (Cygwin X)
0 siblings, 0 replies; 6+ messages in thread
From: Larry Hall (Cygwin X) @ 2010-06-10 17:24 UTC (permalink / raw)
To: cygwin-xfree
On 2/26/2010 2:07 PM, __Ricardo__ wrote:
> X23G8c wrote:
>>
>>> From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree-
>>> owner@cygwin.com] On Behalf Of __Ricardo__
>>> Sent: Friday, February 26, 2010 8:09 AM
>>
>>> didn't help too :(
>>> I have Win XP SP2, under this system I had installed Cygwin 1.5 and
>>> launch
>>> GUI apps via ssh
>>> worked. Now I have Win XP SP2 too, but current Cygwin version is 1.7.1
>>> - It
>>> doesn't work.
>>
>> You are trying to launch the Windows screen apps as the user that owns
>> the screen, correct?
>>
>>
>> Thanks,
>>
>> Mike
>>
>>
>
> Yes. I'll try to explain better: I'm log on to windows as e.g. User1, that
> is administrator user. When I start cygwin shell I can simply run:
> $notepad
>
> I see Notepad application correct launched, but If I do it this way:
>
> $ssh User1@localhost
> User1@localhost's password:
> Last login: Fri Feb 26 18:00:01 2010 from localhost
>
> User1@athlon ~
> $ notepad
>
> I have notepad launched (I see it on process ) but it cannot draw correctly
> himself on the screen. The same behaviour was in Cygwin 1.5, but then
> sufficient thing to do was simply select SSHD service option: "Allow service
> to interact with desktop", which was solve the problem.
>
> With Cygwins' 1.7 SSHD, selection this option does not take any effect, I
> have still this unexpected to me behaviour.
There are more authentication options in 1.7 which may help:
<http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview>
However, I will say that you shouldn't get too used to this working, since
MS removed the capability after XP.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to remotly launch application with SSH and Cygwin/X server
@ 2010-02-10 20:15 Fabien Tillay
0 siblings, 0 replies; 6+ messages in thread
From: Fabien Tillay @ 2010-02-10 20:15 UTC (permalink / raw)
To: cygwin-xfree
Ok thanks for your information Larry.
When I enable "Allow service to interact with desktop", If I launch
from X a ssh command to Y with "firefox" it launches the Firefox
window now but not in its normal form.
We have the Firebox taskbar entry with the border of the application,
but not the main tab.
I tried with Internet Explorer and I've got the same behavior, only
the taskbar entry and the border not the main page.
It seems like a display bug or something else (I tried these tests on
2 different PCs and same effects...)
Do you know what can cause this ?
Here my test environments :
Windows XP SP3
Windows Vista SP2
IE 6.0.2900
Firefox 3.5.6
I would like to share my experience with other tools :
Winexe :
Works well between Linux and Windows XP in interactive mode.
Works on Vista but the interactive mode is not present which is
prejudicial for my context.
PsExec : works well but it runs only on Windows unfortunately.
If you have some advices, I'm looking forward to hearing from you.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-06-10 17:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-09 23:31 How to remotly launch application with SSH and Cygwin/X server Fabien Tillay
2010-02-09 23:48 ` Larry Hall (Cygwin X)
2010-02-26 16:09 ` __Ricardo__
2010-02-26 18:04 ` Mike Ayers
[not found] ` <27722202.post@talk.nabble.com>
2010-06-10 17:24 ` Larry Hall (Cygwin X)
2010-02-10 20:15 Fabien Tillay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).