Installation
-
download setup.exe from its official website;
-
run setup.exe, select "download without installing" option;
-
when asking for download website, select the first 163.com and three .cn sites, thus bypassing the connection restriction of company LAN;
-
cygwin app dir is: d:\apps\cygwin; cygwin packages dir is: e:\mydoc\cygwinPkgs;
-
when asking for packages, select package "Debug" & "Devel"(assure vi, git, apt-get, gcc, gdb, make, c99, pkg-config, doxygen, valgrind & Graphviz are included), select all related packages;
-
rerun setup.exe, select "install from local directory" option;
-
Root Directory($CYGWIN_ROOT): e:\mydoc\cygwinRoot;
-
install a icon at start menu;
-
run app from start menu;
Usage
-
Window size, font and fore/background color are all customized via "Options" in popup menu;
-
In cygwin, "/cygdrive" is the root of all windows logic drivers(c:, d:, e:, etc). e.g. " /cygdrive/e/mydoc" in cygwin equals to "e:\mydoc" in windows ;
-
"/" in cygwin equals to "e:\mydoc\cygwinRoot" in windows. So when you mkdir under /home/chad in cygwin, actually the directory is created in e:\mydoc\cygwinRoot\home\chad in windows;
-
customize window scroll keys: options -> Window;
install ssh server
-
install openssh for cygwin: Net -> openssh
-
run cygwin as administrator;
-
ssh-host-config -y
-
enter a password for default ssh user "cyg_server"
-
cygrunsrv --start sshd
启动后在Windows的“服务”中可以看到一个名为"CYGWIN sshd"的本地服务,"sshd"是其“服务名称”,"CYGWIN sshd"是"显示名称",用netstat可以看到有进程在22端口监听。
Cygwin: Running an sshd on Windows 7
I can login user cyg_server, but automatically quit. so weired.
Some Packages:
- telnet client: Net -> inetutils