author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 06 Nov 2010 11:08:52 +0200 | |
changeset 664 | 5f49753073d7 |
parent 600 | 8b94117ba807 |
child 801 | 1bf976799d63 |
permissions | -rw-r--r-- |
346 | 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 |
||
413
97bcb31af707
Updated installation instruction for cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
13 |
set PATH=d:\opt\cygwin\bin;d:\opt\cygwin\usr\local\bin;%PATH% |
346 | 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. |
|
413
97bcb31af707
Updated installation instruction for cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
18 |
set CYGWIN=binary nontsec nodosfilewarning codepage:cp1251 noglob |
97bcb31af707
Updated installation instruction for cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
19 |
|
97bcb31af707
Updated installation instruction for cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
20 |
set LANG=ru_RU.cp1251 |
346 | 21 |
|
22 |
Set HOME env var (where places config file and projects): |
|
23 |
||
24 |
set HOME=d:\home |
|
380 | 25 |
|
432
9ed9bd59c0fd
Set TMP and TEMP env vars for Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
26 |
Set TMP and TEMP env vars with good path (without spaces, etc.; these vars |
9ed9bd59c0fd
Set TMP and TEMP env vars for Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
27 |
already set as used defined, so you need change their values): |
9ed9bd59c0fd
Set TMP and TEMP env vars for Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
28 |
|
9ed9bd59c0fd
Set TMP and TEMP env vars for Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
29 |
set TMP=c:\tmp |
9ed9bd59c0fd
Set TMP and TEMP env vars for Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
30 |
set TEMP=c:\tmp |
9ed9bd59c0fd
Set TMP and TEMP env vars for Cygwin.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
380
diff
changeset
|
31 |
|
380 | 32 |
Also you need edit /etc/passwd to point to correct home path. |
33 |
||
449 | 34 |
** Cygwin ports. |
35 |
||
475 | 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 |
||
600
8b94117ba807
newest home of the Cygwin Ports project
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
591
diff
changeset
|
39 |
http://cygwin-ports.sourceforge.net/ |
8b94117ba807
newest home of the Cygwin Ports project
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
591
diff
changeset
|
40 |
newest home of the Cygwin Ports project |
449 | 41 |
http://sourceware.org/cygwinports/ |
42 |
home page |
|
475 | 43 |
http://cygwinports.blogspot.com |
44 |
official blog?? |
|
449 | 45 |
|
380 | 46 |
* Users and groups. |
47 |
||
48 |
** Recreate /etc/passwd and /etc/groups. |
|
49 |
||
414 | 50 |
$ mkpasswd -d | grep $yourlogin > /etc/passwd # if you in Windows domain |
51 |
$ mkpasswd -l > /etc/passwd # if you in Windows domain |
|
380 | 52 |
|
53 |
$ mkgroup -l > /etc/group |
|
475 | 54 |
|
55 |
* Running X Window. |
|
56 |
||
57 |
$ XWin -multiwindow& |
|
476
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
58 |
|
481 | 59 |
or |
60 |
||
61 |
$ XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"& |
|
62 |
||
476
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
63 |
To start X application you must set 'DISPLAY': |
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
64 |
|
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
65 |
$ DISPLAY=:0 xterm& |
480 | 66 |
|
482
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
67 |
* Working with packages. |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
68 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
69 |
** Installed package list with versions. |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
70 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
71 |
$ cygcheck -c -d |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
72 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
73 |
** List of package files. |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
74 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
75 |
$ cygcheck -l pkg-name |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
76 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
77 |
** Search package by file in installed packages. |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
78 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
79 |
$ cygcheck -f full-path-to-file |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
80 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
81 |
** Search for package. |
480 | 82 |
|
83 |
If you have file name or regex use (need internet connection): |
|
84 |
||
85 |
$ cygcheck -p REGEX |
|
86 |
||
87 |
cygcheck use such link: |
|
88 |
||
89 |
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX |
|
483
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
90 |
|
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
91 |
* Cygwin installation info. |
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
92 |
|
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
93 |
$ uname -a |
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
94 |
$ cygcheck -s -r |
486 | 95 |
|
96 |
* Cygwin acronyms. |
|
97 |
||
98 |
http://www.cygwin.com/acronyms |
|
99 |
One encounters all sorts of acronyms on the Cygwin mailing lists. |
|
100 |
||
591
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
101 |
* Check dll dependency. |
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
102 |
|
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
103 |
$ ldd my.dll |
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
104 |
$ ldd my.exe |
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
105 |
$ cygcheck ./my.dll |
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
106 |
$ cygcheck ./my.exe |
6c93864064a2
Check dll dependency.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
486
diff
changeset
|
107 |