delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/31/02:39:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <001701c2f758$9c8e0110$5a01a8c0@homeserver>
From: <rdamle AT sbcglobal DOT net>
To: <cygwin AT cygwin DOT com>
Subject: Re: Cygwin Newbie Question
Date: Mon, 31 Mar 2003 01:39:06 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Dave,

I am not sure if you got an answer to your Cygwin install question, but here
is what I did
when I was faced with the same problem a few weeks ago.

I was trying a fresh install of version 1.3.22.1 on a WinXP and Win2K
machine and noticed
that the /home/<username> directory was not formed as I had seen with
version 1.3.10.
To make it work, following are the changes I made to /etc/profile:

1.   Changed the line " if [ -z "$HOME" ] " to " if [ "$HOME" !=
"/home/$USER ] "
     Why?  --  I noticed that at $HOME was already defined to be "
/cygdrive/c " and hence
               the following mkdir " /home/$USER " never got executed.

2.   Changed the line " cp -a /etc/skel/. $HOME " to " cp -a
/etc/skel/default/. $HOME "
     Why?  --  The .bash_profile file is in " /etc/skel/default " directory
and not in
               " /etc/skel "

After making these changes, when I opened a cygwin window by bouble clicking
the Desktop
icon, the /home/<username> directory was formed and the .bash_profile file
was copied
into it. I then copied my .bashrc, .vimrc etc. to get on with business.
I suppose you may check for the existance of " /proc " and " /dev " and
create those
directories within " /etc/profile ".

I do not suggest these changes as a fix since I am not an Linux or Cygwin
expert. You may
use it if it helps you.

I had posted the same question a few weeks ago but did not get any reponses.


Raju Damle



> Hi, I have installed Cygwin a few times over the past couple of days. For
some reason, The /home > and /dev directory, and the environment
variables(eg. PATH)do not get set up properlly.

> When I use startxwin.bat at least the PATH variable is set up. Also for
some reason the .bash_history file is in my c:\
> directory, even though I installed cygwin in c:\cygwin.

> For now I have manually created the home directory and set the path.
> I would appreciate any pointers on how to have the installation go
smoothly/where it is possibly going wrong.

> Dave


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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