X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: Cygwin Environment from ThumbDrive
Date:  Wed, 15 Nov 2006 17:08:00 -0000
Lines: 21
Message-ID: <ejfhht$kun$1@sea.gmane.org>
References:  <7347684.post@talk.nabble.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset="iso-8859-15"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

* Bodger (Tue, 14 Nov 2006 14:16:06 -0800 (PST))
> How possible would it be to:
> 
> 1) Install a Cygwin environment into a Thumbdrive, including /home, /usr
> etc.

Just install it (or copy it from an existing installation).

> 2) With the help of some crafty shell scripts, be available from most
> Windows boxes by plugging the thumb drive in and running the environment
> from there?

rem  Make cygwin mounts
mount -fu %~d0\cygwin     /
mount -fu %~d0\cygwin/bin /usr/bin
mount -fu %~d0\cygwin/lib /usr/lib
    
mkpasswd -lc > \cygwin\etc\passwd
mkgroup  -lc > \cygwin\etc\group

Thorsten


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

