sshd display

2007-11-20 Thread Roger Wells


I have a need to use a ssh client on a Linux machine to run a console 
application on a windows machine via cygwin sshd.  How does one cause 
the display to remain on the server machine?


--
Roger Wells, P.E.
SAIC
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
[EMAIL PROTECTED]



Re: Web servers

2007-11-20 Thread Andrew DeFaria

Terry Bailey wrote:

Hi,

I am running cygwin on Windows 2003.  The apache server in cygwin is 
running on port 80.  The web server running on Windows under IIS is on 
port 81.
Why 2 web servers? Just like asking for trouble? My advice? Shut down 
IIS until you get Apache configured and working. Secondly, consider 
abandoning IIS all together...
If I put in a mime type (say the extension is .abx and the 
content-type is application/octet-stream) for the 2003 web server,
Stop. Where exactly are you putting that mime type? Are you defining it 
for Apache or IIS?
then apache in cygwin quits running even though ps -ef states that 
there are four or five instances of httpd running in cygwin.
If there are 4 or 5 instances of httpd running then it's quite clear 
that Apache has not quit running. What makes you say it quit running?

What is going on?

From your description it's hard to say...
Does the httpd.conf file in cygwin somehow connect with the config 
file in Windows?
What config file in Windows? A config file for what exactly? You have 
not even bother to name the file! You only mention above httpd.conf 
whereas before (I put a mime type for the 2003 web server) you were 
pretty vague.


Generally an httpd.conf file is a configuration for an httpd process. 
The httpd process is generally associated with Apache not IIS. I don't 
know what IIS calls itself, or rather I've forgotten.


Also, putting a mime type into an httpd.conf file does nothing in and of 
itself. Config files are generally read at start up so if you didn't 
restart Apache it wouldn't even know about the change.


And are you using Cygwin's Apache or just a regular Apache for Windows 
Apache? There's a difference and that difference deals specifically with 
where the config files reside and how the httpd process searches for them.

Any help would be appreciated.

A more exacting description of the problem would be appreciated...
--
Andrew DeFaria http://defaria.com
I hit the CTRL key but I'm still not in control!


--
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 makes shared folders on vista

2007-11-20 Thread E.Baud

Hello,

nmehta wrote:
 
 ...
 Also, if you create a directory in Cygwin on /c like you did it does not
 show up as shared.  If you create a directory in your Vista home directory
 (/c/Users/username/) on the other hand it shows up as shared.  
 ...
 I can also say that CYGWIN=notntsec does fix this behavior (created
 folders are no longer shared). 
 ...
 

Same thing for me: it depends on the current directory... subdirectories of
Desktop have also these unexpected shared files/directories generated.

Setting this variable CYGWIN=notntsec (with .bashrc or Vista system
environment variables)  is functioning well. No shared tags anymore when
creating files/dir from cygwin shell.

But if you compile a c program with cygwin/gcc(3.4.4) that generate files,
as this test-one : 
http://www.nabble.com/Fwd%3A-Stupid-Vista-64-tricks-p12321538.html
Stupid-Vista by Georg Nikodym , 
then, this variable seems not to be used when the .exe file is not executed
from Cygwin-shell (run directly from windows explorer, for example). 
And then again appear problems of shared files/directories.
... I tried to call setenv(CYGWIN, nontsec,1) in C file, without success. 

One other strange thing, is that: if the .exe file is run as
Administrator, then there's no more shared tags !? (my current Vista user
is belonging only to Administrators group; so, why is there a difference !?)

Emmanuel.
-- 
View this message in context: 
http://www.nabble.com/cygwin-makes-shared-folders-on-vista-tf4360979.html#a13854517
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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/



Announce: FlexDLL, flexible DLLs under Windows

2007-11-20 Thread Alain Frisch

Dear Cygwin and MinGW mailing lists,

I'd like to announce the availability of FlexDLL, a new tool that should
greatly help porting some Unix applications under Windows. FlexDLL 
implements the classical POSIX dlopen API. In short, it lets you create 
DLLs with unresolved symbols. When a DLL is loaded, these symbols are 
matched against those found in the main program and in previously loaded 
DLLs. This should make the development of modular applications (plugins) 
much easier under Windows. Forget all the trouble about 
dllimport/dllexport directives, .def files and import libraries!


FlexDLL also exposes a common command-line interface to the Cygwin and 
Microsoft linkers, which should simplify the life of developers that 
targets several tool chains.


Homepage: http://alain.frisch.fr/flexdll.html

FlexDLL is open-source (MIT-like license) and it supports three
toolchains: Cygwin, MinGW, and native MSVC (x86 and x86_64). It acts as 
a wrapper around the linker (at compile-time) and as a wrapper around 
LoadLibrary (at runtime).


I hope this announce is not too much off-topic for these mailing lists.

Feedback and comments are very welcome!

  Alain Frisch


--
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: Announce: FlexDLL, flexible DLLs under Windows

2007-11-20 Thread Dave Korn
On 20 November 2007 13:58, Alain Frisch wrote:

 Dear Cygwin and MinGW mailing lists,
 
 I'd like to announce the availability of FlexDLL, a new tool that should
 greatly help porting some Unix applications under Windows. FlexDLL
 implements the classical POSIX dlopen API. In short, it lets you create
 DLLs with unresolved symbols. 

 Feedback and comments are very welcome!

  This looks very interesting indeed.  The technique of turning unresolved
imports into data items that can be fixed up at runtime thus letting the
windows runtime loaded accept the dll is a clever trick, and it occurs to me
that it might be worth adopting the same technique directly in the binutils
toolchain itself.

  Thanks for your valuable contribution!

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: Library issues with GCC - libuser32

2007-11-20 Thread Jeff Bader
Nope. Not there.

On Nov 19, 2007 7:54 PM, Christopher Faylor
[EMAIL PROTECTED] wrote:

 On Mon, Nov 19, 2007 at 05:09:23PM -0800, Jeff Bader wrote:
 Yes...the index... but it's not in the packages that come with the
 most current version of setup.exe, right? Shouldn't it be in this
 list (picture)?

 Your subject should be a clue as to what category w32api is available
 under.  It is Libs.


 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/



--
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: Announce: FlexDLL, flexible DLLs under Windows

2007-11-20 Thread Christopher Faylor
On Tue, Nov 20, 2007 at 02:49:48PM -, Dave Korn wrote:
On 20 November 2007 13:58, Alain Frisch wrote:

 Dear Cygwin and MinGW mailing lists,
 
 I'd like to announce the availability of FlexDLL, a new tool that should
 greatly help porting some Unix applications under Windows. FlexDLL
 implements the classical POSIX dlopen API. In short, it lets you create
 DLLs with unresolved symbols. 

 Feedback and comments are very welcome!

  This looks very interesting indeed.  The technique of turning unresolved
imports into data items that can be fixed up at runtime thus letting the
windows runtime loaded accept the dll is a clever trick, and it occurs to me
that it might be worth adopting the same technique directly in the binutils
toolchain itself.

  Thanks for your valuable contribution!

Indeed, this is very interesting.  It sounds a little like the
autoload.cc code in Cygwin which handles optional linking from dlls but it
is obviously much more advanced.

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: Library issues with GCC - libuser32

2007-11-20 Thread Dave Korn
On 20 November 2007 15:11, Jeff Bader wrote:
 On Nov 19, 2007 7:54 PM, Christopher Faylor
 [EMAIL PROTECTED] wrote:
 
 On Mon, Nov 19, 2007 at 05:09:23PM -0800, Jeff Bader wrote:
 Yes...the index... but it's not in the packages that come with the
 most current version of setup.exe, right? Shouldn't it be in this
 list (picture)?
 
 Your subject should be a clue as to what category w32api is available
 under.  It is Libs. 
 
 Nope. Not there.

  Oh yes it is.  Look closer.  It's between 'ucl' and 'xdelta-devel'.

   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: Library issues with GCC - libuser32

2007-11-20 Thread Christopher Faylor
On Tue, Nov 20, 2007 at 03:28:03PM -, Dave Korn wrote:
On 20 November 2007 15:11, Jeff Bader wrote:
 On Nov 19, 2007 7:54 PM, Christopher Faylor
 [EMAIL PROTECTED] wrote:
 
 On Mon, Nov 19, 2007 at 05:09:23PM -0800, Jeff Bader wrote:
 Yes...the index... but it's not in the packages that come with the
 most current version of setup.exe, right? Shouldn't it be in this
 list (picture)?
 
 Your subject should be a clue as to what category w32api is available
 under.  It is Libs. 
 
 Nope. Not there.

  Oh yes it is.  Look closer.  It's between 'ucl' and 'xdelta-devel'.

Oh, *that* w32api!

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: Library issues with GCC - libuser32

