Gokula Rangarajan | 1 Jun 2009 04:01
Favicon

1.5.25: RSH issue with Cygwin/Win2008

Team,

I am running windows Server Enterprise 2008, 64 bit. I have installed the latest version of Cygwin in the
windows 2008 server. I have a bunch of RHEL5.x servers that needs to controlled from Windows 2008 server
using RSH.  While I am aware that SSH is more secure than RSH, I have no other options. The benchmark software
that we are using will work on rsh only.

The issue is, from the windows server, using Cygwin, when I rsh to a remote RHEL5.3 server, the prompt is
empty (as if it has done something or working fine).

For example, from the server lg95, when I rsh to lg30, the below are the responses:

################################3
root:~# hostname
lg95
root:~# rsh lg30
root:~#
root:~#
root:~# hostname
lg95
root:~#
root:~# rsh lg30 ls
root:~# hostname
lg95
root:~#
################################3

Could you please help?  Please see the cygoutput. Thank You.

Gokula Rangarajan
(Continue reading)

Christopher Faylor | 1 Jun 2009 04:24
Favicon

Re: 1.5.25: RSH issue with Cygwin/Win2008

On Sun, May 31, 2009 at 10:01:41PM -0400, Gokula Rangarajan wrote:
>Team,

Go back and read http://cygwin.com/lists.html again and you'll see that
this isn't a support or bug reporting mailing list.  You need to use the
maing cygwin list for that type of thing.

cgf

Christopher Faylor | 1 Jun 2009 04:49
Favicon

Re: 1.5.25: RSH issue with Cygwin/Win2008

On Sun, May 31, 2009 at 10:24:56PM -0400, Christopher Faylor wrote:
>On Sun, May 31, 2009 at 10:01:41PM -0400, Gokula Rangarajan wrote:
>>Team,
>
>Go back and read http://cygwin.com/lists.html again and you'll see that
>this isn't a support or bug reporting mailing list.  You need to use the
>maing cygwin list for that type of thing.
 ^^^^^
 main

Ken Brown | 1 Jun 2009 23:03
Picon
Favicon

Suggestion for terminal package maintainers

The Cygwin console, after some changes made this past weekend, now uses 
^? as the default erase character, and this is what is sent by the 
backspace key instead of ^H 
(http://cygwin.com/ml/cygwin/2009-05/msg00818.html).  These changes are 
in effect as of the 2009-05-31 snapshot.  In order to minimize confusion 
among users, I suggest that maintainers of the various terminal packages 
(xterm, mintty, rxvt-*) think about making similar changes to the 
default behavior of their packages the next time they update.

Corresponding changes would have to be made to the terminfo database 
(and, in some cases, to /etc/termcap).  For example, the change to the 
Cygwin console requires the following patch:

--- origsrc/terminfo-5.7_20090228/terminfo.src	2009-03-01 
00:32:20.000000000 -0500
+++ src/terminfo-5.7_20090228/terminfo.src	2009-05-30 17:33:13.063590500 
-0400
 <at>  <at>  -5221,7 +5221,7  <at>  <at>  cygwin|ansi emulation for Cygwin,
  	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G, home=\E[H,
  	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d <at> , ich1=\E[ <at> ,
  	il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G,
-	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
+	kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
  	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
  	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
  	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,

Ken

P.S. The change to the Cygwin console arose from a discussion of a 
(Continue reading)

Charles Wilson | 2 Jun 2009 07:53
Favicon

Re: More: [1.7] packaging problem? Both /usr/bin/ and /usr/lib/ are non-empty

Charles Wilson wrote:
> I'll need to verify that it really truly solves the
> problem Monday at work, but it looks promising.
[snip]
> Checking in as obvious (Corinna *meant* to do this, but missed)
> 
> 2009-05-30  Charles Wilson  <...>
> 
> 	* script.cc (Script::run): Really start bash with --norc
> 	--noprofile options.
> 
> This doesn't appear to *break* anything, but I won't *know* if it
> actually solves the original problem until I check it on Monday. (I
> *think* it will, but...)

Verified. I ran three separate tests ("virgin" installs), all from a
machine on which %HOME% was set to a network share that contained
pre-existing (noisy) .dotfiles.  In each case, the installation was
performed from a local rsync mirror of release-2, modified by the
inclusion of my special "fake" package, which:
  1) has an /etc/postinstall/ script to print out some diagnostic info
(labelled "inner" in the transcripts below), and
  2) has a very large list of requires: for my preferred initial
installation.

****************
1) The original setup 2.625, but with Sciprt::run() modified to print
out Eric's requested information from the "outer" /usr/bin/bash.  This
failed in the expected and previously-reported manner. In addition to
the partial transcript below, the resulting installation was thoroughly
(Continue reading)

