cygwin.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 01 Aug 2010 16:41:40 +0300
changeset 476 feaa4d64ad4e
parent 475 1c3192439efc
child 480 8378f011918d
permissions -rwxr-xr-x
To start X application.

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

** Cygwin ports.

This project provides Cygwin binary and source packages for a large variety of programs and
libraries, including the GNOME  and KDE desktop environments

  http://sourceware.org/cygwinports/
                home page
  http://cygwinports.blogspot.com
                official blog??

* 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

* Running X Window.

  $ XWin -multiwindow&

To start X application you must set 'DISPLAY':

  $ DISPLAY=:0 xterm&