« Return to Thread: Cygwin Environment from ThumbDrive

Re: Cygwin Environment from ThumbDrive

by Thorsten Kampe :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: Cygwin Environment from ThumbDrive