This is the mail archive of the
mailing list for the Cygwin project.
Re: Home directory issue
- From: "Alan W. Irwin" <irwin at beluga dot phys dot uvic dot ca>
- To: cygwin at cygwin dot com
- Date: Mon, 8 Jul 2013 09:17:03 -0700 (PDT)
- Subject: Re: Home directory issue
- References: <Pine dot BSO dot 4 dot 53 dot 1307021841380 dot 11994 at Mail dot omnitec dot net> <51DAD616 dot 7010407 at cygwin dot com>
On 2013-07-08 11:09-0400 Larry Hall (Cygwin) wrote:
On 7/2/2013 7:50 PM, L. V. Lammert wrote:
After installing Cygwin on a new system that is in a domain, there is
something that is breaking with user setup.
* The user home directory is not getting created
* /usr/loca/bin & /usr/bin are not prepended to PATH
* The user home directory is/cygdrive/Users/<user>,
* The path IS correct in/etc/passwd (/home/<user>)
Is the HOME environment variable set in your Windows environment? If not,
check the postinstall scripts in '/etc/postinstall', paying particular
attention to those that don't end in '.done'. If you have some of these,
run them yourself with 'sh <scriptname>' and then move the script to
'<scriptname>.done' Run the scripts in the order they appear. Otherwise,
if HOME is defined in the Windows environment, just remove the definition.
You may find you have to rerun some of the postinstall scripts to "recover",
particularly '000-cygwin-post-install.sh'. Or you can try wiping the
installation and starting over.
I experienced all the same symptoms reported by the OP with my
setup.exe on Wine attempt. So you have given me hope that some of the
errors I saw were due to not setting HOME. Could you be more specific
about exactly how HOME should be set "in your Windows environment".
Under Wine I can get into a cmd environment. From there the top-level
directory of the Cygwin installation directory that I usually create
with setup.exe is designated as
That same directory is designated as
from the bash/wine environment.
What exact cmd command should I use to set HOME for user "wine" before
I run a setup.exe from cmd to establish a Cygwin installation tree
from scratch whose top-level is given above? Would it be
or something else?
I prefer the bash environment so if I set the HOME environment
variable from there would setup.exe (run from bash) pick that up
and use it? If so, would it be set by
or something else? (As you can probably tell, I am having some
difficulty in sorting out the differences in the way directories and
environment variables are specified, at the bash/linux, bash/wine,
cmd/wine, and cygwin/wine levels.)
Are there any other environment variables that should be set as well
before running setup.exe for a fresh install?
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple