Mail Archives: cygwin/2005/04/26/12:08:46
Ugh. Top posting. Reformatted.
On Tue, 26 Apr 2005, Hans Horn wrote:
> Jesper Vad Kristensen wrote:
> > Mills wrote:
> >
> >> My question: I need to install Cygwin on systems with no net access
> >> and am having problems building a CD fileset from which to install on
> >> other machines.
> >
> > Just a quickie, gotta run :)
> >
> > http://marc.theaimsgroup.com/?l=cygwin&m=110538795118459&w=2
> >
> > Regards,
> >
> > Jesper Vad Kristensen
> > Denmark
>
> Hi Jesper,
>
> If I follow the instructions on the line you provided below, and burn a
> CD with that custom installation, what do users have left to do to get a
> working installation on their machine? Just copying from the inst CD to
> a local drive would not suffice, would it?
Hans,
Unless you want to replicate some specific directory structure in addition
to package versions (and even then -- see below), it's best to create a CD
with the installation tarballs of the packages you need, a copy of
setup.exe, a setup.ini, and the custom installed.db. You can then add a
batch file that copies installed.db to c:\cygwin\etc\setup (after
checking, of course, that Cygwin is not already installed), and runs
setup.exe (possibly in unattended mode). Unless you let setup do its
magic and install everything from scratch, there are just too many
possible things you'll need to patch up... If you do want extra
directories in your installations, just have the batch file copy those
directories over after setup.exe is done.
If you do choose to do it the hard way (copy from CD and manually patch up
stuff), the three places I can think of right away are a) the mount table,
b) the /etc/passwd and /etc/group files, and c) the /etc/services,
/etc/hosts, /etc/protocols, and /etc/networks symlinks. For a), you'll
need to run "mount -m > restore_mounts.bat", copy restore_mounts.bat to
the CD, and have the user run it (but beware -- the -X flag is not
faithfully reproduced by "mount -m"). For b) and c), it's probably best
to just remove those files and re-run base-files-mketc.sh.done and
passwd-grp.sh.done, respectively (both of them are in /etc/postinstall).
Again, I may be missing some things, so pick the latter approach at your
own risk.
HTH,
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
--
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/
- Raw text -