delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/23/12:44:58

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: registry's role, or "must I install on client madhines"
Date: Wed, 23 May 2007 12:44:17 -0400
Message-ID: <31DDB7BE4BF41D4888D41709C476B657068AB047@NIHCESMLBX5.nih.gov>
In-Reply-To: <20070523144101.GB11579@ednor.casa.cgf.cx>
References: <46544911 DOT 4000208 AT sgi DOT com> <20070523144101 DOT GB11579 AT ednor DOT casa DOT cgf DOT cx>
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l4NGik8l012641

Christopher Faylor wrote on Wednesday, May 23, 2007 10:41 AM:

> On Wed, May 23, 2007 at 10:00:49AM -0400, Joseph Michaud wrote:
>> I have cygwin installed on a Windows share.  I'm trying to use it
>> from another Windows client machine (on which it was never
>> installed) by simply running the bash executable using the UNC path
>> (//share/cygwin/bin/bash.exe -l -i).  This isn't working.
>> 
>> I've tried a number of variations like: where my current working
>> directory is (local or remote); starting bash in a local directory
>> and then starting in the remote directory; trying various CYGWIN
>> variables. In all cases the resulting environment for bash has a
>> variety of problems, likely stemming from the fact that HOME and
>> PATH do not get set up.  No /etc/profile or .bashrc are processed.
>> 'cd' works but only by using relative paths (../foo) but not absolute
>> paths (/foo).  I *can* see the filesystem (with "echo *" or
>> something like "../bin/ls"). 
>> 
>> I've also tried setting up the Windows client machine to map a
>> network drive so that the client machine has the same drive letter
>> and directory structure as the master machine (ie, G:/cygwin).  No
>> joy. 
>> 
>> I had wanted to avoid installing cygwin on all the client machines
>> but this is beginning to seem less possible.
>> 
>> The only other thing I can think of is that the registry is being set
>> up when you do an install and that these registry entries are
>> required when bash is invoked. 
>> 
>> Are registry entries referenced when running bash?
> 
> Cygwin, (somewhat) like linux, sets up a mount table which creates a
> root directory, bin directory and other directories.  You can see
> what's created by typing "mount".  
> 
> The fact that this information is stored in the registry is
> irrelevant (and WILL change eventually).  You should use the mount
> command to see how things are set up.  
> 
>> Is it possible to setup cygwin so that it may be used from a share
>> without having been installed on the client machine?
> 
> Possibly.  You don't absolutely need the mount table (with the
> possible exception of /tmp) but, if you want to have bash set things
> up automatically, you will need to investigate how bash works, set
> the appropriate environment variables, and use the appropriate
> command line switches.    
> 
> info bash
> 
> may help.  Also check out "man mount" paying particular attention to
> "mount -m". 
> 
> cgf

If people are running bash (or whatever they are running) from a batch
file (e.g., g:\cygwin\bash.bat, run under either cmd.exe or
command.com), you could put the commands output on your model machine by
	c:\cygwin\bin\mount -m
into the batch file ahead of the first cygwin command.  This will create
the mount table.  It should do no harm as long all machines have the
same setup as the master machine and nothing changes.  If something is
moved, then one will need to redo the batch file.

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019