Mail Archives: cygwin/2005/06/09/11:33:27
Hi,
I guess the main question that I'm asking from the
below is :
on a clean system without cygwin where setup.exe is
run, after the files have been installed to c:\cygwin
(or wherever), how do I run the process that
binds/registers these files into a working cygwin
system ? (i.e. the process that deals with mount
points, security files and hard / symbolic links).
this process is obviously run every time that
setup.exe is run, so is this procedure a secret locked
in setup.exe which, instead of a well known process
that anyone can run ?
I think if I can find out this process, then all the
problems that I have will be very simply solved
completely :)
Best Regards,
Roy.
--- Roy Wiseman <roy_wiseman AT yahoo DOT co DOT uk> wrote:
> Hi Igor,
>
> those mount commands don't seem to do much for this
> situation. same problems.
> you mention the hard and symbolic links, are created
> during the postinstall phase. this is very
> interesting, are there no commands to make that
> process rerun outside of the postinstall phase ?
> I've attached my cygcheck.out file here.
>
> my current situation is :
> - mkpasswd (with -l and/or -d) does nothing, this
> command hangs for over 30 minutes, and does nothing
> - mkgroup (with -l and/or -d) does nothing, this
> command hangs for over 30 minutes, and does nothing
> - mount -m > /mounts.bat is no help, same errors
> apply.
> - is there some way to make the postinstall process
> kick off again, outside of the setup process ?
>
> Best Regards,
>
> Roy.
>
>
>
>
> --- Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote:
>
> > On Thu, 9 Jun 2005, Roy Wiseman wrote:
> >
> > > Hello,
> > >
> > > I work in a corporate environment, with very
> > limited
> > > internet access, and I want to distribute cygwin
> > to
> > > some sysadmins who can make good use of these
> > tools. I
> > > cannot run the cygwin setup across the internet,
> > and I
> > > do not want to download all the binaries to put
> on
> > the
> > > server. We want to package a specific subset of
> > cygwin
> > > that we require into a package that we can
> > distribute
> > > to sysadmins. I've done this and it works very
> > well,
> >
> > I would be a bit cautious in this situation. It's
> > true that most Cygwin
> > programs will work just fine when copied from
> > machine to machine.
> > However, some other things, specifically hard and
> > symbolic links, are
> > created during the postinstall phase, and may be
> > specific to the
> > installation machine. Unless the other machines
> > have exactly the same
> > configuration, there may be inconsistencies in the
> > copied installation.
> >
> > You'll also need to replicate the mounts, which I
> > suspect is your current
> > problem anyway. Run 'mount -m > /mounts.bat' on
> the
> > machine you use as
> > the template installation, and run /mounts.bat
> after
> > copying. And you
> > will need to regenerate /etc/passwd and /etc/group
> > (since that information
> > is also machine-specific). You can add the two
> > commands reported
> > (mkpasswd and mkgroup) to the end of /mounts.bat.
> >
> > > except for the passwd and group security
> > information
> > > generation which is tied to the machine the
> > install
> > > was done on, and I have no idea how to change
> > this.
> > >
> > > The message I get on running cygwin.bat on any
> > other
> > > system but the one where it is installed is :
> > >
> > > C:\cygwin>cygwin
> > > Your group is currently "mkpasswd". This
> > indicates that
> > > the /etc/passwd (and possibly /etc/group) files
> > should
> > > be rebuilt.
> > > See the man pages for mkpasswd and mkgroup then,
> > for
> > > example, run
> > > mkpasswd -l [-d] > /etc/passwd
> > > mkgroup -l [-d] > /etc/group
> > > Note that the -d switch is necessary for domain
> > users.
> > >
> > > I expect this is to do with the passwd and group
> > files
> > > from what I know of unix, and these instructions
> > have
> > > something to do with the solution, but I have
> > tried
> > > these commands in every possible way that I can
> > think
> > > of, but cannot get this error to disappear and
> > > properly register cygwin for the user. I've
> tried
> > > googling and all the commands I can think of,
> but
> > I'm
> > > stumped.
> > >
> > > Please, can someone tell me how to correct this
> in
> > the
> > > cygwin system so that I can distribute it to the
> > > sysadmins that would like to use these excellent
> > tools?
> >
> > It would have been better had you followed the
> > instructions in the Cygwin
> > problem reporting guidelines at
> > <http://cygwin.com/problems.html> and
> > attached the output of "cygcheck -svr" on the
> > failing system. Without
> > that information, the above guess (missing mounts)
> > is all I can offer.
> >
> > 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/
> >
> >
>
>
>
>
>
___________________________________________________________
>
> How much free photo storage do you get? Store your
> holiday
> snaps for FREE with Yahoo! Photos
http://uk.photos.yahoo.com>
> Cygwin Configuration Diagnostics
> Current System Time: Thu Jun 09 17:08:20 2005
>
> Windows XP Professional Ver 5.1 Build 2600 Service
> Pack 1
>
> Path: C:\cygwin\usr\local\bin
> C:\cygwin\bin
> C:\cygwin\bin
> C:\cygwin\usr\X11R6\bin
> c:\WINNT\system32
> c:\WINNT
> c:\WINNT\System32\Wbem
> c:\Program Files\Citrix\ICA Client_01
> c:\CmdTools
> c:\DOSTOOLS
> c:\WINNT\Microsoft.NET\Framework\v1.1.4322
> C:\cygwin\bin
> c:\WINNT\Microsoft.NET\Framework\v1.0.3705
> "C
> C:\cygwin\Program Files\Symantec\Norton Ghost
> 2003\"
>
> Output from C:\cygwin\bin\id.exe (nontsec)
> UID: 400(nlwiso) GID: 401(mkpasswd)
> 401(mkpasswd)
>
> Output from C:\cygwin\bin\id.exe (ntsec)
> UID: 400(nlwiso) GID: 401(mkpasswd)
> 544(Administrators) 545(Users)
> 401(mkpasswd)
>
> SysDir: C:\WINNT\System32
> WinDir: C:\WINNT
>
> HOME = `y:\'
> MAKE_MODE = `unix'
> PWD = `/cygdrive/y'
> USER = `nlwiso'
>
> ALLUSERSPROFILE = `C:\Documents and Settings\All
> Users'
> APPDATA = `\\NLFS-00012\nlwiso$\Application Data'
> COMMONPROGRAMFILES = `C:\Program Files\Common Files'
> COMPUTERNAME = `NLWS-00114046'
> COMSPEC = `C:\WINNT\system32\cmd.exe'
> CVS_RSH = `/bin/ssh'
> HOMEDRIVE = `Y:'
> HOMEPATH = `\'
> HOMESHARE = `\\NLFS-00012\NLWiso$'
> HOSTNAME = `nlws-00114046'
> INFOPATH =
>
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
> LOGONSERVER = `\\NLDC-00010'
> MANPATH =
>
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:'
> NUMBER_OF_PROCESSORS = `2'
> OLDPWD = `/usr/bin'
> OS = `Windows_NT'
> OSVER = `NT51'
> PACKAGESPATH1 = `\\NLIN-00023\DSP$\PACKAGES'
> PACKAGESPATH = `\\NLIN-00002\DSP$\PACKAGES'
> PATHEXT =
> `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
> PRINTER = `\\10.57.72.104\HP LaserJet 5'
> PROCESSOR_ARCHITECTURE = `x86'
> PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2
> Stepping 9, GenuineIntel'
> PROCESSOR_LEVEL = `15'
> PROCESSOR_REVISION = `0209'
> PROGRAMFILES = `C:\Program Files'
> PROMPT = `$P$G'
> PS1 = `\[\033]0;\w\007
> \033[32m\]\u@\h \[\033[33m\w\033[0m\]
> $ '
> SESSIONNAME = `Console'
> SHLVL = `1'
> SMS_LOCAL_DIR = `C:\WINNT'
> SMS_LOCAL_DIR_USER = `C:\WINNT'
> SYSTEMDRIVE = `C:'
> SYSTEMROOT = `C:\WINNT'
> TEMP = `C:\DOCUME~1\nlwiso\LOCALS~1\Temp'
> TERM = `cygwin'
> TMP = `C:\DOCUME~1\nlwiso\LOCALS~1\Temp'
> USERDNSDOMAIN = `EMEA.ABNAMRO-NET.COM'
> USERDOMAIN = `EMEA'
> USERNAME = `nlwiso'
> USERPROFILE = `C:\Documents and Settings\nlwiso'
> WINDIR = `C:\WINNT'
> _ = `/usr/bin/cygcheck'
> POSIXLY_CORRECT = `1'
>
> HKEY_CURRENT_USER\Software\Cygnus Solutions
> HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
> HKEY_CURRENT_USER\Software\Cygnus
> Solutions\Cygwin\mounts v2
> HKEY_CURRENT_USER\Software\Cygnus
> Solutions\Cygwin\Program Options
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
> Solutions\Cygwin\mounts v2
> (default) = `/cygdrive'
> cygdrive flags = 0x00000022
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
> Solutions\Cygwin\mounts v2\/
> (default) = `C:\cygwin'
> flags = 0x0000000a
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
> Solutions\Cygwin\mounts v2\/usr/bin
> (default) = `C:\cygwin/bin'
> flags = 0x0000000a
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
> Solutions\Cygwin\mounts v2\/usr/lib
> (default) = `C:\cygwin/lib'
> flags = 0x0000000a
> HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
> Solutions\Cygwin\Program Options
>
> a: fd N/A N/A
> c: hd NTFS 8999Mb 44% CP CS UN PA FC
> DRIVE-C
> d: hd NTFS 29162Mb 96% CP CS UN PA FC
> DATA
> e: fd FAT 968Mb 14% CP UN 1GB
> VIKING
> f: fd FAT32 116Mb 68% CP UN
> CF-CARD-128
> g: fd FAT 61Mb 1% CP UN USB
> MEMORY
> h: fd N/A N/A
> k: net NTFS 138915Mb 48% CP CS UN PA FC
> DRIVE-D
> p: net NTFS 560047Mb 93% CP CS UN PA FC
> DRIVE-D
> s: net NTFS 302512Mb 99% CP UN PA 260
> w: net NTFS 474097Mb 89% CP CS UN PA FC
> DRIVE-H
> x: net N/A N/A
> y: net NTFS 560047Mb 93% CP CS UN PA FC
> DRIVE-D
> z: cd N/A N/A
>
> C:\cygwin / system binmode
> C:\cygwin/bin /usr/bin system binmode
> C:\cygwin/lib /usr/lib system 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
>
> 55k 2004/09/14 C:\cygwin\bin\cygbz2-1.dll -
> os=4.0 img=1.0 sys=4.0
> "cygbz2-1.dll" v0.0 ts=2004/9/14
> 6:16
> 18k 2004/07/06 C:\cygwin\bin\cygcharset-1.dll -
> os=4.0 img=1.0 sys=4.0
> "cygcharset-1.dll" v0.0
> ts=2004/7/6 20:09
> 40k 2004/10/10 C:\cygwin\bin\cygform-8.dll -
> os=4.0 img=1.0 sys=4.0
> "cygform-8.dll" v0.0 ts=2004/10/10
> 10:33
> 45k 2001/04/25 C:\cygwin\bin\cygform5.dll -
> os=4.0 img=1.0 sys=4.0
> "cygform5.dll" v0.0 ts=2001/4/25
> 7:28
> 35k 2002/01/09 C:\cygwin\bin\cygform6.dll -
> os=4.0 img=1.0 sys=4.0
> "cygform6.dll" v0.0 ts=2002/1/9
> 7:03
> 48k 2003/08/09 C:\cygwin\bin\cygform7.dll -
> os=4.0 img=1.0 sys=4.0
> "cygform7.dll" v0.0 ts=2003/8/9
> 11:25
> 28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll -
> os=4.0 img=1.0 sys=4.0
> "cyggdbm-3.dll" v0.0 ts=2003/7/20
> 9:58
> 30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll -
> os=4.0 img=1.0 sys=4.0
> "cyggdbm-4.dll" v0.0 ts=2003/8/11
> 4:12
> 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0
> img=1.0 sys=4.0
>
=== message truncated ===> --
> 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/
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.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/
- Raw text -