Re: Redirect SSHD messages from Application to Security log in Win2k

2005-12-01 Thread Corinna Vinschen
On Nov 30 15:16, Brian Dessent wrote:
> Listmail wrote:
> > 2) I would like the ssh messages to go to the Security log, as it is
> > empty now and seems like a logically named place for these events.
> > The application log is getting full quickly by ssh logon/logoff
> > messages.
> 
> This is not possible without modifying the syslog code in cygwin, and
> even then I don't know if regular applications can log to the security
> log.

It can't.  MSDN documents that the Security log is for system use only
and that an application trying to register for this log fails:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/registereventsource.asp

Makes sense, after all sshd is just an application.

Why not use syslogd instead?


Corinna

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

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



Re: Re: how to make ssh-agent automatically

2005-12-01 Thread Corinna Vinschen
On Dec  1 08:34, Morche Matthias wrote:
> You just want to connect from one host to another one. It's totally
> sufficient to set up the key and copy the public part into authorized
> keys on the remote host. I never used ssh-agent nor ssh-add and
> passwordless logins to several hosts and Windows are hourly routine. Why
> do you need them?

Did you ever heard the term "passphrase"?  man ssh-keygen.


Corinna

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

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



RPC headers anyone?

2005-12-01 Thread Erik de Castro Lopo
Hi all,

I'm trying to compile an app that uses the header files  
and , but I can't find the package that supplies these
headers.

Is there a Cygwin package that supplies this header?

TIA,
Erik
-- 
+---+
  Erik de Castro Lopo
+---+
C offers you enough rope to hang yourself.
C++ offers a fully equipped firing squad, a last cigarette and
a blindfold.

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



RE: Re: how to make ssh-agent automatically

2005-12-01 Thread Morche Matthias
Yes, and I'm trying very hard to avoid it's use in my local environment
:-) But thanks for that reminder anyway...

  matthias



Corinna Vinschen wrote:
> On Dec  1 08:34, Morche Matthias wrote:
>> You just want to connect from one host to another one. It's totally
>> sufficient to set up the key and copy the public part into authorized
>> keys on the remote host. I never used ssh-agent nor ssh-add and
>> passwordless logins to several hosts and Windows are hourly routine.
>> Why do you need them?
> 
> Did you ever heard the term "passphrase"?  man ssh-keygen.
> 
> 
> Corinna
> 
> --
> Corinna Vinschen  Please, send mails regarding Cygwin
> to Cygwin Project Co-Leader  cygwin AT cygwin DOT com
> Red Hat, Inc.

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



Re: RPC headers anyone?

2005-12-01 Thread Chris Taylor

Erik de Castro Lopo wrote:

Hi all,

I'm trying to compile an app that uses the header files  
and , but I can't find the package that supplies these

headers.

Is there a Cygwin package that supplies this header?

TIA,
Erik


In fact there are two with these headers - the source package for the 
cygwin dll, and the sunrpc package.

The latter is probably what you want - they go in /usr/include

For future reference: http://cygwin.com/packages/
Merely type in the filenames.


Chris
--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

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



Re: RPC headers anyone?

2005-12-01 Thread Erik de Castro Lopo
Chris Taylor wrote:

> In fact there are two with these headers - the source package for the 
> cygwin dll, and the sunrpc package.
> The latter is probably what you want - they go in /usr/include
> 
> For future reference: http://cygwin.com/packages/
> Merely type in the filenames.

Cool thanks.

Erik
-- 
+---+
  Erik de Castro Lopo
+---+
"There are two kinds of large software systems: those that 
evolved from small systems and those that don't work."
-- Seen on slashdot.org, then quoted by amk

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



font

2005-12-01 Thread Oliver Vecernik
Hi,

I'd like to use Courier New as font for Cygwin, but the only choices
I've got are Lucida Console and Rasterschriftart. One solution is to use
PuTTY to connect via ssh to localhost, but I think this is a bit of
overkill. Is there another posiibility?

-- 
Oliver


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



Re: font

2005-12-01 Thread Brian Dessent
Oliver Vecernik wrote:

> I'd like to use Courier New as font for Cygwin, but the only choices
> I've got are Lucida Console and Rasterschriftart. One solution is to use
> PuTTY to connect via ssh to localhost, but I think this is a bit of
> overkill. Is there another posiibility?

You seem to be referring to the CMD.EXE window.  That's a windows thing
over which Cygwin has no control.  Use rxvt if you want more flexibility
(and a much better console in general.)

Brian

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



Re: font

2005-12-01 Thread Chris Taylor

Oliver Vecernik wrote:

Hi,

I'd like to use Courier New as font for Cygwin, but the only choices
I've got are Lucida Console and Rasterschriftart. One solution is to use
PuTTY to connect via ssh to localhost, but I think this is a bit of
overkill. Is there another posiibility?



Yes. Don't use the cmd-based cygwin interface.
Use rxvt.
Install the rxvt package with setup, then use something like the 
following (I suggest creating a shortcut):


C:\cygwin\bin\rxvt.exe -sl 1 -sr +sk -si -sw -fg Green -bg Black -e 
/bin/bash --login -i


Use the man pages and other docs to find out what the various options 
mean and how to change the font.



Chris

--

Spinning complacently in the darkness, covered and blinded by a blanket
of little lives, false security has lulled the madness of this world
into a slumber. Wake up! An eye is upon you, staring straight down and
keenly through, seeing all that you are and everything that you will
never be. Yes, an eye is upon you, an eye ready to blink. So face
forward, with arms wide open and mind reeling. Your future has
arrived... Are you ready to go?

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



Radius authentication via PAM?

2005-12-01 Thread Wouter Backx
Hi,

for accomplishing Radius authentication on an OpenSSH server (like
COPssh) I'd like to set up RADIUS authentication on Cywin for
One-Time-Passowds from hardware tokens verified by a RADIUS server.
We have been investigation for using PAM, but there is very little
information on PAM with Cygwin on the net. For PAM there are pluggins
available for RADIUS authentication, but it seems to be for other
software/unix flavours.
If PAM is the way forward, are there any "to the point" resources
available for doing RADIUS authentication on CYGWIN?

Many thanks,

Wouter

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



interoperability between samba, linux-cifs, cywgin and sfu

2005-12-01 Thread Martin Koeppe


Hello,

[please cc me on replies]

while playing around with a Windows server (2003), a Linux server 
(2.6.11) with Samba (3.0.14a) and a Windows client (2000) with both 
Interix Services for Unix (SFU) (3.5) and Cygwin (1.5.19pre20051130) 
installed, I encountered the following problems or inconsistencies 
when using on the one hand SFU and Cygwin on Windows and Samba network 
shares, and on the other hand when using linux-cifs on Windows shares, 
where locally Cygwin or SFU are used.


Most of these problems have been already discussed, and some of them 
have been solved in between, but I'm cross-posting this summary now to 
all lists involved on that, I hope at least.


Here interoperability is meant as storing special unix file attributes 
(special files, mode bits and user/group ids) in such a way, that they 
ideally are interpreted in the same way by all Windows<->Unix 
connecting software.


(I have marked in [], which of the software mentioned in this mail's 
subject I think should be changed for better interoperability.)



1. storage of special files such as symlinks, fifos, devs  [all]


The way that SFU stores these special files, I tried to explore at:
http://lists.samba.org/archive/linux-cifs-client/2005-May/000856.html

Cygwin has its own way which I observed by a quick look (so may not 
be completely correct):

http://lists.samba.org/archive/linux-cifs-client/2005-November/001080.html

A concrete problem on cygwin is that you can create device files, but 
these device files are shown as symlinks instead of as device files 
(even on C:), i.e.


cygwin$ mknod myblock b 0 0
cygwin$ ls -l
lrwxrwxrwx  1 martin mkpasswd  10 Nov 30 23:10 myblock -> :\0:0:61b6
cygwin$ test -b myblock && echo "block"
[ does not echo "block", so is not seen as a block device file ]
cygwin$ test -l myblock && echo "link"
bash: test: -l: unary operator expected
cygwin$ perl -e '-l "myblock" && print "link"'
link

So "test" dies unexpectedly, but perl doesn't. Another problem.

cygwin$ mkfifo myfifo && ls -l myfifo
prw-rw-rw-  1 martin mkpasswd 102 Nov 30 23:09 myfifo

The fifo is made correctly and shown as such, but has a file size of
102 which is <>0, so not, what I would have expected.

It would be nice if Cygwin could store these files in the same way as 
SFU. And Samba could then convert the SFU method to real device and 
fifo files on the disk. For the cifs client, work has begun to include 
the SFU way:

http://lists.samba.org/archive/linux-cifs-client/2005-November/001073.html

The only thing one could discuss is how to store symlinks. Cygwin's 
symlinks can be followed in Windows Explorer, whereas SFU symlinks are 
more consistent, as they are named exactly the same on the 
underlying disk, no .lnk appended.



2. test -l does not work [cygwin]
=

I repeat this here from above for clarity:

cygwin$ test -l a_link && echo "link"
bash: test: -l: unary operator expected
cygwin$ perl -e '-l "a_link" && print "link"'
link

So "test" dies unexpectedly, but perl doesn't.


3. set file bits  [all]
===

SFU stores the set file bits in an extended attribute called 
SETFILEBITS, for details see:

http://lists.samba.org/archive/linux-cifs-client/2005-June/000865.html

Cygwin seems to store the set bits with the help of a special acl 
entry for the "NULL SID". At least chmod 0 creates such an acl 
entry, and after manually deleting it, the file has no longer set bits 
set in cygwin's opinion.


While both of these methods can be used to store these infos on a 
windows server share, it would be nice, if it could be stored by a 
samba server as well, ideally in such a way, that locally on the samba 
server the file mode is the same as within SFU and/or Cygwin.


