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
  • 相关阅读:
    sql排序对比(row_number,rank,dense_rank)
    SQL分组排名+行转列
    MS SQL 权限设置脚本
    centos8容器中安装lamp及wordpress
    MacOS禁止向日葵开机启动
    docker(1)
    centos7的firewalld
    ssh免密码
    CENTOS7安装vsftp
    centos 7 安装samba配置匿名共享文件夹
  • 原文地址:https://www.cnblogs.com/darkmatter/p/3605681.html
Copyright © 2011-2022 走看看