author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 03 Nov 2020 19:31:40 +0200 | |
changeset 2446 | ad63d001b5f4 |
parent 2336 | 4cd18bed8bac |
child 2483 | 0b99270832a0 |
permissions | -rw-r--r-- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1032
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
========= |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
Cygwin. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
========= |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1774
diff
changeset
|
7 |
:local: |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
9 |
Configuration |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
============= |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
12 |
Run ``setup.exe``. Today you should prefer 64-bit flavor because it sould less BLODA. Add Cygwin |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
13 |
``/bin`` directory to your ``PATH`` env var:: |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
15 |
set PATH=c:\opt\cygwin\bin;%PATH% |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
17 |
Cygwin behavior can be altered via ``CYGWIN`` env var:: |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
18 |
|
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
19 |
set CYGWIN=nodosfilewarning noglob |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
21 |
Currently only ``noglob`` is useful. It disables interpreting special shell wildcard characters |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
22 |
passed verbatim from native Windows apps. So you will unable to do ``ls *`` from ``cmd.exe``. But |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
23 |
without this option (``glob`` is default) Mercurial patterns, like ``{rev}`` are broken. For me |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
24 |
native Windows Emacs can't determine file revision with my ``hg`` wrapper. |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
26 |
https://cygwin.com/cygwin-ug-net/using-cygwinenv.html |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
27 |
The CYGWIN environment variable. Available options. |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
29 |
Set ``HOME`` env var:: |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
30 |
|
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
31 |
set HOME=c:\home |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
33 |
https://stackoverflow.com/questions/1494658/how-can-i-change-my-cygwin-home-folder-after-installation |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
34 |
How can I change my Cygwin home folder after installation? |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
36 |
Set ``TMP`` and ``TEMP`` env vars without dangerous symbols in path (without spaces, etc):: |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
set TMP=c:\tmp |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
set TEMP=c:\tmp |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
41 |
Also you need to edit ``/etc/passwd`` to point to correct home path. |
2143
e5191a677ee5
Create symlink to home directory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2107
diff
changeset
|
42 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
43 |
For Cygwin 1.7 ``/etc/nsswitch.conf`` settings is used to define user home. By default it is |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
44 |
``/home/%U`` so it is better to create symlink:: |
2143
e5191a677ee5
Create symlink to home directory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2107
diff
changeset
|
45 |
|
e5191a677ee5
Create symlink to home directory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2107
diff
changeset
|
46 |
$ ln -s /cygdrive/d/home /home/user |
e5191a677ee5
Create symlink to home directory.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2107
diff
changeset
|
47 |
|
2164
d92444a3f0ae
Example of creating native Windows symlink.
user@DESKTOP-7QQCI59
parents:
2143
diff
changeset
|
48 |
Alternatively with native Windows symlink (from build-in ``cmd`` command):: |
d92444a3f0ae
Example of creating native Windows symlink.
user@DESKTOP-7QQCI59
parents:
2143
diff
changeset
|
49 |
|
d92444a3f0ae
Example of creating native Windows symlink.
user@DESKTOP-7QQCI59
parents:
2143
diff
changeset
|
50 |
cmd# mklink /D c:\opt\cygwin\home\user c:\home |
d92444a3f0ae
Example of creating native Windows symlink.
user@DESKTOP-7QQCI59
parents:
2143
diff
changeset
|
51 |
|
2170
b3827a5ac4c3
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2169
diff
changeset
|
52 |
List of installed packages (``-c`` - check, ``-d`` - dump only):: |
b3827a5ac4c3
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2169
diff
changeset
|
53 |
|
b3827a5ac4c3
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2169
diff
changeset
|
54 |
$ cygcheck -c -d |
b3827a5ac4c3
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2169
diff
changeset
|
55 |
|
b3827a5ac4c3
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2169
diff
changeset
|
56 |
Alternatively look to file content:: |
2169
8ce9771fae25
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2165
diff
changeset
|
57 |
|
8ce9771fae25
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2165
diff
changeset
|
58 |
/etc/setup/installed.db |
8ce9771fae25
List of installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2165
diff
changeset
|
59 |
|
2335
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
60 |
In a past I work with particular code point:: |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
61 |
|
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
62 |
set LANG=ru_RU.cp1251 |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
63 |
|
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
64 |
Altering ``LANG`` for anything other then ``C`` cause only problems, when you get help and error |
df944b944b30
Updated Cygwin configuration instructions.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2320
diff
changeset
|
65 |
messages in non-English. It is mostlry impossible to search for keywords, when text are translated. |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
66 |
|
2107
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
67 |
Documentation |
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
68 |
============= |
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
69 |
|
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
70 |
Cygwin C API man pages and user guide manuals available in ``cygwin-doc`` |
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
71 |
package. |
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
72 |
|
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
73 |
Documentation unpacked to ``/usr/share/doc/cygwin-...`` directory. |
6f77a1808a38
Cygwin documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2105
diff
changeset
|
74 |
|
2061
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
75 |
apt-cyg package manager |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
76 |
======================= |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
77 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
78 |
``apt-cyg`` is based on ``bash``, ``wget``, ``tar``, ``gawk`` and ``bzip2`` |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
79 |
packages and provide convenient commands for managing and queries packages:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
80 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
81 |
$ apt-cyg update |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
82 |
$ apt-cyg install emacs-w32 |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
83 |
$ apt-cyg remove emacs-w32 |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
84 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
85 |
Information about package and dependencies:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
86 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
87 |
$ apt-cyg show emacs-w32 |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
88 |
$ apt-cyg depends wget |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
89 |
$ apt-cyg rdepends emacs |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
90 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
91 |
List installed packages:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
92 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
93 |
$ apt-cyg list |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
94 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
95 |
Search for package with file across installed packages:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
96 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
97 |
$ apt-cyg search stdio.h |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
98 |
|
2079
5c346302c5ba
List package files for installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2063
diff
changeset
|
99 |
List package files for installed packages:: |
5c346302c5ba
List package files for installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2063
diff
changeset
|
100 |
|
5c346302c5ba
List package files for installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2063
diff
changeset
|
101 |
$ apt-cyg listfiles util-linux |
5c346302c5ba
List package files for installed packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2063
diff
changeset
|
102 |
|
2061
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
103 |
Search for package with file through cygwin.com:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
104 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
105 |
$ apt-cyg searchall stdio.h |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
106 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
107 |
List all packages in ``setup.ini``:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
108 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
109 |
$ apt-cyg listall |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
110 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
111 |
Find package by regex:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
112 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
113 |
$ apt-cyg listall ^emacs |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
114 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
115 |
To switch between mirrors:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
116 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
117 |
$ apt-cyg mirror ftp://ftp.cygwinports.org/pub/cygwinports |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
118 |
$ apt-cyg update |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
119 |
$ apt-cyg install php |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
120 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
121 |
$ apt-cyg mirror ftp://www.fruitbat.org/pub/cygwin/circa/2016/08/30/104223 |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
122 |
|
2090
1a788101d63c
http://mirrors.kernel.org/sources.redhat.com/cygwin/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2079
diff
changeset
|
123 |
$ apt-cyg mirror http://mirrors.kernel.org/sources.redhat.com/cygwin/ |
1a788101d63c
http://mirrors.kernel.org/sources.redhat.com/cygwin/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2079
diff
changeset
|
124 |
|
2091
059f9e54d538
Altering between mirrors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2090
diff
changeset
|
125 |
Just switching mirror does not update metadata. |
059f9e54d538
Altering between mirrors.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2090
diff
changeset
|
126 |
|
2061
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
127 |
To change a location of directory where packages and ``setup.ini`` downloaded:: |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
128 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
129 |
$ apt-cyg cache |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
130 |
C:\net |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
131 |
|
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
132 |
$ apt-cyg cache ~/net |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
133 |
Cache set to C:\home\net. |
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
134 |
|
2320
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
135 |
https://github.com/kou1okada/apt-cyg |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
136 |
Still maintained project with extra features. |
2061
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
137 |
https://github.com/transcode-open/apt-cyg/ |
2320
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
138 |
Home page of abandoned project. |
2092
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
139 |
https://github.com/transcode-open/apt-cyg/issues/19 |
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
140 |
Request to support multiply sources. |
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
141 |
http://stackoverflow.com/questions/22411162/how-to-add-a-repository-using-apt-cyg/ |
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
142 |
How to add a repository using apt-cyg. |
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
143 |
https://odoepner.wordpress.com/2012/12/06/install-cygwin-and-cygwinports-packages-using-apt-cyg/ |
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
144 |
Depricated way to install from several sources with ``-m`` option using shell |
9c8bb99062b5
Add links about multi-source support.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2091
diff
changeset
|
145 |
aliases as a trick. |
2061
11b0fd0d6db6
apt-cyg package manager.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2060
diff
changeset
|
146 |
|
2320
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
147 |
Cygwin bash completion |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
148 |
====================== |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
149 |
|
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
150 |
Cygwin ``bash`` has extra patch that adds ``completion_strip_exe`` option:: |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
151 |
|
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
152 |
shopt -s completion_strip_exe |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
153 |
|
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
154 |
If you complete executable ``.exe`` suffix is stripped if any. That halps with ``bash-completion`` |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
155 |
because usually comletion defined for base name without ``.exe`` suffix, like:: |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
156 |
|
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
157 |
complete -F _figlet figlet |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
158 |
|
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
159 |
https://github.com/cygwinports/bash |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
160 |
7b. completion_strip_exe - using 'shopt -s completion_strip_exe' |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
161 |
makes completion strip .exe suffixes. |
b7a2c43902f3
Cygwin bash completion.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2228
diff
changeset
|
162 |
|
2165
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
163 |
Cygwin file permission |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
164 |
====================== |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
165 |
|
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
166 |
Get list of permissions:: |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
167 |
|
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
168 |
$ getfacl . |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
169 |
|
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
170 |
rsync without problems:: |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
171 |
|
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
172 |
$ rsync -ar —chmod=ugo=rwX $FROM/ $TO/ |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
173 |
|
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
174 |
https://cygwin.com/cygwin-ug-net/using-filemodes.html |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
175 |
File permissions. |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
176 |
https://cygwin.com/cygwin-ug-net/ntsec.html |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
177 |
POSIX accounts, permission, and security. |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
178 |
https://stackoverflow.com/questions/5828037/cygwin-sets-file-permission-to-000 |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
179 |
Cygwin sets file permission to 000. |
13a641164f9d
Cygwin file permission.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2164
diff
changeset
|
180 |
|
2059
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
181 |
Installation on Windows XP |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
182 |
========================== |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
183 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
184 |
Cygwin from v2.5.5 and Setup version 2.874 (on 25 Aug 2016) is latest version |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
185 |
with Windows XP support. Later versions build with dependencies on newer |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
186 |
syscalls and failt to run in Windows XP. |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
187 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
188 |
Latest mirrors avaialble at fruitbat.org: |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
189 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
190 |
* 32-bit: ftp://www.fruitbat.org/pub/cygwin/circa/2016/08/30/104223 |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
191 |
* 64-bit: ftp://www.fruitbat.org/pub/cygwin/circa/64bit/2016/08/30/104235 |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
192 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
193 |
To run setup against this mirror:: |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
194 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2196
diff
changeset
|
195 |
cmd> setup.exe |
2059
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
196 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
197 |
``setup.exe`` available at: |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
198 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
199 |
* 32-bit ftp://www.fruitbat.org/pub/cygwin/setup/snapshots/setup-x86-2.874.exe |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
200 |
* 64-bit ftp://www.fruitbat.org/pub/cygwin/setup/snapshots/setup-x86_64-2.874.exe |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
201 |
|
2060
66ccf8bdcbc0
Option description for setup-x86.exe.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2059
diff
changeset
|
202 |
Run as (``-X`` disable signature verification, ``-s <url>`` option select a |
66ccf8bdcbc0
Option description for setup-x86.exe.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2059
diff
changeset
|
203 |
particular mirror, ``-O`` option disallow any other mirrors):: |
2059
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
204 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
205 |
cmd> setup-x86.exe -X -s ftp://www.fruitbat.org/pub/cygwin/circa/2016/08/30/104223 -O |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
206 |
|
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
207 |
http://www.fruitbat.org/Cygwin/timemachine.html |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
208 |
Description of Cygwin time machine project. |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
209 |
http://stackoverflow.com/questions/39479826/cygwin-2-5-2-mirror-getting-the-last-xp-release |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
210 |
Question about Cygwin old mirror. |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
211 |
http://superuser.com/questions/1132000/is-it-still-possible-to-get-cygwin-for-xp |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
212 |
Question about Cygwin old mirror. |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
213 |
http://cygwin-xp.portfolis.net/ |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
214 |
Another old mirror. |
e19407a19d1f
Installation on Windows XP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
215 |
|
2196 | 216 |
Cygwin ports |
217 |
============ |
|
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
218 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
219 |
This project provides Cygwin binary and source packages for a large variety of programs and |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
220 |
libraries, including the GNOME and KDE desktop environments |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
221 |
|
2196 | 222 |
http://cygwin-ports.sourceforge.net/ |
223 |
Newest home of the Cygwin Ports project. |
|
224 |
http://sourceware.org/cygwinports/ |
|
225 |
Home page. |
|
226 |
http://cygwinports.blogspot.com |
|
227 |
Official blog. |
|
228 |
https://github.com/cygwinports |
|
229 |
cygport scripts to compile cygwinports |
|
230 |
https://github.com/cygwinports/cygport |
|
231 |
Source packaging tool for Cygwin |
|
232 |
https://cygwinports.github.io/cygport |
|
233 |
Cygport Reference Manual. |
|
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
234 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
235 |
Which Cygwin version you run? |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
236 |
============================= |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
237 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
238 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
239 |
$ uname -r |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
240 |
1.7.7(0.230/5/3) |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
241 |
$ cygcheck -c cygwin |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
242 |
Cygwin Package Information |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
243 |
Package Version Status |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
244 |
cygwin 1.7.7-1 OK |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
245 |
|
2105 | 246 |
Rebase dll |
247 |
========== |
|
248 |
||
249 |
In order to Cygwin to maintain ``fork()`` syscall it should preserve same |
|
250 |
logical base address for dll to be able to share library between child and |
|
251 |
parent process. It was done via special hints in dlls. |
|
252 |
||
253 |
With new version of Cygwin software or external Windows libraries (AntiVirus may |
|
254 |
inject its their libraries into Cygwin process address space) it may happen that |
|
255 |
new library is overlapped with existing. |
|
256 |
||
257 |
There is ``rebase`` utility that changes base address hints for dll. |
|
258 |
||
259 |
You should finish all Cygwin processes in order to ``rebase`` to succeed. |
|
260 |
||
261 |
You may trigger automatic rebase of all packages in next run of ``setup.exe`` |
|
262 |
with:: |
|
263 |
||
264 |
$ rebase-trigger full |
|
265 |
||
266 |
Read more at: |
|
267 |
||
268 |
* ``/usr/share/doc/rebase/README`` |
|
269 |
* ``/usr/share/doc/Cygwin/_autorebase.README`` |
|
270 |
||
2336
4cd18bed8bac
How do I fix fork() failures?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2335
diff
changeset
|
271 |
https://cygwin.com/faq/faq.html#faq.using.fixing-fork-failures |
4cd18bed8bac
How do I fix fork() failures?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2335
diff
changeset
|
272 |
How do I fix fork() failures? |
2105 | 273 |
https://chromium.googlesource.com/chromium/src/+/master/docs/cygwin_dll_remapping_failure.md |
274 |
Handling repeated failures of rebaseall to allow cygwin remaps. |
|
275 |
||
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
276 |
Recreate /etc/passwd and /etc/groups. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
277 |
===================================== |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
278 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
279 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
280 |
$ mkpasswd -d | grep $yourlogin > /etc/passwd # if you in Windows domain |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
281 |
$ mkpasswd -l > /etc/passwd # if you in Windows domain |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
282 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
283 |
$ mkgroup -l > /etc/group |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
284 |
|
1774
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
285 |
Adding mount points. |
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
286 |
==================== |
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
287 |
|
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
288 |
``/etc/fstab``:: |
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
289 |
|
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
290 |
C:/foo /bar/baz ntfs text,posix=0 0 0 |
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
291 |
/var /usr/var none bind |
16876330496f
Adding mount points.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
292 |
|
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
293 |
Running X Window. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
294 |
================= |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
295 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
296 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
297 |
$ XWin -multiwindow& |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
298 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
299 |
or:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
300 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
301 |
$ XWin -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle"& |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
302 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
303 |
To start X application you must set 'DISPLAY':: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
304 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
305 |
$ DISPLAY=:0 xterm& |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
306 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
307 |
Working with packages. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
308 |
====================== |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
309 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
310 |
Installed package list with versions. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
311 |
------------------------------------- |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
312 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
313 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
314 |
$ cygcheck -c -d |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
315 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
316 |
List of package files. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
317 |
---------------------- |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
318 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
319 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
320 |
$ cygcheck -l pkg-name |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
321 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
322 |
Search package by containing file (only under installed packages). |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
323 |
------------------------------------------------------------------ |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
324 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
325 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
326 |
$ cygcheck -f full-path-to-file |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
327 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
328 |
Search packages by containing path (only under installed packages). |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
329 |
------------------------------------------------------------------- |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
330 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
331 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
332 |
$ for f in /etc/setup/*.lst.gz; do gzip -c -d $f | grep $WORD 2>&1 >/dev/null && { echo $f; break; } || :; done |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
333 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
334 |
Search for package. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
335 |
------------------- |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
336 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
337 |
If you have file name or regex use (need internet connection):: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
338 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
339 |
$ cygcheck -p REGEX |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
340 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2196
diff
changeset
|
341 |
cygcheck use such link:: |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
342 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
343 |
http://cygwin.com/cgi-bin2/package-grep.cgi?grep=REGEX |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
344 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
345 |
Cygwin installation info. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
346 |
========================= |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
347 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
348 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
349 |
$ uname -a |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
350 |
$ cygcheck -s -r |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
351 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
352 |
Cygwin acronyms. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
353 |
================ |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
354 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2196
diff
changeset
|
355 |
http://www.cygwin.com/acronyms |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2196
diff
changeset
|
356 |
One encounters all sorts of acronyms on the Cygwin mailing lists. |
1032
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
357 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
358 |
Check dll dependency. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
359 |
===================== |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
360 |
:: |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
361 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
362 |
$ ldd my.dll |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
363 |
$ ldd my.exe |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
364 |
$ cygcheck ./my.dll |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
365 |
$ cygcheck ./my.exe |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
366 |
|
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
367 |
Cygwin alternatives. |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
368 |
==================== |
4decc3e00bb6
Fix coding and contents.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
369 |
|
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2196
diff
changeset
|
370 |
http://www.suacommunity.com/SUA.aspx |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2196
diff
changeset
|
371 |
Subsystem for Unix-based Applications and Services for Unix |