cygwin.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 04 May 2010 21:38:40 +0300
changeset 380 be4df657db00
parent 346 e0cc25d0ec27
child 413 97bcb31af707
child 432 9ed9bd59c0fd
permissions -rw-r--r--
Users and groups.

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

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