The cifs client ideally should show and set these mode bits as well 
from within linux, when one runs Cygwin and/or SFU on a Windows 
server. Work is in progress on that, see:

http://lists.samba.org/archive/linux-cifs-client/2005-November/001073.html


4. file and directory lower 9 mode bits  [all]
==

While Corinna has written a good howto on mapping the mode bits on 
Windows ACL entries:

http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping
I found one issue not documented there though:

Suppose you have on Windows the following directories:
C:\temp\t1\t2
Now you change the permissions with explorer in the following way:
t2: has access allowed for the current user (non-inherited)
t1: all ACL entries are removed

You can now do the following on a CMD.EXE:
C:\temp> cd t1
Permission denied!
C:\temp> cd t1\t2
C:\temp\t1\t2>
So chdir into t2 is possible.

On Cygwin t1 is shown by ls as d-, but "cd t1/t2" nevertheless 
works.


On interix sfu, t1 is also shown as d-, but "cd t1/t2" doesn't 
work. Even though it works via Windows Explorer or CMD.EXE.


I don't know which behaviour should 

Re: Call for testing Cygwin snapshot

2005-12-01 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Corinna Vinschen on 11/30/2005 10:11 AM:
> 
> Please report back in this thread when you encounter a problem, which
> you can't reproduce with 1.5.18.  We're interested in regressions in
> the first place.

On Win98 with snapshot 20051130, I am getting a consistent popup box
during libtool configuring that sh is doing an illegal instruction when
forking.  Clicking close on the popup allows configure to complete, at
which point libtool appears to build correctly.  Trying to strace produced
an error much earlier.

- --
Life is short - so eat dessert first!

