author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 07 Aug 2010 23:10:47 +0300 | |
changeset 491 | 8ec36ad14f7a |
parent 486 | b4b963218091 |
child 591 | 6c93864064a2 |
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 |
||
449 | 39 |
http://sourceware.org/cygwinports/ |
40 |
home page |
|
475 | 41 |
http://cygwinports.blogspot.com |
42 |
official blog?? |
|
449 | 43 |
|
380 | 44 |
* Users and groups. |
45 |
||
46 |
** Recreate /etc/passwd and /etc/groups. |
|
47 |
||
414 | 48 |
$ mkpasswd -d | grep $yourlogin > /etc/passwd # if you in Windows domain |
49 |
$ mkpasswd -l > /etc/passwd # if you in Windows domain |
|
380 | 50 |
|
51 |
$ mkgroup -l > /etc/group |
|
475 | 52 |
|
53 |
* Running X Window. |
|
54 |
||
55 |
$ XWin -multiwindow& |
|
476
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
56 |
|
481 | 57 |
or |
58 |
||
59 |
$ XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"& |
|
60 |
||
476
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
61 |
To start X application you must set 'DISPLAY': |
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
62 |
|
feaa4d64ad4e
To start X application.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
475
diff
changeset
|
63 |
$ DISPLAY=:0 xterm& |
480 | 64 |
|
482
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
65 |
* Working with packages. |
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
66 |
|
f3270fb63d5e
Working with packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
481
diff
changeset
|
67 |
** Installed package list with versions. |
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 |
$ cygcheck -c -d |
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 |
** List of package files. |
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 |
$ cygcheck -l pkg-name |
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 |
** Search package by file in installed packages. |
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 |
$ cygcheck -f full-path-to-file |
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 |
** Search for package. |
480 | 80 |
|
81 |
If you have file name or regex use (need internet connection): |
|
82 |
||
83 |
$ cygcheck -p REGEX |
|
84 |
||
85 |
cygcheck use such link: |
|
86 |
||
87 |
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX |
|
483
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
88 |
|
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
89 |
* Cygwin installation info. |
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 |
$ uname -a |
a5ebcd5c7544
Cygwin installation info.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
482
diff
changeset
|
92 |
$ cygcheck -s -r |
486 | 93 |
|
94 |
* Cygwin acronyms. |
|
95 |
||
96 |
http://www.cygwin.com/acronyms |
|
97 |
One encounters all sorts of acronyms on the Cygwin mailing lists. |
|
98 |