public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: an updated howto on a portable/usb cygwin installguide?
@ 2011-04-25 15:05 Fergus
  2011-05-02  6:20 ` Tee
  0 siblings, 1 reply; 3+ messages in thread
From: Fergus @ 2011-04-25 15:05 UTC (permalink / raw)
  To: Cygwin ML; +Cc: Fergus

 > Is there an updated howto on a portable/usb cygwin installguide? 
Since 1.7
 > cygwin no longer writes to the registry so I was curious if there 
were any
 > changed on making a portable install and/or a end all guide on the 
process.

I run routinely off a portable stick. Installing cygwin direct to H: (or 
whatever) is straightforward but the writing can be time-consuming and 
an alternative approach is to install to HD and then move the entire 
construction to stick. Anything additional you want under /home/ or 
/usr/local/ is just copied to the stick in the usual way.

   1. In my case I use the setup command
      setup -P <comma-separated required packages>
      as a Full Install would need a very hi-capacity stick.
   2. Incidentally despite concentrated effort during installation to
      personalise location I often find a first install lands up under
      c:\cygwin, regardless of instructions otherwise. I think others
      occasionally find this too. See say
      http://cygwin.com/ml/cygwin/2011-01/msg00088.html and
      http://cygwin.com/ml/cygwin/2011-01/msg00091.html (but these are
      very minor isolated glitches and I have no idea how common an
      experience this is).
   3. Once installed I delete /etc/group and /etc/passwd and /etc/fstab
      for a truly portable system.
   4. Once installed, start up by double-clicking on h:/bash.cmd as
      follows (which is actually drivename independent so it doesn't
      matter whether the host machine names your stick h: or m: or ...),
      setting HOME appropriately for your username. This is my
      h:/bash.cmd, you could invent h:/mintty.cmd or even h:/xterm.cmd
      to start up in mintty or xterm respectively if you wanted to. I've
      got all 3 startup modes.
      @set SHELL=/bin/bash
      @set HOME=/home/user
      @start /wait %CD%\bin\bash
      @set HOME=
      @set SHELL=
   5. Otherwise as far as I recall ~/.bashrc, ~/.Xdefaults, ~/.inputrc
      are nothing special or different but two lines in (my) ~/.bashrc are
      PATH="$HOME/bin:/usr/local/bin:/usr/X11R6/bin:/usr/bin"
      /bin/mount -c "/"
      (I have been using this portable architecture for so long that
      (line 1) I can't remember where PATH is conventionally set; also
      (line 2) I prefer accessing other drives from / rather than
      /cygdrive/.)


Hope this helps.
Fergus

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: an updated howto on a portable/usb cygwin installguide?
  2011-04-25 15:05 an updated howto on a portable/usb cygwin installguide? Fergus
@ 2011-05-02  6:20 ` Tee
  0 siblings, 0 replies; 3+ messages in thread
From: Tee @ 2011-05-02  6:20 UTC (permalink / raw)
  To: cygwin

I noticed with your setup I'm stuck with 

[loggedinuser]@[hostmachinename] ~

as my prompt

is there a way  to change the $user variable without editing /etc/profile  ??

mainly to intercept that pesky USER="$(id -un)" to change it to something of my
choosing in the bat file?
ie Tee@[hostmachine]
more specifically to convince the shell that "$(id -un)" or $USER is "TEE"?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* an updated howto on a portable/usb cygwin installguide?
@ 2011-04-24 11:56 Tee
  0 siblings, 0 replies; 3+ messages in thread
From: Tee @ 2011-04-24 11:56 UTC (permalink / raw)
  To: cygwin

Is there an updated howto on a portable/usb cygwin installguide? Since 1.7
cygwin no longer writes to the registry so I was curious if there were any
changed on making a portable install and/or a end all guide on the process.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-02  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-25 15:05 an updated howto on a portable/usb cygwin installguide? Fergus
2011-05-02  6:20 ` Tee
  -- strict thread matches above, loose matches on Subject: below --
2011-04-24 11:56 Tee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).