2007-11-20 Thread Dave Korn
On 20 November 2007 15:48, Jeff Bader wrote:
 On Mon, Nov 19, 2007 at 05:09:23PM -0800, Jeff Bader wrote:
 Yes...the index... but it's not in the packages that come with the
 most current version of setup.exe, right? Shouldn't it be in this
 list (picture)?
 
 Your subject should be a clue as to what category w32api is available
 under.  It is Libs.
 
 Nope. Not there.
 
   Oh yes it is.  Look closer.  It's between 'ucl' and 'xdelta-devel'.
 

 I don't have either of those.

  That isn't the 'Libs' category, that's the full view, but point taken.  If
you're using the Install from local directory option, it'll only show the
packages that are already downloaded, i.e. it presents you with the choices
you have locally.  If you select install from internet or download without
installing, you'll get the full list of what's available on the mirror you
choose - which will include w32api.

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: Library issues with GCC - libuser32

2007-11-20 Thread Jeff Bader
Oh, *that* w32api.

Shucks.


On Nov 20, 2007 7:53 AM, Dave Korn [EMAIL PROTECTED] wrote:
 On 20 November 2007 15:48, Jeff Bader wrote:
  On Mon, Nov 19, 2007 at 05:09:23PM -0800, Jeff Bader wrote:
  Yes...the index... but it's not in the packages that come with the
  most current version of setup.exe, right? Shouldn't it be in this
  list (picture)?
 
  Your subject should be a clue as to what category w32api is available
  under.  It is Libs.
 
  Nope. Not there.
 
Oh yes it is.  Look closer.  It's between 'ucl' and 'xdelta-devel'.
 

  I don't have either of those.

   That isn't the 'Libs' category, that's the full view, but point taken.  If
 you're using the Install from local directory option, it'll only show the
 packages that are already downloaded, i.e. it presents you with the choices
 you have locally.  If you select install from internet or download without
 installing, you'll get the full list of what's available on the mirror you
 choose - which will include w32api.


 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/



--
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: can't run devenv through sshd

2007-11-20 Thread Dave Korn
On 20 November 2007 18:26, Derek Lei Liu wrote:

 I am relatively new to cygwin world, so please bear with me for any
 naive questions. Basically i have 2003 server with cygwin running, i
 also have the opensshd running which comes from cygwin package. i can
 ssh into 2003 server no problem, but for some reason, i can't run
 devenv.exe or devenv.com (the windows build utility) from ssh session.


  This is a known problem with 2003.  See the thread

http://cygwin.com/ml/cygwin/2007-01/msg00651.html



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/



can't run devenv through sshd

2007-11-20 Thread Derek Lei Liu
I am relatively new to cygwin world, so please bear with me for any
naive questions. Basically i have 2003 server with cygwin running, i
also have the opensshd running which comes from cygwin package. i can
ssh into 2003 server no problem, but for some reason, i can't run
devenv.exe or devenv.com (the windows build utility) from ssh session.
The same can be run no problem at local cygwin window though. So the
problem is definitely with sshd configuration.

I checked the archive and did checking whoami, it gives back correct
user name which is the one i used to ssh in.  right now, i am out of
ideas. Following is my sshd_config file and i hope some expert out
there can help me out and i would really appreciate any help on this
matter.

thanks

Derek

$OpenBSD: sshd_config,v 1.75 2007/03/19 01:01:29 djm Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/bin:/usr/sbin:/sbin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

# Disable legacy (protocol version 1) support in the server for new
# installations. In future the default will change to require explicit
# activation of protocol 1
Protocol 2

# HostKey for protocol version 1
#HostKey /etc/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh_host_rsa_key
#HostKey /etc/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 768

# Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin yes
StrictModes no
#MaxAuthTries 6

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys
# For this to work you will also need host keys in /etc/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of PermitRootLogin without-password.
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
#UsePAM no

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes

#TCPKeepAlive yes
#UseLogin no
UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem   sftp/usr/sbin/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#   X11Forwarding no
#   AllowTcpForwarding no
#   ForceCommand cvs server

--
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: can't run devenv through sshd

2007-11-20 Thread Dave Korn
On 20 November 2007 18:26, Derek Lei Liu wrote:

 I checked the archive and did checking whoami, it gives back correct
 user name which is the one i used to ssh in.  right now, i am out of
 ideas. 

  Ah, but see also

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=389029SiteID=1

  It seems that only ssh'ing in as a local user by password authentication
will work for the moment.  You could perhaps have a try at the suggested
hotfix:

http://support.microsoft.com/kb/920770

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/



