cygwin and puttycyg setup

1. cygwin is very useful sw for windows to run linux enviroment .
 
it can installed as follow~:
 

Open  http://www.cygwin.cn/site/install/ , download  setup.exe ,install through internet。

In URL inputhttp://www.cygwin.cn/pub/   then  put “add”

But Error comes : report about the setup.ini , that is because internet can not be connected.

It strongly cause by the firewall or antivirus software. When i turned them off.  It can installed normally.

2. puttycyg setup

edit the "putty" properties with right mouse button. as follows:

then ,can open it directly without settings .

yohoo~ it's really  comvenient.

also, you can get reference in http://code.google.com/p/puttycyg/wiki/README.

it introduces the process in detail.

and download the tool :puttycyg-20091228.zip  in

http://code.google.com/p/puttycyg/downloads/list

 

cygwin 使用问题

1. vim 时insert模式不能用箭头, 代码也没有颜色标识。

解决方法:可以添加 vim ~/.vimrc

set nocompatible
set backspace=indent,eol,start
set ruler
set showcmd
set wildmenu
set fo=cqrt
set laststatus=2
set textwidth=78
set ww=<,>,h,l
set autoindent
" set no error bells
set noeb visualbell
set expandtab
set tabstop=4
set shiftwidth=4
set expandtab
let mapleader = ","
syn on
filetype on
filetype plugin on
filetype indent on
保存退出
2. 没有 gcc, 可以在安装中找:

All->Devel下的gcc4: GCC Release Series 4 compiler(C & C++ install helper). 

还要查找gdb,安装Devel下的The GNU Debugger

安装完毕cygwin以后,执行gcc -v命令,确定你的gcc真的安装好了,并且版本是4.5.3

3.  ls 文件夹之类的没有颜色提示:

在cygwin中,默认ls输出没有颜色,可修改$HOME下的.bashrc,以支持颜色输出。

默认alias ls=’ls -h --color=tty’被注释掉啦,去掉注释符。




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值