AutoSSH problem
On Thu, May 31, 2018, 4:58 AM Germain Le Chapelain wrote: > > Hi, > > > I am experiencing troubles trying to set up a reverse SSH tunnel: > > I have installed AutoSSH as such: > > cygrunsrv.exe -I AutoSSH -p /bin/autossh -a "-M 2 -R > *:5900:localhost:5900 s...@lanvaux.fr" -y tcpip --type auto -e > AUTOSSH_NTSERVICE=yes > > > Now, it works great, except if the ssh service at lanvaux.fr would > become unavailable. > > In this case, the service stops. If you're still having problems: I've had it working for about 4 years. I've set it up on at least 4 different windows PCs. WIN7 and WIN10. I changed jobs 6 months ago so I no longer have access to any of the computers. But I did write-up my notes as a blog post: https://lizards.opensuse.org/2015/04/20/using-opensuse-as-a-reverse-tunnel-site-for-windows-7-remote-desktop/ Key section of the write-up for your issue assuming your SSHD server is Linux: === 4) Tweak the sshd_config on the server By default openSUSE enables “AllowTcpForwarding” and “TCPKeepAlive”. Verify they are either commented out or set to “yes” in /etc/ssh/sshd_config Set “GatewayPorts yes” and “ClientAliveInterval 300” in /etc/ssh/sshd_config. Also make sure they are not commented out. restart sshd to get the config values to be re-read:sudo systemctl restart sshd.service === Maybe that will help. Greg -- 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: permission question
If I'm going to relegate rsync to the trash bin due to it not supporting Windows permissions well enough to be useful, I've got other Windows recursive copy tools I use that don't preserve permissions either. I can't tell you how much I love Windows security permissions. :( In the mean time I have a huge number of folders now on my destination drive I need to delete. (over a million files it seems). Neither cygwin, nor windows says I have permission to delete them. Any idea how I can do it short of reformating. Thanks Greg -- Greg Freemyer On Wed, Dec 7, 2016 at 3:39 PM, Brian Inglis <brian.ing...@systematicsw.ab.ca> wrote: > On 2016-12-07 13:12, Erik Soderquist wrote: >>> I really like cygwin and have used it for a decade plus. Only in the >>> last year or 18-months have I noticed significant permission issues >>> that slow down my workflow. >>> >>> Copying these folders/files from one drive to another is a task I'd >>> like to accomplish, but even more importantly I'd like to understand >>> how to work with permissions in cygwin. As it is, I'm concerned I >>> will have to leave cygwin behind and I don't want to do that. >> >> I've been a Windows and Linux admin for years, and Windows permissions >> can be a pain, but can also be very granular. >> >> What I normally do for something like this is use robocopy's "backup mode" >> switch to bypass permissions on the source entirely and intentionally not >> copy the permissions to the destination, then set up the permissions I want >> on the destination after the copy is complete. >> >> The "backup mode" option requires either backup operator or local admin >> permissions to use. > > Concur and recommend for local copies: > > robocopy src dst /s /sl /xj /copyall /zb /nfl /ndl /np /mt:8 /r:0 /w:0 > > to copy non-empty directories; keep winsymlinks as is; skip junctions; > all info; backup fallback; no file, directory, or progress logging; > 8 threads, no retries, no waits: use /copy (like cp -p) instead of > /copyall to skip security info. > > -- > Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada > > -- > 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: permission question
On Wed, Dec 7, 2016 at 1:48 PM, Stephen John Smoogen <smo...@gmail.com> wrote: >> I'm tempted to just do a "chmod 755 -R .", but I've just had too many >> windows permission issues in the last year to start trying things >> without guidance. > > That would probably make things worse. I believe that Windows > permissions are like attribs in Linux (which moves it into witchcraft > and sorcery). For dealing with this sort of issue I would look at > using the xcopy that Glenn from dell mentioned. > >> Greg I really like cygwin and have used it for a decade plus. Only in the last year or 18-months have I noticed significant permission issues that slow down my workflow. Copying these folders/files from one drive to another is a task I'd like to accomplish, but even more importantly I'd like to understand how to work with permissions in cygwin. As it is, I'm concerned I will have to leave cygwin behind and I don't want to do that. Greg -- Greg Freemyer -- 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: permission question
On Wed, Dec 7, 2016 at 10:47 AM, Greg Freemyer <greg.freem...@gmail.com> wrote: > I have a USB drive with 100,000's of thousands of files I put on it > from one PC. I've built that dataset up over a couple years. > > I moved the USB drive to a different PC and I'm trying to rsync it to > another drive. > > 99.9% of the data seems to have made its way from one drive to the other. > > But I got a few permission denied messages when reading files off of > the source drive. > > I really don't need anything but the equivalent of 666 permissions for > the source drive files. > > I know linux well, but I have screwed up Windows permissions once too often. > > Is there a command I should run in Windows or cygwin to grant my user > read/write permission to all of the files? > > Or I can parse the rsync log file I created and look for the handful > of files that failed with permission denied. > > Thanks It's worst than I thought. I used rsync -avP to make the copy of the folders / files. (Its 2.5TB, so it took all day yesterday to run). I'm trying now to use "rsync -cvr" to compare the checksums of the source / destination and re-copy any that got corrupted. The trouble is lots of the destination files can't be read due to permission issues, so the compare doesn't match and the rsync is copying the same files again. I admit to having little understanding of the Windows / cygwin permissions integration. Or even Windows permissions standalone. I do understand Linux permissions well. I'm tempted to just do a "chmod 755 -R .", but I've just had too many windows permission issues in the last year to start trying things without guidance. Greg -- 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
permission question
I have a USB drive with 100,000's of thousands of files I put on it from one PC. I've built that dataset up over a couple years. I moved the USB drive to a different PC and I'm trying to rsync it to another drive. 99.9% of the data seems to have made its way from one drive to the other. But I got a few permission denied messages when reading files off of the source drive. I really don't need anything but the equivalent of 666 permissions for the source drive files. I know linux well, but I have screwed up Windows permissions once too often. Is there a command I should run in Windows or cygwin to grant my user read/write permission to all of the files? Or I can parse the rsync log file I created and look for the handful of files that failed with permission denied. Thanks Greg -- Greg Freemyer -- 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: Please explain how to add to a thread in this mailing list
On Thu, Aug 11, 2016 at 8:44 PM, Thomas Taylorwrote: > Thank you for responding to my post. I think I asked the wrong question. > What I really want to know is how to use this mailing list and others like > it. I'm new at this, and can't find any instructions anywhere. Such lists > must have become part of the culture, and I must have missed school that > day. I'm able to create a post, but don't know how to reply to one. > Somehow I got the feeling that I should only reply to the mailing list, > rather than directly to the person (like you) who responded to my post. I > don't get responses via email, and don't even know if I should. Instead, I > check for them periodically on the web page for the mailing list archive. > If I find a response, I don't know the right way to reply. > > > -- > 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 > Are you subscribed such that you get each email as a separate email? If so, all you have to do is reply. Reply all s normally fine, but I've been on lists with various rules (netiquettes). I suspect your issue is how you subscribed to the list. Greg -- 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: rsync performance degradation? Could be a windows issue?
On Mon, Apr 11, 2016 at 2:20 PM, Greg Freemyer <greg.freem...@gmail.com> wrote: > As I test, I just copied 30 GB of 1.5 GB files via robocopy. None of > the files had been accessed since a reboot, so none should have been > in cache. > > According to Resource Monitor, yes. > > I'm getting about 105 MB/sec for read and 105 MB/sec for write vs 70 > MB/sec for rsync. I just moved both drives to a Linux box. Using the same rsync command I'm getting 85 - 90 MB/sec. That linux box is a 5-year old laptop, where as the windows box is a pretty beefy box. (6 cores, 64 GB ram) Clearly the WIndows box should be better performing and when running robocopy it is. So it seems something about the combination of a Windows kernel, cygwin, and rsync is dropping my performance at least a factor 20% and maybe as much as 35%. If I were to run rsync in strace, would anyone want to try and work on the performance issue? Or should it just be chalked up to rsync being optimized for a linux kernel? Thanks Greg -- Greg Freemyer www.IntelligentAvatar.net -- 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: rsync performance degradation? Could be a windows issue?
On Mon, Apr 11, 2016 at 1:34 PM, Marco Atzeri <marco.atz...@gmail.com> wrote: > > > On 11/04/2016 18:57, Greg Freemyer wrote: >> >> On Thu, Mar 31, 2016 at 4:48 PM, Greg Freemyer <greg.freem...@gmail.com> >> wrote: >>> >>> All, >>> >>> I'm not sure this is on-topic, but at least I'm in cygwin when I >>> notice the below: >>> >>> I do a lot of large data transfers between USB drives. Often I get >>> great speeds (70MB/sec or more). >>> >>> Sometimes it falls way off to closer to 20MB/sec with the same class >>> of hardware. >>> >>> I experienced the "slow" transfer speed today, so I thought I'd ask if >>> anyone knew a way to resolve it? >> >> >> I'm trying rsync of a bunch of large files again today. >> >> Initially I saw the same slow copy speed (about 20 MB/sec). My >> destination was connected to a USB 3.1 port, but it seemed to be the >> bottleneck so I moved it to a USB 3 port (3.1 should be 2x the speed >> of 3.0, so it should not have been the bottleneck). >> >> After getting my throughput up above 50 MB/sec I notice in the windows >> "performance monitor" that my source disk is hitting 100% utilization, >> then a few seconds later my destination disk is. And back and forth. >> It seems I'm only reading or writing for a few seconds, then >> alternating. >> >> I assume the issue is that too much data is being read / cached by >> rsync prior to it being written out so I'm getting no advantage of >> reading and writing in parallel. >> >> (I gather iostat isn't available for cygwin?) >> >> Is there some rsync (or cygwin) option / feature that would encourage >> parallel reading/writing? >> >> fyi: I did some linux testing with "dd" over the weekend and I hit 140 >> MB/sec if I used a 100MB blocksize. That was to / from the raw disk >> (/dev/sda => /dev/sdb). >> >> If I bumped my blocksize to 1GB for dd in linux, my throughput dropped >> to 70 MB/sec just as I see right now with rsync in cygwin. >> >> Thanks >> Greg >> > > > Is windows robocopy faster ? As I test, I just copied 30 GB of 1.5 GB files via robocopy. None of the files had been accessed since a reboot, so none should have been in cache. According to Resource Monitor, yes. I'm getting about 105 MB/sec for read and 105 MB/sec for write vs 70 MB/sec for rsync. Significantly, with robocopy Resource Monitor is showing a consistent read/write speed. With rsync read and write fluctuate back and forth. As I stated before, I believe I should be able to get 140 MB/sec, but I wouldn't complain about 105 MB/sec. 70 MB/sec just seems to highlight a flaw in how rsync manages the data flow since it is 50% of theoretical max. ie. this seems to be what rsync in cygwin is doing: while (files) { read 1.5 GB file to ram write 1.5 GB file from ram fsync() ensure 1.5 GB file is on disk } endwhile I haven't tested in linux. Maybe rsync just isn't as efficient as I expect? There is also the problem that rsync often slows down to below 50 MB/sec I've tried it with no other activity on the PC. Today I was only getting 20 MB/sec at first. (I moved the USB cable and it came up to 70 MB/sec). Thanks Greg -- 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: rsync performance degradation? Could be a windows issue?
On Thu, Mar 31, 2016 at 4:48 PM, Greg Freemyer <greg.freem...@gmail.com> wrote: > All, > > I'm not sure this is on-topic, but at least I'm in cygwin when I > notice the below: > > I do a lot of large data transfers between USB drives. Often I get > great speeds (70MB/sec or more). > > Sometimes it falls way off to closer to 20MB/sec with the same class > of hardware. > > I experienced the "slow" transfer speed today, so I thought I'd ask if > anyone knew a way to resolve it? I'm trying rsync of a bunch of large files again today. Initially I saw the same slow copy speed (about 20 MB/sec). My destination was connected to a USB 3.1 port, but it seemed to be the bottleneck so I moved it to a USB 3 port (3.1 should be 2x the speed of 3.0, so it should not have been the bottleneck). After getting my throughput up above 50 MB/sec I notice in the windows "performance monitor" that my source disk is hitting 100% utilization, then a few seconds later my destination disk is. And back and forth. It seems I'm only reading or writing for a few seconds, then alternating. I assume the issue is that too much data is being read / cached by rsync prior to it being written out so I'm getting no advantage of reading and writing in parallel. (I gather iostat isn't available for cygwin?) Is there some rsync (or cygwin) option / feature that would encourage parallel reading/writing? fyi: I did some linux testing with "dd" over the weekend and I hit 140 MB/sec if I used a 100MB blocksize. That was to / from the raw disk (/dev/sda => /dev/sdb). If I bumped my blocksize to 1GB for dd in linux, my throughput dropped to 70 MB/sec just as I see right now with rsync in cygwin. Thanks Greg -- 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
rsync performance degradation? Could be a windows issue?
All, I'm not sure this is on-topic, but at least I'm in cygwin when I notice the below: I do a lot of large data transfers between USB drives. Often I get great speeds (70MB/sec or more). Sometimes it falls way off to closer to 20MB/sec with the same class of hardware. I experienced the "slow" transfer speed today, so I thought I'd ask if anyone knew a way to resolve it? The PC I'm running on is spec'ed for data processing so a 6 core (12 thread) setup with 128GB or RAM. No significant data processing is going on. Basically the machine is currently dedicated to running rsync (as below). I have 2 USB drives hooked up. Both are USB-3 and should be able to do 70MB/sec with no issue. Neither drive has any unrelated I/O going on that I know of. (I don't see any in the Windows Performance Monitor.) I have a folder with almost 200 4GB files ( 750GB total and all the files are large). I'm using "rsync -av" to copy files from the source to the destination and the folder on the destination started out empty Using Windows "Resource Monitor" I normally would see both drives hitting over 70 MB/sec. Today I'm seeing the source drive jump all the way up to 125 MB/sec or so, but the destination is down around 20 MB/sec When the 4GB source file completes reading, the source drive basically goes idle for a while until the file is written out. Then the source drive jumps back to 125 MB/sec until it finishes reading the next file. The destination drive on the other hand is stuck down around 20 MB/sec. I really don't think this is caused by slow hardware. Could the destination drive be dropping down to USB-2 mode? === And now that I've written up the above, the system has returned to a more normal 75 MB/sec consistently on the output drive. I'm still curious what might be going on. As I say I move a lot of data around as part of my work, and much of the time it is big groups of either 1.5GB or 4GB files. Thanks Greg -- Greg Freemyer www.IntelligentAvatar.net -- 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: compile ncurses "hello world" to run independent of cygwin?
On Mon, Nov 2, 2015 at 7:48 AM, cyg Simplewrote: > On 11/1/2015 11:09 PM, Darik Horn wrote: >> >> Unless there is a specific reason to cross through Cygwin, it could be >> easier to use the native MinGW environment directly: >> >> * http://www.mingw.org/wiki/Getting_Started >> > > Poppycock! There is no reason that the user couldn't use Cygwin as the > one and only system to build native binaries. I'm relatively new to this mailing list. Apologies if this is well covered ground The last time I checked (a few years ago), my understanding was the cygwin dll's were licensed such that any programs using them had to be GPL (or equivalent). Is that wrong? If so, anyone wanting to write a commercial tool has to avoid the cygwin's core dll's. Does using mingw do so? Thanks Greg -- 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 potentially corrupting permissions?
Linda, We seem to travel the same mailing lists. This is my first time to cygwin's. I saved your script as "lsacl.txt". Then I used "cp lsacl.txt it" to make a copy. The copy is permission denied for reading. Basic ls -l shows no difference (as expected) $ ls -l lsacl.sh it rwx---+ 1 gaf None 1630 Sep 24 12:05 it rwx---+ 1 gaf None 1630 Sep 24 12:00 lsacl.sh But your script does show a difference: $ ./lsacl.sh lsacl.sh it [u::---,g::---,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] lsacl.sh [u::---,g::r-x,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] it My user id is "gaf". fyi: I thought I knew how to read an ACL, but the above makes little sense to me. Note I can cat out "lsacl.sh", but I can't cat out "it". Greg -- Greg Freemyer www.IntelligentAvatar.net On Wed, Sep 23, 2015 at 10:58 PM, Linda Walsh <cyg...@tlinx.org> wrote: > Greg Freemyer wrote: >> >> All, >> >> I've noticed on 2 different machines that if I copy (cp) a file I can >> read with cygwin, I don't have permission to read the copy. > > --- > What does the acl say? > > (Attached a script, lsacl, that I use -- it works > with linux or cygwin and allows wildcards). > > > #!/bin/bash > > ## $Id: lsacl,v 1.5 2015-08-02 10:29:25-07 law Exp law $ > # Version 2 -- try to work with getfacl on cygwin > # > > > shopt -s expand_aliases > alias int=declare\ -i sub=function string=declare > > gfacl=$(type -P getfacl) > > if ! type -f cygwin 2>/dev/null ; then > _un_=$(type -P uname) > if [[ $_un_ ]] ; then _os_=$($_un_ -o); > elif[[ -e /proc/sys/kernel ]]; then _os_=Linux; > else_os_=Cygwin; > fi > if [[ $_os_ =~ Cygwin ]]; then function cygwin () { > return 0; } > elsefunction cygwin () { return 1; } > fi > unset _un_ _os_ > export -f cygwin > fi > > if cygwin 2>/dev/null ;then > [[ $gfacl ]] || { printf "FATAL: Cannot find getfacl in path\n"; > exit 1; } > sub gfacl () { "$gfacl" "$@"; } > else > ## linux version has broken semantics requiring "-p" > sub gfacl () { "$gfacl" -p "$@" ; } > fi > > export -f gfacl > > > sub facl2str { > string fn=${1:?"Need pathname"} > string s1='/^\#.*$/d; /^\s*$/d; s/\s*#.*$//; > s/^(.)(ser|roup|ask|ther):/\1:/; y/\n/,/' > string facl=$(gfacl -a "$fn"|sed -r "$s1"|tr "\n" ",") > facl=${facl%,} > string dacl=$(gfacl -d "$fn"|sed -r "s/^default://; $s1"|tr "\n" > ",") > dacl=${dacl%,} > printf "[%s/%s]\n" "$facl" "$dacl" > } > > > > int acllen=0 maxfnln=0 > #for fn in "$@" ; do if ((maxfnln<${#fn})); then maxfnln=${#fn}; fi ; done > > sub acl_str () { > if cygwin ;then > perm=$(facl2str "$fn") > else > qfn=$(printf "%q " "$fn") > out="$(chacl -l "$fn")" > perm="${out#$qfn}" > fi > printf "%s\n" "$perm" > } > > > for fn in "$@"; do > int max=40 > perm=$(acl_str "$fn") > int len=${#perm} > if ((len>_acl_len_)); then acllen=len; fi > if ((acllen>max)); then acllen=max; fi > printf "%-${acllen}s %s\n" "$perm" "$fn" > done > -- 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 potentially corrupting permissions?
On Thu, Sep 24, 2015 at 2:06 PM, Linda Walsh <cyg...@tlinx.org> wrote: > Greg Freemyer wrote: >> >> Linda, > > >> I saved your script as "lsacl.txt". Then I used "cp lsacl.txt it" to >> make a copy. >> >> The copy is permission denied for reading. Basic ls -l shows no >> difference (as expected) >> >> $ ls -l lsacl.sh it >> rwx---+ 1 gaf None 1630 Sep 24 12:05 it >> rwx---+ 1 gaf None 1630 Sep 24 12:00 lsacl.sh >> >> But your script does show a difference: >> >> $ ./lsacl.sh lsacl.sh it >> [u::---,g::---,g:root:rwx,g:Authenticated >> Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] lsacl.sh >> [u::---,g::r-x,g:root:rwx,g:Authenticated >> Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] it > > --- > Well user 'gaf' (that's you, from the file perms has no access). > > So up front, you are denied before anything happens. Totally logical, but not accurate. ) I am the owner of both "it" and "lsacl.sh." For both the user permissions are "---" (why I don't know. I created lsacl.sh by a simple drag and drop out of firefox.) I can cat out "lsacl.sh", but not "it". I know "chmod +rw it" gives me access to the file. The problem is Windows is creating files with permissions like lsacl.sh routinely on my system. Then when I do anything to them in cygwin, the permissions are modified to block my access. I first noticed this because I was exporting CSV files from excel, then editing them with vi from cygwin. On the first edit, all was good. After that, I no longer had permission to access the file. So, either: - Windows 7 (on 2 different machines) has started using default permissions that are bad on their face - cygwin is not properly maintaining the permissions when it manipulates a file Either way, I would really like a solution that doesn't involve a manual chmod for every file I create via the normal Windows interface and which I want to work with it in cygwin. Greg > lsacl is the embedded acl (the '+') at the end of the file perms > > u::--- = user seen by 'ls -l' has no access, g::--- = group seen by 'ls -l > has no access > g:root:rwx = group root has read/write/execute access > g:Authenticated Users:rwx == group consisting of Authenticated Users... > (after you login or provide credentials). > m:rwx m = a maximum allowed privs 'mask' for user/groups other > than owner, but since all bits are turned on, it has no limiting > effect > o:--- = other has no access > > So the main take-away is that since your 'user' has no access, pretty much > everything else is ignored. > > From the mode-bits+acl, amost anyone in the groups: > root, Authenticated Users,SYSTEM, or Users, ***except** User 'gaf' (you) > should have access... > > you might try 1) chmod u+rwx file ... > then look at both mode+acl... if you have no access > and acl still says u::---, then nuke the acl or modify it with "setfacl" > (setfacl --help)... > >> >> We seem to travel the same mailing lists. This is my first time to >> cygwin's. >> > > Yeah... I wondered about that -- my Tbird tried to change my > reply addr to suse(at)tlinx based on you being the 1st address I typed > in... ;-) -- 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 potentially corrupting permissions?
On Thu, Sep 24, 2015 at 3:22 PM, Ken Brownwrote: > > > The problem could be caused by the default ACL on whatever directory you're > working in. You might consider running 'setfacl -b' and/or 'setfacl -k' on > that directory. (Run 'setfacl --help' for more information.) I just posted this, but it looks like directories created in cygwin have reasonable ACLs, but directories created via "File Explorer" are bizarre. Where bizzare is defined as: $ getfacl /cygdrive/c/Test-dir-created-in-file-explorer/ # file: /cygdrive/c/Test-dir-created-in-file-explorer/ # owner: GAF # group: None user::--- group::--- group:root:rwx group:Authenticated Users:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:--- default:user::--- default:group::--- default:group:root:rwx default:group:Authenticated Users:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx default:other:--- Here's getfacl for C:\ $ getfacl /cygdrive/c # file: /cygdrive/c # owner: TrustedInstaller # group: TrustedInstaller user::--- group::--- group:root:rwx group:Authenticated Users:--- group:SYSTEM:rwx group:Users:r-x mask:rwx other:--- default:user::--- default:group::--- default:group:root:rwx default:group:Authenticated Users:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx default:other:--- Is that what others have? fyi: I just realized I installed "System Mechanic" around the time I started seeing problems. It is installed on both of the machines having issues. I wonder if it adulterated my ACLs in an attempt to make my machine safer? Thanks Greg -- 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 potentially corrupting permissions?
On Thu, Sep 24, 2015 at 9:46 PM, Andrey Repinwrote: > Obscurity has no relation to security Tell any Army in the world about that theory. They should save their money wasted on camouflage, stealth technology, etc. But, I did not knowingly add the "root" group. Greg -- 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 potentially corrupting permissions?
On Thu, Sep 24, 2015 at 2:37 PM, Andrey Repin <anrdae...@yandex.ru> wrote: > Greetings, Greg Freemyer! > >> We seem to travel the same mailing lists. This is my first time to cygwin's. > >> I saved your script as "lsacl.txt". Then I used "cp lsacl.txt it" to >> make a copy. > >> The copy is permission denied for reading. Basic ls -l shows no >> difference (as expected) > >> $ ls -l lsacl.sh it >> rwx---+ 1 gaf None 1630 Sep 24 12:05 it >> rwx---+ 1 gaf None 1630 Sep 24 12:00 lsacl.sh > > Notice the "+" at the end of basic POSIX access bits. > And use getfacl (or native icacl(s)) to view real permissions. I'm using Linda' script that does that, but here's the raw getfacl output for 2 folders created in C:\Note they have very different ACLs. Why? $ getfacl /cygdrive/c/Test-dir-created-in-cygwin/ # file: /cygdrive/c/Test-dir-created-in-cygwin/ # owner: GAF # group: None user::rwx group::r-x group:root:rwx group:Authenticated Users:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:r-x default:user::rwx default:group::r-x default:group:root:rwx default:group:Authenticated Users:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx default:other:r-x $ getfacl /cygdrive/c/Test-dir-created-in-file-explorer/ # file: /cygdrive/c/Test-dir-created-in-file-explorer/ # owner: GAF # group: None user::--- group::--- group:root:rwx group:Authenticated Users:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:--- default:user::--- default:group::--- default:group:root:rwx default:group:Authenticated Users:rwx default:group:SYSTEM:rwx default:group:Users:r-x default:mask:rwx default:other:--- That last one with the directory created via file explorer has truly bizarre (to me) ACLs. Normal? If not, how do I fix it. Note I have 2 different Win 7 boxes showing this same behavior. > >> But your script does show a difference: > >> $ ./lsacl.sh lsacl.sh it >> [u::---,g::---,g:root:rwx,g:Authenticated >> Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] lsacl.sh >> [u::---,g::r-x,g:root:rwx,g:Authenticated >> Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/] it > >> My user id is "gaf". > >> fyi: I thought I knew how to read an ACL, but the above makes little >> sense to me. Note I can cat out "lsacl.sh", but I can't cat out "it". > > Your system seems to be mangled. There should be no "root" user. hmm. I think that is a "root" group, not a "root" user. I seriously doubt I created a root as a group. Are you sure that isn't standard with cygwin? note: I love using cygwin, but I'm not very knowledgeable about user and group management in cygwin. On the other hand, I'm pretty good at it in Linux. (I'm a 30+ year UNIX/Linux user) > Also, please avoid top posting as per list rules. If I did, I will try to avoid it in the future. This e-mail is interspersed. I assume that is desired. Greg -- 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 potentially corrupting permissions?
On Thu, Sep 24, 2015 at 3:27 PM, Linda Walsh <cyg...@tlinx.org> wrote: > Greg Freemyer wrote: >> >> >> Totally logical, but not accurate. ) > > --- > What does it say if you do an 'lsacl' on "." (the parent directory). $ ./lsacl.sh . [u::---,g::---,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/u::---,g::---,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---] . But maybe this is interesting. I just created 2 folders in C:\ . I did it at the C:\ level because I can't imagine I ever modified the ACLs on C:\. Anyway, one directory was created via "mkdir" in cygwin. The other via the file explorer. Look at how different the ACLs are: $ mkdir /cygdrive/c/Test-dir-created-in-cygwin $ ./lsacl.sh /cygdrive/c/Test-dir-created-in-cygwin/ [u::rwx,g::r-x,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:r-x/u::rwx,g::r-x,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:r-x] /cygdrive/c/Test-dir-created-in-cygwin/ $ ./lsacl.sh /cygdrive/c/Test-dir-created-in-file-explorer/ [u::---,g::---,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---/u::---,g::---,g:root:rwx,g:Authenticated Users:rwx,g:SYSTEM:rwx,g:Users:r-x,m:rwx,o:---] /cygdrive/c/Test-dir-created-in-file-explorer/ What's that about? Again I'm not expert at ACLs, but the ACLs on the directory created via File Explorer look really strange to me. > This is a local file system? NTFS? Yes, C: drive. It's my local system drive on both computers and NTFS on both machines. > Do you have process hacker? Maybe the writing process has a different > integrity label or such. No, but let me know if you still want me to pursue that. For now I'm thinking the ACLs on folders created via File Explorer are somehow getting screwed up. Thanks Greg > Process hacker lets you see what the integrity labels are on files, > but to see what they are on files you'd have to d/l another util. > (chml/regil > >> >> - cygwin is not properly maintaining the permissions when it manipulates a >> file > > > May not be able to ... Windows trumps cygwin. > MS-regularly screws w/windows, .. it's like switching to a new > init system every month... ok.. maybe not quite that bad... > >> >> Either way, I would really like a solution that doesn't involve a >> manual chmod for every file I create via the normal Windows interface >> and which I want to work with it in cygwin. > > === > I can understand that -- that's sorta why I haven't upgraded > my cygwin lately -- She spent alot of time solving a problem that didn't > really appear on my system, so changing the whole security system -- well > I already know that cygwin doesn't respect existing standards or sources. > (overwrite windows mount points created -- and is shipping a login that > zeros your environment -- even when passed switch to not do so -- > effectively > wipes your windows session -- forcing users to copy sessions from static > files to get around the problem. > -- 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
cygwin potentially corrupting permissions?
All, I've noticed on 2 different machines that if I copy (cp) a file I can read with cygwin, I don't have permission to read the copy. I don't recall that happening in that past. If this was Linux I would feel comfortable looking at umask, etc. to figure out what is going on. With cygwin I'm at a loss. If someone can tell me what I have configured wrong, I'd really appreciate it. fyi: I have a very vanilla install of cygwin on both machines. I've been using cygwin for many years and never noticed this before. It maybe an issue unique to Excel. Here's a scenario I just went through: 1) Use Excel (2010 or 2013) to create a simple 2 column, 3 row table and use "Save As" to save it as a CSV file name "Book1.csv" 2) verify it can be read via cygwin $ cat Book1.csv field1,field2 1,2 3,4 3) use cp to make a copy cp Book1.csv fail.csv 4) try to read the copy and fail $ cat fail.csv cat: fail.csv: Permission denied 5) Verify the owner / UID / perms are the same $ ls -l Book1.csv fail.csv rwx---+ 1 GAF None 25 Sep 23 18:45 Book1.csv rwx---+ 1 GAF None 25 Sep 23 18:46 fail.csv $ ls -ln Book1.csv fail.csv rwx---+ 1 1006 513 25 Sep 23 18:45 Book1.csv rwx---+ 1 1006 513 25 Sep 23 18:46 fail.csv They are, but there are extended attributes hiding behind the + sign. 6) Force the permissions and test again $ chmod +rw fail.csv $ cat fail.csv field1,field2 1,2 3,4 == Bewildered, Greg -- Greg Freemyer www.IntelligentAvatar.net -- 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: rsync hanging on Access MDB file
On Tue, Mar 3, 2009 at 3:36 AM, Spiro Trikaliotis an-cyg...@spiro.trikaliotis.net wrote: Hello Des, * On Mon, Mar 02, 2009 at 11:41:05PM -0800 Des Dougan wrote: rsync: connection unexpectedly closed (449058 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [receiver=3.0.2] rsync: connection unexpectedly closed (237 bytes received so far) [generator] rsync error: unexplained error (code 255) at io.c(635) [generator=3.0.2] The error occurs each time on the same Access database file (part of the application suite the server was installed for). I know this behaviour for other file types: It happens if these files are either hold open (Outlook .pst files come to mind), or even modified while rsync is in progress. Thus, can you really rule out that noone else is accessing this file while rsync is taking place? My experience with Access is rather old (Access 1.1 and 2.0, some 15 years ago), but for these ancient versions, every time someone accesses this database, he opens the .mdb file himself in a shared manner. Thus, even if nothing is running on the server, there might be some remote user that is still accessing the DB. Regards, Spiro. The above is exactly why VSS was created by Microsoft. I brought up cygwin support of vss a week or two ago. Not perfect, but you should be able to make it work by making some win32 calls to setup the shadow copy, then rsync from there and make another win32 call to delete the shadow copy when your done. I found the thread at: http://www.mail-archive.com/cygwin@cygwin.com/msg94495.html If you have more questions, it might make sense to reply to those messages. Or at least cut paste some of it here. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync hanging on Access MDB file
On Tue, Mar 3, 2009 at 12:13 PM, Spiro Trikaliotis Hello Greg, * On Tue, Mar 03, 2009 at 10:20:52AM -0500 Greg Freemyer wrote: On Tue, Mar 3, 2009 at 3:36 AM, Spiro Trikaliotis xx...@spiro.trikaliotis.net wrote: Please do not cite mail addresses! Thus, can you really rule out that noone else is accessing this file while rsync is taking place? My experience with Access is rather old (Access 1.1 and 2.0, some 15 years ago), but for these ancient versions, every time someone accesses this database, he opens the .mdb file himself in a shared manner. Thus, even if nothing is running on the server, there might be some remote user that is still accessing the DB. [...] The above is exactly why VSS was created by Microsoft. Unfortunately, if you take a shadow copy of an open file, you might end with a correctly copied (or rsync'ed) file which is broken. You must be sure that noone is accessing the file at the moment you take the shadow copy. I don't use Access, but in general good applications should support being quiesced. They do that by registering with the VSS service. Then when a shadow copy is requested, vss first notifies all registered apps to quiesce themselves. Once all registered apps are quiesced, the shadow copy is created. The whole purpose of the process is to ensure logically consistent data is captured in the backup. NTbackup from Microsoft is using vss to make its backups, so I would be very surprised if Access is not registering itself and fitting into Microsoft's master plan. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: rsync hanging on Access MDB file
On Tue, Mar 3, 2009 at 2:01 PM, Spiro Trikaliotis an-cyg...@spiro.trikaliotis.net wrote: Hello Greg, * On Tue, Mar 03, 2009 at 12:26:17PM -0500 Greg Freemyer wrote: On Tue, Mar 3, 2009 at 12:13 PM, Spiro Trikaliotis [shadow copies on Windows] I don't use Access, but in general good applications should support being quiesced. They do that by registering with the VSS service. Then when a shadow copy is requested, vss first notifies all registered apps to quiesce themselves. Yes, I forgot about that. This might work, at least with newer versions of Access. There might be a caveat, though: You can remotely use MS Access to access an MDB file on a file server. You can even do it multiple times, having x instances of MS Access access just one file on a remote server. Can a remote application register with the VSS service on a completely different machine? No idea, but given vss is standard microsoft stuff, it is very feasible it can. FYI: registering like this is one place I think Windows is ahead of Linux. And Microsoft has been supporting the whole process since they brought out vss way back with Win2003. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Another long pathname question
On Thu, Feb 26, 2009 at 4:19 AM, Corinna Vinschen corinna-cyg...@cygwin.com wrote: On Feb 25 18:58, Greg Freemyer wrote: I just read the release email for 1.7.0 In part it says: - Fallout from the long path names: If the current working directory is longer than 260 bytes, or if the current working directory is a virtual path (like /proc, /cygdrive, //server), don't call native Win32 programs since they don't understand these paths. I've done a fair amount of long path name testing in Vista / Win2008, and I'd like to understand the above in more detail. It's a restriction of Win32 processes. The CWD is stored in the PEB (process environment block) of every process. It's stored as path as well as as handle. Unfortunately the CWD in the PEB is a static storage area of 520 bytes == 260 (MAX_PATH) wide characters. That's why no Win32 process can have a long path as CWD. See also http://msdn.microsoft.com/en-us/library/aa365530(VS.85).aspx Corinna I just created a long path with long individual directory names and placed junk.txt in it both at one of the upper directories, and way down at the bottom. Then I used file explorer to open both via notepad. Using task manager I can see the full invocation arguments (view enables the command line field). If the path is short, it uses the full long directory name as expected. If the path exceeds 260, it reverts to using the 8.3 names, thus giving a workaround that will allow you to descend deeper into a directory structure. Interesting trick. Maybe you should consider something similar for cygwin. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: special name for vss shadow copy device?
On Wed, Feb 25, 2009 at 1:57 PM, Christian Franke christian.fra...@t-online.de wrote: Greg Freemyer wrote: ... My personal desire is make a full dd copy of a snapshot onto a external drive. ie. dd if=/dev/sd-shadowcopy4 of=my_image_file With new Cygwin 1.7, the VSS volume image can be retrieved as follows: dd if='//?/GLOBALROOT/Device/HarddiskVolumeShadowCopy4' of=... But this does not work with Cygwin 1.5. To access individual files, assign a drive letter X: to the VSS volume: http://blogs.msdn.com/adioltean/archive/2006/09/18/761515.aspx http://blogs.msdn.com/adioltean/archive/2005/01/20/357836.aspx Then you can access the files via /cygdrive/x. This works with cygwin 1.5 also. Only the WinXP explorer refuses to access the drive. See also related discussion here: http://cygwin.com/ml/cygwin/2008-11/msg00070.html Hope this helps, Wonderful links and information!! That is all I really needed, since I assume 1.5 is basically no longer being developed, I don't see a big need to create mappings for the shadow volumes. I do think it would be good to have the above links and documentation added to the special names section of the documentation. Time to experiment with Cygwin 1.7 I know the whole package is still considered test. How stable is the actual dll(s). Especially as relates to this type of functionality. Thanks Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Another long pathname question
I just read the release email for 1.7.0 In part it says: - Fallout from the long path names: If the current working directory is longer than 260 bytes, or if the current working directory is a virtual path (like /proc, /cygdrive, //server), don't call native Win32 programs since they don't understand these paths. I've done a fair amount of long path name testing in Vista / Win2008, and I'd like to understand the above in more detail. In particular in Vista/Win2008 the open dialog box now allows me to open and modify pre-existing files with long paths. Or I can use the file explorer to browse to those files, then right click and open them successfully. FYI: the command line tools for Vista / Win2008 seem to still have an issue with long paths. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: special name for vss shadow copy device?
On Wed, Feb 25, 2009 at 6:01 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Greg Freemyer wrote: snip Time to experiment with Cygwin 1.7 I know the whole package is still considered test. How stable is the actual dll(s). Especially as relates to this type of functionality. Difficult to say since this functionality isn't on a typical use path and no specific efforts have been made to 'integrate' it into Cygwin, whatever form that integration might take. What is clear, however, is if there is a problem using this functionality in 1.7, now would be the time to find out. Since the 1.7 DLL is near its final form for release, any hope of fixing problems before the release requires that they be found first. Okay, (trouble report, see the end of the email. Successes first :) I've got the latest 1.7 release. I'm testing right now on Vista Home. Just as an FYI, this machine has 32 snapshots in place. Going back to Thanksgiving. All of these were created automatically by Vista. I don't think I did any config work etc. to make it happen. I can see these from the Vista Command Prompt by running vssadmin list shadows. Very cool. dd seems to be working great, but I've only done a couple quick tests. dd if=global-device-path | od -cv | less is showing what looks like good data. I tried the same with snapshot instance 33. As hoped dd came back with an error message since that snapshot does not exist. I currently have 5 dd's running against 5 different snapshots and the output going to /dev/null.Per task manager all are actively reading data. Very cool. They are reading very slowly, but then again I'm beating the heck out of the drive. I tried the dosdev trick from one of the links to mount the snapshot as V:. Apparently that is a XP only trick. Or at least Vista does not have it. From the Vista command prompt I can do: mklink /d C:\shadow_copy21 \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy21\ and then cd into that directory and see my old snapshot data. I can also see it from the Vista file explorer. From cygwin's shell if I try to do so I get: $ cd /cygdrive/c/shadow_copy21 bash: cd: /cygdrive/c/shadow_copy21: No such file or directory I assume that should work? Thanks Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: special name for vss shadow copy device?
On Wed, Feb 25, 2009 at 8:44 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Greg Freemyer wrote: On Wed, Feb 25, 2009 at 6:01 PM, Larry Hall (Cygwin) reply-to-list-only...@cygwin.com wrote: Greg Freemyer wrote: snip Time to experiment with Cygwin 1.7 I know the whole package is still considered test. How stable is the actual dll(s). Especially as relates to this type of functionality. Difficult to say since this functionality isn't on a typical use path and no specific efforts have been made to 'integrate' it into Cygwin, whatever form that integration might take. What is clear, however, is if there is a problem using this functionality in 1.7, now would be the time to find out. Since the 1.7 DLL is near its final form for release, any hope of fixing problems before the release requires that they be found first. Okay, (trouble report, see the end of the email. Successes first :) I've got the latest 1.7 release. I'm testing right now on Vista Home. Just as an FYI, this machine has 32 snapshots in place. Going back to Thanksgiving. All of these were created automatically by Vista. I don't think I did any config work etc. to make it happen. I can see these from the Vista Command Prompt by running vssadmin list shadows. Very cool. dd seems to be working great, but I've only done a couple quick tests. dd if=global-device-path | od -cv | less is showing what looks like good data. I tried the same with snapshot instance 33. As hoped dd came back with an error message since that snapshot does not exist. I currently have 5 dd's running against 5 different snapshots and the output going to /dev/null. Per task manager all are actively reading data. Very cool. They are reading very slowly, but then again I'm beating the heck out of the drive. I tried the dosdev trick from one of the links to mount the snapshot as V:. Apparently that is a XP only trick. Or at least Vista does not have it. From the Vista command prompt I can do: mklink /d C:\shadow_copy21 \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy21\ and then cd into that directory and see my old snapshot data. I can also see it from the Vista file explorer. From cygwin's shell if I try to do so I get: $ cd /cygdrive/c/shadow_copy21 bash: cd: /cygdrive/c/shadow_copy21: No such file or directory I assume that should work? Dunno. I can't get the 'cd' or 'dir' to work from the Vista command prompt. For me, 'dir foo' (I named the link 'foo') gives me 'File Not Found'. So in my case, what you see from Cygwin makes sense since it's consistent with what Windows tells me. Very strange mklink created usable directories for me on both Vista Home and Win 2008. Can you or someone else test it on another machine? ie. Cygwin need not be installed to test this Windows feature. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
special name for vss shadow copy device?
All, I'm familiar with http://www.cygwin.com/cygwin-ug-net/using-specialnames.html But it only shows the \device\hardisk mappings. Are there also mapppings for the shadow devices. (http://en.wikipedia.org/wiki/Shadow_Copy) ie. \Device\HarddiskVolumeShadowCopy4 or \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy4 If your running Vista or Win2008 you can create a shadow copy device by going to the file explorer, right clicking on a local NTFS drive, clicking properties, then the shadow copies tab, then create now. To get the instance number (4 above) you go to the command line and type vssadmin list shadows. In theory I should be able to mount that under cygwin and access my snapshot-ed filesystem. My personal desire is make a full dd copy of a snapshot onto a external drive. ie. dd if=/dev/sd-shadowcopy4 of=my_image_file Thanks Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: file name too long
On Tue, Feb 24, 2009 at 4:27 PM, Tim McDaniel t...@panix.com wrote: On Tue, 24 Feb 2009, Paul Cantalupo hey, I remembers to expunge this! wrote: tar: S1172_Spanish_Protin_Total_Nucleic_Acid/S1172_Spanish_Protin_Total_Nucleic_Acid.fa.cdhit_out.masked.goodSeq_HGblast/S1172_Spanish_Protin_Total_Nucleic_Acid.fa.cdhit_out.masked.goodSeq_file7.HGblast.out: Cannot open: File name too long This name is only 201 chars long; I thought Windows max file length was 255. I have a vague memory that the limit includes the current directory path. Anyone else know whether that's true or not? The issue is definitely an issue with the full path length. There may also be a max filename length, but I have not come across it. Is there a workaround to this problem other than installing Linux? Since your just trying to extract a tar file, create a directory c:/a then cd into it and try to extract from there. We use that trick fairly often. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [CFT] libtool on nix-cygwin cross, with wine
On Tue, Feb 24, 2009 at 4:35 PM, rhubbell rhubb...@ihubbell.com wrote: On Tue, 24 Feb 2009 16:15:33 -0500 Greg Chicares wrote: By the way, this list discourages full quoting: http://www.cygwin.com/acronyms/#TOFU Ok, this is one neurotic list. A lot of Linux mailing lists have that policy. Especially if it is high volume or has a large subscriber base. The idea is that someone can read a single email and understand it without having to bounce all over the place. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence Technology http://www.norcrossgroup.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: MS offers Services For Unix free of charge
On Wed, 2004-01-14 at 20:35, Brian Dessent wrote: Christopher Faylor wrote: One thing that Cygwin does lack, and SFU has, is an NFS client :-/ I know that alone will probably entice me into taking a look at SFU. It would be rather interesting to add nfs to cygwin. We could develop filesystem plug-ins which could be generalized for stuff like NFS, EXTFS, etc. Didn't someone say they had a free month? Perfect project. :-) Ooh, ooh! Somebody port KDE's Kioslave feature to Cygwin. Then I'll finally be able to mount as a drive letter that ISO9660 image on my remote Appletalk share that's tunneled through ssh through a http proxy on my IP-over-carrier pigeon link. Brian With carrier pigeon 1.0, the beak is so small you have to dis-assemble/re-assemble the IP packets. Carrier pigeon 2.0 has a bigger beak and can hold a full packet. Unfortunately the evolutionary process is goin slow. Maybe within a couple of millenium. Have you thought about using IP-over-turkey instead? It is slower and not very sexy, but with the bigger beak, you can get better bandwidth. Greg -- 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/
Thanks and a question
Harold, Your work on the clipboard with xdmcp capability is greatly appreciated. From my minimal testing it works great. Now that the startup batch script can be simplified to a one liner, I want to directly invoke Xwin -query from my desktop without first launching a bash console. ie. I currently launch a bash script, then run my batch script. It would be nice to instead just double click an icon on my desktop. I have setup a shortcut to XWin.exe on my desktop, but it is not working. Currently I am getting an error about a missing DLL. Unfortunately I need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just changing the startup directory is not quite enough. Is there a recommended way to get this to work? ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in X11R6/bin Thanks Again Greg -- Greg Freemyer
Re: New clipboard handling notes (XFree86-xserv-4.3.0-31)
Is the eventual goal of XFree86-xserv-4.3.0-31 going to be to eliminate the need for xwinclip in xdmcp setups? Or this something totally different. (I only use X to login to remote boxes.) On Mon, 2004-01-05 at 02:40, Harold L Hunt II wrote: Here are my notes that I put together to convince myself that the new clipboard handling was complete and would not cause infinite loops. Please examine the notes if you are interested in the new code or if you would like to double-check my logic for errors. Please review the steps and post to the list if you think you have found an error. Also, if you find a bug or a crash, look at these steps and try to identify the approximate location of your problem so that we can do a better job of debugging. Harold Copy in X11 === 1) winProcSetSelectionOwner gets called and takes ownership of the Win32 clipboard (OpenClipboard, EmptyClipboard, SetClipboardData (foo, NULL)). 2) Selection is owned by another X11 client (the one that called XSetSelectionOwner). 3) EmptyClipboard() in step #1 files WM_DRAWCLIPBOARD message, which is ignored since hwnd == GetClipboardOwner (). 4) Paste in X11 a) Owning X11 client handles SelectionRequest events. b) Item is pasted within X11 without round-trip to Win32. 5) Paste in Win32 a) WM_RENDERFORMAT fires. b) SelectionRequest is sent, conversion from X11 to Win32 is done. c) SetClipboardData is called, passing converted text. 6) Copy in X11 (different app) a) Goto Step #1. 7) Copy in Win32 a) Clipboard is emptied and owned by the other application. b) WM_DRAWCLIPBOARD fires, XSetSelectionOwner is called, owning the selection for the clipboard integration manager. Copy in Win32 = 1) WM_DRAWCLIPBOARD fires, calls XSetSelectionOwner for itself. 2) winProcSetSelectionOwner gets called, does nothing since clipboard X11 window is the window that is taking ownership. 3) Paste in Win32 a) Clipboard owning Win32 app handles GetClipboardData call. b) Item is pasted without round-trip to X11. 4) Paste in X11 a) Clipboard integration manager receives SelectionRequest. b) GetClipboardData is called, returning Win32 clipboard contents. c) Conversion from Win32 to X11 is done and text is pasted. 5) Copy in X11 a) winProcSetSelectionOwner is called. b) Clipboard integration manager takes ownership of Win32 clipboard. c) WM_DRAWCLIPBOARD fires and is ignored since hwnd == GetClipboardOwner (). 6) Copy in Win32 (different app) a) Goto Step #1.
Re: cut and paste xfree - windows
On Thu, 2004-01-01 at 13:28, Alexander Gottwald wrote: [EMAIL PROTECTED] wrote: Harold L Hunt II wrote : For all practical purposes, -clipboard does not work when using XDMCP. Is there any change about ? use xwinclip. NP: Letzte Instanz - Glockenrequiem I saw this and the thread with Chris Green, and like Chris I still don'know what to do. Is there a write-up that explicitely describes the setup and use of xwinclip with xdmcp? I tried: XWin.exe -query my_server Use the X window to login in to my_server, launch x-term From X-windows x-term # xhost 127.0.0.1 127.0.0.1 being added to access control list From cygwin window: (the first time I tried it failed) $ DISPLAY=:0.0 xwinclip UnicodeSupport - Windows NT/2000/XP GetClipboardData () failed: Then I tried 'DISPLAY=:0.0 xwinclip' again from cygwin window, and it appears to be working, but not cosistently, or else I don't know what causes the clipboard to move back and forth between Win2K and X-server. Thanks for any help, Greg -- Greg Freemyer
Re: Not getting login using xdmcp
I had a similar problem last summer with SUSE 8.2 and then current cygwin/XFree86. In my case I upgraded to a then current cygwin/XFree86 setup. XDMCP seemed broken 2 weeks later I upgraded again. (Several related updates.) XDMCP was working I have since upgraded to SUSE 9.0, so I can't tell you for sure how I had things configured. If I were you I would start out by making sure you have the current release of everything cygwin/XFree86. On Mon, 2003-12-29 at 18:06, Andrew DeFaria wrote: Now that Christmas is over I'd like to address this problem again. Let's recap. I have a SuSE 8.2 installation. I am attempting to use Cygwin/XFree86 to start an X session using XDMCP. XDMCP is not on by default so I have performed the following changes: * Enabled XDMCP in /opt/kde3/share/config/kdm/kdmrc by setting Enable=true for the [Xdmcp] section. * Modified /etc/X11/xdm/xdm-config to comment out DisplayManager.requestPort by putting a ! in the first character. * Uncommented the * line in /etc/X11/xdm/Xaccess and /opt/kde3/share/config/kdm/Xaccess. Note there are two different lines in each file. The difference seems to be one is of the form of * CHOOSER BROADCAST and just the plain *. I've tried all combinations to no avail. * I have only one NIC. * I've tried xwin -query sonslinux -from adefaria, same problem. * Sonslinux sits right next to me and I can login using KDE just fine on the console - I just can't get a remote X session from my XP box to put up a chooser. * XWin.log always seems to indicate XDM: too many retransmissions as the problem (Sample XWin.log attached). Note that XDM: too many retransmissions only shows up after waiting for a while. * Nothing listed in /var/log/messages nor /var/log/kdm.log on sonslinux. In all cases, after making a configuration change I restart kdm. Help!
Really big files?
I just tried to dd the first 163 GB of a raw drive to a image file. It failed at about 145 GB. Should it work? I had plenty of free space. I'm using cygwin.dll ver. 1.5.5 and a recent dd (I think, see cygcheck -s output). === Session Log $ mount -f -b //./physicaldrive2 /dev/todds [EMAIL PROTECTED] ~ $ dd if=/dev/todds of=/cygdrive/e/full_image bs=4k count=44430720 conv=noerror, sync dd: writing `/cygdrive/e/full_image': Permission denied 35838209+0 records in 35838208+0 records out [EMAIL PROTECTED] ~ $ cd e: [EMAIL PROTECTED] /cygdrive/e $ ls -l full* -rw-r--r--1 BruceNone 146793299968 Dec 15 17:27 full_image [EMAIL PROTECTED] /cygdrive/e $ df . Filesystem 1k-blocks Used Available Use% Mounted on e: 199141708 144271044 54870664 73% /cygdrive/e cygcheck -s output attached Thanks Greg -- Greg Freemyer Cygwin Win95/NT Configuration Diagnostics Current System Time: Mon Dec 15 19:35:04 2003 Windows 2000 Professional Ver 5.0 Build 2195 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINNT2\system32 c:\WINNT2 c:\WINNT2\System32\Wbem c:\Program Files\PKWARE\PKZIPWS\ c:\WINNT2\system32 c:\WINNT2 c:\WINNT2\System32\Wbem c:\Program Files\UltraEdit Output from C:\cygwin\bin\id.exe (nontsec) UID: 1000(Bruce) GID: 513(None) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1000(Bruce) GID: 513(None) 513(None)544(Administrators) 545(Users) SysDir: C:\WINNT2\System32 WinDir: C:\WINNT2 HOME = `C:\cygwin\home\Bruce' MAKE_MODE = `unix' PWD = `/cygdrive/e' USER = `Bruce' Use `-r' to scan registry a: fd FAT1Mb 57% CPUN c: hd FAT32 29988Mb 16% CPUN FORENSICHDD d: cd N/AN/A e: hd NTFS 194474Mb 73% CP CS UN PA FC New Volume g: net NTFS 388956Mb 85% CP CS UN PA FC F-Images i: net NTFS 388956Mb 85% CP CS UN PA FC F-Images l: net N/AN/A p: net NTFS 112000Mb 91% CP CS UN PA FC Programs r: net N/AN/A C:\cygwin / system binmode \\.\physicaldrive2 /dev/todds system binmode C:\cygwin/bin /usr/binsystem binmode C:\cygwin/lib /usr/libsystem binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll 28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll 15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll 30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll 15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll 12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll 69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll 134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll 958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 48k 2003/08/09 C:\cygwin\bin\cygform7.dll 29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll 224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll 19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll 63k 2003/04/11 C:\cygwin\bin\cygpcre.dll 61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll 148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll 60k 2003/08/09 C:\cygwin\bin\cygz.dll 949k 2003/09/20 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.5 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 94 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix
Re: Really big files?
On Tue, 2003-12-16 at 16:41, Don Koch wrote: Greg Freemyer said: I just tried to dd the first 163 GB of a raw drive to a image file. It failed at about 145 GB. Should it work? I had plenty of free space. Another possibility is addressed at: http://www.jsiinc.com/SUBL/tip5500/rh5584.htm (Something justed gleaned off of the samba list.) That appears to be related to open file handling in ntbackup. I don't think it would be relevant. I'm doing a pretty dumb dd command, Not a intellegent Open File Backup type of thing. Greg -- 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: Really big files?
On Tue, 2003-12-16 at 16:19, Brian Dessent wrote: Greg Freemyer wrote: I just tried to dd the first 163 GB of a raw drive to a image file. It failed at about 145 GB. Should it work? I had plenty of free space. I'm using cygwin.dll ver. 1.5.5 and a recent dd (I think, see cygcheck -s output). === Session Log $ mount -f -b //./physicaldrive2 /dev/todds Just a completely random guess here: Is 'physicaldrive2' an active system drive? IIRC there are some parts of windows that cannot be read by anything but the kernel itself, such as the SAM database (or something along those lines.) If this is the case then you'd have to do the image when the partition is not active. I don't know how or if tools like Ghost get around this. Brian No, it is not an active system drive. By chance this drive had its partition table blown away. Win2k is not even assigning it a drive letter. Also, if you look at the dd output dd: writing `/cygdrive/e/full_image': Permission denied 35838209+0 records in 35838208+0 records out You see that the failure was on the write, not on the read. I have over 50 GB free even with that file in place, so I'm definately not short of space. Also, I believe NTFS for Win2k has a 2 TB filesize max., so that should not be a problem. Greg -- 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: Really big files?
If I wanted to troubleshoot this, how would I do it? I imagine strace would produce an unbelievable amount of output. ie. dd fails after 35 million read/write pairs. Also, what package is dd in? If I do try this I will only be able to make one debug pass per day because of how slow the dd runs. (ie. several hours) Greg On Tue, 2003-12-16 at 19:30, Greg Freemyer wrote: On Tue, 2003-12-16 at 16:19, Brian Dessent wrote: Greg Freemyer wrote: I just tried to dd the first 163 GB of a raw drive to a image file. It failed at about 145 GB. Should it work? I had plenty of free space. I'm using cygwin.dll ver. 1.5.5 and a recent dd (I think, see cygcheck -s output). === Session Log $ mount -f -b //./physicaldrive2 /dev/todds Just a completely random guess here: Is 'physicaldrive2' an active system drive? IIRC there are some parts of windows that cannot be read by anything but the kernel itself, such as the SAM database (or something along those lines.) If this is the case then you'd have to do the image when the partition is not active. I don't know how or if tools like Ghost get around this. Brian No, it is not an active system drive. By chance this drive had its partition table blown away. Win2k is not even assigning it a drive letter. Also, if you look at the dd output dd: writing `/cygdrive/e/full_image': Permission denied 35838209+0 records in 35838208+0 records out You see that the failure was on the write, not on the read. I have over 50 GB free even with that file in place, so I'm definately not short of space. Also, I believe NTFS for Win2k has a 2 TB filesize max., so that should not be a problem. Greg -- 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: XWin --query
On Thu, 2003-10-16 at 12:28, Greg Freemyer wrote: On Wed, 2003-10-15 at 16:49, Sylvain Petreolle wrote: Just to be sure: are you using the correct option : XWin -query dmcphost (good) not XWin --query dmcphost (bad) ? I invoke this via a shell script, and yes the script had a single -. Greg I upgraded to the latest cygwin xfree-bin and xfree-progs. All works again. Must have been a problem relating to the cygwin 1.5 transition. Greg
Re: XWin --query
On Wed, 2003-10-15 at 16:49, Sylvain Petreolle wrote: Just to be sure: are you using the correct option : XWin -query dmcphost (good) not XWin --query dmcphost (bad) ? I invoke this via a shell script, and yes the script had a single -. Greg
Re: XWin --query
I have not installed any new hardware, and both server and client machines have only one NIC. (Both are standard wired NICs.) I did update the Linux box with the latest patches recently, that may be causing the problem, but somehow I think it is the cygwin/xfree86 end. Greg -- Greg Freemyer On Fri, 2003-10-10 at 20:15, Harold L Hunt II wrote: Did you also just get a wireless networking card or another network card? The reason I am asking is that you may now need to use the -from parameter to indicate the return address that should be sent to the remote machine. Please indicate if you have only one network card. Harold Greg Freemyer wrote: I have been using XWin --query node_name for a while. Last week I updated to the currently released cygwin and xfree86 binaries. The XWin --query is now only bringing up a X display, but it is not showing the KDM login screen I'm used to seeing. If I look on the Linux box I'm querying, I see that it is trying to connect back to the cygwin/xfree box, but it is unable to open the display. Do I need to do somethnig else? Greg
Re: XWin --query
On Mon, 2003-10-13 at 13:14, Pavel Rosenboim wrote: Greg Freemyer wrote: I have not installed any new hardware, and both server and client machines have only one NIC. (Both are standard wired NICs.) I did update the Linux box with the latest patches recently, that may be causing the problem, but somehow I think it is the cygwin/xfree86 end. Is it possible that kdm configuration got overwritten, and now it does not allow connections from remote hosts? Pavel. I have used ethereal on the linux box to monitor the tcp/ip traffic. The remote connection is allowed, but when the linux box tries to connect back to the cygwin/xfree86 box, its messages seem to be ignored. I am not running any kind of firewall on the cygwin/xfree86 box and they are on a common LAN. It seems almost like I need to issue a 'xhosts +node' on the cygwin box, but I have not done that in the past and the cygwin box is not rejecting the linux box, it is just ignoring it from what I see. Has there been a security change that now requires xhosts +node to be run somehow with the XWin --query command? Greg -- Greg Freemyer
XWin --query
I have been using XWin --query node_name for a while. Last week I updated to the currently released cygwin and xfree86 binaries. The XWin --query is now only bringing up a X display, but it is not showing the KDM login screen I'm used to seeing. If I look on the Linux box I'm querying, I see that it is trying to connect back to the cygwin/xfree box, but it is unable to open the display. Do I need to do somethnig else? Greg -- Greg Freemyer
Re: Change Window Manager
The simpliest way to start KDE is to just forget about the way you currently start cygwin,XFree86, and twm. Instead just click start---programs---KDE-cygwin No typing required. Greg -- Greg Freemyer On Tue, 2003-07-15 at 11:56, Charles E. Cooper wrote: OK, I'm not a cygwin expert, but use it to window into a solar machine for editting. I dislike the twm window manager as it doesn't let me change focus unless you click on the top of the window bar, which often gets buried when I have numerous windows open. I've been trying to experiment with another window manager, KDE, but haven't figured out where twm is started up. I edited the .xinitrc file and the startx.1 file without changing anything. I usually start CYGWIN under Windows 2000 and then type startx to bring up the window manager. Can anyone give me some guidance on this? Chuck Charles E. Cooper Applied Research Laboratory The Pennsylvania State University (814) 865-6829 (Swift Office) (814) 865-2020 [EMAIL PROTECTED]
yast2
I run KDE locally on my win2k desktop. I often ssh -X over to a SuSE box and run evolution. It works well. I just tried running yast2 on the SuSE box, and it fails with: === # yast2 X Error: BadRequest (invalid request code or no such operation) 1 Major opcode: 149 Minor opcode: 4 Resource id: 0x36 Xlib: extension XInputExtension missing on display localhost:11.0. Failed to get list of devices Xlib: extension XInputExtension missing on display localhost:11.0. After the above, a basically blank window opens and hangs. I also tried setting the DISPLAY variable to directly use my screen, same problem. Should this work? Or am I hoping for too much? TIA Greg -- Greg Freemyer
associations (remote??)
I currently run cygwin/XFree86/KDE on my Win2K machine. I then 'ssh -X' over to a Linux box and run evolution. That works great most of the time. I can also run the konqueror directly on my PC, or remotely on the Linux box. If an e-mail has a url in it, I can cut and paste the url to konqueror and it works fine. My problem is I can't right click on the url and cause it to open konqueror. I don't even know where it should run. Do I need to setup some associations? If so, how and where? Thanks Greg -- Greg Freemyer
What is a good Windows Manager for cygwin/XFree86
I want to find a basic windows manager the supports: resize, move, minimize, maximize Seems like a pretty basic request, but I have tried twm, mwm, and fvwm2. fvwm2 is the most functional for me, but it does not have min/max. What windows manager provides the above in a cygwin/XFree86 env. Thanks Greg -- Greg Freemyer
cygwin licensing [was: [re: tar and gzip]]
Good write-up. Is any portion of cygwin covered by the LGPL instead of the GPL? http://www.gnu.org/copyleft/lesser.html The LGPL explicitly allows proprietary software to be built on top of opensource libraries. TIA Greg -- Greg Freemyer Hi all! I wrote a small script in Python, but it requires two programs to run correctly: tar.exe and gzip.exe. Both are in CygWin package. And that's my question: can I bundle both programs and cygwin1.dll with my script? Script is free, but the program that the script comes with is not. -- Krzysiek 'Nelchael' Pawlik | C/C++, PHP, OpenGL, WinAPI [EMAIL PROTECTED] | Network Administrator - BAFH http://www.ps.nq.pl/pcfaq/ | http://www.ps.nq.pl/nelchael/ These are just my thoughts and I'm not a lawyer. It doesn't sound like your proprietary program is derived from or based on any Cygwin source code. Does it execute the Python script which executes tar.exe? If it does, I don't think even that would put it under the GPL. The GPL states that the act of running the Program is not restricted. Your program can execute Cygwin binaries without it becoming GPL software. If you link to Cygwin source code, then your program would be a derivative work under the GPL. However, I believe you could also link to another proprietary third party library without providing it's source code. For instance, you could link to a Microsoft library without being required to provide Microsoft source code. This is not true. It is ok to link with certain Microsoft DLLs because the GPL makes the following exception: However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. However this exception does not apply to other DLLs, only those considered part of the operating system. Going one step further, you could put your proprietary code into a standalone DLL built using Microsoft tools. You could market the DLL as a separate product. The DLL would have no dependencies on any Cygwin source or binary. Your Cygwin based application could us it just like any other third party library without providing source code for the DLL. I don't see GPL language that would prevent this. From the GPL FAQ (http://www.gnu.org/licenses/gpl-faq.html#LinkingWithGPL): You have a GPL'ed program that I'd like to link with my code to build a proprietary program. Does the fact that I link with your program mean I have to GPL my program? Yes. and: What is the difference between mere aggregation and combining two modules into one program? Mere aggregation of two programs means putting them side by side on the same CD-ROM or hard disk. We use this term in the case where they are separate programs, not parts of a single program. In this case, if one of the programs is covered by the GPL, it has no effect on the other program. Combining two modules means connecting them together so that they form a single larger program. If either part is covered by the GPL, the whole combination must also be released under the GPL--if you can't, or won't, do that, you may not combine them. What constitutes combining two parts into one program? This is a legal question, which ultimately judges will decide. We believe that a proper criterion depends both on the mechanism of communication (exec, pipes, rpc, function calls within a shared address space, etc.) and the semantics of the communication (what kinds of information are interchanged). If the modules are included in the same executable file, they are definitely combined in one program. *** - If modules are designed to run linked together in a shared address space, that almost surely means combining them into one program. - *** By contrast, pipes, sockets and command-line arguments are communication mechanisms normally used between two separate programs. So when they are used for communication, the modules normally are separate programs. But if the semantics of the communication are intimate enough, exchanging complex internal data structures, that too could be a basis to consider the two parts as combined into a larger program. and: I'd like to incorporate GPL-covered software in my proprietary system. Can I do this? You cannot incorporate GPL-covered software in a proprietary system. The goal of the GPL is to grant everyone the freedom to copy, redistribute, understand, and modify a program. If you could incorporate GPL-covered software into a non-free system
re[2]: Building a win32 python extension from cygwin?
Greg, On Tue, Mar 18, 2003 at 06:46:01PM -0500, Greg Freemyer wrote: Thanks, No problem. I got the tutorial to work. Which one? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82826 I had to google for the dll2def package. I found it at: http://users.ncrvnet.nl/gmvdijk/packages.html#DLL2DEF Other than that and changing python21 to python22 everywhere in the instructions it went fine. Jason Greg -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
re[2]: Building a win32 python extension from cygwin?
Greg, Note my experience building Win32 Python extensions is *very* limited. It is mainly limited to building the readline module every year or so when the next major version of Python is released... BTW, you may have better luck on the Python or Distutils list. On Mon, Mar 17, 2003 at 05:51:33PM -0500, Greg Freemyer wrote: I want to use a python deployment program like installer to package it up so I don't have to install cygwin/python on all my servers. What is installer? A packaging solution that allows python apps to be deployed without having to deploy python itself. http://www.mcmillan-inc.com/install1.html I tried it in my cygwin env. The process went smooth and I ended up with a single .exe file that supposedly would allow the app to install in any Win2K env. Unfortunately the actual process of installing my app failed, and per http://trixie.triqs.com/pipermail/installer/2003-March/000266.html there is currently a compatibility issue between installer/cygwin/python. BTW: Jason, you are mentioned as the cygwin/python expert who might be able to resolve the conflict. Unfortunately, installer is apparently broken for cygwin currently. What is broken? The above e-mail describes one problem. My problem was that libpython2.2.dll could not be found in the specified path. That does not make any sense because the exe was supposed to be self contained and not assume any pre-existing cygwin/python dlls. I would have pursued this, but when I read the earlier e-mail, I just dropped the idea of using installer. Unfortunately the import command is not working due to the format of the dll I am generating. Error messages? Build command lines? = From a freshly started python (win32 IDLE) Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32 Type copyright, credits or license for more information. IDLE 0.8 -- press F1 for help import _librsync Traceback (most recent call last): File pyshell#0, line 1, in ? import _librsync ImportError: DLL load failed: The specified module could not be found. = If I try importing a totally non-existent dll, I get a different error message, so it is finding the dll. With a non-existent dll import _asdf Traceback (most recent call last): File pyshell#1, line 1, in ? import _asdf ImportError: No module named _asdf = I've done a bunch of googling, but I can't find any straight forward instructions on what is needed for this to all work out. I found the following via Google: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82826 http://www.python.org/doc/current/inst/non-ms-compilers.html I will look at those. The first one looks like what I want. Are you using the --compiler=mingw32 option? For example: $ python setup.py build --compiler=mingw32 No I wasn't. Does anyone know where this is documented? Thanks See above. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
re[3]: Building a win32 python extension from cygwin?
Jason, Thanks, I got the tutorial to work. Now I have to port the cygwin C code I have to Win32. From C code, how do I know if I'm compiling for win32 vs. cygwin? #ifdef MS_WIN32 seems to be true for both. (I'm not totally sure I understand my environment now that I have run the tutorial. ) Greg Greg, Note my experience building Win32 Python extensions is *very* limited. It is mainly limited to building the readline module every year or so when the next major version of Python is released... BTW, you may have better luck on the Python or Distutils list. On Mon, Mar 17, 2003 at 05:51:33PM -0500, Greg Freemyer wrote: I want to use a python deployment program like installer to package it up so I don't have to install cygwin/python on all my servers. What is installer? A packaging solution that allows python apps to be deployed without having to deploy python itself. http://www.mcmillan-inc.com/install1.html I tried it in my cygwin env. The process went smooth and I ended up with a single .exe file that supposedly would allow the app to install in any Win2K env. Unfortunately the actual process of installing my app failed, and per http://trixie.triqs.com/pipermail/installer/2003-March/000266.html there is currently a compatibility issue between installer/cygwin/python. BTW: Jason, you are mentioned as the cygwin/python expert who might be able to resolve the conflict. Unfortunately, installer is apparently broken for cygwin currently. What is broken? The above e-mail describes one problem. My problem was that libpython2.2.dll could not be found in the specified path. That does not make any sense because the exe was supposed to be self contained and not assume any pre-existing cygwin/python dlls. I would have pursued this, but when I read the earlier e-mail, I just dropped the idea of using installer. Unfortunately the import command is not working due to the format of the dll I am generating. Error messages? Build command lines? = From a freshly started python (win32 IDLE) Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32 Type copyright, credits or license for more information. IDLE 0.8 -- press F1 for help import _librsync Traceback (most recent call last): File pyshell#0, line 1, in ? import _librsync ImportError: DLL load failed: The specified module could not be found. = If I try importing a totally non-existent dll, I get a different error message, so it is finding the dll. With a non-existent dll import _asdf Traceback (most recent call last): File pyshell#1, line 1, in ? import _asdf ImportError: No module named _asdf = I've done a bunch of googling, but I can't find any straight forward instructions on what is needed for this to all work out. I found the following via Google: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82826 http://www.python.org/doc/current/inst/non-ms-compilers.html I will look at those. The first one looks like what I want. Are you using the --compiler=mingw32 option? For example: $ python setup.py build --compiler=mingw32 No I wasn't. Does anyone know where this is documented? Thanks See above. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
re[4]: Building a win32 python extension from cygwin?
Stupid question -- please ignore. Jason, Thanks, I got the tutorial to work. Now I have to port the cygwin C code I have to Win32. From C code, how do I know if I'm compiling for win32 vs. cygwin? #ifdef MS_WIN32 seems to be true for both. (I'm not totally sure I understand my environment now that I have run the tutorial. ) Greg Greg, Note my experience building Win32 Python extensions is *very* limited. It is mainly limited to building the readline module every year or so when the next major version of Python is released... BTW, you may have better luck on the Python or Distutils list. On Mon, Mar 17, 2003 at 05:51:33PM -0500, Greg Freemyer wrote: I want to use a python deployment program like installer to package it up so I don't have to install cygwin/python on all my servers. What is installer? A packaging solution that allows python apps to be deployed without having to deploy python itself. http://www.mcmillan-inc.com/install1.html I tried it in my cygwin env. The process went smooth and I ended up with a single .exe file that supposedly would allow the app to install in any Win2K env. Unfortunately the actual process of installing my app failed, and per http://trixie.triqs.com/pipermail/installer/2003-March/000266.html there is currently a compatibility issue between installer/cygwin/python. BTW: Jason, you are mentioned as the cygwin/python expert who might be able to resolve the conflict. Unfortunately, installer is apparently broken for cygwin currently. What is broken? The above e-mail describes one problem. My problem was that libpython2.2.dll could not be found in the specified path. That does not make any sense because the exe was supposed to be self contained and not assume any pre-existing cygwin/python dlls. I would have pursued this, but when I read the earlier e-mail, I just dropped the idea of using installer. Unfortunately the import command is not working due to the format of the dll I am generating. Error messages? Build command lines? = From a freshly started python (win32 IDLE) Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32 Type copyright, credits or license for more information. IDLE 0.8 -- press F1 for help import _librsync Traceback (most recent call last): File pyshell#0, line 1, in ? import _librsync ImportError: DLL load failed: The specified module could not be found. = If I try importing a totally non-existent dll, I get a different error message, so it is finding the dll. With a non-existent dll import _asdf Traceback (most recent call last): File pyshell#1, line 1, in ? import _asdf ImportError: No module named _asdf = I've done a bunch of googling, but I can't find any straight forward instructions on what is needed for this to all work out. I found the following via Google: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82826 http://www.python.org/doc/current/inst/non-ms-compilers.html I will look at those. The first one looks like what I want. Are you using the --compiler=mingw32 option? For example: $ python setup.py build --compiler=mingw32 No I wasn't. Does anyone know where this is documented? Thanks See above. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Building a win32 python extension from cygwin?
All, I have a working python app which calls a c library. It works fine in Linux, and in a pure cygwin environment. I want to use a python deployment program like installer to package it up so I don't have to install cygwin/python on all my servers. Unfortunately, installer is apparently broken for cygwin currently. Therefore, I'm trying to get the app to work with win32 python. Unfortunately the import command is not working due to the format of the dll I am generating. I've done a bunch of googling, but I can't find any straight forward instructions on what is needed for this to all work out. Does anyone know where this is documented? Thanks Greg -- Greg Freemyer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/