cygwin.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 02 Jul 2010 10:45:49 +0300
changeset 433 7eae6f4baa38
parent 432 9ed9bd59c0fd
parent 414 95d5fafa0a88
child 449 6b248a17d3a4
permissions -rwxr-xr-x
merged

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

  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:cp1251 noglob

  set LANG=ru_RU.cp1251

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 domain
  $ mkpasswd -l > /etc/passwd                    # if you in Windows domain

  $ mkgroup -l > /etc/group