author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 14 Jul 2010 10:07:09 +0300 | |
changeset 439 | 712355562584 |
parent 433 | 7eae6f4baa38 |
child 449 | 6b248a17d3a4 |
permissions | -rwxr-xr-x |
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 |
||
34 |
* Users and groups. |
|
35 |
||
36 |
** Recreate /etc/passwd and /etc/groups. |
|
37 |
||
414 | 38 |
$ mkpasswd -d | grep $yourlogin > /etc/passwd # if you in Windows domain |
39 |
$ mkpasswd -l > /etc/passwd # if you in Windows domain |
|
380 | 40 |
|
41 |
$ mkgroup -l > /etc/group |