Vim: segmentation fault

2007-11-20 Thread Aldi Kraja

Hi,
Opening a file 1.5 GB cygwin Vim reports segmentation fault.
Vim: Caught deadly signal SEGV.

Is there any way that one can expand the setting of Vim?

I need to change the header of the file to some extent, but I do not 
think that emacs will do it. Less is a pager. Any other idea how to edit 
a file this large?


Thank you in advance,

Aldi

--




--
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: can't run devenv through sshd

2007-11-20 Thread Derek Lei Liu
Thanks Dave for instant response. I suspect my problem is different
from what you suggested.  Forgot to mention the symptom of my problem.
The devenv.com actually got invoked and just hang there forever. there
is no error message spilled out. Not sure that make any difference.
Any idea or should i just go ahead to try local user with password
authentication enabled?

thanks

Derek

On Nov 20, 2007 10:35 AM, Dave Korn [EMAIL PROTECTED] wrote:
 On 20 November 2007 18:26, Derek Lei Liu wrote:

  I checked the archive and did checking whoami, it gives back correct
  user name which is the one i used to ssh in.  right now, i am out of
  ideas.

   Ah, but see also

 http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=389029SiteID=1

   It seems that only ssh'ing in as a local user by password authentication
 will work for the moment.  You could perhaps have a try at the suggested
 hotfix:

 http://support.microsoft.com/kb/920770


 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/



--
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: Announce: FlexDLL, flexible DLLs under Windows

2007-11-20 Thread Dave Korn
On 20 November 2007 18:39, Reini Urban wrote:

 2007/11/20, Christopher Faylor:
 ...
 Indeed, this is very interesting.  It sounds a little like the
 autoload.cc code in Cygwin which handles optional linking from dlls but it
 is obviously much more advanced.
 
 Where should it go to?
 Puttin it into libtool sounds nearest to me, to work around -no-undefined.

  (Without having actually specced out the implementation yet,) I don't see
why we couldn't do this trick entirely in ld, with a support routine or two in
libgcc.  It can't go entirely into libtool, I would have thought; it requires
some additional code at runtime.

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: Announce: FlexDLL, flexible DLLs under Windows

2007-11-20 Thread Reini Urban
2007/11/20, Christopher Faylor:
...
 Indeed, this is very interesting.  It sounds a little like the
 autoload.cc code in Cygwin which handles optional linking from dlls but it
 is obviously much more advanced.

Where should it go to?
Puttin it into libtool sounds nearest to me, to work around -no-undefined.
-- 
Reini

--
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: Vim: segmentation fault

2007-11-20 Thread Brian Mathis
On Nov 20, 2007 2:16 PM, Matt Wozniski [EMAIL PROTECTED] wrote:
 On Nov 20, 2007 2:02 PM, Aldi Kraja wrote:
  Hi,
  Opening a file 1.5 GB cygwin Vim reports segmentation fault.
  Vim: Caught deadly signal SEGV.
 
  Is there any way that one can expand the setting of Vim?
 
  I need to change the header of the file to some extent, but I do not
  think that emacs will do it. Less is a pager. Any other idea how to edit
  a file this large?

 If it's only a header you need to edit, you do it the usual unix way...
 for a 15000 line file, where the header is in the first 100 lines:

 $ head -100 BIGFILE  filehead
 $ tail -14900 BIGFILE  filetail
 $ vim filehead
 # modify...
 $ cat filehead filetail  BIGFILE
 $ rm filehead filetail

 And, there's no reason that should crash vim.  Do you have the
 1.5 GB of memory that you'd need to open that file?

 ~Matt

You could also 'split' the file into more manageable chunks if it's
not at the head, then 'cat' it back together when done.

--
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: can't run devenv through sshd

2007-11-20 Thread Dave Korn
On 20 November 2007 19:05, Derek Lei Liu wrote:

 Thanks Dave for instant response. I suspect my problem is different
 from what you suggested.  Forgot to mention the symptom of my problem.
 The devenv.com actually got invoked and just hang there forever. there
 is no error message spilled out. Not sure that make any difference.

  Well, that does sound like a different problem, everyone else was getting an
error message at the least.

 Any idea or should i just go ahead to try local user with password
 authentication enabled?

  It can't hurt to try, but hang on; are we talking about the devenv gui?
Does your sshd service entry have the Allow service to interact with the
desktop checkbox enabled in the services control manager?


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: Vim: segmentation fault

