1 -*- mode: outline; coding: utf-8 -*- |
|
2 |
|
3 * About Cygwin. |
|
4 |
|
5 * Installation. |
|
6 |
|
7 Run setup.exe. Use output dir like: |
|
8 |
|
9 d:\opt\cygwin |
|
10 |
|
11 Add to your PATH env var exactly before C:\WINDOWS\system32;C:\WINDOWS values: |
|
12 |
|
13 set PATH=d:\opt\cygwin\bin;d:\opt\cygwin\usr\local\bin;%PATH% |
|
14 |
|
15 REM Set CYGWIN variable to 'nontsec'. That makes sure that permissions |
|
16 REM on your windows machine are not updated as a side effect of cygwin |
|
17 REM operations. |
|
18 set CYGWIN=binary nontsec nodosfilewarning codepage:cp1251 noglob |
|
19 |
|
20 set LANG=ru_RU.cp1251 |
|
21 |
|
22 Set HOME env var (where places config file and projects): |
|
23 |
|
24 set HOME=d:\home |
|
25 |
|
26 Set TMP and TEMP env vars with good path (without spaces, etc.; these vars |
|
27 already set as used defined, so you need change their values): |
|
28 |
|
29 set TMP=c:\tmp |
|
30 set TEMP=c:\tmp |
|
31 |
|
32 Also you need edit /etc/passwd to point to correct home path. |
|
33 |
|
34 ** Cygwin ports. |
|
35 |
|
36 This project provides Cygwin binary and source packages for a large variety of programs and |
|
37 libraries, including the GNOME and KDE desktop environments |
|
38 |
|
39 http://cygwin-ports.sourceforge.net/ |
|
40 newest home of the Cygwin Ports project |
|
41 http://sourceware.org/cygwinports/ |
|
42 home page |
|
43 http://cygwinports.blogspot.com |
|
44 official blog?? |
|
45 |
|
46 * Which Cygwin version you run? |
|
47 |
|
48 $ uname -r |
|
49 1.7.7(0.230/5/3) |
|
50 $ cygcheck -c cygwin |
|
51 Cygwin Package Information |
|
52 Package Version Status |
|
53 cygwin 1.7.7-1 OK |
|
54 |
|
55 * Users and groups. |
|
56 |
|
57 ** Recreate /etc/passwd and /etc/groups. |
|
58 |
|
59 $ mkpasswd -d | grep $yourlogin > /etc/passwd # if you in Windows domain |
|
60 $ mkpasswd -l > /etc/passwd # if you in Windows domain |
|
61 |
|
62 $ mkgroup -l > /etc/group |
|
63 |
|
64 * Running X Window. |
|
65 |
|
66 $ XWin -multiwindow& |
|
67 |
|
68 or |
|
69 |
|
70 $ XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"& |
|
71 |
|
72 To start X application you must set 'DISPLAY': |
|
73 |
|
74 $ DISPLAY=:0 xterm& |
|
75 |
|
76 * Working with packages. |
|
77 |
|
78 ** Installed package list with versions. |
|
79 |
|
80 $ cygcheck -c -d |
|
81 |
|
82 ** List of package files. |
|
83 |
|
84 $ cygcheck -l pkg-name |
|
85 |
|
86 ** Search package by containing file (only under installed packages). |
|
87 |
|
88 $ cygcheck -f full-path-to-file |
|
89 |
|
90 ** Search packages by containing path (only under installed packages). |
|
91 |
|
92 $ for f in /etc/setup/*.lst.gz; do gzip -c -d $f | grep $WORD 2>&1 >/dev/null && { echo $f; break; } || :; done |
|
93 |
|
94 ** Search for package. |
|
95 |
|
96 If you have file name or regex use (need internet connection): |
|
97 |
|
98 $ cygcheck -p REGEX |
|
99 |
|
100 cygcheck use such link: |
|
101 |
|
102 http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX |
|
103 |
|
104 * Cygwin installation info. |
|
105 |
|
106 $ uname -a |
|
107 $ cygcheck -s -r |
|
108 |
|
109 * Cygwin acronyms. |
|
110 |
|
111 http://www.cygwin.com/acronyms |
|
112 One encounters all sorts of acronyms on the Cygwin mailing lists. |
|
113 |
|
114 * Check dll dependency. |
|
115 |
|
116 $ ldd my.dll |
|
117 $ ldd my.exe |
|
118 $ cygcheck ./my.dll |
|
119 $ cygcheck ./my.exe |
|
120 |
|