# HG changeset patch # User Oleksandr Gavenko # Date 1313604907 -10800 # Node ID 335b4345beb7246d6b467e0f3dab670df02286a8 # Parent 972852ff3ade211747a89f96b1737151a5b71c74# Parent d8b2fa8226b5fdc8bfe9d3513b72bda284997b2a merged diff -r 972852ff3ade -r 335b4345beb7 cygwin.rst --- a/cygwin.rst Wed Aug 17 21:14:54 2011 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,120 +0,0 @@ --*- 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://cygwin-ports.sourceforge.net/ - newest home of the Cygwin Ports project - http://sourceware.org/cygwinports/ - home page - http://cygwinports.blogspot.com - official blog?? - -* Which Cygwin version you run? - - $ uname -r -1.7.7(0.230/5/3) - $ cygcheck -c cygwin -Cygwin Package Information -Package Version Status -cygwin 1.7.7-1 OK - -* 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 containing file (only under installed packages). - - $ cygcheck -f full-path-to-file - -** Search packages by containing path (only under installed packages). - - $ for f in /etc/setup/*.lst.gz; do gzip -c -d $f | grep $WORD 2>&1 >/dev/null && { echo $f; break; } || :; done - -** 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 -