quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
quick questions about gdi
Hi I was wondring how yur gdi business was going and if you were still involved or if you had moved on to another business. I always like to check with other home based people to see whats hot and whats not. Please drop me a line and let me know . thanks so much terry ganas -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
winsup/cygwin ChangeLog localtime.cc
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2010-10-30 19:22:43 Modified files: cygwin : ChangeLog localtime.cc Log message: * localtime.cc (is_upper): Rename to isupper and include ctype.h to pull in standard macro. (lcl_is_set): Define as an enum. (tzsetwall): Assign lcl_is_set to correct enum values. (tzset): Ditto. Copy as much of TZ as will fit to TZ buffer. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaumr1=1.5089r2=1.5090 http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/localtime.cc.diff?cvsroot=uberbaumr1=1.25r2=1.26
winsup/utils ChangeLog regtool.cc
CVSROOT:/cvs/uberbaum Module name:winsup Changes by: c...@sourceware.org 2010-10-31 01:41:19 Modified files: utils : ChangeLog regtool.cc Log message: * regtool.c (cmd_set): Write correct number of bytes for REG_MULTI_SZ case. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/utils/ChangeLog.diff?cvsroot=uberbaumr1=1.542r2=1.543 http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/utils/regtool.cc.diff?cvsroot=uberbaumr1=1.30r2=1.31
regtool -m set writes 2 extra bytes at the end
Hi, The easiest way to demonstrate the problem is to run the following shell script: 8 --- regtool -m set /HKEY_LOCAL_MACHINE/SOFTWARE/Test 1234 expected=31 00 32 00 33 00 34 00 00 00 00 00 actual=`regtool get -b /HKEY_LOCAL_MACHINE/SOFTWARE/Test` if [ $actual != $expected ]; then echo FAILED else echo OK fi 8 --- The patch is below. --- 8 --- Index: regtool.cc === RCS file: /cvs/src/src/winsup/utils/regtool.cc,v retrieving revision 1.30 diff -u -r1.30 regtool.cc --- regtool.cc 28 Aug 2010 11:22:37 - 1.30 +++ regtool.cc 30 Oct 2010 22:56:47 - @@ -711,7 +711,7 @@ n += mbstowcs ((wchar_t *) data + n, argv[i], max_n - n) + 1; ((wchar_t *)data)[n] = L'\0'; rv = RegSetValueExW (key, value, 0, REG_MULTI_SZ, (const BYTE *) data, - (max_n + 1) * sizeof (wchar_t)); + (n + 1) * sizeof (wchar_t)); break; case REG_AUTO: rv = ERROR_SUCCESS; --- 8 --- Dmitry
Re: regtool -m set writes 2 extra bytes at the end
[Apologies for previously sending this as private email. Don't know how that happened] On Sun, Oct 31, 2010 at 03:37:31AM +0300, Dmitry Potapov wrote: Hi, The easiest way to demonstrate the problem is to run the following shell script: 8 --- regtool -m set /HKEY_LOCAL_MACHINE/SOFTWARE/Test 1234 expected=31 00 32 00 33 00 34 00 00 00 00 00 actual=`regtool get -b /HKEY_LOCAL_MACHINE/SOFTWARE/Test` if [ $actual != $expected ]; then echo FAILED else echo OK fi 8 --- I've checked this in but isn't there one too many trailing 00 00s in the above, i.e., shouldn't it be n rather than n + 1? The patch is below. Thanks for the patch. cgf --- 8 --- Index: regtool.cc === RCS file: /cvs/src/src/winsup/utils/regtool.cc,v retrieving revision 1.30 diff -u -r1.30 regtool.cc --- regtool.cc 28 Aug 2010 11:22:37 - 1.30 +++ regtool.cc 30 Oct 2010 22:56:47 - @@ -711,7 +711,7 @@ n += mbstowcs ((wchar_t *) data + n, argv[i], max_n - n) + 1; ((wchar_t *)data)[n] = L'\0'; rv = RegSetValueExW (key, value, 0, REG_MULTI_SZ, (const BYTE *) data, - (max_n + 1) * sizeof (wchar_t)); + (n + 1) * sizeof (wchar_t)); break; case REG_AUTO: rv = ERROR_SUCCESS; --- 8 --- Dmitry
Connection timed out
Hi, I have set up the ssh server(cygwin) and it works fine for ssh [userna...@localhost in my command prompt at server but it doesn't work for ssh [userna...@192.168.x.xx which is also localhost. I have turned off all the windows firewall. The error message is: ssh: connect to host 192.168.x.xx port 22: Connection timed out Would appreciate if there is any advice. Thanks. -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30090311.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
Check your system firewall settings first. On Sat, Oct 30, 2010 at 3:37 PM, KeithLaw t...@spam.la wrote: Hi, I have set up the ssh server(cygwin) and it works fine for ssh [userna...@localhost in my command prompt at server but it doesn't work for ssh [userna...@192.168.x.xx which is also localhost. I have turned off all the windows firewall. The error message is: ssh: connect to host 192.168.x.xx port 22: Connection timed out Would appreciate if there is any advice. Thanks. -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30090311.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
On Sat, Oct 30, 2010 at 12:37:09AM -0700, KeithLaw wrote: Hi, I have set up the ssh server(cygwin) and it works fine for ssh [userna...@localhost in my command prompt at server but it doesn't work for ssh [userna...@192.168.x.xx which is also localhost. I have turned off all the windows firewall. The error message is: ssh: connect to host 192.168.x.xx port 22: Connection timed out Would appreciate if there is any advice. Thanks. Hello, First off, can you ping that address? can you telnet that port? Is it listening? $ ping 192.168.x.x $ telnet 192.168.x.x 22 $ netstat -an | grep LISTEN If those tests work as expected, double check the ListenAddress parameter in your sshd_config, your /etc/hosts file, and then try running: $ ssh -vvv [userna...@192.168.x.xx to see if you can find additional info to debug your problem. HTH -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB signature.asc Description: Digital signature
Re: localtime and TZ
On 10/29/2010 7:17 PM, Ken Brown wrote: On 10/29/2010 6:16 PM, Eric Blake wrote: On 10/29/2010 04:11 PM, Ken Brown wrote: Thanks, Eric. I didn't know about any of this. (I was using a modification of a configure test from the emacs sources.) Probably worth pointing it out to the emacs upstream, then :) But I get the same behavior with the following revised test case: #includetime.h #includestdio.h int main (void) { time_t now = time ((time_t *) 0); printf (TZ is initially unset; hour = %d\n, localtime (now)-tm_hour); putenv (TZ=GMT0); printf (TZ=GMT0; hour = %d\n, localtime (now)-tm_hour); unsetenv(TZ); printf (TZ unset; hour = %d\n, localtime (now)-tm_hour); putenv (TZ=PST8); printf (TZ=PST8; hour = %d\n, localtime (now)-tm_hour); unsetenv(TZ); printf (TZ unset again; hour = %d\n, localtime (now)-tm_hour); } So the question remains whether this difference between Cygwin and Linux is a bug or by design. Apparently by design. POSIX requires: http://www.opengroup.org/onlinepubs/9699919799/functions/localtime.html Local timezone information is used as though localtime() calls tzset(). http://www.opengroup.org/onlinepubs/9699919799/functions/tzset.html The tzset() function shall use the value of the environment variable TZ to set time conversion information used by ctime , localtime , mktime , and strftime . If TZ is absent from the environment, implementation-defined default timezone information shall be used. Wouldn't you interpret this as meaning that the implementation-defined default timezone information should be the same every time localtime is called with TZ unset? If not, what should a program do to get the standard default timezone information that it would get if TZ had never been set in the first place? I've looked at Cygwin's localtime.cc, and the behavior I'm complaining about is caused by the following code at the beginning of tzset: const char *name = getenv(TZ); if (name == NULL) { if (!lcl_is_set) tzsetwall(); goto out; } So getting rid of 'if (!lcl_is_set)' would solve the problem. But this would be inefficient, because it would mean that tzsetwall gets called every time tzset is called if TZ is never set. To get around that, one could have tzsetwall set TZ. It seems that tzset and tzsetwall used to behave the way I'm proposing before the following two changes were made: 2007-12-11 Corinna Vinschen cori...@vinschen.de * localtime.cc (tzset): Call tzsetwall only if it hasn't been called before. 2007-08-01 Corinna Vinschen cori...@vinschen.de * localtime.cc (tzsetwall): Don't set TZ. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: localtime and TZ
On 10/30/2010 8:43 AM, Ken Brown wrote: On 10/29/2010 7:17 PM, Ken Brown wrote: On 10/29/2010 6:16 PM, Eric Blake wrote: On 10/29/2010 04:11 PM, Ken Brown wrote: Thanks, Eric. I didn't know about any of this. (I was using a modification of a configure test from the emacs sources.) Probably worth pointing it out to the emacs upstream, then :) But I get the same behavior with the following revised test case: #includetime.h #includestdio.h int main (void) { time_t now = time ((time_t *) 0); printf (TZ is initially unset; hour = %d\n, localtime (now)-tm_hour); putenv (TZ=GMT0); printf (TZ=GMT0; hour = %d\n, localtime (now)-tm_hour); unsetenv(TZ); printf (TZ unset; hour = %d\n, localtime (now)-tm_hour); putenv (TZ=PST8); printf (TZ=PST8; hour = %d\n, localtime (now)-tm_hour); unsetenv(TZ); printf (TZ unset again; hour = %d\n, localtime (now)-tm_hour); } So the question remains whether this difference between Cygwin and Linux is a bug or by design. Apparently by design. POSIX requires: http://www.opengroup.org/onlinepubs/9699919799/functions/localtime.html Local timezone information is used as though localtime() calls tzset(). http://www.opengroup.org/onlinepubs/9699919799/functions/tzset.html The tzset() function shall use the value of the environment variable TZ to set time conversion information used by ctime , localtime , mktime , and strftime . If TZ is absent from the environment, implementation-defined default timezone information shall be used. Wouldn't you interpret this as meaning that the implementation-defined default timezone information should be the same every time localtime is called with TZ unset? If not, what should a program do to get the standard default timezone information that it would get if TZ had never been set in the first place? I've looked at Cygwin's localtime.cc, and the behavior I'm complaining about is caused by the following code at the beginning of tzset: const char *name = getenv(TZ); if (name == NULL) { if (!lcl_is_set) tzsetwall(); goto out; } So getting rid of 'if (!lcl_is_set)' would solve the problem. But this would be inefficient, because it would mean that tzsetwall gets called every time tzset is called if TZ is never set. To get around that, one could have tzsetwall set TZ. It seems that tzset and tzsetwall used to behave the way I'm proposing before the following two changes were made: 2007-12-11 Corinna Vinschencori...@vinschen.de * localtime.cc (tzset): Call tzsetwall only if it hasn't been called before. 2007-08-01 Corinna Vinschencori...@vinschen.de * localtime.cc (tzsetwall): Don't set TZ. I've just found the reason for the 2007-08-01 change: http://www.cygwin.com/ml/cygwin/2007-08/msg00041.html So I don't know what should be done. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Slowdown after update on Win32 (XP Home)
Michael Ludwig schrieb am 07.10.2010 um 00:27 (+0200): SZABÓ Gergely schrieb am 06.10.2010 um 23:30 (+0200): please see this thread (test scripts included): http://cygwin.com/ml/cygwin/2010-09/msg00871.html Thanks, Gabor - I saw your thread, which reinforces my belief that it is a Cygwin issue. I don't think any more the slow process creation (fork) I'm seeing is a Cygwin problem. A Makefile for ActiveState Perl also takes an eternity to run. The delay appears to be caused by time-consuming process creation. I can only confirm this. Process creation is much slower with 1.7.7 than it was with 1.5.25. The fork script runs 300% slower on my XP box. Another possibility would be a recent Microsoft update. Am I hallucinating when I think that 100% true Windows utilities like IPCONFIG, ROUTE and NET are also slower in launching? These Windows utilities also take time to launch. All processes, once running, do *not* appear slow; they just take time to get started. What can I do at the Windows or Cygwin level to find the cause of this slowdown? -- Michael Ludwig -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
Hi, Thanks for your reply and still doesn't work for some testings. Here are the details. 1. can ping 192.168.x.xx. 2. I didn't install telnet program. 3. There are many entries for listening and here are the main entries TCP 0.0.0.0:22 0.0.0.0:0 LISTENING TCP 192.168.x.xx:22 0.0.0.0:0 LISTENING 4. I modified the ssh_config as below. Host * # ForwardAgent no # ForwardX11 no # RhostsRSAAuthentication no # RSAAuthentication yes # PasswordAuthentication yes # HostbasedAuthentication no # GSSAPIAuthentication no # GSSAPIDelegateCredentials no # BatchMode no CheckHostIP yes AddressFamily any # ConnectTimeout 0 # StrictHostKeyChecking ask # IdentityFile ~/.ssh/identity # IdentityFile ~/.ssh/id_rsa # IdentityFile ~/.ssh/id_dsa Port 22 # Protocol 2,1 # Cipher 3des # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc # MACs hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160 # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no # VisualHostKey no # ProxyCommand ssh -q -W %h:%p gateway.example.com 5. I modified the sshd_config as below Port 22 #AddressFamily any ListenAddress 192.168.0.50 ListenAddress 0.0.0.0 #ListenAddress :: # The default requires 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 1024 # Logging # obsoletes QuietMode and FascistLogging #SyslogFacility AUTH #LogLevel INFO # Authentication: #LoginGraceTime 2m #PermitRootLogin yes StrictModes no #MaxAuthTries 6 #MaxSessions 10 #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 #AllowAgentForwarding yes #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 #ChrootDirectory none # no default banner path #Banner none # 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 That's it for my settings but still cannot connect. Thanks. Dawud Medina wrote: On Sat, Oct 30, 2010 at 12:37:09AM -0700, KeithLaw wrote: Hi, I have set up the ssh server(cygwin) and it works fine for ssh [userna...@localhost in my command prompt at server but it doesn't work for ssh [userna...@192.168.x.xx which is also localhost. I have turned off all the windows firewall. The error message is: ssh: connect to host 192.168.x.xx port 22: Connection timed out Would appreciate if there is any advice. Thanks. Hello, First off, can you ping that address? can you telnet that port? Is it listening? $ ping 192.168.x.x $ telnet 192.168.x.x 22 $ netstat -an | grep LISTEN If those tests work as expected, double check the ListenAddress parameter in your sshd_config, your /etc/hosts file, and then try running: $ ssh -vvv [userna...@192.168.x.xx to see if you can find additional info to debug your problem. HTH -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB -- View this message in
Re: Connection timed out
Hi, Thanks for your reply but I have turned off all the firewall. Huang Bambo wrote: Check your system firewall settings first. On Sat, Oct 30, 2010 at 3:37 PM, KeithLaw t...@spam.la wrote: Hi, I have set up the ssh server(cygwin) and it works fine for ssh [userna...@localhost in my command prompt at server but it doesn't work for ssh [userna...@192.168.x.xx which is also localhost. I have turned off all the windows firewall. The error message is: ssh: connect to host 192.168.x.xx port 22: Connection timed out Would appreciate if there is any advice. Thanks. -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30090311.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30093469.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
On 10/30/2010 09:41 AM, KeithLaw wrote: 4. I modified the ssh_config as below. snip 5. I modified the sshd_config as below snip That's it for my settings but still cannot connect. Did you try any of this with default settings for sshd_config and ssh_config before making your modifications to them? If so, did you have these problems then too? -Jeremy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
On Sat, Oct 30, 2010 at 07:41:39AM -0700, KeithLaw wrote: 1. can ping 192.168.x.xx. 2. I didn't install telnet program. 3. There are many entries for listening and here are the main entries TCP 0.0.0.0:22 0.0.0.0:0 LISTENING TCP 192.168.x.xx:22 0.0.0.0:0 LISTENING 5. I modified the sshd_config as below Port 22 ListenAddress 192.168.0.50 ListenAddress 0.0.0.0 That's it for my settings but still cannot connect. What is the output of this? $ ssh -vvv [userna...@192.168.x.xx -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB signature.asc Description: Digital signature
Re: Connection timed out
This is the output. 6. Here is the debug messages. debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.x.xx [192.168.x.xx] port 22 debug1: connect to address 192.168.x.xx port 22: Connection timed out ssh: connect to host 192.168.x.xx port 22: Connection timed out Dawud Medina wrote: On Sat, Oct 30, 2010 at 07:41:39AM -0700, KeithLaw wrote: 1. can ping 192.168.x.xx. 2. I didn't install telnet program. 3. There are many entries for listening and here are the main entries TCP 0.0.0.0:22 0.0.0.0:0 LISTENING TCP 192.168.x.xx:22 0.0.0.0:0 LISTENING 5. I modified the sshd_config as below Port 22 ListenAddress 192.168.0.50 ListenAddress 0.0.0.0 That's it for my settings but still cannot connect. What is the output of this? $ ssh -vvv [userna...@192.168.x.xx -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30094111.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
Yes, I tried with the default settings and the same time out result appears. My platform is windows 7 and not sure if there is any compatibility issue. Jeremy Bopp-3 wrote: On 10/30/2010 09:41 AM, KeithLaw wrote: 4. I modified the ssh_config as below. snip 5. I modified the sshd_config as below snip That's it for my settings but still cannot connect. Did you try any of this with default settings for sshd_config and ssh_config before making your modifications to them? If so, did you have these problems then too? -Jeremy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30094121.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Connection timed out
On Sat, Oct 30, 2010 at 09:38:05AM -0700, KeithLaw wrote: This is the output. 6. Here is the debug messages. debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.x.xx [192.168.x.xx] port 22 debug1: connect to address 192.168.x.xx port 22: Connection timed out ssh: connect to host 192.168.x.xx port 22: Connection timed out Can you please try to telnet port 22? AFAICT you don't need to install anything. Just use win7 native telnet: $ uname -a CYGWIN_NT-6.1 win7 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin $ cmd Microsoft Windows [Versión 6.1.7600] Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos. C:\cygwin\home\dawudtelnet 164.0.0.6 22 telnet 164.0.0.6 22 Trying 164.0.0.6... Connected to 164.0.0.6. Escape character is '^]'. SSH-2.0-OpenSSH_5.6 quit Protocol mismatch. Connection closed by foreign host. Note that my local IPs are: $ egrep (localhost|win7) /etc/hosts 127.0.0.1 localhost ::1 localhost 164.0.0.6 win7 You could also try to re-generate your sshd config by issuing $ ssh-host-config Could you please follow the guidelines in http://cygwin.com/problems.html and attach a $ cygcheck -s -v -r cygcheck.out to your next reply? -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB signature.asc Description: Digital signature
Re: Connection timed out
It works now. There is another freeware firewall installed on the system although I have disabled the windows firewall.. Many many thanks for your advice and patience. :) Dawud Medina wrote: On Sat, Oct 30, 2010 at 09:38:05AM -0700, KeithLaw wrote: This is the output. 6. Here is the debug messages. debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.x.xx [192.168.x.xx] port 22 debug1: connect to address 192.168.x.xx port 22: Connection timed out ssh: connect to host 192.168.x.xx port 22: Connection timed out Can you please try to telnet port 22? AFAICT you don't need to install anything. Just use win7 native telnet: $ uname -a CYGWIN_NT-6.1 win7 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin $ cmd Microsoft Windows [Versión 6.1.7600] Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos. C:\cygwin\home\dawudtelnet 164.0.0.6 22 telnet 164.0.0.6 22 Trying 164.0.0.6... Connected to 164.0.0.6. Escape character is '^]'. SSH-2.0-OpenSSH_5.6 quit Protocol mismatch. Connection closed by foreign host. Note that my local IPs are: $ egrep (localhost|win7) /etc/hosts 127.0.0.1 localhost ::1 localhost 164.0.0.6 win7 You could also try to re-generate your sshd config by issuing $ ssh-host-config Could you please follow the guidelines in http://cygwin.com/problems.html and attach a $ cygcheck -s -v -r cygcheck.out to your next reply? -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB -- View this message in context: http://old.nabble.com/Connection-timed-out-tp30090311p30094462.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: localtime and TZ
On 10/30/2010 8:58 AM, Ken Brown wrote: I've looked at Cygwin's localtime.cc, and the behavior I'm complaining about is caused by the following code at the beginning of tzset: const char *name = getenv(TZ); if (name == NULL) { if (!lcl_is_set) tzsetwall(); goto out; } So getting rid of 'if (!lcl_is_set)' would solve the problem. But this would be inefficient, because it would mean that tzsetwall gets called every time tzset is called if TZ is never set. To get around that, one could have tzsetwall set TZ. It seems that tzset and tzsetwall used to behave the way I'm proposing before the following two changes were made: 2007-12-11 Corinna Vinschencori...@vinschen.de * localtime.cc (tzset): Call tzsetwall only if it hasn't been called before. 2007-08-01 Corinna Vinschencori...@vinschen.de * localtime.cc (tzsetwall): Don't set TZ. I've just found the reason for the 2007-08-01 change: http://www.cygwin.com/ml/cygwin/2007-08/msg00041.html So I don't know what should be done. How's the attached patch? I'm not set up to build cygwin1.dll, so I can't test it right now. I hope the intent is clear in case I got something wrong. Ken --- localtime.cc.orig 2009-06-14 05:35:35.0 -0400 +++ localtime.cc2010-10-30 13:28:36.421875000 -0400 @@ -597,6 +597,7 @@ static charlcl_TZname[TZ_STRLEN_MAX + 1]; static int lcl_is_set; static int gmt_is_set; +static int TZ_is_set; #define tzname _tzname #undef _tzname @@ -1479,11 +1480,14 @@ const char *name = getenv(TZ); if (name == NULL) { - if (!lcl_is_set) + if (!lcl_is_set || TZ_is_set) { + TZ_is_set = 0; tzsetwall(); + } goto out; } + TZ_is_set = 1; if (lcl_is_set 0strcmp(lcl_TZname, name) == 0) goto out; lcl_is_set = (strlen(name) sizeof (lcl_TZname)); -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: localtime and TZ
On Sat, Oct 30, 2010 at 01:53:11PM -0400, Ken Brown wrote: How's the attached patch? I'm not set up to build cygwin1.dll, so I can't test it right now. I hope the intent is clear in case I got something wrong. That would do it, yes. I chose to just track the initialization state in lcl_is_set and make some other minor cleanup changes to localtime.cc. This should be fixed in the next snapshot. Thanks for the patch and the STC. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: cygwin-1.7.7: tclsh84 does not pass environment to exec sub-process
Hi Stas, This may help you. I had the need to compile a more recent version of expect on cygwin for my open source project expect-lite. Expect is built on TCL, and I used the most recent version 8.5.9. http://expect-lite.sourceforge.net/expect-lite_cygwin.html I have put the recent version of expect up at: http://expect-lite.sourceforge.net/cygwin/cygwin_expect_5_45.tar.gz Alas it is not a cygwin package yet, just a tarball. You will want to untar in from / There is no tclsh executable, but there is an executable expect, which includes all the tcl stuff as well. This will give you an idea of tcl version 8.5.9 will solve your environment problems. good luck, Craig... On 10/29/10 7:39 PM, Stas Maximov wrote: Hello! Using cygwin 1.7.7, tclsh84 does not pass its environment to a sub-process created with exec command. Test case: # Starting from cygwin bash command line, # record your current environment $ env | sort env0.txt # Start tclsh84 $ tclsh84 # Execute the same command from tclsh84, exit % exec env | sort env1.txt % exit # Compare two environments $ diff -u env0.txt env1.txt # Observe large number of environment variables not present in env1.txt. Questions: 1. Is this new to 1.7? My vague recollection is that this was not a problem in cygwin 1.5. 2. Is there a quick workaround? E.g. tclsh flag or environment variable or replacing cygwin1.dll with older version. Please CC me when replying. Best regards, Stas. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: localtime and TZ
On 10/30/2010 3:24 PM, Christopher Faylor wrote: This should be fixed in the next snapshot. Confirmed. Thanks. And this fixes the timezone bug that's described in /usr/share/doc/Cygwin/emacs.README. The workaround given there (defining TZ before starting emacs) is no longer necessary. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple