zoukankan      html  css  js  c++  java
  • Notes of Cygwin in Windows7

    Installation

    1. download setup.exe from its official website;

    2. run setup.exe, select "download without installing" option;

    3. when asking for download website, select the first 163.com and three .cn sites, thus bypassing the connection restriction of company LAN;

    4. cygwin app dir is: d:appscygwin; cygwin packages dir is: e:mydoccygwinPkgs;

    5. 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;

    6. rerun setup.exe, select "install from local directory" option;

    7. Root Directory($CYGWIN_ROOT): e:mydoccygwinRoot;

    8. install a icon at start menu;

    9. 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:mydoccygwinRoot" in windows. So when you mkdir under /home/chad in cygwin, actually the directory is created in e:mydoccygwinRoothomechad in windows;

    • customize window scroll keys: options -> Window;

    install ssh server

    1. install openssh for cygwin: Net -> openssh

    2. run cygwin as administrator;

    3. ssh-host-config -y

    4. enter a password for default ssh user "cyg_server"

    5. 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
  • 相关阅读:
    MFC Slider控件 去掉边上的虚线
    VC學習網址
    全局程序集缓存工具 (Gacutil.exe)
    滚动条集合
    调用 DialogBox 会失败解决方法
    全局程序集缓存GAC”是什么概念
    UltraVNC:超实用的远程控制工具(图)
    VC程序员之无法选择的命运
    C++类
    角色权限批量设置,随点!
  • 原文地址:https://www.cnblogs.com/darkmatter/p/3605681.html
Copyright © 2011-2022 走看看