cygwin.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 02 Jul 2010 10:45:36 +0300
changeset 432 9ed9bd59c0fd
parent 380 be4df657db00
child 433 7eae6f4baa38
permissions -rw-r--r--
Set TMP and TEMP env vars for Cygwin.

-*- mode: outline; coding: utf-8 -*-

* About Cygwin.

* Installation.

Run setup.exe. Use output dir like:

  d:\opt\cygwin

Add to your PATH env var exactly before C:\WINDOWS\system32;C:\WINDOWS values:

   set PATH=d:\opt\cygwin\bin;d:\opt\cygwin\usr\local\bin;%PATH%

Set CYGWIN env var:

  REM Set CYGWIN variable to 'nontsec'. That makes sure that permissions
  REM on your windows machine are not updated as a side effect of cygwin
  REM operations.
  SET CYGWIN=binary nontsec nodosfilewarning codepage:utf8

Set HOME env var (where places config file and projects):

  set HOME=d:\home

Set TMP and TEMP env vars with good path (without spaces, etc.; these vars
already set as used defined, so you need change their values):

  set TMP=c:\tmp
  set TEMP=c:\tmp

Also you need edit /etc/passwd to point to correct home path.

* Users and groups.

** Recreate /etc/passwd and /etc/groups.

  $ mkpasswd -d | grep $yourlogin > /etc/passwd  # if you in Windows domen
  $ mkpasswd -l > /etc/passwd                    # if you in Windows domen

  $ mkgroup -l > /etc/group