cygwin.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 30 Sep 2010 16:17:14 +0300
changeset 591 6c93864064a2
parent 486 b4b963218091
child 600 8b94117ba807
permissions -rw-r--r--
Check dll dependency.

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

or

  $ XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"&

To start X application you must set 'DISPLAY':

  $ DISPLAY=:0 xterm&

* Working with packages.

** Installed package list with versions.

  $ cygcheck -c -d

** List of package files.

  $ cygcheck -l pkg-name

** Search package by file in installed packages.

  $ cygcheck -f full-path-to-file

** Search for package.

If you have file name or regex use (need internet connection):

  $ cygcheck -p REGEX

cygcheck use such link:

  http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX

* Cygwin installation info.

  $ uname -a
  $ cygcheck -s -r

* Cygwin acronyms.

  http://www.cygwin.com/acronyms
                One encounters all sorts of acronyms on the Cygwin mailing lists.

* Check dll dependency.

  $ ldd my.dll
  $ ldd my.exe
  $ cygcheck ./my.dll
  $ cygcheck ./my.exe