2007-11-20 Thread Dave Korn
On 20 November 2007 19:17, Matt Wozniski wrote:


 And, there's no reason that should crash vim.  Do you have the
 1.5 GB of memory that you'd need to open that file?

  Umm, you don't need that much memory to open a file, thanks to the wonders of 
file-backed virtual memory.  But what you probably do need is a 1.5GB empty 
hole in your process address space (unless vim is intelligent enough to only 
mmap() part of the file at a time), and finding a hole that size is almost 
certainly impossible on 32-bit targets without enabling the boot.ini '/3GB' 
switch.

  However I don't know anything about the internals of vim, so can't be sure 
that's the cause.  And it's certainly a bug that it doesn't fail gracefully.

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: Vim: segmentation fault

2007-11-20 Thread Matt Wozniski
On Nov 20, 2007 2:02 PM, Aldi Kraja wrote:
 Hi,
 Opening a file 1.5 GB cygwin Vim reports segmentation fault.
 Vim: Caught deadly signal SEGV.

 Is there any way that one can expand the setting of Vim?

 I need to change the header of the file to some extent, but I do not
 think that emacs will do it. Less is a pager. Any other idea how to edit
 a file this large?

If it's only a header you need to edit, you do it the usual unix way...
for a 15000 line file, where the header is in the first 100 lines:

$ head -100 BIGFILE  filehead
$ tail -14900 BIGFILE  filetail
$ vim filehead
# modify...
$ cat filehead filetail  BIGFILE
$ rm filehead filetail

And, there's no reason that should crash vim.  Do you have the
1.5 GB of memory that you'd need to open that file?

~Matt

--
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: Announce: FlexDLL, flexible DLLs under Windows

2007-11-20 Thread Christopher Faylor
On Tue, Nov 20, 2007 at 06:44:43PM -, Dave Korn wrote:
On 20 November 2007 18:39, Reini Urban wrote:

 2007/11/20, Christopher Faylor:
 ...
 Indeed, this is very interesting.  It sounds a little like the
 autoload.cc code in Cygwin which handles optional linking from dlls but it
 is obviously much more advanced.
 
 Where should it go to?
 Puttin it into libtool sounds nearest to me, to work around -no-undefined.

(Without having actually specced out the implementation yet,) I don't
see why we couldn't do this trick entirely in ld, with a support
routine or two in libgcc.  It can't go entirely into libtool, I would
have thought; it requires some additional code at runtime.

That sounds correct to me.  It seems to require some startup runtime
code.  You could conceivably put that in crt*.o.

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: unison-2.27.exe silently exits

2007-11-20 Thread Andrew Schulman
 I've installed 2.27 and and 2.13 on 3 different machines (XP, Vista, 
 2003 server), but on all of them, unison-2.27.exe simply exits (error 
 code 1) with no output, regardless of anything written on the command 
 line (-version, -help).  Using Process Monitor, I see that it does read 
 default.prf (if available), but its presence doesn't seem to matter.
 
 It also doesn't matter whether I execute unison-2.27.exe explicitly or 
 through the alternatives link.
 
 2.13 works fine, 2.17 seems OK (it responds to options, but I haven't 
 used it actively).

Robert, thanks for the report.  I'm not able to reproduce this problem on my
WinXP host:

$ unison -version
unison version 2.27.48

A few questions:  Did you have the previous version of unison2.27 installed, and
if so did it work properly?  If you didn't try it, please try installing it over
the current release:

wget http://home.comcast.net/~aschulman2/unison2.27/unison2.27-2.27.29-1.tar.bz2
tar -C/ -jxf unison2.27-2.27.29-1.tar.bz2

Then run 'unison-2.27 -version' again and please let me know if it works.

Thanks,
Andrew.



--
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/



Weird error from rsync

2007-11-20 Thread Mike Richards
I'm trying to run the following command

rsync -rtzmv $HOME/My Documents/
[EMAIL PROTECTED]:/cygdrive/e/rsync/$USER/

but keep getting this strange error:

building file list ... done
rsync: mkdir /cygdrive/c/Documents and Settings/miker/Desktop/\#015
failed: No such file or directory (2)
rsync error: error in file IO (code 11) at
/home/lapo/packaging/tmp/rsync-2.6.9/main.c(529) [receiver= 2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/packaging/tmp/rsync-2.6.9/io.c(453) [sender=2.6.9]
./rsync_win: line 5: [EMAIL PROTECTED]:/cygdrive/e/rsync/miker
/
: No such file or directory

Does anyone understand what is causing the \#015?

--
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/