Eric Blake [EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDjwKQ84KuGfSFAYARArkQAJ9H3+x2DXceb+HiQxNtTbd5tTDqowCfeUYF
d/cFLPOCteN5bsKmyErYVHE=
=gacA
-END PGP SIGNATURE-
**
Program name: D:\CYGWIN\BIN\SH.EXE (pid 16187693, ppid 1)
App version:  1005.18, api: 0.132
DLL version:  1005.19, api: 0.145
DLL build:20051130 13:17:51SNP
OS version:   Windows 98-4.10
Heap size:402653184
Date/Time:2005-12-01 06:54:28
**
  4194021 [main] SH 16187693 set_myself: myself->dwProcessId 4278779603
  5084529 [main] SH 16187693 time: 1133445268 = time (0)
  4895018 [main] SH 16187693 reg_key::reg_key: HKU\eblake failed, Win32 
error 2
 10416059 [main] SH 16187693 reg_key::reg_key: HKU\eblake failed, Win32 
error 2
 10847143 [main] SH 16187693 environ_init: GetEnvironmentStrings returned 
0x590020 - "=C:=C:\WINDOWS"
  7307873 [main] SH 16187693 environ_init: 0x9E0238: !C:=C:\WINDOWS
  9548827 [main] SH 16187693 environ_init: 0x9E0250: !D:=D:\cygwin\bin
 10519878 [main] SH 16187693 environ_init: 0x9E0268: BLASTER=A220 I7 D1 T2 
  790   10668 [main] SH 16187693 environ_init: 0x9E0288: 
BOOTCLASSPATH=d:\j2sdk1.5\jre\lib\rt.jar
  728   11396 [main] SH 16187693 environ_init: 0x9E02B8: 
CLASSPATH=C:\Progra~1\Java\j2re1.4.2\lib\ext\QTJava.zip;.
  726   12122 [main] SH 16187693 environ_init: 0x9E02F8: CMDLINE=bash --login -i
  716   12838 [main] SH 16187693 environ_init: 0x9E0318: COMSPEC=C:\COMMAND.COM
  726   13564 [main] SH 16187693 environ_init: 0x9E0338: 
CVSEDITOR=/cygdrive/c/emacs-20.7/bin/emacs
  723   14287 [main] SH 16187693 environ_init: 0x9E0368: CVS_RSH=/bin/ssh
  720   15007 [main] SH 16187693 environ_init: 0x9E0380: DIRCMD= /o:gne
  714   15721 [main] SH 16187693 environ_init: 0x9E0398: 
EDITOR=/cygdrive/c/emacs-20.7/bin/emacs
  729   16450 [main] SH 16187693 getwinenv: can't set native for HOME= since no 
environ yet
  735   17185 [main] SH 16187693 mount_info::conv_to_posix_path: 
conv_to_posix_path (d:\cygwin\home\eblake, no-keep-rel, no-add-slash)
  407   17592 [main] SH 16187693 normalize_win32_path: d:\cygwin\home\eblake = 
normalize_win32_path (d:\cygwin\home\eblake)
  424   18016 [main] SH 16187693 mount_info::conv_to_posix_path: /home/eblake = 
conv_to_posix_path (d:\cygwin\home\eblake)
 1069   19085 [main] SH 16187693 win_env::add_cache: posix /home/eblake
  374   19459 [main] SH 16187693 win_env::add_cache: native 
HOME=d:\cygwin\home\eblake
  382   19841 [main] SH 16187693 posify: env var converted to HOME=/home/eblake
  705   20546 [main] SH 16187693 environ_init: 0x9E03E8: HOME=/home/eblake
  729   21275 [main] SH 16187693 environ_init: 0x9E0530: 
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:
  741   22016 [main] SH 16187693 environ_init: 0x9E05A0: 
JAVA_HOME=/cygdrive/c/jdk1.4
  718   22734 [main] SH 16187693 environ_init: 0x9E03C8: LESS=ai
  733   23467 [main] SH 16187693 environ_init: 0x9E05C8: 
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*~=01;33:*.mtxt=05;31:*.ndx=05;31:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.class=36:*.o=36:*.c=01;36:*.cc=01;36:*.cpp=01;36:*.cxx=01;36:*.h=01;36:*.hh=01;36:*.hpp=01;36:*.pl=01;36:*.pm=01;36:*.cgi=01;36:*.java=01;36:*.html=01;36:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.gz=01;31:*.bz2=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.pbm=01;35:*.pgm=01;35:*.tga=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.jpg=01;35:*.jpeg=01;35:*.JPG=01;35:*.png=01;35:*.gif=01;35:*.GIF=01;35:*.bmp=01;35:*.BMP=01;35:*.xbm=01;35:*.ppm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
  991   24458 [main] SH 16187693 environ_init: 0x9E0948: MAKE_MODE=unix
  718   25176 [main] SH 16187693 environ_init: 0x9E0960: 
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/share/qt3/doc/man:/usr/X11R6/man
  735   25

RE: font

2005-12-01 Thread Williams, Gerald S \(Jerry\)
Chris Taylor wrote:
> Yes. Don't use the cmd-based cygwin interface.
> Use rxvt.

Agreed. However, expect the occasional surprise when
running non-Cygwin console binaries since they won't
recognize that they are running on a terminal. I use
a Tcl-based debugger at work, and when running it in
Win32 console mode under RXVT, I don't get a prompt.

If that's not an issue for you, go ahead and don't
look back.

BTW, you can specify Windows-style fonts for RXVT in
your .Xdefaults file. For example, here are the RXVT
options in my .Xdefaults file:

Rxvt.geometry:  120x50
Rxvt.saveLines: 1000
Rxvt.backspacekey:  ^?
Rxvt.meta8: true
Rxvt.font1: "Lucida Console-10"
Rxvt.font2: "Lucida Console-13"
Rxvt.font:  "Lucida Console-16"
Rxvt.font3: "Lucida Console-19"
Rxvt.font4: "Lucida Console-22"
Rxvt.font5: "Lucida Console-25"
Rxvt.font6: "Lucida Console-28"
Rxvt.color4:lightblue3
Rxvt.background:rgb:3f/1f/1f
Rxvt.foreground:PapayaWhip
Rxvt.color12:   SteelBlue
Rxvt.color15:   PapayaWhip
Rxvt.scrollBar_right:   true
Rxvt.scrollstyle:   next

(I don't know whether the quotes are recommended or
not. At least on my system they're not needed, but
I've seen other posters use them.)

gsw


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



Re: how to make ssh-agent automatically

2005-12-01 Thread H.S.
Morche Matthias wrote:
> You just want to connect from one host to another one. It's totally
> sufficient to set up the key and copy the public part into authorized
> keys on the remote host. I never used ssh-agent nor ssh-add and

1. I did that. So why I am asked for my SSH passphrase when I try to SSH
from my local machine to remote machine?

2. In your situation, do you have pass phrases for SSH or not?


->HS


> passwordless logins to several hosts and Windows are hourly routine. Why
> do you need them?
> 
>   matthias
> 


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



Re: font

2005-12-01 Thread Andrew DeFaria

Williams, Gerald S (Jerry) wrote:


Rxvt.font1: "Lucida Console-10"
Rxvt.font2: "Lucida Console-13"
Rxvt.font: "Lucida Console-16"
Rxvt.font3: "Lucida Console-19"
Rxvt.font4: "Lucida Console-22"
Rxvt.font5: "Lucida Console-25"
Rxvt.font6: "Lucida Console-28"


What do these do?
--
If it's zero degrees outside today and it's supposed to be twice as cold 
tomorrow, how cold is it going to be?



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



[ANNOUNCEMENT] Updated: octave-forge-2005.06.13-5

2005-12-01 Thread James R. Phillips
INFO

The cygwin octave-forge package has been updated to release 2005.06.13-5.

Changes:

+ Modified installation directory structure to remove  dependence on installed
version of octave

More information in the octave-forge-2005.06.13-5.README file.

The octave-forge project contains over 500 contributed functions for GNU Octave
which are not in the main distribution. These functions are grouped according
to the following subdirectories: audio, comm, control, general, geometry,
ident, image, io, linear-algebra, miscellaneous, optim, path, plot, set,signal,
sparse, specfun, special-matrix, splines, statistics, strings, struct,
symbolic, time. The Cygwin distribution of octave-forge also incorporates
m-files from the octave-ci collection.

octave-forge home page: http://octave.sourceforge.net

octave-ci collection: ftp://ftp.ci.tuwien.ac.at/pub/octave/octave-ci.tar.gz



UPDATE
==

To update your installation, click on the "Install Cygwin now" link on the
http://cygwin.com/ web page.  This downloads setup.exe to your system.  Save it
and run setup, answer the questions and pick up 'octave-forge' from the 'Math'
category. Then click on the 'skip' field next to 'octave-forge' until
'2005.06.13-5' is displayed.

DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't allowed due
to bandwidth limitations.  This means that you will need to find a mirror which
has this update, please choose the one nearest to you: 

http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing list
cygwin@cygwin.com is the appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send email to
the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

MAINTAINER
==
James R. Phillips


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



RE: Re: how to make ssh-agent automatically

2005-12-01 Thread Morche Matthias
You're right, I avoided the use of passphrases and carefully considered
the loss of security imposed by that and thus I do not need ssh-agent...
It's been so long ago, that I just forgot about those consequences...

  matthias



H.S. wrote:
> Morche Matthias wrote:
>> You just want to connect from one host to another one. It's totally
>> sufficient to set up the key and copy the public part into authorized
>> keys on the remote host. I never used ssh-agent nor ssh-add and
> 
> 1. I did that. So why I am asked for my SSH passphrase when I try to
> SSH from my local machine to remote machine?
> 
> 2. In your situation, do you have pass phrases for SSH or not?
...

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



[ANNOUNCEMENT] Updated: octave-2.1.72-1

2005-12-01 Thread James R. Phillips
INFO

The cygwin octave package has been updated to release 2.1.72-1.

Changes:
+ Update to new upstream release 2.1.72.  This is the latest release in the
"testing" branch of octave development.  The release incorporates important bug
fixes.  Further information on the octave release branches is available at
http://www.octave.org.

More information on the cygwin 2.1.72-1 release is in the octave-2.1.72.README
file.

GNU Octave is a (mostly Matlab (R) compatible) high-level language, primarily
intended for numerical computations.  It provides a convenient command-line
interface for solving linear and nonlinear problems numerically.

Octave Home Page: http://www.octave.org

UPDATE
==

To update your installation, click on the "Install Cygwin now" link on the
http://cygwin.com/ web page.  This downloads setup.exe to your system.  Save it
and run setup, answer the questions and pick up 'octave' from the 'Math'
category. Then click on the 'skip' field next to 'octave' until '2.1.71-2' is
displayed.

DOWNLOAD:
=
Note that downloads from sources.redhat.com (aka cygwin.com) aren't allowed due
to bandwidth limitations.  This means that you will need to find a mirror which
has this update, please choose the one nearest to you: 

http://cygwin.com/mirrors.html


QUESTIONS:
==
If you want to make a point or ask a question the Cygwin mailing list is the
appropriate place.


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
=
To unsubscribe to the cygwin-announce mailing list, look at the
"List-Unsubscribe: " tag in the email header of this message.  Send email to
the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

MAINTAINER
==
James R. Phillips


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



Re: how to make ssh-agent automatically

2005-12-01 Thread CyberZombie
I am unable to locate "sendchenv".  This tool looks like it solves a 
frustrating problem I have been having (getting regtool changes to 
register in any new Cygwin/Windows program).  Can you point out where to 
find it?


Karl M wrote:

Hi H.S

Using keychain is only one way, it is not the only way. I no longer 
use keychain.


I launch ssh-agent from a bash script that is run as a service from 
cygrunsrv; it is run as the user, not as SYSTEM. This makes the 
ssh-agent process survive Windows logout; I only have to enter a 
passphrase after reboot. The bash script edits the user registry to 
define the environment variable for the ssh-agent socket. It sends a 
message that the environment has been updated and then waits on a 
sleeping child to keep the service control manager happy.


The script looks like

$ cat /bin/secret-agent-service
#!/bin/bash
# Launch the ssh-agent from a service so it survives logoff.

# When the service stops, kill the ssh-agent.
trap "ssh-agent -k;
 exit 0" TERM

# Clean up old files that may be left behind after a crash.
#   The file permissions make this safe to do in a multi-user
#   environment, but "/tmp" must be local to this host.
rm -rf /tmp/ssh-*

# Launch the ssh-agent.
eval $(ssh-agent)

# Provide the ssh-agent socket ID via the registry and broadcast
#   the change in case the user is logged before we finish.
#   Do not provide the ssh-agent PID to minimize the risk of
#   killing the ssh-agent.
regtool -s set /HKEY_CURRENT_USER/Environment/SSH_AUTH_SOCK 
$SSH_AUTH_SOCK

sendchenv

# Wait quietly until the service is stopped.
while true; do
 sleep 24h &
 wait
done

In my .bash_profile I have

ssh-add -l >/dev/null 2>&1
if [ $? -eq 1 ]; then
 ssh-add
fi

which checks if the agent is there and needs a passphrase, and if so, 
invokes ssh-add and I enter my passphrase.


I will look at the new cygrunsrv changes and see if I can simplify 
things and then propose a package.


This saves almost one second of CPU time when I start a bash window, 
compared to using keychain (also launched as a service).


HTH,

...Karl


From: "H.S." Subject: Re: how to make ssh-agent automatically
Date: Wed, 30 Nov 2005 21:24:20 -0500

Hi Karl,

Karl M wrote:
> Hi HS...
>
> You can use keychain (a package available from setup.exe).
>
> I do something like
>
> ssh-add -l >/dev/null 2>&1
> if [ $? -eq 1 ]; then
>  ssh-add
> fi
>
> in my .bash_profile, because keychain is slow when I launch several
> windows.

Okay, I will try that. BTW, just out of curosity, is using keychain only
one of the methods to achieve this or is it the only method? I mean, is
it possible to do this without keychain or any other packages and just
with ssh and rsync and login/logout files and environment variables?


>
> Why do you kill the agent when you log out? (Windows will kill it when
> you log off from windows.)

Currently I was starting ssh-agent in cygwin command prompt window. And
if I did not kill ssh-agent the window would not close upon exit. By
killing if from .bash_logout solved that problem.

thanks,
->HS

> If you want to keep the agent around from one login to the next, 
you can
> launch the agent as a service. I used to do that with keychain, but 
for

> performance reasons, I use ssh-agent and ssh-add directly. I plan on
> proposing a package for doing this.
>
> HTH,
>
> ...Karl
>
>


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





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





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



Re: how to make ssh-agent automatically

2005-12-01 Thread Karl M

Hi...

It is just a little program I wrote to send the message. It is attached.

The method I used works on XP and 2000. I have not tested on any other 
platforms.


HTH,

...Karl


From: CyberZombie Subject: Re: how to make ssh-agent automatically
Date: Thu, 01 Dec 2005 11:03:20 -0600

I am unable to locate "sendchenv".  This tool looks like it solves a 
frustrating problem I have been having (getting regtool changes to register 
in any new Cygwin/Windows program).  Can you point out where to find it?


Karl M wrote:

Hi H.S

Using keychain is only one way, it is not the only way. I no longer use 
keychain.


I launch ssh-agent from a bash script that is run as a service from 
cygrunsrv; it is run as the user, not as SYSTEM. This makes the ssh-agent 
process survive Windows logout; I only have to enter a passphrase after 
reboot. The bash script edits the user registry to define the environment 
variable for the ssh-agent socket. It sends a message that the environment 
has been updated and then waits on a sleeping child to keep the service 
control manager happy.


The script looks like

$ cat /bin/secret-agent-service
#!/bin/bash
# Launch the ssh-agent from a service so it survives logoff.

# When the service stops, kill the ssh-agent.
trap "ssh-agent -k;
 exit 0" TERM

# Clean up old files that may be left behind after a crash.
#   The file permissions make this safe to do in a multi-user
#   environment, but "/tmp" must be local to this host.
rm -rf /tmp/ssh-*

# Launch the ssh-agent.
eval $(ssh-agent)

# Provide the ssh-agent socket ID via the registry and broadcast
#   the change in case the user is logged before we finish.
#   Do not provide the ssh-agent PID to minimize the risk of
#   killing the ssh-agent.
regtool -s set /HKEY_CURRENT_USER/Environment/SSH_AUTH_SOCK $SSH_AUTH_SOCK
sendchenv

# Wait quietly until the service is stopped.
while true; do
 sleep 24h &
 wait
done

In my .bash_profile I have

ssh-add -l >/dev/null 2>&1
if [ $? -eq 1 ]; then
 ssh-add
fi

which checks if the agent is there and needs a passphrase, and if so, 
invokes ssh-add and I enter my passphrase.


I will look at the new cygrunsrv changes and see if I can simplify things 
and then propose a package.


This saves almost one second of CPU time when I start a bash window, 
compared to using keychain (also launched as a service).


HTH,

...Karl


From: "H.S." Subject: Re: how to make ssh-agent automatically
Date: Wed, 30 Nov 2005 21:24:20 -0500

Hi Karl,

Karl M wrote:
> Hi HS...
>
> You can use keychain (a package available from setup.exe).
>
> I do something like
>
> ssh-add -l >/dev/null 2>&1
> if [ $? -eq 1 ]; then
>  ssh-add
> fi
>
> in my .bash_profile, because keychain is slow when I launch several
> windows.

Okay, I will try that. BTW, just out of curosity, is using keychain only
one of the methods to achieve this or is it the only method? I mean, is
it possible to do this without keychain or any other packages and just
with ssh and rsync and login/logout files and environment variables?


>
> Why do you kill the agent when you log out? (Windows will kill it when
> you log off from windows.)

Currently I was starting ssh-agent in cygwin command prompt window. And
if I did not kill ssh-agent the window would not close upon exit. By
killing if from .bash_logout solved that problem.

thanks,
->HS

> If you want to keep the agent around from one login to the next, you 
can
> launch the agent as a service. I used to do that with keychain, but 
for

> performance reasons, I use ssh-agent and ssh-add directly. I plan on
> proposing a package for doing this.
>
> HTH,
>
> ...Karl
>
>


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





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







#include 

int main()
{
 DWORD dwReturnValue;

 LRESULT lrStatus = SendMessageTimeout(
   HWND_BROADCAST,
   WM_SETTINGCHANGE,
   0,
   (LPARAM) "Environment",
   SMTO_ABORTIFHUNG,
   5000,
   &dwReturnValue
 );

 return (lrStatus) ? 0 : 1;
}


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

Issues Upgrading Octave and Octave-Forge

2005-12-01 Thread James R. Phillips
For those that are upgrading octave and octave-forge to the newest releases, be
certain that you are not using octave at the time of the upgrade, otherwise the
installation may not update files that are in use, resulting in a partial
installation.

If you get a 2.1.71 version message upon loading 2.1.72, this has happened to
you.  Quit all octave sessions, and reinstall the upgrades.

Note also that to compile .oct files, you need to use gcc 3.3.3.  Both octave
and octave-forge are compiled using this version.

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



cdrecord and loopback devices

2005-12-01 Thread surendar jeyadev
Sorry, Rene! Didn't send it to the group by mistake.

--- René Berber <[EMAIL PROTECTED]> wrote:

> No, no package, but there is one available for
> Cygwin:  Look for
> cdrecord-prodvd-2.01a11-i586-pc-cygwin.exe or a more
> recent version (this was
> from 2003).

Thanks. I got Ross Smith's version  from the link on
.

mkisofs seems to work fine but I have not burnt a CD
as yet. On Solaris
I am used to testing the raw image prior to burning
buy using the 'lofiadm'
related commands to associate a device with the raw
image file and then
mounting it. Going through the Cygwin archives I
gather that there are no
loopback facilities within Cygwin, though I picked up
a hint to used something
called 'filedisk'. I have not completed its
installation -- have to backup the
registry first!! -- but, is there any *other* way to
check the integrity of 
the ISO raw image file?

thanks
sj



__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/

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



Re: interoperability between samba, linux-cifs, cywgin and sfu

2005-12-01 Thread Christopher Faylor
On Thu, Dec 01, 2005 at 02:18:10PM +0100, Martin Koeppe wrote:
>Hello,
>
>[please cc me on replies]
>
>while playing around with a Windows server (2003), a Linux server 
>(2.6.11) with Samba (3.0.14a) and a Windows client (2000) with both 
>Interix Services for Unix (SFU) (3.5) and Cygwin (1.5.19pre20051130) 
>installed, I encountered the following problems or inconsistencies 
>when using on the one hand SFU and Cygwin on Windows and Samba network 
>shares, and on the other hand when using linux-cifs on Windows shares, 
>where locally Cygwin or SFU are used.
>
>Most of these problems have been already discussed, and some of them 
>have been solved in between, but I'm cross-posting this summary now to 
>all lists involved on that, I hope at least.
>
>Here interoperability is meant as storing special unix file attributes 
>(special files, mode bits and user/group ids) in such a way, that they 
>ideally are interpreted in the same way by all Windows<->Unix 
>connecting software.
>
>(I have marked in [], which of the software mentioned in this mail's 
>subject I think should be changed for better interoperability.)
>
>
>1. storage of special files such as symlinks, fifos, devs  [all]
>
>
>The way that SFU stores these special files, I tried to explore at:
>http://lists.samba.org/archive/linux-cifs-client/2005-May/000856.html
>
>Cygwin has its own way which I observed by a quick look (so may not 
>be completely correct):
>http://lists.samba.org/archive/linux-cifs-client/2005-November/001080.html
>
>A concrete problem on cygwin is that you can create device files, but 
>these device files are shown as symlinks instead of as device files 
>(even on C:), i.e.
>
>cygwin$ mknod myblock b 0 0
>cygwin$ ls -l
>lrwxrwxrwx  1 martin mkpasswd  10 Nov 30 23:10 myblock -> :\0:0:61b6
>cygwin$ test -b myblock && echo "block"
>[ does not echo "block", so is not seen as a block device file ]
>cygwin$ test -l myblock && echo "link"
>bash: test: -l: unary operator expected
>cygwin$ perl -e '-l "myblock" && print "link"'
>link
>
>So "test" dies unexpectedly, but perl doesn't. Another problem.

Cygwin didn't consider a device with a major/minor of zero to be a real
device.  This is fixed in CVS.

>cygwin$ mkfifo myfifo && ls -l myfifo
>prw-rw-rw-  1 martin mkpasswd 102 Nov 30 23:09 myfifo
>
>The fifo is made correctly and shown as such, but has a file size of
>102 which is <>0, so not, what I would have expected.

I've also fixed this in CVS but I don't see why it would actually
present a problem.

>2. test -l does not work [cygwin]
>=
>
>I repeat this here from above for clarity:
>
>cygwin$ test -l a_link && echo "link"
>bash: test: -l: unary operator expected
>cygwin$ perl -e '-l "a_link" && print "link"'
>link
>
>So "test" dies unexpectedly, but perl doesn't.

test -l (lowercase L) is not equivalent to perl's -l "function".  You
use "test -L" (uppercase L) to check for symlinks.  Unsurprisingly
enough, that works fine on cygwin.

cgf

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



RE: Issues Upgrading Octave and Octave-Forge

2005-12-01 Thread Dave Korn
James R. Phillips wrote:
> For those that are upgrading octave and octave-forge to the newest
> releases, be certain that you are not using octave at the time of the
> upgrade, otherwise the installation may not update files that are in use,
> resulting in a partial installation.


  For those that are upgrading _any_ package, be certain that you are not
using it at the time, or the same can happen.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: interoperability between samba, linux-cifs, cywgin and sfu

2005-12-01 Thread Corinna Vinschen
On Dec  1 14:18, Martin Koeppe wrote:
> Maybe the following on FILE_TRAVERSE and BYPASS_TRAVERSE_CHECKING is 
> helpful:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/file_security_and_access_rights.asp

Been there, done that.  Try "CYGWIN=traverse".  Expect weird problems.
See http://support.microsoft.com/default.aspx?scid=kb;en-us;823659.
Maybe Interix brackets all file related calls with switching on and off
traverse checking in the user's access token, but we're already
suffering enough on this mailing list from "CywGin is slw" reports.

> 8. CreateHardLink() Windows API  [cygwin] [ActivePerl]
> ==
> 
> former seems to call the latter internally. As CreateHardLink() is 
> used by cygwin (and ActivePerl, too), you cannot with these.
> 
> Unfortunately, the error returned by CreateHardLink() doesn't say 
> "hardlinks not supported", but it says "file not found":
> 
> cygwin$ ln file file2
> ln: creating hard link `file2' to `file': No such file or directory

Maybe something's broken in your environment.  Cygwin's link(2) function
works fine on NTFS and Samba shares for me.


Corinna

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

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



cygwin emacs rebaseall

2005-12-01 Thread William Karh

This is a information sharing post.

I did a rebaseall yesterday and then could not to build Emacs from cvs.
The src/bootstrap-emacs.exe would hang in _cygtls.  I left it there all
night to see if it was just slow, but this morning it was still the same.
I then modified the src/Makefile and changed:

LD=$(CC) -Wl,--image-base,0x2000

to

LD=$(CC) -Wl,--enable-auto-image-base

This change allowed me to build Emacs from cvs.  It even launches okay.
I'll have to use it some to get an idea if it is more or less unstable
(since cvs Emacs cygwin is kinda unstable anyway).

Regards,
Bill Karh



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



Re: How to improve scp speed?

2005-12-01 Thread Cary Jamison
In news:[EMAIL PROTECTED],
Brian Dessent typed:
> Cary Jamison wrote:
>
>> I think we all know that encryption is a factor.  The site still
>> states :
>
> No, I wouldn't say that we all know that.  I just ran "openssl speed"
> and on my very modest Athlon XP 1700 machine and both the aes-128 and
> blowfish ciphers clocked in at approximately 60-65 megabytes/sec
> throughput.  That's about 50 times faster than the theoretical maximum
> throughput of 10Base-T ethernet.  Even this modest system can encrypt
> 5 times faster than the absolute maximum rate of 100 megabit ethernet.
>
> I think you are vastly overestimating the CPU requirement of
> encryption.  And it is also why the original poster should not waste
> his time trying to find a nonexistent, useless, and insecure option to
> disable encryption.

Ok, I probably am.  But, you wouldn't expect the buffer tuning to make such 
a big difference, either, since a fast processor can surely move data around 
in memory several times faster than it can move it over the net.  All these 
things add up, though


Cary




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



Re: font

2005-12-01 Thread Cary Jamison
In news:[EMAIL PROTECTED],
Williams, Gerald S (Jerry) typed:
> Chris Taylor wrote:
>> Yes. Don't use the cmd-based cygwin interface.
>> Use rxvt.
>
> Agreed. However, expect the occasional surprise when
> running non-Cygwin console binaries since they won't
> recognize that they are running on a terminal. I use
> a Tcl-based debugger at work, and when running it in
> Win32 console mode under RXVT, I don't get a prompt.
>
> If that's not an issue for you, go ahead and don't
> look back.

I'm always surprised at how many people recommened using rxvt.  I use it 
once in a while, but there's just too many things I do don't work right 
unless I'm using the regular Win32 console.  Output is delayed until the 
process exits, input is ignored, etc., etc.


Cary




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



Re: cdrecord and loopback devices

2005-12-01 Thread Cary Jamison
In news:[EMAIL PROTECTED],
surendar jeyadev typed:
> Thanks. I got Ross Smith's version  from the link on
> .
>
> mkisofs seems to work fine but I have not burnt a CD
> as yet. On Solaris
> I am used to testing the raw image prior to burning
> buy using the 'lofiadm'
> related commands to associate a device with the raw
> image file and then
> mounting it. Going through the Cygwin archives I
> gather that there are no
> loopback facilities within Cygwin, though I picked up
> a hint to used something
> called 'filedisk'. I have not completed its
> installation -- have to backup the
> registry first!! -- but, is there any *other* way to
> check the integrity of
> the ISO raw image file?

There are lots of Windows tools for working with ISOs.  You can use VCD from 
Microsoft to mount the image.  Or, check out IsoBuster (isobuster.com) to 
look at the internals.


Cary




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



Re: [SOLVED] Re: zone alarm service depency problem with sshd

2005-12-01 Thread Igor Pechtchanski
On Thu, 1 Dec 2005, H. S. wrote:

> H. S. wrote:
> > Hi,
> >
> > I am trying to have sshd running on my Windows XP box. I have Zone Alarm
> > installed, ver. 6.0.667.
> >
> > I configured sshd with:
> > $> ssh-host-config
> >
> > and started as a service:
> > $> cygrunsrv -S sshd
> > which promptly made Zone Alarm to ask if sshd should be allowed internet
> > access. I allowed it's client as well as server access. And it worked from
> > my other LAN PCs.
> >
> > But then I noticed that after I rebooted the Windows XP box, I could no
> > longer ssh to it from another computer even though the sshd service was
> > running. Zone Alarm was blocking it. I had restart sshd service to make Zone
> > Alarm ware to allow access to/from it.
> >
> > A little google search resulted in making Zone Alarm service a dependency of
> > sshd. So:
> > 1. I removed sshd service using "cygrunsrv -R sshd"
> > 2. I installed it again by making Zone Alarm service as it's dependency:
> > $> cygrunsrv -I sshd -p /usr/sbin/sshd -f "Cygwin SSH Demon" -y zlclient.exe
>
> The problem was that ... er ... zlclient is not a service at all, or so it
> seems to me (since "tasklist /svc" in a command prompt listed it, it first
> looked as service to me).
>
> So I stopped the service:
> $ cygrunsrv -E sshd
>
> then removed it
> $ cygrunsrv -R sshd
>
> and then this command solved the problem (there was another problem of
> CYGWIN env. too but I didn't know about it earlier):
> $ cygrunsrv -I sshd -p /usr/sbin/sshd -f "Cygwin SSH Demon"  -a'-D' -e
> 'CYGWIN=binmode ntsec tty' -y tcpip -y vsmon
>
> After giving this command, I restarted the service
> $ cygrunsrv -S sshd
>
> and rebooted. I was then able to log in to the XP box just after booting
> (without loggin as any user).

Would it make sense to change ssh-host-config to include the "tcpip" and
"vsmon" dependencies automatically?  Corinna?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

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



Re: Call for testing Cygwin snapshot (problem with inode numbers)

2005-12-01 Thread Corinna Vinschen
On Dec  1 13:01, Peter Rehley wrote:
>   It only appears to be a problem  
> when I have a mac os x share mounted to a drive on windows.When I  
> try with a windows share or a linux share I don't seem to have the  
> problem.
> 
> The problem that I'm seeing is that the inode value isn't unique when  
> listing a directory (or using any program that uses the inode value).

Do I understand you right that this only happens for directories?  The
normal file inodes are looking ok?

> The inode that comes back from doing a ls -li is first much shorter  
> that a normal inode.  I've included lists from my share when using  
> the 20051123 snapshot and then they 20051128 snapshot.  The only  
> change that I've done between the two is update cygwin using the  
> cygwin-inst snapshot file.

Yes, I have no Mac OS X handy.  I have attached two hacked test
applications, which you can simply build with `gcc -o foo foo.c'.

The first one, GetVolInfo, should get a Cygwin path to any file on the
Mac OS X share.  It prints the volume information returned from the
share.

The second one, GetFileInfo, should be called on a few directories and a
couple of files on the share.

The output of both tests might be helpful.

And another thing to try.  Could you please check (only with the latest
snapshot) if the resulting inode numbers are the same when running

 $ cd /local/cygwin/dir && ls -i //MacOSX/share/dir

and 

 $ cd //MacOSX/share && ls -i dir

?


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.
#include 
#include 
#include 
#define _WIN32_WINNT 0x0500
#include 

#ifndef FILE_READ_ONLY_VOLUME
#define FILE_READ_ONLY_VOLUME 0x8
#endif

int
main (int argc, char **argv)
{
  char winpath[256];
  char rootdir[256];
  char volname[256];
  char fsname[256];
  DWORD sernum = 0;
  DWORD maxlen = 0;
  DWORD flags = 0;

  if (argc < 2)
{
  fprintf (stderr, "usage: %s path\n", argv[0]);
  return 1;
}
  cygwin_conv_to_full_win32_path (argv[1], winpath);
  if (!GetVolumePathName(winpath, rootdir, 256))
{
  fprintf (stderr, "GetVolumePathName: %d\n", GetLastError ());
  return 1;
}
  printf ("rootdir: %s\n", rootdir);
  if (!GetVolumeInformation (rootdir, volname, 256, &sernum,
 &maxlen, &flags, fsname, 256))
{
  fprintf (stderr, "GetVolumeInformation: %d\n", GetLastError ());
  return 1;
}
  printf ("Volume Name: <%s>\n", volname);
  printf ("Serial Number  : %lu\n", sernum);
  printf ("Max Filenamelength : %lu\n", maxlen);
  printf ("Filesystemname : <%s>\n", fsname);
  printf ("Flags:\n");

  printf ("  FILE_CASE_SENSITIVE_SEARCH  : %s\n",
  (flags & FILE_CASE_SENSITIVE_SEARCH) ? "TRUE" : "FALSE");

  printf ("  FILE_CASE_PRESERVED_NAMES   : %s\n",
  (flags & FILE_CASE_PRESERVED_NAMES) ? "TRUE" : "FALSE");

  printf ("  FILE_UNICODE_ON_DISK: %s\n",
  (flags & FILE_UNICODE_ON_DISK) ? "TRUE" : "FALSE");

  printf ("  FILE_PERSISTENT_ACLS: %s\n",
  (flags & FILE_PERSISTENT_ACLS) ? "TRUE" : "FALSE");

  printf ("  FILE_FILE_COMPRESSION   : %s\n",
  (flags & FILE_FILE_COMPRESSION) ? "TRUE" : "FALSE");

  printf ("  FILE_VOLUME_QUOTAS  : %s\n",
  (flags & FILE_VOLUME_QUOTAS) ? "TRUE" : "FALSE");

  printf ("  FILE_SUPPORTS_SPARSE_FILES  : %s\n",
  (flags & FILE_SUPPORTS_SPARSE_FILES) ? "TRUE" : "FALSE");

  printf ("  FILE_SUPPORTS_REPARSE_POINTS: %s\n",
  (flags & FILE_SUPPORTS_REPARSE_POINTS) ? "TRUE" : "FALSE");

  printf ("  FILE_SUPPORTS_REMOTE_STORAGE: %s\n",
  (flags & FILE_SUPPORTS_REMOTE_STORAGE) ? "TRUE" : "FALSE");

  printf ("  FILE_VOLUME_IS_COMPRESSED   : %s\n",
  (flags & FILE_VOLUME_IS_COMPRESSED) ? "TRUE" : "FALSE");

  printf ("  FILE_SUPPORTS_OBJECT_IDS: %s\n",
  (flags & FILE_SUPPORTS_OBJECT_IDS) ? "TRUE" : "FALSE");

  printf ("  FILE_SUPPORTS_ENCRYPTION: %s\n",
  (flags & FILE_SUPPORTS_ENCRYPTION) ? "TRUE" : "FALSE");

  printf ("  FILE_NAMED_STREAMS  : %s\n",
  (flags & FILE_NAMED_STREAMS) ? "TRUE" : "FALSE");

  printf ("  FILE_READ_ONLY_VOLUME   : %s\n",
  (flags & FILE_READ_ONLY_VOLUME) ? "TRUE" : "FALSE");
  return 0;
}
#include 
#include 
#include 
#include 

int main(int argc, char **argv)
{
  HANDLE h;
  BY_HANDLE_FILE_INFORMATION local;
  char winpath[256];

  while (--argc > 0) {
cygwin_conv_to_full_win32_path (*++argv, winpath);
if (h = CreateFile(winpath, GENERIC_READ,
   FILE_SHARE_READ | FILE_SHARE_WRITE,
   NULL, OPEN_EXISTING,
   FILE_ATTRIBUTE_NORMAL | FILE_FLAG_BACKUP_SEMANTICS,
   NULL)) {
  if (GetFileInformationByHandle (h, &local)) {
printf("%s:\nFileAttributes: %20lx\n"
   "VolumeSerialNo: %20lu   NumberOfLin

RE: Re: font

2005-12-01 Thread Williams, Gerald S \(Jerry\)
Andrew DeFaria wrote:
>> Rxvt.font1: "Lucida Console-10"
>> Rxvt.font2: "Lucida Console-13"
>> Rxvt.font: "Lucida Console-16"
...
> What do these do?

font sets the default font. The others set alternate fonts like the
ones you normally get on the right mouse button in xterms. At least
in my configuration, shift-keypad-plus and shift-keypad-minus cycle
through these fonts (the default font is at position 2.5).

gsw


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



cygwin file permissions change after installation

2005-12-01 Thread H. S.


Hi,

Am I supposed to make any changes to certain files's permissions after 
installing Cygwin? I installed Cygwin (ver 1.5.18-1) and noticed that 
many websites suggesting changing certain files' permissions to 
system:system. This installation was on Windows XP computer.


I ask because I noticed that sshd.log file is still empty (0 bytes). Is 
this normal?

$ ls -al /var/log/*
-rw-r--r--  1 root None  277380 Dec  1 16:23 /var/log/lastlog
-rw-r--r--  1 root None 1141262 Dec  1 00:30 /var/log/setup.log
-rw-r--r--  1 root None 331 Dec  1 00:30 /var/log/setup.log.full
-rw-r--r--  1 root None   0 Dec  1 01:37 /var/log/sshd.log
$ ls -anl /var/log/*
-rw-r--r--  1 1004 513  277380 Dec  1 16:23 /var/log/lastlog
-rw-r--r--  1 1004 513 1141262 Dec  1 00:30 /var/log/setup.log
-rw-r--r--  1 1004 513 331 Dec  1 00:30 /var/log/setup.log.full
-rw-r--r--  1 1004 513   0 Dec  1 01:37 /var/log/sshd.log
$ uname
CYGWIN_NT-5.1

$ uname -a
CYGWIN_NT-5.1 red 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown 
unknown Cygwin



thanks,
->HS


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



how to detect if Windows or Linux is running?

2005-12-01 Thread H. S.


Hi,

I have installed Cygwin on a Windows XP computer to get rsync and ssh 
running so that I can backup my important data on a Linux computer on my 
home LAN. The idea is to use rsync to make rolling backups of my Windows 
data automatically, say, once or twice a day and to retain last N 
backups (N most probably going to be 10~20).


But the problem I had not foreseen is that I dual boot this Windows 
machine between Windows XP and Debian. How should I gracefully let the 
rsync server know if this computer is running Linux or XP?


I know that if the computer is running Linux, the rsync server will 
never find /cygdrive/... folders and will just quite with an error. But 
this is not 'clean', it will result in mails to the rsync server root 
about the error.


Suggestions?

->HS


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



Re: how to detect if Windows or Linux is running?

2005-12-01 Thread Christopher Faylor
On Thu, Dec 01, 2005 at 05:07:15PM -0500, H. S. wrote:
>Hi,
>
>I have installed Cygwin on a Windows XP computer to get rsync and ssh 
>running so that I can backup my important data on a Linux computer on my 
>home LAN. The idea is to use rsync to make rolling backups of my Windows 
>data automatically, say, once or twice a day and to retain last N 
>backups (N most probably going to be 10~20).
>
>But the problem I had not foreseen is that I dual boot this Windows 
>machine between Windows XP and Debian. How should I gracefully let the 
>rsync server know if this computer is running Linux or XP?
>
>I know that if the computer is running Linux, the rsync server will 
>never find /cygdrive/... folders and will just quite with an error. But 
>this is not 'clean', it will result in mails to the rsync server root 
>about the error.
>
>Suggestions?

Why not just use mount to mount things similarly on the cygwin side
and the linux side?

cgf

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



Re: how to detect if Windows or Linux is running?

2005-12-01 Thread H. S.

Christopher Faylor wrote:

On Thu, Dec 01, 2005 at 05:07:15PM -0500, H. S. wrote:


Hi,

I have installed Cygwin on a Windows XP computer to get rsync and ssh 
running so that I can backup my important data on a Linux computer on my 
home LAN. The idea is to use rsync to make rolling backups of my Windows 
data automatically, say, once or twice a day and to retain last N 
backups (N most probably going to be 10~20).


But the problem I had not foreseen is that I dual boot this Windows 
machine between Windows XP and Debian. How should I gracefully let the 
rsync server know if this computer is running Linux or XP?


I know that if the computer is running Linux, the rsync server will 
never find /cygdrive/... folders and will just quite with an error. But 
this is not 'clean', it will result in mails to the rsync server root 
about the error.


Suggestions?



Why not just use mount to mount things similarly on the cygwin side
and the linux side?

cgf



Even if I do that on the machine to be backed up, I still need to know 
what OS is running. This is for the situation in which I want to 
maintain different backups of Linux and of Windows data. To do this, 
rsync must now what it is backing up so that it does not overwrite 
previous backups of one OS with the new ones of the other.


Or I misunderstood your post.

->HS




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



RE: how to detect if Windows or Linux is running?

2005-12-01 Thread Buchbinder, Barry \(NIH/NIAID\)
H. S. wrote:
> Christopher Faylor wrote:
>> On Thu, Dec 01, 2005 at 05:07:15PM -0500, H. S. wrote:
>> 
>>> Hi,
>>> 
>>> I have installed Cygwin on a Windows XP computer to get rsync and
>>> ssh running so that I can backup my important data on a Linux
>>> computer on my home LAN. The idea is to use rsync to make rolling
>>> backups of my Windows data automatically, say, once or twice a day
>>> and to retain last N backups (N most probably going to be 10~20).
>>> 
>>> But the problem I had not foreseen is that I dual boot this Windows
>>> machine between Windows XP and Debian. How should I gracefully let
>>> the rsync server know if this computer is running Linux or XP?
>>> 
>>> I know that if the computer is running Linux, the rsync server will
>>> never find /cygdrive/... folders and will just quite with an error.
>>> But this is not 'clean', it will result in mails to the rsync
>>> server root about the error. 
>>> 
>>> Suggestions?
>> 
>> 
>> Why not just use mount to mount things similarly on the cygwin side
>> and the linux side? 
>> 
>> cgf
>> 
> 
> Even if I do that on the machine to be backed up, I still need to
> know what OS is running. This is for the situation in which I want to
> maintain different backups of Linux and of Windows data. To do this,
> rsync must now what it is backing up so that it does not overwrite
> previous backups of one OS with the new ones of the other.
> 
> Or I misunderstood your post.
> 
> ->HS

Perhaps you could look for environmental variables that Windows sets but
Linux doesn't.  COMSPEC, windir, SystemDrive, SystemRoot, ProgramFiles,
CommonProgramFiles

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



Re: how to detect if Windows or Linux is running?

2005-12-01 Thread Christopher Faylor
On Thu, Dec 01, 2005 at 05:19:35PM -0500, H. S. wrote:
>Christopher Faylor wrote:
>>On Thu, Dec 01, 2005 at 05:07:15PM -0500, H. S. wrote:
>>>I have installed Cygwin on a Windows XP computer to get rsync and ssh 
>>>running so that I can backup my important data on a Linux computer on my 
>>>home LAN. The idea is to use rsync to make rolling backups of my Windows 
>>>data automatically, say, once or twice a day and to retain last N 
>>>backups (N most probably going to be 10~20).
>>>
>>>But the problem I had not foreseen is that I dual boot this Windows 
>>>machine between Windows XP and Debian. How should I gracefully let the 
>>>rsync server know if this computer is running Linux or XP?
>>>
>>>I know that if the computer is running Linux, the rsync server will 
>>>never find /cygdrive/... folders and will just quite with an error. But 
>>>this is not 'clean', it will result in mails to the rsync server root 
>>>about the error.
>>>
>>>Suggestions?
>>
>>
>>Why not just use mount to mount things similarly on the cygwin side
>>and the linux side?
>
>Even if I do that on the machine to be backed up, I still need to know 
>what OS is running. This is for the situation in which I want to 
>maintain different backups of Linux and of Windows data. To do this, 
>rsync must now what it is backing up so that it does not overwrite 
>previous backups of one OS with the new ones of the other.
>
>Or I misunderstood your post.


If you are just trying to figure out if you're running as cygwin or
linux there are many ways to do this.  You already mentioned that linux
won't have a /cygdrive.  That could be a key.

Otherwise, the standard way to check this is using uname -s.

If you are trying to figure out from the server side if the system is
running linux or cygwin then the existence of /cygdrive should do it.

cgf

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



Re: how to detect if Windows or Linux is running?

2005-12-01 Thread H. S.

Buchbinder, Barry (NIH/NIAID) wrote:

H. S. wrote:


Christopher Faylor wrote:


On Thu, Dec 01, 2005 at 05:07:15PM -0500, H. S. wrote:



Hi,

I have installed Cygwin on a Windows XP computer to get rsync and
ssh running so that I can backup my important data on a Linux
computer on my home LAN. The idea is to use rsync to make rolling
backups of my Windows data automatically, say, once or twice a day
and to retain last N backups (N most probably going to be 10~20).

But the problem I had not foreseen is that I dual boot this Windows
machine between Windows XP and Debian. How should I gracefully let
the rsync server know if this computer is running Linux or XP?

I know that if the computer is running Linux, the rsync server will
never find /cygdrive/... folders and will just quite with an error.
But this is not 'clean', it will result in mails to the rsync
server root about the error. 


Suggestions?





Perhaps you could look for environmental variables that Windows sets but
Linux doesn't.  COMSPEC, windir, SystemDrive, SystemRoot, ProgramFiles,
CommonProgramFiles



er .. how can I do that using SSH and non-interactively?

thanks,
->HS




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



Re: How to improve scp speed?

2005-12-01 Thread Brian Dessent
Cary Jamison wrote:

> Ok, I probably am.  But, you wouldn't expect the buffer tuning to make such
> a big difference, either, since a fast processor can surely move data around
> in memory several times faster than it can move it over the net.  All these
> things add up, though

The window size has nothing to do with the local CPU and everything to
do with the bandwidth * latency product of the link.

Brian

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



Re: cygwin file permissions change after installation

2005-12-01 Thread Brian Dessent
"H. S." wrote:

> Am I supposed to make any changes to certain files's permissions after
> installing Cygwin? I installed Cygwin (ver 1.5.18-1) and noticed that
> many websites suggesting changing certain files' permissions to
> system:system. This installation was on Windows XP computer.

If you're talking about a website that tries to tell you how to install
sshd, then ignore it completely.  Then remove it from your bookmarks. 
Then never visit it again.  You don't have to do any of that nonsense,
all you have to do is run ssh-host-config.  Sadly there seem to be many
of these "helpful" sites that give misleading, outdated, or outright
bogus information about sshd.

It's normal for the sshd.log file to be empty because sshd logs to the
event log.

Brian

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



Re: how to detect if Windows or Linux is running?

2005-12-01 Thread Brian Dessent
"H. S." wrote:

> er .. how can I do that using SSH and non-interactively?

The same way you'd run any ssh command?

if ssh host uname \| grep -q CYGWIN; then
echo "it's running cygwin";
else
echo "it's not running cygwin";
fi

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



1.5.18: commands don't work after Cygwin update

2005-12-01 Thread Shaun Gittens
I just upgraded Cygwin on Windows XP.  The previous version I was 
running (I installed it in Jan 2005) worked fine.  Now, post-upgrade, 
almost no commands work at the prompt of the bash shell.



bash-3.00$  ls
bash:  ls: command not found
bash-3.00$ cygcheck
bash: cygcheck: command not found
bash-3.00$ gcc
bash:  gcc : command not found



Running setup.exe went off without a hitch for the most part.  I'm not 
sure what could have gone wrong in the upgrade.  Any ideas why this 
won't work all of a sudden?


Thank you for your time.

Shaun.

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



Re: Call for testing Cygwin snapshot (problem with inode numbers)

2005-12-01 Thread Peter Rehley


On Dec 1, 2005, at 1:38 PM, Corinna Vinschen wrote:


On Dec  1 13:01, Peter Rehley wrote:

  It only appears to be a problem
when I have a mac os x share mounted to a drive on windows.When I
try with a windows share or a linux share I don't seem to have the
problem.

The problem that I'm seeing is that the inode value isn't unique when
listing a directory (or using any program that uses the inode value).


Do I understand you right that this only happens for directories?  The
normal file inodes are looking ok?

No, it also happens for files too.




The inode that comes back from doing a ls -li is first much shorter
that a normal inode.  I've included lists from my share when using
the 20051123 snapshot and then they 20051128 snapshot.  The only
change that I've done between the two is update cygwin using the
cygwin-inst snapshot file.


Yes, I have no Mac OS X handy.  I have attached two hacked test
applications, which you can simply build with `gcc -o foo foo.c'.

The first one, GetVolInfo, should get a Cygwin path to any file on the
Mac OS X share.  It prints the volume information returned from the
share.

The second one, GetFileInfo, should be called on a few directories  
and a

couple of files on the share.

The output of both tests might be helpful.

Output is attached.



And another thing to try.  Could you please check (only with the  
latest

snapshot) if the resulting inode numbers are the same when running

 $ cd /local/cygwin/dir && ls -i //MacOSX/share/dir

and

 $ cd //MacOSX/share && ls -i dir

?


cd /tmp && ls -i //10.0.10.42/prehley/tmp
it returned
3776088840 GetFileInfo.c  3776088840 GetVolInfo.c  3776088848 inode_test

cd //10.0.10.42/prehley && ls -i tmp
it returned
3776088840 GetFileInfo.c  3776088840 GetVolInfo.c  3776088848 inode_test




getinfo.out
Description: Binary data





Thanks,
Corinna

--  
Corinna Vinschen  Please, send mails regarding  
Cygwin to

Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat, Inc.


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



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

Re: cygwin file permissions change after installation

2005-12-01 Thread H. S.

Brian Dessent wrote:

"H. S." wrote:



Am I supposed to make any changes to certain files's permissions after
installing Cygwin? I installed Cygwin (ver 1.5.18-1) and noticed that
many websites suggesting changing certain files' permissions to
system:system. This installation was on Windows XP computer.



If you're talking about a website that tries to tell you how to install
sshd, then ignore it completely.  Then remove it from your bookmarks. 
Then never visit it again.  You don't have to do any of that nonsense,

all you have to do is run ssh-host-config.  Sadly there seem to be many
of these "helpful" sites that give misleading, outdated, or outright
bogus information about sshd.

It's normal for the sshd.log file to be empty because sshd logs to the
event log.

Brian



:D

No, I never really did anything out of the ordinary about this. Just 
what the installation and setup scripts asked me to -- and since 
everything is working: ssh, rsync, etc, I guess the installation went okay.


As you mention, there are so many sites that tell you to do chmod 
system:system that it made wonder what was the real deal behind this.


thanks,
->HS




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



Re: how to detect if Windows or Linux is running?

2005-12-01 Thread H. S.

Brian Dessent wrote:

"H. S." wrote:



er .. how can I do that using SSH and non-interactively?



The same way you'd run any ssh command?

if ssh host uname \| grep -q CYGWIN; then
echo "it's running cygwin";
else
echo "it's not running cygwin";
fi



I was just now thinking about this. I just finished using "ssh host > 
out.dat" to debug why my rsync was not working. This made me think to 
use a command to know the OS for my purpose and while thinking about 
that read your mail!


Thanks for your suggestion,
->HS




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



Re: 1.5.18: commands don't work after Cygwin update

2005-12-01 Thread H. S.

Shaun Gittens wrote:
I just upgraded Cygwin on Windows XP.  The previous version I was 
running (I installed it in Jan 2005) worked fine.  Now, post-upgrade, 
almost no commands work at the prompt of the bash shell.



bash-3.00$  ls
bash:  ls: command not found
bash-3.00$ cygcheck
bash: cygcheck: command not found
bash-3.00$ gcc
bash:  gcc : command not found



Running setup.exe went off without a hitch for the most part.  I'm not 
sure what could have gone wrong in the upgrade.  Any ideas why this 
won't work all of a sudden?


Thank you for your time.

Shaun.



Just guesses:

Do the above commands exit? Verify by going into cygwin bin dir using 
Windows explorer?


If they do, have you set the PATH variable correctly to point to cygwin 
bin directory?


->HS




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



Re: cygwin file permissions change after installation

2005-12-01 Thread Brian Dessent
"H. S." wrote:

> As you mention, there are so many sites that tell you to do chmod
> system:system that it made wonder what was the real deal behind this.

In fact it is required that certain files and directories be owned by
the user that runs sshd (which in most cases is SYSTEM.)  But
ssh-host-config does all this for you, so the need to do it by hand
should never occur.

Brian

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



Re: font

2005-12-01 Thread Andrew DeFaria

Cary Jamison wrote:

I'm always surprised at how many people recommened using rxvt. I use 
it once in a while, but there's just too many things I do don't work 
right unless I'm using the regular Win32 console. Output is delayed 
until the

process exits, input is ignored, etc., etc.


Too many things? Other than I/O (which I agree is important) of certain 
Windows only programs what else does rxvt do wrong?


Personally I find the copy paste mechanism on a Windows Console enough 
to switch, let along horrid (non-existent) handling of resizing the 
window, bad scrolling habits, poor font selection, poor color selection, 
etc. enough to have ditched the Windows Console and deal with the one 
sole problem of Windows programs not understanding I/O with ptys...


YMMV.
--
If a turtle doesn't have a shell, is he homeless or naked?


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



Re: Call for testing Cygwin snapshot

2005-12-01 Thread Bas van Gompel
Op Wed, 30 Nov 2005 18:11:37 +0100 schreef Corinna Vinschen
in <20051130171137.GE2999calimero.vinschen.de>:
[Test the 20051130 snapshot]

:  Please report back in this thread when you encounter a problem, which
:  you can't reproduce with 1.5.18.  We're interested in regressions in
:  the first place.

On my (w95) machine gethostbyname is failing with the snapshot.

[...]
:  Keep in mind that we can easier find problems if you attach a brief,
:  concise, selfcontained testcase, if possible in plain C, which allows
:  easy reproducing.
[...]

You'll find one in the following transcript.


Start transcript>>>
$ uname -vr
1.5.19s(0.145/4/2) 20051130 13:17:51

$ cat tghbn.c
#include 
#include 
#include 

int
main (int argc, char **argv)
{
  if (gethostbyname ("localhost"))
puts ("Could get host by name (localhost)");
  else
perror ("Could NOT get host by name (localhost)");
}

$ make tghbn
gcc tghbn.c   -o tghbn

$ ./tghbn
Could NOT get host by name (localhost): Operation not permitted

$ strace -o tghbn.strace0 -m all ./tghbn
Could get host by name (localhost)

$ strace -o tghbn.strace -m all sh -c ./tghbn
Could NOT get host by name (localhost): Operation not permitted

<main 0x401050
 -888  224069 [sig] TGHBN 758909 wait_sig: entering ReadFile loop, readsig 
0xD4, myself->sendsig 0xD8
 1767  225836 [main] tghbn 758909 __set_errno: void dll_crt0_1(char*):896 val 0
 1537  227373 [main] tghbn 758909 wait_for_sigthread: wait_sig_inited 0xC8
374106  601479 [main] tghbn 758909 wsock_init: res 0
15488  616967 [main] tghbn 758909 wsock_init: wVersion 514
 1502  618469 [main] tghbn 758909 wsock_init: wHighVersion 514
 1916  620385 [main] tghbn 758909 wsock_init: szDescription WinSock 2.0
 7935  628320 [main] tghbn 758909 wsock_init: szSystemStatus Running
10963  639283 [main] tghbn 758909 wsock_init: iMaxSockets 0
 2118  641401 [main] tghbn 758909 wsock_init: iMaxUdpDg 0
 1584  642985 [main] tghbn 758909 wsock_init: lpVendorInfo 0
1191806 1834791 [main] tghbn 758909 __set_errno: void __set_winsock_errno(const 
char*, int):278 val 1
  997 1835788 [main] tghbn 758909 __set_winsock_errno: __dup_ent:378 - winsock 
error 11001 -> errno 1
  799 1836587 [main] tghbn 758909 cygwin_gethostbyname: dup_ent returned NULL 
for name localhost, h 0x0


This is/was working in 1.5.18.

Attached is cygcheck -svr output. with a self built cygwin1.dll from
Mon Nov 28 16:30:21 2005, which is the last version I have, which
doesn't show the failure. CVS-checkout for that build can't have been
much more than 24 hours earlier, probably less.

If there is other info I can provide, please let me know.


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   //   really is |   and false bits entirely.| mail for
  ) |  |  //a 72 by 4 +---+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."| me. 4^re
Cygwin Configuration Diagnostics
Current System Time: Fri Dec 02 00:00:17 2005

Windows 95 Ver 4.0 Build 1212 

Path:   k:\cygwin\local\users\Buzz\bin
d:\cygwin\bin
c:\WINDOWS
c:\WINDOWS\COMMAND
c:\DOS
c:\util
c:\util\BVG
k:\cygwin\local\BIN
g:\PROGRAMS\NETWOR~1\PGP
g:\PROGRAMS\ULTRAE~1
g:\MASM32\BIN

Output from d:\cygwin\bin\id.exe (nontsec)
UID: 501(Buzz)   GID: 544(admins)
544(admins)

Output from d:\cygwin\bin\id.exe (ntsec)
UID: 501(Buzz)   GID: 544(admins)
544(admins)

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

USER = `Buzz'
PWD = `/home/Buzz'
HOME = `/home/Buzz'

NNTPSERVER = `buzzy-box.bavag'
TERM = `cygwin'
CMDLINE = `WIN'
WINDIR = `C:\WINDOWS'
SEARCHPATHS = `/ /c /d /e /f /g /h /i /j /k /l'
CVSROOT = `/home/buzz/cvs-repo'
TEMP = `/h/temp'
QTJAVA = `C:\WINDOWS\SYSTEM\QTJava.zip'
HOST_SYSTEM_TYPE = `CygWin'
EDITOR = `vim'
FDRV = `c:\Util\BvG\'
WINBOOTDIR = `C:\WINDOWS'
SHLVL = `1'
BLASTER = `A240 I2 D1'
PROMPT = `$b$l$p$g$b '
COMSPEC = `C:\COMMAND.COM'
TMP = `/h/tmp'
CVS_RSH = `ssh'
GMT_TZ = `-1'
CLASSPATH = `C:\WINDOWS\SYSTEM\QTJava.zip;'
LOCATE_DB = `/d/cygwin/usr/var/locatedb'
_ = `/usr/bin/cygcheck'
SYSTEMROOT = `C:\WINDOWS'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
 Menu\&Programma's\Cygnus Solutions
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
 Menu\&Programma's\Cygnus Solutions\Menu
  (default) = (unsupported type)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
 Menu\&Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags 

Re: font

2005-12-01 Thread Andrew DeFaria

Williams, Gerald S (Jerry) wrote:


Andrew DeFaria wrote:


Rxvt.font1: "Lucida Console-10"
Rxvt.font2: "Lucida Console-13"
Rxvt.font: "Lucida Console-16"



...


What do these do?


font sets the default font. The others set alternate fonts like the 
ones you normally get on the right mouse button in xterms. At least in 
my configuration, shift-keypad-plus and shift-keypad-minus cycle 
through these fonts (the default font is at position 2.5).


Ah ha! I thought that that was what it did and I had been wanting to be 
able to increase and decrease the size of the font like this but it 
never worked for me. What I was missing was defining font2-n! Thanks.


--
If God wanted me to touch my toes, he would have put them on my knees.


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



Re: cygwin file permissions change after installation

2005-12-01 Thread H. S.

Brian Dessent wrote:

"H. S." wrote:



As you mention, there are so many sites that tell you to do chmod
system:system that it made wonder what was the real deal behind this.



In fact it is required that certain files and directories be owned by
the user that runs sshd (which in most cases is SYSTEM.)  But
ssh-host-config does all this for you, so the need to do it by hand
should never occur.

Brian



hmm .. I don't know about this. I don't seem to have any file with 
SYSTEM as the user:

$ find /cygdrive/d/cygwin/ -name * -user system
$ find /cygdrive/d/cygwin/ -name * -user SYSTEM

the above commands give me nothing. What gives?

->HS


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



Re: Call for testing Cygwin snapshot

2005-12-01 Thread Buzz
Op Fri,  2 Dec 2005 01:27:53 +0100 (MET) schreef Bas van Gompel
in buzzy-box.bavag>:
:  Op Wed, 30 Nov 2005 18:11:37 +0100 schreef Corinna Vinschen
:  in <20051130171137.GE2999calimero.vinschen.de>:
:  [Test the 20051130 snapshot]
[...]
:  Attached is cygcheck -svr output. with a self built cygwin1.dll from
:  Mon Nov 28 16:30:21 2005, which is the last version I have, which
:  doesn't show the failure. CVS-checkout for that build can't have been
:  much more than 24 hours earlier, probably less.

Actually, it was September 9. I forgot to clean up after a test.

The uname -vr for the ``good'' one:
1.5.19(0.138/4/2) 2005-09-03 18:12

Sorry for the mess.


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   //   really is |   and false bits entirely.| mail for
  ) |  |  //a 72 by 4 +---+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."| me. 4^re

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



Re: cygwin file permissions change after installation

2005-12-01 Thread René Berber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

H. S. wrote:
[snip]
> hmm .. I don't know about this. I don't seem to have any file with
> SYSTEM as the user:
> $ find /cygdrive/d/cygwin/ -name * -user system
> $ find /cygdrive/d/cygwin/ -name * -user SYSTEM
> 
> the above commands give me nothing. What gives?

Bad use of find, drop the "-name *" .
- --
René Berber
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkOPndYACgkQL3NNweKTRgxmUACgsxIT6ssWp/ZFAWtUPdCQRJhZ
oEcAoNTmcSmApPYTrgumjEZgrV8Wnvzf
=a635
-END PGP SIGNATURE-


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



1.5.18-1: texteroids fails because DPS not available

2005-12-01 Thread cygwin-list-eins
I just installed 1.5.18-1, selecting "Default" in the installer for
everything except X11, for which I chose "Install" instead.  I have
attached cygcheck.out.

If I run startx, then type "texteroids" into the xterm (bash) window, I
get the following error:

=
%% DPS Client Library Warning:
   Auto-launching DPS NX agent.
%% DPS Client Library Warning:
   FAILED to auto-launch:
dpsnx.agent

texteroids: DPS is not available.
You need an X server with the DPS extension, or a DPS NX agent.

=

A new texteroids window appears briefly, then disappears.  I get the
same behavior from the Start menu icon, but (obivously) I don't get the
helpful error messages above.

Other xapps (xterm, xeyes) work OK.

This isn't a high priority for me; I just thought someone might want to
know about this.  Thanks!


Alex Hankins


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

Re: Call for testing Cygwin snapshot

2005-12-01 Thread Buzz
Op Fri,  2 Dec 2005 02:05:16 +0100 (MET) schreef Buzz
in buzzy-box.bavag>:
:  Actually, it was September 9. I forgot to clean up after a test.

Aargh! September 3rd.

:  The uname -vr for the ``good'' one:
:  1.5.19(0.138/4/2) 2005-09-03 18:12

Right.

:  Sorry for the mess.

Again.


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   //   really is |   and false bits entirely.| mail for
  ) |  |  //a 72 by 4 +---+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."| me. 4^re

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



