From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14601 invoked by alias); 7 Nov 2013 05:02:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 14587 invoked by uid 89); 7 Nov 2013 05:02:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPAM_SUBJECT,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: nihxway2out.hub.nih.gov Received: from Unknown (HELO nihxway2out.hub.nih.gov) (128.231.90.110) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Nov 2013 05:02:00 +0000 X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAFkee1KcKEez/2dsb2JhbABZFoJxOFO/HIEpFnSCJwEEEihRAQgNFRQvExcBDgEEGxqHX50lhGycWY8og1iBEAOOVIpnhTWFcYU1gyaCKg Received: from unknown (HELO CASHTV16.nih.gov) ([156.40.71.179]) by nihxway2out.hub.nih.gov with ESMTP; 07 Nov 2013 00:01:52 -0500 Received: from MLBXV06.nih.gov ([169.254.5.192]) by CASHTV16.nih.gov ([156.40.71.179]) with mapi id 14.03.0158.001; Thu, 7 Nov 2013 00:01:52 -0500 From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "'cygwin@cygwin.com'" Subject: RE: Seeking a suggestion for unattended mass install procedure Date: Thu, 07 Nov 2013 05:02:00 -0000 Message-ID: <6CF2FC1279D0844C9357664DC5A08BA21B1968@MLBXV06.nih.gov> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg00168.txt.bz2 Christopher Faylor sent the following at Monday, November 04, 2013 3:31 PM >On Mon, Nov 04, 2013 at 08:13:41PM +0000, Buchbinder, Barry (NIH/NIAID) >[E] wrote:> >>Lavrentiev, Anton (NIH/NLM/NCBI) [C] sent the following at Monday, Novemb= er 04, 2013 1:28 PM >>>Thanks for the suggestion. My Systems team need to install from >>>scratch on bare boxes, from only an image DVD (which contained all the >>>requisites of the future machine, including CYGWIN's setup and the >>>downloaded directory, as I previously described). >> >>If you want cygwin on an image DVD, just copy an installation to the >>disk from which the DVD is made, thereby avoiding setup. (That is >>similar to how I clone my desktop on C: via H: to my laptop - also >>on C:.) Then you just need a script to customize /etc/passwd, >>/etc/group, create /home/$user, and maybe re-run some of the scripts >>in /etc/postinstall/. >> >>Ideas for updating from a master installation without setup available >>upon request. > >That's how I'd do it if you can get everything to fit on a DVD. >>(I suspect that this method is not supported by this list since setup >>is not used.) > >Well, no, but it's simple enough that the only problems I'd expect >would be with your scripts. Do you want to package them up and make >them available for everyone via setup.exe? Then they actually would be >supported. :-) What I have mirrors MY desktop ("master") to MY laptop ("clone") via a network drive (since there is not direct connection between the two machines. (Note: The network installation is usable when connected via Citrix.) I capitalize "MY" to emphasize that this would need changes to serve as a master for others. So what I use wouldn't work for a cloned install. Therefore, I'll need more encouragement and guidance as to what is wanted to consider providing a package. But I can give advice. I use Windows programs, usually when no cygwin processes are running. (So this isn't even supported by the list.) However, I think that it works even with running processes, as long as they are on and not . I copy with xcopy in a cmd batch file: xcopy /d /s /v /c /i /f /g /h /r /k /y I don't do this, but the batch file on the target machine should then run a script that customizes the installation, creating the /etc/passwd and /etc/group files, the /home/$USER directory, and whatever else is needed. (That I don't know everything that might be needed is another reason for me to not created a package.) For example: c:\cygwin\bin\dash -c /bin/customization_script Using this to update an installation gets more complicated. Because I'm updating, I then use mirror.exe, which is a Windows command line program available from . This deletes files and directories from that no longer exist on . I could have just skip xcopy, but I was worried that mirror might not do something that xcopy does. (I forget exactly what "something" was, but maybe permissions.) mirror This works OK since I want both C drives to be identical and I don't need changes to the laptop to propagate back to the desktop. Note that mirror has options (-if=3D and -ir=3D) that allows one to skip files or directories that involved customizations on the target machine. For example: mirror -if=3D\etc\group -if=3D\etc\passwd -if=3D\home\ I suppose that one could use rsync (either windows or Cygwin versions) or unison instead of mirror, but I've no experience with them so have never tried. Best wishes, - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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