Corinna Vinschen | 2 Jun 2009 10:48
Favicon

Re: More: [1.7] packaging problem? Both /usr/bin/ and /usr/lib/ are non-empty

On May 30 16:11, Charles Wilson wrote:
> Actually, we are NOT invoking with --norc. Here's the most recent patch
> to setup.exe:
> 
>  <at>  <at>  -223,7 +223,7  <at>  <at>  Script::run() const
>    OutputLog file_out = std::string (mktemp (tmp_pat));
>    if (sh.size() && stricmp (extension(), ".sh") == 0)
>      {
> -      log(LOG_PLAIN) << "running: " << sh << " -c " << scriptName <<
> endLog;
> +      log(LOG_PLAIN) << "running: " << sh << " --norc --noprofile -c "
> << scriptName << endLog;
>        retval = ::run (sh.c_str(), "-c", scriptName.c_str(), file_out);
>      }
> 
> Notice anything?

Urgh!  Thanks for catching.

Corinna

--

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Corinna Vinschen | 2 Jun 2009 14:48
Favicon

Re: Suggestion for terminal package maintainers

On Jun  1 17:03, Ken Brown wrote:
> The Cygwin console, after some changes made this past weekend, now uses  
> ^? as the default erase character, and this is what is sent by the  
> backspace key instead of ^H  
> (http://cygwin.com/ml/cygwin/2009-05/msg00818.html).  These changes are  
> in effect as of the 2009-05-31 snapshot.  In order to minimize confusion  
> among users, I suggest that maintainers of the various terminal packages  
> (xterm, mintty, rxvt-*) think about making similar changes to the  
> default behavior of their packages the next time they update.
>
> Corresponding changes would have to be made to the terminfo database  
> (and, in some cases, to /etc/termcap).  For example, the change to the  
> Cygwin console requires the following patch:
>
> --- origsrc/terminfo-5.7_20090228/terminfo.src	2009-03-01  
> 00:32:20.000000000 -0500
> +++ src/terminfo-5.7_20090228/terminfo.src	2009-05-30 17:33:13.063590500  
> -0400
>  <at>  <at>  -5221,7 +5221,7  <at>  <at>  cygwin|ansi emulation for Cygwin,
>  	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G, home=\E[H,
>  	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d <at> , ich1=\E[ <at> ,
>  	il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G,
> -	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
> +	kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
>  	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
>  	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
>  	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
>
> Ken
>
(Continue reading)

Ken Brown | 2 Jun 2009 15:28
Picon
Favicon

Re: Suggestion for terminal package maintainers

On 6/2/2009 8:48 AM, Corinna Vinschen wrote:
> On Jun  1 17:03, Ken Brown wrote:
>> The Cygwin console, after some changes made this past weekend, now uses  
>> ^? as the default erase character, and this is what is sent by the  
>> backspace key instead of ^H  
>> (http://cygwin.com/ml/cygwin/2009-05/msg00818.html).  These changes are  
>> in effect as of the 2009-05-31 snapshot.  In order to minimize confusion  
>> among users, I suggest that maintainers of the various terminal packages  
>> (xterm, mintty, rxvt-*) think about making similar changes to the  
>> default behavior of their packages the next time they update.
>>
>> Corresponding changes would have to be made to the terminfo database  
>> (and, in some cases, to /etc/termcap).  For example, the change to the  
>> Cygwin console requires the following patch:
>>
>> --- origsrc/terminfo-5.7_20090228/terminfo.src	2009-03-01  
>> 00:32:20.000000000 -0500
>> +++ src/terminfo-5.7_20090228/terminfo.src	2009-05-30 17:33:13.063590500  
>> -0400
>>  <at>  <at>  -5221,7 +5221,7  <at>  <at>  cygwin|ansi emulation for Cygwin,
>>  	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G, home=\E[H,
>>  	hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d <at> , ich1=\E[ <at> ,
>>  	il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G,
>> -	kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
>> +	kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
>>  	kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
>>  	kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
>>  	kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
>>
>> Ken
(Continue reading)

Ken Brown | 2 Jun 2009 15:39
Picon
Favicon

Re: Suggestion for terminal package maintainers

On 6/2/2009 9:28 AM, Ken Brown wrote:
> On 6/2/2009 8:48 AM, Corinna Vinschen wrote:
>> On Jun  1 17:03, Ken Brown wrote:
>>> The Cygwin console, after some changes made this past weekend, now 
>>> uses  ^? as the default erase character, and this is what is sent by 
>>> the  backspace key instead of ^H  
>>> (http://cygwin.com/ml/cygwin/2009-05/msg00818.html).  These changes 
>>> are  in effect as of the 2009-05-31 snapshot.  In order to minimize 
>>> confusion  among users, I suggest that maintainers of the various 
>>> terminal packages  (xterm, mintty, rxvt-*) think about making similar 
>>> changes to the  default behavior of their packages the next time they 
>>> update.
>>>
>>> Corresponding changes would have to be made to the terminfo database  
>>> (and, in some cases, to /etc/termcap).  For example, the change to 
>>> the  Cygwin console requires the following patch:
>>>
>>> --- origsrc/terminfo-5.7_20090228/terminfo.src    2009-03-01  
>>> 00:32:20.000000000 -0500
>>> +++ src/terminfo-5.7_20090228/terminfo.src    2009-05-30 
>>> 17:33:13.063590500  -0400
>>>  <at>  <at>  -5221,7 +5221,7  <at>  <at>  cygwin|ansi emulation for Cygwin,
>>>      dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, fsl=^G, home=\E[H,
>>>      hpa=\E[%i%p1%dG, ht=^I, ich=\E[%p1%d <at> , ich1=\E[ <at> ,
>>>      il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G,
>>> -    kbs=^H, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
>>> +    kbs=^?, kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
>>>      kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, kf10=\E[21~,
>>>      kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
>>>      kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
(Continue reading)

Corinna Vinschen | 2 Jun 2009 16:09
Favicon

Re: Suggestion for terminal package maintainers

On Jun  2 09:39, Ken Brown wrote:
> On 6/2/2009 9:28 AM, Ken Brown wrote:
>> On 6/2/2009 8:48 AM, Corinna Vinschen wrote:
>>> On Jun  1 17:03, Ken Brown wrote:
>>>> The Cygwin console, after some changes made this past weekend, now  
>>>> uses  ^? as the default erase character, and this is what is sent 
>>>> by the  backspace key instead of ^H   
>>>> [...]
>>>
>>> What makes me a bit concerned about this change is that, while we can
>>> change Cygwin's terminfo and termcap files, we can't do that for
>>> existing non-Cygwin installations.  Is it really safe to change the BS
>>> key to ^? now that the "cygwin" terminal type is known to return ^H for
>>> so many years?
>>
>> Applications like emacs that use ncurses should have no problem.  Are  
>> there applications that rely on the historical behavior of the cygwin  
>> terminal type rather than querying terminfo?  Apart from cygwin, such  
>> applications would have problems with any terminal type that decides to 
>> change its behavior.
>
> Sorry, I think I misinterpreted what you meant by "non-Cygwin  
> installations".  But wouldn't the issue be resolved by pushing the  
> change to the cygwin terminal type in terminfo upstream?

It would solve it over time when non-Cygwin systems pick up the
latest terminfo/termcap.  I'm just wondering if it's not a bit
surprising for remote apps when started in a Cygwin console window
via ssh/rsh/telnet/etc.

(Continue reading)


Gmane