public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Seeking a suggestion for unattended mass install procedure
@ 2013-11-04 16:27 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  2013-11-04 17:09 ` Larry Hall (Cygwin)
  2013-11-04 19:29 ` Achim Gratz
  0 siblings, 2 replies; 25+ messages in thread
From: Lavrentiev, Anton (NIH/NLM/NCBI) [C] @ 2013-11-04 16:27 UTC (permalink / raw)
  To: cygwin

Hello All,

I am trying to help my site's Systems team to straighten up CYGWIN
installation process, which they will need to perform to build new
PCs, and I have volunteered to ask on their behalf here..

As far as they can tell, there is no such an installation option that
tells to install "everything from the download directory".  What they
do is that they run setup.exe to manually check everything from the available
packages that they want to have installed on a PC, then they follow the option
to download any left-over package dependencies, from which step setup.exe takes
control and downloads / installs the selections.

Now, they want to replay the setup unattended with using only those downloaded
packages again, on any other new PC, without going through the selection process
again, so basically to install everything that setup.exe has already
_downloaded_ to a certain directory when run manually (where all the
dependencies have already been satisfied, so the set is self-sufficient).

How / Whether can they do such an install?

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI

P.S. There is an option for setup.exe to list all wanted packages,
but the actual list appears to be very long, so they want to avoid
using it, if possible.


--
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

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Seeking a suggestion for unattended mass install procedure
@ 2013-11-07  5:02 Buchbinder, Barry (NIH/NIAID) [E]
  2013-11-07 15:06 ` Mikhail Usenko
  0 siblings, 1 reply; 25+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2013-11-07  5:02 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

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, November 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 <source> and
not <target>.

I copy with xcopy in a cmd batch file:

  xcopy <source> <target> /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 <http://home.cs.tum.edu/~jain/>.  This
deletes files and directories from <target> that no longer exist on
<source>.  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 <source> <target>

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=<file mask> and -ir=<reg. expr.>) that
allows one to skip files or directories that involved customizations on
the target machine.  For example:

  mirror <source> <target> -if=\etc\group -if=\etc\passwd -if=\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

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2013-11-07 15:06 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-04 16:27 Seeking a suggestion for unattended mass install procedure Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 17:09 ` Larry Hall (Cygwin)
2013-11-04 17:22   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 17:37     ` Larry Hall (Cygwin)
2013-11-04 18:03       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 18:17         ` Eric Lilja
2013-11-04 18:27           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 18:32             ` Christopher Faylor
2013-11-04 19:35             ` Achim Gratz
2013-11-04 20:14             ` Buchbinder, Barry (NIH/NIAID) [E]
2013-11-04 20:31               ` Christopher Faylor
2013-11-04 18:38         ` Larry Hall (Cygwin)
2013-11-04 19:05           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 19:25             ` Larry Hall (Cygwin)
2013-11-04 19:52               ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 19:11           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 19:28             ` Larry Hall (Cygwin)
2013-11-04 19:33             ` Christopher Faylor
2013-11-04 19:40             ` Achim Gratz
2013-11-04 18:50         ` marco atzeri
2013-11-04 19:28           ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2013-11-04 20:24             ` marco atzeri
2013-11-04 19:29 ` Achim Gratz
2013-11-07  5:02 Buchbinder, Barry (NIH/NIAID) [E]
2013-11-07 15:06 ` Mikhail Usenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).