screen-4.0.2 on Cygwin 1.5.R18-1

2005-12-01 Thread Peter
I got screen to compile with very minor source code changes (more changes 
might be better, but I haven't fiddled too much).  Everything seems to 
work okay, except that I can't get screen to persist once I close my 
terminal window.


I tried running screen "-d -m" as a service through cygrunsrv, but with 
little success.  When it runs as SYSTEM I can't attach the screen, and 
when it runs as me it hangs immediately.  It seems to hang eventually when 
running as SYSTEM too, but it's hard to tell what's going on.


Anyone who can tell me a better way?
Thanks!
Peter

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



Re: RPC headers anyone?

2005-12-01 Thread Erik de Castro Lopo
Chris Taylor wrote:

> In fact there are two with these headers - the source package for the 
> cygwin dll, and the sunrpc package.
> The latter is probably what you want - they go in /usr/include
> 
> For future reference: http://cygwin.com/packages/

Ok, installed the sunrpc package and gcc now finds the required
headers. Unfortunately, I now get an error at link time:

(.text+0x96c): undefined reference to `_xdrmem_create'
(.text+0x980): undefined reference to `_xdr_double'

This code compiles under Linux so it seems that some special
library must be needed under Cygwin.

Anyone have any clues?

Cheers,
Erik
-- 
+---+
  Erik de Castro Lopo
+---+
"I'll just say that having programmed in Lisp the shortcomings
of Java are glaringly obvious." -- Erann Gat

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