Re: setup - duplicating cygwin
Hi Corinna, On Jun 20 02:58, Jim Easton wrote: Question: is /proc implemented and I just haven't figured out how to install it? Did you try $ cd /proc $ ls -l before asking? Oh Dear! I tried: cd /cygdrive/c/cygwin cd proc For which I received the message: bash: cd: proc: No such file or directory Which tells me that /cygdrive/c/cygwin and / are not equivalent like I thought. I will remember that. It's a bad day when you don't learn something - and it looks like I have a lot to learn about cygwin. Sigh! sorry - again :-( Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup - duplicating cygwin
Jim Easton wrote: cd /cygdrive/c/cygwin cd proc For which I received the message: bash: cd: proc: No such file or directory Of course. As you surmised, these two are *NOT* the same. The literal path /proc (and /dev) are treated specially. Unlike on linux, mount is not modifying the kernel layer below to create a file system linkage - it's all in the emulation layer for open() in cygwin1.dll.. You can't cd to / using a native win32 shell, for instance, and see any of these mount points.. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup - duplicating cygwin
Hi Igor, Tell me; In case things go wrong, to recover my present configuration is it sufficient to simply restore /cygdrive/c/cygwin and /cygdrive/c/cygwin.disk or is there something more subtle going on. If you didn't change the mounts, it should be sufficient to restore c:\cygwin. I don't know what c:\cygwin.disk is -- probably something c:\cygwin.disk is where setup seems to want to put the downloaded files. specific to your system that you've created. If you did change the mounts, the FAQ mentions a way of saving/restoring them by writing the output of the mount -m command to a batch file and then running it. No such problem here. ... cygdrive and proc are missing. I take it there is no proc or cygdrive directories. They are virtual directories, as is /dev (but /dev doesn't show up in the root directory listing yet). Right, I realize that. When I was still working (now retired) I found /proc was a right useful directory. In fact there was a program called lsof which was supposed to tell you which processes had open files or were cd'ed into a given file system. This was to enable one to kill the process so you could unmount the file system. It didn't always work so I wrote a script using /proc that fullfilled the purpose. Question: is /proc implemented and I just haven't figured out how to install it? You can also simply rename the directory (which will effectively hide it from Cygwin), and then rename it back. I thought of that and will certainly do that for experimenting but unless cygdrive and proc need not be there it doesn't allow a restoration from a tar file which would be nice. I will experiment with that. My background is experimental physics - the emphasis being on the experimental. I just hope I don't kill myself in the process :-). HTH, It certainly does - thank you. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup - duplicating cygwin
On Jun 20 02:58, Jim Easton wrote: Question: is /proc implemented and I just haven't figured out how to install it? Did you try $ cd /proc $ ls -l before asking? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup - duplicating cygwin
Hi Igor 1) using windows read installed.db into my documents 2) the version numbers were already set to zero. Whup. Stop right here. When you say the version numbers were already set to zero, you don't mean those extra zeroes at the end of each line, do you? Because if you do, that field has nothing to do with version numbers. Setup extracts the version number from the name of the tarball in the first field (notice, I said replace them by '0.0-0', not replace them by '0'). If you actually edit the filenames in the first field of installed.db and repeat what you've tried, it should work. Gaaah!! Gee it's bright in here - now. I feel pretty stupid. My excuse is I'm getting old and my brain is turning to mush. :-) Thank you. Tell me; In case things go wrong, to recover my present configuration is it sufficient to simply restore /cygdrive/c/cygwin and /cygdrive/c/cygwin.disk or is there something more subtle going on. For example: If I cd into cygwin that has been made by setup I get: $ cd /cygdrive/c/cygwin $ ls Thumbs.db cygdrivecygwin.ico home proc tmp var bincygwin.bat etc lib sbin usr $ Whereas the tarred/untarred version of cygwin is: $ cd /cygdrive/h/cygwin $ ls Thumbs.db bin cygwin.bat cygwin.ico etc home lib sbin tmp usr var $ cygdrive and proc are missing. I take it there is no proc or cygdrive directories. I also found I have to use tar for this, if you try to use windows it messes up pointers and, for all I know, other things. Thanks again. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup - duplicating cygwin
On Mon, 19 Jun 2006, Jim Easton wrote: Hi Igor 1) using windows read installed.db into my documents 2) the version numbers were already set to zero. Whup. Stop right here. When you say the version numbers were already set to zero, you don't mean those extra zeroes at the end of each line, do you? Because if you do, that field has nothing to do with version numbers. Setup extracts the version number from the name of the tarball in the first field (notice, I said replace them by '0.0-0', not replace them by '0'). If you actually edit the filenames in the first field of installed.db and repeat what you've tried, it should work. Gaaah!! Gee it's bright in here - now. I feel pretty stupid. My excuse is I'm getting old and my brain is turning to mush. :-) Thank you. Tell me; In case things go wrong, to recover my present configuration is it sufficient to simply restore /cygdrive/c/cygwin and /cygdrive/c/cygwin.disk or is there something more subtle going on. If you didn't change the mounts, it should be sufficient to restore c:\cygwin. I don't know what c:\cygwin.disk is -- probably something specific to your system that you've created. If you did change the mounts, the FAQ mentions a way of saving/restoring them by writing the output of the mount -m command to a batch file and then running it. For example: If I cd into cygwin that has been made by setup I get: $ cd /cygdrive/c/cygwin $ ls Thumbs.db cygdrivecygwin.ico home proc tmp var bincygwin.bat etc lib sbin usr $ Whereas the tarred/untarred version of cygwin is: $ cd /cygdrive/h/cygwin $ ls Thumbs.db bin cygwin.bat cygwin.ico etc home lib sbin tmp usr var $ cygdrive and proc are missing. I take it there is no proc or cygdrive directories. They are virtual directories, as is /dev (but /dev doesn't show up in the root directory listing yet). I also found I have to use tar for this, if you try to use windows it messes up pointers and, for all I know, other things. You can also simply rename the directory (which will effectively hide it from Cygwin), and then rename it back. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte. But no -- you are no fool; you call yourself a fool, there's proof enough in that! -- Rostand, Cyrano de Bergerac -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: setup - duplicating cygwin
Hi, Tue, 16 May 2006 I wrote: Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? Wed, 17 May 2006 I wrote: I should clarify. I have no problem with loading new versions of things, what I was after was a way of priming setup with the list of names at the Select packages step. Wed, 17 May Igor Peshansky wrote: Jim, in that case you're looking for /etc/setup/installed.db with all version numbers replaced by 0.0-0. Just place it into c:\cygwin\etc\setup on the target machine, and run setup normally, clicking Next all the way through. I said I would report how it worked out so here goes. Maybe I did it wrong: :-( 1) using windows read installed.db into my documents 2) the version numbers were already set to zero. 3) using windows I removed /c/cygwin and /c/cygwin.disk 4) using windows created /c/cygwin/etc/setup/installed.db 5) ran setup (the latest one) It installed only 54 Mb whereas the original was 362 Mb. (based 1024) Clearly something went wrong. 4) tar was working so I replaced the entire cygwin directory with the one I had brought with me. Again all the version numbers in installed.db were already zero. A lot of things didn't work, to mention only two I couldn't compile a C program (missing -luser32 library) and the clipboard between windoze and cygwin didn't work. It worked within windows and within cygwin but not between. 5) ran setup again and told it to reinstall everything that it thought was installed. Didn't help. ran out of time. :-( When I got home I found that I couldn't compile a C program at home either :-( although everything else worked including the clipboard. Investigating I found libuser32.a in /cygwin/lib/w32api(2) and there existed an empty /cygwin/lib/w32api. Moving w32api(2) to w32api fixed that problem. I had run setup since the last time I compiled anything and I am now wondering if perhaps setup had moved the old w32api to w32api(2) and somehow failed to fill the new one. If anyone feels like clarifying that I'm all ears. If it's any help the mirror site I used was: ftp://ftp.planetmirror.com/pub/sourceware/cygwin I'm still trying to learn exactly what setup does so I'm not asking for help on that - yet - but I do have one question: What's the secret to getting the clipboard working between windoze and cygwin. I am using the -clipboard option in xinit, viz. xinit -- /usr/X11R6/bin/X -clipboard +kb -ar1 200 -ar2 10 I remember having a lot trouble getting this to work in the first place. Is there a windows setting that needs to be checked off somewhere? Thanks for reading this. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: setup - duplicating cygwin
On Sun, 18 Jun 2006, Jim Easton wrote: Hi, Tue, 16 May 2006 I wrote: Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? Wed, 17 May 2006 I wrote: I should clarify. I have no problem with loading new versions of things, what I was after was a way of priming setup with the list of names at the Select packages step. Wed, 17 May Igor Peshansky wrote: Jim, in that case you're looking for /etc/setup/installed.db with all version numbers replaced by 0.0-0. Just place it into c:\cygwin\etc\setup on the target machine, and run setup normally, clicking Next all the way through. I said I would report how it worked out so here goes. Maybe I did it wrong: :-( 1) using windows read installed.db into my documents 2) the version numbers were already set to zero. Whup. Stop right here. When you say the version numbers were already set to zero, you don't mean those extra zeroes at the end of each line, do you? Because if you do, that field has nothing to do with version numbers. Setup extracts the version number from the name of the tarball in the first field (notice, I said replace them by '0.0-0', not replace them by '0'). If you actually edit the filenames in the first field of installed.db and repeat what you've tried, it should work. 3) using windows I removed /c/cygwin and /c/cygwin.disk 4) using windows created /c/cygwin/etc/setup/installed.db 5) ran setup (the latest one) It installed only 54 Mb whereas the original was 362 Mb. (based 1024) Clearly something went wrong. Yes -- it was confused about what it had already installed. What's the secret to getting the clipboard working between windoze and cygwin. I am using the -clipboard option in xinit, viz. xinit -- /usr/X11R6/bin/X -clipboard +kb -ar1 200 -ar2 10 This is a question better asked in a separate thread on the cygwin-xfree list (but only if you mean Cygwin/X when you say cygwin above). HTH, Igor P.S. For learning what setup does, the source is your best guide. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte. But no -- you are no fool; you call yourself a fool, there's proof enough in that! -- Rostand, Cyrano de Bergerac -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: setup - duplicating cygwin
On Sun, 18 Jun 2006, Igor Peshansky wrote: On Sun, 18 Jun 2006, Jim Easton wrote: Hi, Tue, 16 May 2006 I wrote: Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? Wed, 17 May 2006 I wrote: I should clarify. I have no problem with loading new versions of things, what I was after was a way of priming setup with the list of names at the Select packages step. Wed, 17 May Igor Peshansky wrote: Jim, in that case you're looking for /etc/setup/installed.db with all version numbers replaced by 0.0-0. Just place it into c:\cygwin\etc\setup on the target machine, and run setup normally, clicking Next all the way through. I said I would report how it worked out so here goes. Maybe I did it wrong: :-( 1) using windows read installed.db into my documents 2) the version numbers were already set to zero. Whup. Stop right here. When you say the version numbers were already set to zero, you don't mean those extra zeroes at the end of each line, do you? Because if you do, that field has nothing to do with version numbers. Setup extracts the version number from the name of the tarball in the first field (notice, I said replace them by '0.0-0', not replace s/first/second/ them by '0'). If you actually edit the filenames in the first field of s/first/second/ installed.db and repeat what you've tried, it should work. 3) using windows I removed /c/cygwin and /c/cygwin.disk 4) using windows created /c/cygwin/etc/setup/installed.db 5) ran setup (the latest one) It installed only 54 Mb whereas the original was 362 Mb. (based 1024) Clearly something went wrong. Yes -- it was confused about what it had already installed. What's the secret to getting the clipboard working between windoze and cygwin. I am using the -clipboard option in xinit, viz. xinit -- /usr/X11R6/bin/X -clipboard +kb -ar1 200 -ar2 10 This is a question better asked in a separate thread on the cygwin-xfree list (but only if you mean Cygwin/X when you say cygwin above). HTH, Igor P.S. For learning what setup does, the source is your best guide. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte. But no -- you are no fool; you call yourself a fool, there's proof enough in that! -- Rostand, Cyrano de Bergerac -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup - duplicating cygwin
Hi Igor, Ugh, top-posting... Reformatted. Oops - sorry. Some people prefer it :-( Does not include me actually. It gets a little hard to follow if it's not consistent. On Wed, 17 May 2006, Jim Easton wrote: From: Dave Korn [EMAIL PROTECTED] http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. Oops really sorry this time. I knew better - I just didn't notice it. I will endevour to do better in the future. :-( On 16 May 2006 09:20, Jim Easton wrote: ... I should clarify. I have no problem with loading new versions of things, what I was after was a way of priming setup with the list of names at the Select packages step. ... Jim, in that case you're looking for /etc/setup/installed.db with all version numbers replaced by 0.0-0. Just place it into c:\cygwin\etc\setup on the target machine, and run setup normally, clicking Next all the way through. Hey great! Thank you very much, I even found the file. :-) My but there's a lot of stuff in there (I must remember my home directory too). FWIW, we should probably have a dump bundle function in setup to allow creating files like this. Eventually... Well, if the above works don't sweat it. I'm also going to include it in my backups. HTH, Me too. I will give it a try but that won't be for a couple of weeks - I'll let you know how it goes. Thanks again. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: setup - duplicating cygwin
Hi Dave, Thank you for the suggestion. Correct me if I'm wrong but I take it that that would be the stuff in cygwin.disk? I should clarify. I have no problem with loading new versions of things, what I was after was a way of priming setup with the list of names at the Select packages step. I could accomplish the same thing by writing my current config on a piece of paper and just check off the names at the new machine but that seems so labourious. The file I'm looking for wouldn't happen to be setup.ini by any chance would it. You could get that on a floopy. :-) Thank again. Jim From: Dave Korn [EMAIL PROTECTED] On 16 May 2006 09:20, Jim Easton wrote: Hi, Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? How about the local package cache dir? That'd do nicely, then you just run setup.exe on the new machine and tell it to install from local directory, and point it there. I believe this is in the FAQ somewhere but don't have a reference to hand. cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: setup - duplicating cygwin
Ugh, top-posting... Reformatted. On Wed, 17 May 2006, Jim Easton wrote: From: Dave Korn [EMAIL PROTECTED] http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. On 16 May 2006 09:20, Jim Easton wrote: Hi, Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? How about the local package cache dir? That'd do nicely, then you just run setup.exe on the new machine and tell it to install from local directory, and point it there. I believe this is in the FAQ somewhere but don't have a reference to hand. Hi Dave, Thank you for the suggestion. Correct me if I'm wrong but I take it that that would be the stuff in cygwin.disk? I should clarify. I have no problem with loading new versions of things, what I was after was a way of priming setup with the list of names at the Select packages step. I could accomplish the same thing by writing my current config on a piece of paper and just check off the names at the new machine but that seems so labourious. The file I'm looking for wouldn't happen to be setup.ini by any chance would it. You could get that on a floopy. :-) Jim, in that case you're looking for /etc/setup/installed.db with all version numbers replaced by 0.0-0. Just place it into c:\cygwin\etc\setup on the target machine, and run setup normally, clicking Next all the way through. FWIW, we should probably have a dump bundle function in setup to allow creating files like this. Eventually... HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte. But no -- you are no fool; you call yourself a fool, there's proof enough in that! -- Rostand, Cyrano de Bergerac -- 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/
setup - duplicating cygwin
Hi, Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? Thank you. Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: setup - duplicating cygwin
On 16 May 2006 09:20, Jim Easton wrote: Hi, Would someone please tell me what file(s) I would have to take with me (eg. on a disk) to someone else's machine, both running windows XP, whereby I could get setup to download the same cygwin components that are on my machine? How about the local package cache dir? That'd do nicely, then you just run setup.exe on the new machine and tell it to install from local directory, and point it there. I believe this is in the FAQ somewhere but don't have a reference to hand. cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/