Why does cl -l returns Administrators as owner?
This is not an only Cygwin question (I see it also in the output of the Windows version of Emacs's dired). For some files in my directories, the output of ls -l gives the Administrators as owner. This is puzzling to me because: - There is no Administrators user listed in the Windows accounts - Under Explorer/Properties/Details, the user is my domain/my user id which is what I expect I looked in the FAQ, Documentation, Google (both cygwin and emacs). This causes problems for remote activities via ssh. I cannot operate on these files, unless I do a chown to my user id. But this then changes some of the permissions as well. And this can then lead to problems down the line if not done carefully - me and my sysadmin I learned the hard way :-) Thanks, Mirko -- 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
mintty startup message: /sbin/nologin: No such file or directory
Hello, after upgrading cygwin64 on my company laptop, mintty gives the following message *when connected to the network from home*: /sbin/nologin: No such file or directory Pressing enter closes the window. I can start bash from Windows' command window. From there, I see that there is no /sbin/nologin file, heck there is no /sbin either. A couple of data points: - After the upgrade, I renamed away the /etc passwd and group files. - I was able to open mintty while connect to the network at work I have an almost identical setup on my other windows 7 desktop (always connected to the network) that does not exhibit this problem. I saw some posts from 2011 about creating my own file but I am puzzled as to why I see this on my laptop and not on my desktop. I looked in Windows logs and saw nothing. I saw nothing in /var/log Thanks, Mirko -- 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: who is root? (or /usr/bin/sshd fails to start because of /var/log ownership)
On Tue, Mar 17, 2015 at 10:24 AM, Corinna Vinschen corinna-cyg...@cygwin.com wrote: On Mar 17 10:10, Mirko Vukovic wrote: Hello, A few weeks ago, sshd stopped working after a cygwin64 update. I reinstalled cygwin64 (because of the new user and password handling, I figured that to be easiest). I still cannot get sshd to run. I get an error message: /usr/sbin/sshd.exe -d debug1: sshd version OpenSSH_6.7, OpenSSL 1.0.1k 8 Jan 2015 debug1: private host key: #0 type 1 RSA debug1: private host key: #1 type 2 DSA debug1: private host key: #2 type 3 ECDSA debug1: private host key: #3 type 4 ED25519 /var/empty must be owned by root and not group or world-writable. Here is what /var/empty looks like (I obfuscated the machine name part) ls -lrd /var/empty drw---+ 1 XX+cyg_server Administrators 0 Feb 25 09:41 /var/empty/ There is no root user on my machine. Should I create it? No. The must be owned by root in sshd is the original upstream error message. The test leading to the message on the other hand is tweaked for Cygwin to test if the /var/empty file is owned by the user running sshd. So, if you run sshd from the command line, it refuses to run if /var/empty isn't owned by your current user account. If you're running sshd as service from the XX+cyg_server account, /var/empty must be owned by the XX+cyg_server account. Does that help? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat (Good news, bad news) Good news: I can start sshd as a user, and ssh to localhost. In bash ran as administrator: - chown myself /var/empty - /usr/bin/sshd -d In another bash: -ssh localhost. works Bad news: sshd cannot start as service (after I revert the /var/empty/ ownership as before). I start it manually under windows services, it starts and then stops. So it seems that it does log in. In /var/log/sshd.log, I see again: /var/empty must be owned by root and not group or world-writable I do not see a login failure in the event manager. When I look in services, sshd is set to log in as a Local System Account. Changing to .\cyg_server does not help. I don't want to bore you with the details, in case I am going the wrong way, but should sshd log in as a local service (the initial setting), cyg_server, or sshd? (I set the parameters to sshd to -d in the services, but I did not see any output in sshd.log). Thank you Mirko -- 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: who is root? (or /usr/bin/sshd fails to start because of /var/log ownership)
On Tue, Mar 17, 2015 at 4:45 PM, Mirko Vukovic mirko.vuko...@gmail.com wrote: On Tue, Mar 17, 2015 at 10:24 AM, Corinna Vinschen corinna-cyg...@cygwin.com wrote: On Mar 17 10:10, Mirko Vukovic wrote: Hello, A few weeks ago, sshd stopped working after a cygwin64 update. I reinstalled cygwin64 (because of the new user and password handling, I figured that to be easiest). I still cannot get sshd to run. I get an error message: /usr/sbin/sshd.exe -d snip /var/empty must be owned by root and not group or world-writable. Here is what /var/empty looks like (I obfuscated the machine name part) ls -lrd /var/empty drw---+ 1 XX+cyg_server Administrators 0 Feb 25 09:41 /var/empty/ There is no root user on my machine. Should I create it? No. The must be owned by root in sshd is the original upstream error message. The test leading to the message on the other hand is tweaked for Cygwin to test if the /var/empty file is owned by the user running sshd. So, if you run sshd from the command line, it refuses to run if /var/empty isn't owned by your current user account. If you're running sshd as service from the XX+cyg_server account, /var/empty must be owned by the XX+cyg_server account. Does that help? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat (Good news, bad news) Good news: I can start sshd as a user, and ssh to localhost. In bash ran as administrator: - chown myself /var/empty - /usr/bin/sshd -d In another bash: -ssh localhost. works Bad news: sshd cannot start as service (after I revert the /var/empty/ ownership as before). I start it manually under windows services, it starts and then stops. So it seems that it does log in. In /var/log/sshd.log, I see again: /var/empty must be owned by root and not group or world-writable I do not see a login failure in the event manager. When I look in services, sshd is set to log in as a Local System Account. Changing to .\cyg_server does not help. I don't want to bore you with the details, in case I am going the wrong way, but should sshd log in as a local service (the initial setting), cyg_server, or sshd? (I set the parameters to sshd to -d in the services, but I did not see any output in sshd.log). Thank you Mirko Um, after looking at application messages, I found messages that indicated that sshd was actually running. After a reboot, ps -W | grep ssh confirmed that. ssh localhost works. But in services, sshd is not listed as running. To summarize: I have sshd installed as a service, set to log in as .\cyg_server. (I had to do that manually, after ssh-host-config). I also manually had to fix the read-write permissions to 600. Things seem to work now. Thank you Corinna and Larry for reading and replying. Mirko -- 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
who is root? (or /usr/bin/sshd fails to start because of /var/log ownership)
Hello, A few weeks ago, sshd stopped working after a cygwin64 update. I reinstalled cygwin64 (because of the new user and password handling, I figured that to be easiest). I still cannot get sshd to run. I get an error message: /usr/sbin/sshd.exe -d debug1: sshd version OpenSSH_6.7, OpenSSL 1.0.1k 8 Jan 2015 debug1: private host key: #0 type 1 RSA debug1: private host key: #1 type 2 DSA debug1: private host key: #2 type 3 ECDSA debug1: private host key: #3 type 4 ED25519 /var/empty must be owned by root and not group or world-writable. Here is what /var/empty looks like (I obfuscated the machine name part) ls -lrd /var/empty drw---+ 1 XX+cyg_server Administrators 0 Feb 25 09:41 /var/empty/ There is no root user on my machine. Should I create it? Here are notes of this mornings ssh configuration session - At the end sshd configuration: - Update Cygwin64 - Opened bash terminal as administrator - 'echo $(/usr/bin/getent -w group S-1-5-32-544)' - 'Administrators:544:BUILTIN\Administrators:S-1-5-32-544' - `cygrunsrv.exe --stop sshd' - `cygrunsrv.exe --remove sshd' - ` ssh-host-config' Notes: - Will use the `+cyg_server' account - `cygrunsrv.exe --remove sshd' Adjusting `/var/empty' - `ls -lrd /var/empty' : - `drwxr-xr-x+ 1 +cyg_server Administrators 0 Feb 25 09:41 /var/empty/' - `chmod 600 /var/empty' - `ls -lrd /var/empty' : - `drw---+ 1 +cyg_server Administrators 0 Feb 25 09:41 /var/empty/' Trying `sshd' in manual mode: , | /usr/sbin/sshd.exe -d | debug1: sshd version OpenSSH_6.7, OpenSSL 1.0.1k 8 Jan 2015 | debug1: private host key: #0 type 1 RSA | debug1: private host key: #1 type 2 DSA | debug1: private host key: #2 type 3 ECDSA | debug1: private host key: #3 type 4 ED25519 | /var/empty must be owned by root and not group or world-writable. ` Attaching output of cygcheck (with some information obfuscated, other deleted) Thanks, Mirko cygcheck.out Description: Binary data -- 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: Cannot change permission of /var/empty
Andrey, your command, setfacl -b, helped me fix the file permission issue described below: On Tue, Feb 24, 2015 at 7:38 PM, Andrey Repin anrdae...@yandex.ru wrote: Greetings, Mirko Vukovic! (Cygwin64, Windows 7, cygcheck attached - with some site details omitted) I updated cygwin64 yesterday, and sshd stopped working. I reinstalled cygwin64, configured sshd, but it is still failing. The message in /var/log/sshd.log is: /var/empty must be owned by root and not group or world-writable. I tried fixing the permissions (started shell as administrator) but I cannot change the group permission via chmod g-w. I don't get any error messages. Here are the permissions for /var/empty (some details elided): ls -ld /var/empty drwxr-xr--+ 1 MACHINE+cyg_server Administrators 0 Feb 24 16:12 /var/empty/ I am member of the administrators group on my machine. The cyg_server and sshd users look ok. Any thoughts on why I cannot change the permission? setfacl -b Or just remove it altogether. -- WBR, Andrey Repin (anrdae...@yandex.ru) 25.02.2015, 03:37 Sorry for my terrible english... Your English was more than adequate for this job :-) Mirko -- 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
Cannot change permission of /var/empty
Hi, (Cygwin64, Windows 7, cygcheck attached - with some site details omitted) I updated cygwin64 yesterday, and sshd stopped working. I reinstalled cygwin64, configured sshd, but it is still failing. The message in /var/log/sshd.log is: /var/empty must be owned by root and not group or world-writable. I tried fixing the permissions (started shell as administrator) but I cannot change the group permission via chmod g-w. I don't get any error messages. Here are the permissions for /var/empty (some details elided): ls -ld /var/empty drwxr-xr--+ 1 MACHINE+cyg_server Administrators 0 Feb 24 16:12 /var/empty/ I am member of the administrators group on my machine. The cyg_server and sshd users look ok. Any thoughts on why I cannot change the permission? Thanks, Mirko cygcheck.out Description: Binary data -- 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: Can't resolve Your group is currently mkpasswd'
On Wed, Jul 18, 2012 at 10:35 PM, ... wrote: I just tried to set up cygwin on my new corporate pc (I have admin privileges on the machine but not on the overall corporate network). I keep getting the infamous 'Your group is currently mkpasswd' every time I open a new terminal. Since this is a domain, I first tried mpasswd -l -d | /etc/passwd but the domain lookup seemed to hang forever (after first generating the local group portion). Note that mkgroup -l -d | /etc/group worked but was slow. In my case, mkpasswd -d is an exercise in patience (many minutes, definitely less then 30), but it does eventually return a very long list. Let it run. Mirko -- 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
rebaseall invocation error
Hello, I am running rebaseall manually to enable X11: I found a post suggesting to rebase to 0x7700 I am following instructions on http://cygwin.wikia.com/wiki/Rebaseall I restarted Windows 7 (64bit) in safe mode (no networking) and opened a command prompt where I executed: cd \cygwin\bin dash PATH=. rebaseall -v I got the following error: rebaseall: only ash or dash processes are allowed during rebasing Exit all Cygwin processes and stop all Cygwin services. Execute ash (or dash) from Start/Run... or a cmd or command window. Execute '/bin/rebaseall' from ash (or dash). I get the same error from a regular Windows session (with sshd stopped, and no other cygwin processes running - as far as I can see). Are there some other Cygwing processes running? How can I check for that. Or is something else amiss? Thanks, Mirko -- 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: rebaseall invocation error
Problem fixed ... see below On Fri, Jul 20, 2012 at 1:04 PM, Christopher Faylor email deleted wrote: On Fri, Jul 20, 2012 at 01:00:45PM -0400, Mirko Vukovic wrote: Hello, I am running rebaseall manually to enable X11: I found a post suggesting to rebase to 0x7700 I am following instructions on http://cygwin.wikia.com/wiki/Rebaseall You realize that the project web site is: http://cygwin.com/ right? You can't expect instructions from unrelated sites to work. You shouldn't need to use the above anymore with new improvements to reabase. True. But I did not find anything else better and the instructions on that site jibed with what I read on the cygwin mailing list over the years. That's why I went with it. I restarted Windows 7 (64bit) in safe mode (no networking) and opened a command prompt where I executed: cd \cygwin\bin dash PATH=. rebaseall -v I got the following error: rebaseall: only ash or dash processes are allowed during rebasing Exit all Cygwin processes and stop all Cygwin services. Execute ash (or dash) from Start/Run... or a cmd or command window. Execute '/bin/rebaseall' from ash (or dash). I get the same error from a regular Windows session (with sshd stopped, and no other cygwin processes running - as far as I can see). Are there some other Cygwing processes running? How can I check for that. Or is something else amiss? Task Manager would probably tell you if something else is running. Against my better judgment I went and looked in Task Manager. After all I was certain I did not start any cygwin process. And in there I found aspell -- it was started during Windows Emacs startup. I use Emacs to write down notes during debugging. rebaseall works as advertised. cgf Mirko -- 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: rebaseall invocation error
On Fri, Jul 20, 2012 at 1:48 PM, Christopher Faylor wrote: On Fri, Jul 20, 2012 at 01:36:07PM -0400, Mirko Vukovic wrote: Problem fixed ... see below On Fri, Jul 20, 2012 at 1:04 PM, Christopher Faylor email deleted wrote: On Fri, Jul 20, 2012 at 01:00:45PM -0400, Mirko Vukovic wrote: Hello, I am running rebaseall manually to enable X11: I found a post suggesting to rebase to 0x7700 I am following instructions on http://cygwin.wikia.com/wiki/Rebaseall You realize that the project web site is: http://cygwin.com/ right? You can't expect instructions from unrelated sites to work. You shouldn't need to use the above anymore with new improvements to reabase. True. But I did not find anything else better and the instructions on that site jibed with what I read on the cygwin mailing list over the years. That's why I went with it. But this wasn't actually better. Just running rebaseall, as suggested by the official Cygwin FAQ is the correct advice. I agree 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 -- 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
ssh connection to localhost closed by remote host after recent updates
Hello, This morning I updated cygwin. At the same time, my Windows 7 (64bit) was also updated. Now I cannot ssh to my system. I re-ran ssh-host-config and ssh-user-config. I re-ran rebaseall with default parameters (no -b 0x7...). I can ssh to other systems. But I cannot ssh to localhost But the following fails: ssh -vv 977315@localhost OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /home/977315/.ssh/config debug1: Reading configuration data /etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 22. debug1: Connection established. debug1: identity file /home/977315/.ssh/id_rsa type 1 debug1: identity file /home/977315/.ssh/id_rsa-cert type -1 debug1: identity file /home/977315/.ssh/id_dsa type 2 debug1: identity file /home/977315/.ssh/id_dsa-cert type -1 debug1: identity file /home/977315/.ssh/id_ecdsa type 3 debug1: identity file /home/977315/.ssh/id_ecdsa-cert type -1 ssh_exchange_identification: Connection closed by remote host The contents of /var/log/sshd are: 1 [main] sshd 2432 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x80) != child(0x48) 0 [main] sshd 3680 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x80) != child(0x8C) 1 [main] sshd 5296 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x5B) != child(0x5E) 1 [main] sshd 848 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x5B) != child(0x61) 1 [main] sshd 2576 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x5B) != child(0x64) 1 [main] sshd 3660 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x5B) != child(0x80) 1 [main] sshd 3836 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x63) != child(0x5A) 1 [main] sshd 5628 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x63) != child(0x48) 0 [main] sshd 5500 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x63) != child(0x5D) 0 [main] sshd 5952 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x63) != child(0x48) 1 [main] sshd 3884 child_info_fork::abort: C:\cygwin\bin\cygcrypto-1.0.0.dll: Loaded to different address: parent(0x63) != child(0x65) Output of cygcheck /bin/cygcrypto-1.0.0.dll C:\cygwin\bin\cygcrypto-1.0.0.dll C:\cygwin\bin\cygwin1.dll C:\Windows\system32\KERNEL32.dll C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll C:\Windows\system32\ntdll.dll C:\Windows\system32\KERNELBASE.dll C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll C:\cygwin\bin\cygz.dll C:\cygwin\bin\cyggcc_s-1.dll Suggestions? Criticisms? Thanks, Mirko -- 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
xkcomp fails after xorg-server update - how to reinstall old version of xorg-server-1.11.3-1?
Hello, I updated today to the latest xorg-server, 1.11.4-5, and the server cannot start due to the xkcomp problem: (EE) XKB: Could not invoke xkbcomp rebasing did not help. I would like to install my prior active xorg-server version 1.11.3-1. I have the tar.bz2 file (setup does not see it). But I don't know how to properly install it and uninstall it. My guess is: - remove current version using setup. - unpack it - run the postinstall script in /etc/postinstall ... try it But if that fails, how do I properly uninstall it? Is it - run the /etc/preremove - remove all files (I can find their paths in the tar.bz2 file) Anything else? Is there a script that does the above? Thanks. Mirko -- 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/
Re: changing home directory
On Fri, Apr 1, 2011 at 4:21 AM, Corinna Vinschen wrote: On Mar 31 17:55, Mirko Vukovic wrote: Hi, I want to change my /home directory. My windows HOME variable points to d: which is my user directory on the PC. Currently, /home points to my home directory. But because of some issues with unison, I would like to change it to /home/977315 I tried: mkdir /home/977315 vi /etc/fstab ... to point d: to /home/977315 (d: is my home directory) vi /etc/passwd to make my login directory /home/977315 But when I open a new bash window, `cd ~' will still put me into /home, and mount's output still points d: to /home. If I remove that windows variable HOME, my cygwin home directory becomes /home/mv. But the mount point d: is still pointing to /home, disregarding the /etc/fstab setting What else should I do? Stop all your Cygwin processes and start again. The fstab changes won't be visible until you restart your Cygwin session. Alternatively, try `mount -a', see http://cygwin.com/cygwin-ug-net/using-utils.html#mount Corinna Thank you. Works now. Mirko -- 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: ssh ... PTY allocation request failed on channel 0
On Mon, Mar 7, 2011 at 8:51 AM, Corinna Vinschen wrote: On Mar 7 14:40, Corinna Vinschen wrote: On Mar 7 08:18, Mirko Vukovic wrote: On Thu, Mar 3, 2011 at 4:34 AM, Corinna Vinschen wrote: On Mar 2 15:06, Mirko Vukovic wrote: So, to summarize, - from work, I can access github using ssh 4.3, but not ssh 5.8 (I get `connection reset by peer', or` remote end hang up unxepectedly'), - from home, ssh 5.8 gives me the PTY error, but I can perform push to github. Did you try to revert to openssh 5.6p1-2? Yes. It behaves the same way (PTY error, but git push origin master works) Where can I find 5.5 of openSSH? I had that ssh working from October 2010. Or do I have to get the sources and compile them? Yes, but they build out of the box. However, what Dave wrote still applies. If you run an ssh client, it does not try to create a pty. The pty creation occurs solely on the server side. The difference may be that the client requests a pty, while the other client doesn't This can be a result of different ssh config settings. Check you ~/.ssh/config file. ... and then there's also the -T option, see `man ssh'. which works! ssh -T g...@github.com gives ssh -T g...@github.com Enter passphrase for key '/home/.ssh/id_rsa': Hi mirkov! You've successfully authenticated, but GitHub does not provide shell access. Thank you Mirko -- 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: ssh 5.8p1 vs 5.5 on VPN (5.5 works, 5.6, 5.8 don't)
On Wed, Mar 9, 2011 at 11:35 AM, Mirko Vukovic wrote: I had a problem with ssh 5.6 or 5.8 connecting across a VPN. I solved it by going back to ssh 5.5. But I don't understand the reason why 5.8 or 5.6 do not work. Here's the story: Actors: - laptop with cygwin 1.7 and openssh 5.8p1 on windows XP - desktop with redhat EL linux 5 with openssh 4.3p2 When the machines are on the LAN, I can ssh from one to the other. Not so when the laptop is connecting to the company network via a VPN. - I can connect from the desktop to the laptop - I cannot connect from the laptop to the desktop Here is the trace when connecting from laptop to dekstop: OpenSSH_5.8p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /home/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: Connecting to a.b.c.d [a.b.c.d] port 22. debug1: Connection established. debug1: identity file /home/.ssh/id_rsa type 1 debug1: identity file /home/.ssh/id_rsa-cert type -1 debug1: identity file /home/.ssh/id_dsa type 2 debug1: identity file /home/.ssh/id_dsa-cert type -1 debug1: identity file /home/.ssh/id_ecdsa type -1 debug1: identity file /home/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH_4* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.8 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-ctr hmac-md5 none debug1: kex: client-server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP On the desktop (/var/log/secure), seconds after trying to establish the connection from the laptop I see: fatal: Read from socket fails. Connection reset by peer Luckily I found the 5.5 tar.bz2 file in my dist directories. Once I installed it using setup, I was able to connect using ssh (and unison) I did not see anything in the /usr/share/doc/Cygwin or /usr/share/doc/openssh/ that would point to a difference between 5.5 and 5.6, 5.8. Any thoughts on what could be causing the problem? Thanks, Mirko It turns out I solved another problem by moving to the older version of ssh. This involves a part I glossed over in the prior message: My third computer is a desktop running windows XP and I use unison to synchronize files between the three computers. This desktop is the center node of my unison universe: both the XP laptop and the Linux desktop synchronize to it. Some time ago the unison synchronization between the XP desktop (ssh 5.8) and Linux desktop (ssh 4.3) stopped working. Unison was trying to write a file DANGER.readme to the /home directory. Puzzlingly, the location is determined by the HOME variable, which points to /home/mirko Once I switched the ssh version on the central node to 5.5, this error disappeared. I wonder if the new ssh versions instead of having a new bug or feature, have uncovered a problem in my cygwin setup. On both my laptop and desktop I keep my personal files (what is usually under /home/mirko on Linux) under a plain /home. When I get a chance, I may try to change that to /home/mirko on the Windows machines as well, and then check out the behavior of ssh 5.8. Mirko -- 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: ssh ... PTY allocation request failed on channel 0
On Thu, Mar 3, 2011 at 4:34 AM, Corinna Vinschen wrote: On Mar 2 15:06, Mirko Vukovic wrote: So, to summarize, - from work, I can access github using ssh 4.3, but not ssh 5.8 (I get `connection reset by peer', or` remote end hang up unxepectedly'), - from home, ssh 5.8 gives me the PTY error, but I can perform push to github. Did you try to revert to openssh 5.6p1-2? Yes. It behaves the same way (PTY error, but git push origin master works) Where can I find 5.5 of openSSH? I had that ssh working from October 2010. Or do I have to get the sources and compile them? Mirko -- 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: ssh ... PTY allocation request failed on channel 0
On Mon, Mar 7, 2011 at 8:18 AM, Mirko Vukovic wrote: On Thu, Mar 3, 2011 at 4:34 AM, Corinna Vinschen wrote: On Mar 2 15:06, Mirko Vukovic wrote: So, to summarize, - from work, I can access github using ssh 4.3, but not ssh 5.8 (I get `connection reset by peer', or` remote end hang up unxepectedly'), - from home, ssh 5.8 gives me the PTY error, but I can perform push to github. Did you try to revert to openssh 5.6p1-2? Yes. It behaves the same way (PTY error, but git push origin master works) Where can I find 5.5 of openSSH? I had that ssh working from October 2010. Or do I have to get the sources and compile them? I found the openssh-5.5p1-2.tar.bz2 file in my cygwin distribution directory. But how do I install it manually. I also found the `time-machine' at http://www.fruitbat.org/Cygwin/. I may try that also. Mirko -- 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: ssh ... PTY allocation request failed on channel 0
On Mon, Mar 7, 2011 at 8:51 AM, Corinna Vinschen wrote: On Mar 7 14:40, Corinna Vinschen wrote: On Mar 7 08:18, Mirko Vukovic wrote: On Thu, Mar 3, 2011 at 4:34 AM, Corinna Vinschen wrote: On Mar 2 15:06, Mirko Vukovic wrote: So, to summarize, - from work, I can access github using ssh 4.3, but not ssh 5.8 (I get `connection reset by peer', or` remote end hang up unxepectedly'), - from home, ssh 5.8 gives me the PTY error, but I can perform push to github. Did you try to revert to openssh 5.6p1-2? Yes. It behaves the same way (PTY error, but git push origin master works) Where can I find 5.5 of openSSH? I had that ssh working from October 2010. Or do I have to get the sources and compile them? Yes, but they build out of the box. However, what Dave wrote still applies. If you run an ssh client, it does not try to create a pty. The pty creation occurs solely on the server side. The difference may be that the client requests a pty, while the other client doesn't This can be a result of different ssh config settings. Check you ~/.ssh/config file. ... and then there's also the -T option, see `man ssh'. Thanks, BTW, I accept Dave's explanation. I just don't fully understand what's going on. Time to finally dig into ssh :-) -- 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
ssh ... PTY allocation request failed on channel 0
Hello, I am trying to ssh to g...@github.com, and I get the error PTY allocation request failed on channel 0 I tried ssh -vv ..., but did not see anything meaningful. googling I found references to devices ptmx and pts. There is a /dev/ptmx. I can see it if I do ls /dev/ptmx but not if I do ls /dev (why?). I also tried mount /dev/pts (as shown on google), but it failed because /etc/fstab does not have a corresponding entry. Am I going in the right direction, or something else the problem? Thank you, Mirko -- 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: ssh ... PTY allocation request failed on channel 0
On Mon, Feb 28, 2011 at 8:45 PM, Mirko Vukovic wrote: Hello, I am trying to ssh to g...@github.com, and I get the error PTY allocation request failed on channel 0 I tried ssh -vv ..., but did not see anything meaningful. googling I found references to devices ptmx and pts. There is a /dev/ptmx. I can see it if I do ls /dev/ptmx but not if I do ls /dev (why?). I also tried mount /dev/pts (as shown on google), but it failed because /etc/fstab does not have a corresponding entry. Am I going in the right direction, or something else the problem? Thank you, Mirko Oh, and this is from the mintty terminal. Mirko -- 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: ssh ... PTY allocation request failed on channel 0
On Mon, Feb 28, 2011 at 9:04 PM, Rafael Kitover ... wrote: On 2/28/2011 8:51 PM, Mirko Vukovic wrote: On Mon, Feb 28, 2011 at 8:45 PM, Mirko Vukovic wrote: Hello, I am trying to ssh to g...@github.com, and I get the error PTY allocation request failed on channel 0 ... That message is coming from github.com, it does not allow opening interactive sessions. You can only use it for git. I don't think so. That command works from me from a linux box. Futhermore, this ssh connection is documented here: http://help.github.com/msysgit-key-setup/ It is used to test the login to the github.com account. Finally, this command used to work on cygwin a couple of weeks ago. I looked into OpenSSH readme's and ChangeLog and nothing jumped out. I tried both the current 5.8p1-1 and previous ssh (5.6p1-2). Same problem. Mirko -- 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: failed to activate core devices errors
On Fri, Feb 18, 2011 at 1:51 PM, Mirko Vukovic wrote: On Sat, Feb 5, 2011 at 9:22 AM, vometia wrote: katrin schmid wrote: i am trying to start XWin.exe in any of the ways described here: http://x.cygwin.com/docs/ug/using.html and with just XWin.exe and ends in Sementation fault and failed to activate core devices errors. I found several post disscussing this on the web but no solution. Does somebody know? I've just experienced what appears to be the same problem after an unintentional update; exiting Cygwin and re-running setup so that I could reinstall bash and the readline libs (which it complained about not being able to overwrite since Cygwin was running at the time) fixed the problem I was seeing. I'm not certain you're experiencing exactly the same problem I had, but in lieu of a better suggestion, it may be worth a try. -- Same problem here. It also ocurred after after a package update where I ignored the warning about replacing the `in-use-files' I tried reinstalling the xkbdcomp and xkeyboard-config packages, but that did not fix the problem. I then reinstalled the whole cygwin-xfree. The problem remained. Mirko I fixed this problem by reinstalling cygwin, cygwin-xfree and the previous version of xkeyboard-config: 1.8.1. The latest version of xkeyboard-config (1.9-something), was causing the same problem. Mirko -- 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/
Spurious Connection reset by peer problems anybody?
On Mon, Feb 21, 2011 at 5:43 AM, Corinna Vinschen wrote: Hi listies, over the weekend I came across a description of a Windows socket problem which might affect some of us. Fortunately I also came across the potential solution. My question is, does anybody have a scenario in which he or she encounters weird Connection reset by peer or Software caused connection abort messages in Cygwin, possibly at the end of a connection attempt? I have a problem on one of my machines when I try to do a git push/pull to an external repo: git push Read from socket failed: Connection reset by peer fatal: The remote end hung up unexpectedly I am not sure if that qualifies as a good test setup for you. Additional data point is that git push works fine on another XP machine, with supposedly identical permissions and network access. I am attaching output of cygcheck -s. Mirko cygcheck.out Description: Binary data -- 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: How to evaluate cygwin state after interrupted update - and how to recover/resume?
On Sun, Oct 3, 2010 at 8:53 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: On 10/2/2010 6:03 PM, Mirko Vukovic wrote: Hello I was installing a new package (aspell) and the latest updates. After the file download, the obsolete packages were removed. Then the installation step started. During iirc aspell's installation, I got an error prompt from rapapp.exe (c++ error), after which the installation procedure stalled. I canceled the installation (cancel) button after waiting 10-15 minutes. How can I evaluate cygwin's state, and the state of the updates. How do I recover/resume the update? Rerun 'setup.exe'. You'll have to re-select the packages you want to install though. Sounds like you want to uninstall BlackICE for the duration of the install though so that it doesn't get in the way. Thanks Larry, but what about the packages that were deleted because they were being updated to the newest version? In other words, - I selected aspell for install - A bunch of other packages were auto-selected for updates. - All packages were downloaded So, after the downloads - the obsolete packages were removed - aspell install started - ... and the crash happened. I have not executed setup yet because I did not want to mess up any history files (if there are any - I did not see anything relevant in /var/logs) Mirko -- 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
How to evaluate cygwin state after interrupted update - and how to recover/resume?
Hello I was installing a new package (aspell) and the latest updates. After the file download, the obsolete packages were removed. Then the installation step started. During iirc aspell's installation, I got an error prompt from rapapp.exe (c++ error), after which the installation procedure stalled. I canceled the installation (cancel) button after waiting 10-15 minutes. How can I evaluate cygwin's state, and the state of the updates. How do I recover/resume the update? My /var/log directory contains setup.log setup.log.full from early August (when I installed 1.7). Thanks, Mirko -- 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
does the `notexec' mount option influence file access performance on a server?
Hello, I have the following /etc/fstab entry //server/mirko/ /z dont_care binary,posix=0,user,noacl,notexec 0 0 for a server directory where I store my backups. I will not be using any of those files as executables. I have cygwin running on my desktop. The manual states that the `exec' option avoids the overhead of opening each file to determine whether it is an executable or not. Will the notexec option also improve reduce the overhead? Thanks, Mirko -- 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
copying from desktop to server changes group and permissions
Hello, when I copy a file from my desktop to the location on our server, it changes permissions and group from root to Domain Users ls -l tree.eps -rw--- 1 977315 root 69488 2010-06-06 21:02 tree.eps /home/The-Works/invention-disclosures+patents/1590--networked-shh-channels ls -l /z/tmp/tree.eps -rwxrwxrwx+ 1 977315 Domain Users 69488 2010-08-13 14:12 /z/tmp/tree.eps* /home/The-Works/invention-disclosures+patents/1590--networked-shh-channels I cannot use chmod or chown to modify either the group or the permissions. I think that affects the behavior of tar and cpio as well. I tried reading the security part of the manual (http://cygwin.com/cygwin-ug-net/ntsec.html), but my eyes soon lost focus. Is that where the answer lies? Thanks, Mirko -- 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
tar permission errors when copying directories to a server
Hello, I use tar to backup my files to a server using a command tar cf - . --exclude-from=./.backup-exclude | (cd $dest_dir; tar xvf -) $log_file After finally upgrading to 1.7, I started getting the following errors: tar: ./dir-name1: Cannot change mode to rwx-w--w-: Permission denied tar: ./dir-name2: Cannot change mode to rwx-w--w-: Permission denied tar: .: Cannot change mode to rwxrw-rw-: Permission denied tar: Exiting with failure status due to previous errors tar exited with error status 1 on Wed Aug 11 12:56:39 EDT 2010 Irrespective of these errors, tar does copy all the files. The problem is that I use the exit status to check whether the backup succeeded or not and whether to reset the time-stamp file. So, the error status is important to me. I tried the same script to copy files from one location to another on my machine, and it works without errors. I am guessing that the problem has something to do with permissions on the server. How would I go about fixing those? Thank you, Mirko -- 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
where to find libjpeg62-6b-21?
Hello, this is a follow-up on the topic of gs and missing libraries: http://cygwin.com/ml/cygwin/2010-07/msg00104.html I have the same problem, and I tried to solve it by installing libjpeg6b. In the original post, the problem was solved by installing libjpeg-62-6b-21 from the `obsolete branch'. Where is that obsolete branch? (I have cygjpeg6b.dll and cygjpeg-62.dll in my cygwin-1.5 tree. Should I try those?) Thank you, Mirko -- 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: where to find libjpeg62-6b-21?
On Tue, Jul 13, 2010 at 12:12 PM, Marco Atzeri marco_atz...@yahoo.it wrote: --- Mar 13/7/10, Mirko Vukovic ha scritto: Hello, this is a follow-up on the topic of gs and missing libraries: http://cygwin.com/ml/cygwin/2010-07/msg00104.html I have the same problem, and I tried to solve it by installing libjpeg6b. In the original post, the problem was solved by installing libjpeg-62-6b-21 from the `obsolete branch'. Where is that obsolete branch? (I have cygjpeg6b.dll and cygjpeg-62.dll in my cygwin-1.5 tree. Should I try those?) using setup.exe on Select packages window there is at the left bottom a ticked box Hide obsolete packages . Remove the tick and the libjpeb62 package version 6b-21 will appear as available. Thank you, Mirko Regards Marco Thanks. It worked and fixed the problem. Mirko -- 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: Unable to initiate X server
On Sun, Sep 20, 2009 at 6:17 PM, cs liew chiasi...@yahoo.com wrote: Hi, I installed Cygwin and I tried to initiate X server but an error message showed up which says A fatal error has occurred and Cygwin/X will now exit. Please open /var/log/XWin.0.log for more information. So what should I do to fix this? Please help! Thanks! Lydia I have the same problem. It started after my laptop went through my IT tech hands - he changed the anti-virus or other software. The way I got around it was to start cygwin in a cmd shell. Then from the cmd shell, I invoke /usr/bin/startxwin.bat, and that works. I did not dig any deeper. Next time, I will look into port 6000 usage, as was suggested in another thread. Mirko -- 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/
setup.exe crashes when removing xorg-server
Hello, After (actually during) my last cygwin update, the installation procedure crashes when setup tries to uninstall xorg-server. I am running on windows XP I have updated to the latest setup.exe (2.573.2.3), and rebooted. I do not see any x-processes in either task manager or windows services. What are my other options other than a complete re-install? (I looked to see if I could manually remove the package, but I did not see any posts on that). I also tried hiding bash.lst.gz, but that did not help. Thanks, Mirko (Sorry for cross-posting. I was not sure which mailing list this topic would fall under) -- 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/
setup.exe crashes when removing xorg-server
Hello, After (actually during) my last cygwin update, the installation procedure crashes when setup tries to uninstall xorg-server. I am running on windows XP I have updated to the latest setup.exe (2.573.2.3), and rebooted. I do not see any x-processes in either task manager or windows services. What are my other options other than a complete re-install? (I looked to see if I could manually remove the package, but I did not see any posts on that). I also tried hiding bash.lst.gz, but that did not help. Thanks, Mirko (Sorry for cross-posting. I was not sure which mailing list this topic would fall under) -- 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: setup.exe crashes when removing xorg-server
On Sat, Mar 14, 2009 at 9:05 PM, t...@panix.com wrote: On Sat, 14 Mar 2009, Mirko Vukovic barely.remembered-in.t...@to.munge.this wrote: After (actually during) my last cygwin update, the installation procedure crashes when setup tries to uninstall xorg-server. I am running on windows XP Is the crash something like a window popping up saying that setup.exe has encountered errors and must be terminated? If so: I recently posted a screed when I got hit by that. Exactly. I should have been more explicit. Now when I restart setup (using `install from local directory'), it crashes once the MD5's have been checke. It crashes when setup tries to uninstall xorg-server. This is the first package that is being uninstalled. I then get two types of crashes - I have not been able to figure out under what circumstances one or the other type happens. In one, a window `MS Visual C++ Runtime Library' `Runtime Error' to the effect taht setup.exe has requested Runtime to terminate it ina an unusual way. In another, I get `setup.exe has encountered a problem and needs to close ...' But see below for good news I have updated to the latest setup.exe (2.573.2.3), and rebooted. I do not see any x-processes in either task manager or windows services. What are my other options other than a complete re-install? (I looked to see if I could manually remove the package, but I did not see any posts on that). I also tried hiding bash.lst.gz, but that did not help. Experts, would it help, or at least not hurt, to hide xorg-server.lst.gz? I would think that hiding bash.lst.gz would help only if it crashed updating bash, not xorg-server. Your comment made me look at xorg-server.lst.gz. That file was probably corrupt (zless could not read it). Once I removed xorg-server.lst.gz, I was able to complete the installation. Thanks Mirko -- 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: Rsync on two Windows machines: way one clear
On Thu, Oct 16, 2008 at 11:27 AM, Richard Ivarson [EMAIL PROTECTED] wrote: I wrote: [..] Do I have to configure modules on the remote PC? I hoped not because it means the local PC's rsync scripts are not flexible anymore, but testwise I did so: Remote PC's rsyncd.conf reads for example: [modul] path = /folder/ A [local PC] rsync Remote:: does list the entry modul. However a [local PC] resync Remote::modul does report an error message, something like chown (?) root access problem. (I forgot to wrote down the exact message...) Some hours of biting through old school command line syntax and pitfals later and with a wish to have a kind of Robocopy GUI : Your robocopy got my attention. Maybe unison would be of use to you http://www.cis.upenn.edu/~bcpierce/unison/ -Richard Mirko -- 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 backup Cygwin packages list?
On Thu, May 8, 2008 at 1:30 PM, Fergus [EMAIL PROTECTED] wrote: I'd like to backup the packages list of my current Cygwin installation, ie the config files which list which packages Cygwin got installed. So that I could take this configuration file(s) to another PC with fresh Cygwin installation and get the same Cygwin programs I use on the other PC. Or for re-installment, for example when the Cygwin folder has been lost. Which files would I have to backup to achieve that? /etc/setup/installed.db contains the list of installed packages and their version. Setting the version to zero will force setup to download and install the package. I wish! This ruse worked with setup.exe v.2.510.2.2 but it does not work with the current setup.exe v.2.573.2.2. (See also http://cygwin.com/ml/cygwin/2007-10/msg00051.html.) It is a real pity that this useful functionality (particularly the earlier reported one) has been lost with 2.510.2.2 - 2.573.2.2. Fergus Oh, bummer. I used that to sync distros among machines. I will have to be more cleaver now. Mirko -- 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 backup Cygwin packages list?
On Wed, May 7, 2008 at 6:06 AM, Richard Ivarson [EMAIL PROTECTED] wrote: Hi, I'd like to backup the packages list of my current Cygwin installation, ie the config files which list which packages Cygwin got installed. So that I could take this configuration file(s) to another PC with fresh Cygwin installation and get the same Cygwin programs I use on the other PC. Or for re-installment, for example when the Cygwin folder has been lost. Which files would I have to backup to achieve that? Thanks! -ric /etc/setup/installed.db contains the list of installed packages and their version. Setting the version to zero will force setup to download and install the package. Mirko -- 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: Rsync
On Mon, May 5, 2008 at 3:35 PM, Ronald Finnegan [EMAIL PROTECTED] wrote: Can someone please tell me how I can get rsync running on my cygwin install? Thanks Ronald W. Finnegan Bioinformaticist, NIMH Laboratory of Neurotoxicology 10 Center Drive Room 3D42 Bethesda, MD 20892-1262 301 594 3607 Ronald, you should post that to the cygwin mailing list. And be more specific. AFAIK, rsync is a cygwin package. Mirko (I do not use rsync) -- 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/
Re: How to set default startup directory for cygwin
On Mon, Feb 18, 2008 at 9:34 AM, Glen Mazza [EMAIL PROTECTED] wrote: Hello, I looked in the FAQ and could not find the answer to this question, so am asking here. Whenever I start cygwin, I need to cd several levels down to the only directory that I care about when using cygwin. How can I get cygwin to start in this particular directory by default...i.e., each time I start Cygwin it will be in that directory already? Cygwin seems to ignore the Start In: option in the Windows Preferences for this application. Thanks, Glen -- 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/ The way I have it setup (speaking from memory, as it was done ages ago) to start in my documents folder, is: - I have a mount point /home defined to point to my documents folder (that is done within cygwin, see the manual) - I have the windows environment variable HOME also pointing to my documents folder (that is done from the windows xp control panel/system/advanced) hth Mirko -- 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 set default startup directory for cygwin
On Mon, Feb 18, 2008 at 10:56 AM, Glen Mazza [EMAIL PROTECTED] wrote: On Feb 18, 2008 9:45 AM, Mirko Vukovic [EMAIL PROTECTED] wrote: On Mon, Feb 18, 2008 at 9:34 AM, Glen Mazza [EMAIL PROTECTED] wrote: Hello, I looked in the FAQ and could not find the answer to this question, so am asking here. Whenever I start cygwin, I need to cd several levels down to the only directory that I care about when using cygwin. How can I get cygwin to start in this particular directory by default...i.e., each time I start Cygwin it will be in that directory already? Cygwin seems to ignore the Start In: option in the Windows Preferences for this application. Thanks, Glen -- 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/ The way I have it setup (speaking from memory, as it was done ages ago) to start in my documents folder, is: - I have a mount point /home defined to point to my documents folder (that is done within cygwin, see the manual) - I have the windows environment variable HOME also pointing to my documents folder (that is done from the windows xp control panel/system/advanced) Are both steps actually needed? They seem redundant, i.e., one of the two alone should do it. You may be right. I may try to play with it when I have time. Glen -- 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 build gsl dll
On Mon, Feb 18, 2008 at 11:01 AM, Reini Urban [EMAIL PROTECTED] wrote: Hi Mirko 2008/2/17, Mirko Vukovic [EMAIL PROTECTED]: I am trying to build a dll for gsl. I want to link it to clisp. I would suggest not to use a static clisp module, just use the FFI. This is much simplier, smaller and easier to test. See libsvm or matlab, or pari for a more optimized binding. I want to do this for my gdi module also, but had no time yet. And we still have no header parser, which could construct the FFI binding automatically. cffi might be useful. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://spacemovie.mur.at/ http://helsinki.at/ -- 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/ Reini, The reason why I need cffi is that I am trying to get nlisp to work on clisp+cygwin. And nlisp is using cffi. I have nlisp running at work on linux+sbcl, but my laptop has only cygwin. I posted a message on the cffi mailing list, and Luis is helping me there. Mirko -- 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: [cffi-devel] Re: how to build gsl dll
On Mon, Feb 18, 2008 at 1:52 PM, Reini Urban [EMAIL PROTECTED] wrote: Mirko Vukovic schrieb: On Mon, Feb 18, 2008 at 11:01 AM, Reini Urban wrote: 2008/2/17, Mirko Vukovic: I am trying to build a dll for gsl. I want to link it to clisp. I would suggest not to use a static clisp module, just use the FFI. This is much simplier, smaller and easier to test. See libsvm or matlab, or pari for a more optimized binding. I want to do this for my gdi module also, but had no time yet. And we still have no header parser, which could construct the FFI binding automatically. cffi might be useful. Reini, The reason why I need cffi is that I am trying to get nlisp to work on clisp+cygwin. And nlisp is using cffi. I have nlisp running at work on linux+sbcl, but my laptop has only cygwin. $ cygcheck /bin/cyggsl-0.dll f:\cygwin\bin\cyggsl-0.dll f:\cygwin\lib\lapack\cygblas.dll Are you sure you have /lib/lapack or /usr/lib/lapack added to your path? I posted a message on the cffi mailing list, and Luis is helping me there. I see. $ clisp -q (ASDF:OOS 'ASDF:LOAD-OP :ASDF-INSTALL) (ASDF-INSTALL:INSTALL :nlisp) Oops... So I had to create a small patch http://sourceforge.net/tracker/index.php?func=detailaid=1896345group_id=174776atid=870580 nlisp.lisp: (cffi:define-foreign-library libgslcblas (:darwin libgslcblas.dylib) (:unix (:or cyggslcblas-0.dll libgslcblas.so.0 libgslcblas.so)) ... (cffi:define-foreign-library libgsl (:darwin libgsl.dylib) (:unix (:or cyggsl-0.dll libgsl.so.0 libgsl.so)) ... (cffi:define-foreign-library libsndfile (:darwin libsndfile.dylib) (:unix (:or cygsndfile-1.dll libsndfile.so.1 libsndfile.so)) Luís, cannot this be a bit simplified for :cygwin? I've always have to do this. libsndfile.so.1 can be automatically translated to cygsndfile-1.dll. Unfortunately :cygwin is no define-foreign-library target, just :unix. nlisp-core.lisp: fixnum and double-float just name clisp types, no classes yet. This is just for cmucl/sbcl so far. CLHS does not require those. The clisp numeric classes are listed in the impnotes Chapter 4.4. (NUMBER, COMPLEX, REAL, FLOAT, RATIONAL, RATIO, INTEGER) Now (ASDF:OOS 'ASDF:LOAD-OP :NLISP) prints tons of FFI::FOREIGN-LIBRARY-FUNCTION warnings, but works fine. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://helsinki.at/ http://spacemovie.mur.at/ ___ cffi-devel mailing list [EMAIL PROTECTED] http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel Reini, I was using that your format as well. You can see from Luis' post that he can load the library as well. I'll keep digging to see why I cannot link to it (even though I can probe it - meaning clisp can see it) Thanks for your comments and help Mirko -- 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: [cffi-devel] Re: how to build gsl dll
On Mon, Feb 18, 2008 at 5:18 PM, Luís Oliveira [EMAIL PROTECTED] wrote: On 18/02/2008, Reini Urban [EMAIL PROTECTED] wrote: Luís, cannot this be a bit simplified for :cygwin? I've always have to do this. libsndfile.so.1 can be automatically translated to cygsndfile-1.dll. Unfortunately :cygwin is no define-foreign-library target, just :unix. Maybe. Do all cygwin Lisps push :CYGWIN onto their *FEATURES* like CLISP? Regarding the naming convention, I suppose we could add a library designator (or change :DEFAULT) that handles that. E.g.: (:lib foo 2) would translate to libfoo.so.2, libfoo.2.dylib, cygfoo-2.dll, etc. -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/ ___ cffi-devel mailing list [EMAIL PROTECTED] http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel As far as I know, clisp is the only lisp running on cygwin. I tried compiling sbcl, and that got me nowhere. Mirko -- 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 build gsl dll
Hi, I am trying to build a dll for gsl. I want to link it to clisp. However, when after downloading the gsl source (and I saw it being downloaded), I cannot find it (/usr/src is completely empty, and find did not return much other than many *.h files, dll's etc). On the other hand the gsl executable contains the *.a, *.dll.a and *.la files. Is there a way to convert them to the dll.a Frankly, I started dealing with libraries only about a week ago, and while I understand the .a, .so, .dll types (I think), I'm not sure about dll.a and .la. Thank you, Mirko -- 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 build gsl dll
On Sun, Feb 17, 2008 at 2:19 PM, Brian Dessent [EMAIL PROTECTED] wrote: Mirko Vukovic wrote: I am trying to build a dll for gsl. I want to link it to clisp. Why? The Cygwin gsl packages already contains everything you need, including both shared and static versions. Install the 'gsl' package for the runtime files (the DLL) and install 'gsl-devel' for the developer files (headers, import library, static library, libtool library.) You don't have to do anything. On the other hand the gsl executable contains the *.a, *.dll.a and *.la files. Is there a way to convert them to the dll.a That doesn't make any sense. There is no need to convert anything, not that that's even possible. Frankly, I started dealing with libraries only about a week ago, and while I understand the .a, .so, .dll types (I think), I'm not sure about dll.a and .la. For a package 'foo' cygfoo-n.dll is the shared library, it goes in /usr/bin since it must be in the PATH. This is the only file that is actually used at runtime[1], as opposed to link time. n is the ABI version, if present. libfoo.dll.a is the import library for cygfoo-n.dll and it goes in /usr/lib. An import library is just an aide for the linker, it contains no actual code. libfoo.a is the static version of the library, and also goes in /usr/lib. Sometimes import libraries are also named libfoo.a too but this practice is discouraged, it's mostly legacy things like all the w32api import libs that are still named this way. Import libraries can also be renamed as foo.lib if they are to be used by the MS toolchain. libfoo.la is the libtool library, it's just a text file that describes aspects of the library and is used by libtool if you use that to link. Brian [1] Okay technically the libtool .la file could be read at runtime if the library is dlopened with libltdl, but that's probably not relevant here. Thank you. I found it: cyggsl-0.dll, cyggslcblas-0.dll in /usr/bin. Thank you very much for the explanation. Mirko -- 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: [ANNOUNCEMENT] Updated: clisp-2.43-2, new: clisp-gtk2, clisp-gdi, clisp-clx
On Jan 5, 2008 7:36 PM, Reini Urban [EMAIL PROTECTED] wrote: I've released a new release clisp-2.43-2 for cygwin. ./configure --fsstnd=redhat --with-dynamic-ffi \ --with-module=rawsock --with-module=dirkey \ --with-module=bindings/win32 --with-module=berkeley-db \ --with-module=pcre --with-module=postgresql \ --with-module=fastcgi --with-module=zlib \ --with-module=gdbm --with-module=libsvm \ --prefix=/usr --build build Plus I splitted out heavy dependencies into ... stuff deleted Just so that you don't think your effort is unappreciated ... Thank you, very, very much. Mirko -- 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: Fwd: ForwardX11 not working
On Dec 13, 2007 6:25 PM, Larry Hall (Cygwin X) [EMAIL PROTECTED] wrote: Mirko Vukovic wrote: Hi, I have cygwin installed as a server on my desktop. I can log into it from my linux box using ssh, but I cannot open displays on the linux box. By that I mean that if I login in using ssh, and invoke a command that should open a window (like gnuplot), it opens the plot on the server, and not on the client. Here is my setup (the cygwin distribution is a few days old). On the desktop (server), - I have ran ssh-host-config and set CYGWIN=ntsec server. I said yes to privilege separation, and I have an sshd user in /etc/passwd - I have set DISPLAY=localhost:0.0 in .bash_profile ^^ Don't do this. On my linux box (client), I have an ~/.ssh/config file with the lines in the section refering to the server: ForwardX11 yes and ForwardX11Trusted yes I can login to the server from both the linux box and my laptop (where I also have cygwin), and can run unison (which requires ssh). I read the various doc's and searched mails (does not mean I understood everything), which resulted in the above setup. I am including the output of cygcheck. Any suggestions as to what I may have missed, or what server/client setting I can look at? See above. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 429-6305 - FAX Holliston, MA 01746 Thanks Larry, but ... I am confused with the discussion in the this post: http://sourceware.org/ml/cygwin-xfree/2002-10/msg00071.html. Those guys specifically tell to have DISPLAY defined before an ssh login. When I did the ssh login and tried gnuplot on the remote machine I received an error: unable to open display ''. Can you please clarify: I have a remote machine and a local machine. Which of them, if any should have DISPLAY set or not set before I attempt to login and open an X-window? Naively, I am assuming that each machine should have a DISPLAY set, for the simple reason that when I am physically at that machine, I need display in order to open x-windows. Another data point: I have a linux box. If I login from cygwin via ssh to the linux box (having DISPLAY already set on the cygwin side), I can run applications on the linux box that do open new x-windows on my cygwin machine. Thank you, Mirko -- 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/
Re: scripting and cygwin
Phil Betts wrote: John wrote on Friday, June 01, 2007 3:05 AM:: I finished the script I have been working on. Unfortunately, this Pee Cee version won't even finish the full data run as it crashes with Zone Alarm. Since I have a long term good relationship with Zone Alarm, I have to write off cygwin. And here are the timings I get from my Windoze cygwin machine vs. my MacBook Os X are (comparable machines): Timings on Windoze cygwin: [snip] Zone Alarm crashes ALWAYS, won't even finish Timings on Mac OS X: [snip] I am afraid I just have to move all this to my MacBook and forget about Windoze/cygwin. You're comparing chalk cheese and complaining that your mouth's full of grit. It's not the chalk's fault. It never claimed to tasted good in a sandwich. Run your script on a Mac emulator running under Windows, (without removing ZoneAlarm), then report back. Alternatively, run your script under Linux on your PC. You also haven't grasped simple logic, so I dread to think what your script is like. (Give us a laugh and post it, I dare you) Many people have experienced this: PC+Windows+ZoneAlarm+Cygwin+Script = Will not run PC+Windows+ZoneAlarm+ProgramX = Will not run PC+Windows+Cygwin+Script = Runs PC+Windows+ProgramX= Runs What sort of warped logic blames cygwin in this situation? The experience of many others is that ZoneAlarm is a badly written program that interferes with the correct operation of all sorts of software, not just cygwin. What sort of arrogant fool thinks the experience of countless others in the same circumstance doesn't apply to them? Cygwin works. I use it all day, every day and have done for years. I didn't have to do anything special to get it to work. If you can't make it work for you, I suggest that, ultimately, the problem is between your own ears, and you would be better off working on a solution to that rather than wasting our time with your mindless trolling. This is tangentially related to this topic (and I am not trying to put cygwin down, just discussing my problem). John originally posted the timing results for his scripts, and what peaked my interest is that the timing on widows+cygwin was much slower than on the Mac. On a thread that I started yesterday (see: slow bash command line and scripts). I noted that my bash is very sluggish, and the script execution very slow. The CPU is mostly idle. The situation did not improve even after I implemented the suggested fixes (PATH cleanup). Could my problem be related to some other windows/security software installed by the IT department (we have Preventia installed)? (hmm, even I can answer that as :sure it could, but how to verify it? I cannot remove Preventia. I guess that in my ignorance I am still hoping a wizard (or witch) will speed-up my cygwin with a wave of a wand.) Thanks, Mirko -- 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/