VMWare和putty搭建Linux开发环境
2011-03-20 13:27
351 查看
2、安装和设置OpenSSH Server
#sudo apt-get install openssh-server
打开/etc/ssh/sshd_config
找到 GSSAPI options 这一节,将下面两行注释掉:
#sudo /etc/init.d/ssh restart
3、cscope工具
1)安装
#sudo apt-get install cscope
4、vim设置
用户主目录下的.vimrc配置如下:
"#################
"general setting
"#################
set clipboard+=unnamed "共用windows黏贴板
"set mouse=a "使用鼠标滚轮滑动
"#################
"search and match
"#################
set showmatch
set hlsearch
set incsearch
" Show full tags when doing search completion
set showfulltag
"### cscope begin ###
if $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
"hit 'CTRL-/'
nmap <C-/>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-/>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-/>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"hit 'CTRL-j'
nmap <C-j>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-j>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-j>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"### cscope end ####
"### MISC ###
"Remove the Windows ^M
noremap <Leader>m :%s/r//g<CR>
#sudo apt-get install openssh-server
打开/etc/ssh/sshd_config
找到 GSSAPI options 这一节,将下面两行注释掉:
#GSSAPIAuthentication yes #GSSAPIDelegateCredentials no然后重新启动 ssh 服务即可:
#sudo /etc/init.d/ssh restart
3、cscope工具
1)安装
#sudo apt-get install cscope
4、vim设置
用户主目录下的.vimrc配置如下:
"#################
"general setting
"#################
set clipboard+=unnamed "共用windows黏贴板
"set mouse=a "使用鼠标滚轮滑动
"#################
"search and match
"#################
set showmatch
set hlsearch
set incsearch
" Show full tags when doing search completion
set showfulltag
"### cscope begin ###
if $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
"hit 'CTRL-/'
nmap <C-/>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-/>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-/>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-/>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"hit 'CTRL-j'
nmap <C-j>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-j>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
nmap <C-j>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
nmap <C-j>d :cs find d <C-R>=expand("<cword>")<CR><CR>
"### cscope end ####
"### MISC ###
"Remove the Windows ^M
noremap <Leader>m :%s/r//g<CR>
相关文章推荐
- VMware安装Ubuntu教程,Linux下搭建Android开发环境
- Ubuntu 14.04.2 + Vmware搭建Linux驱动开发环境
- linux开发环境搭建-----VMware , linux,vmwaretools 的安装
- Unix/Linux环境C编程入门教程(11) 开发环境搭建VMWare虚拟安装之虚拟化检测
- Unix/Linux环境C编程入门教程(11) 开发环境搭建VMWare虚拟安装之虚拟化检测
- VMware安装Ubuntu教程,Linux下搭建Android开发环境
- 在 VMWare linux 0.11 上搭建 gcc 1.4 开发环境
- VMware虚拟机上搭建Linux iPhone Toolchain 2.x开发环境
- VMware 6.5+Fedora9 - 嵌入式Linux开发环境搭建
- Linux开发环境搭建01---VMware 12 Pro 虚拟机安装步骤详解
- VirtualBox+Ubuntu+Xshell搭建Linux开发环境
- Linux开发环境搭建与使用——Linux必备软件之Samba
- linux下android开发环境的搭建
- Linux下c开发环境的搭建
- 红帽linux5.5 linux 开发环境的搭建 1
- Eclipse C/C++开发环境搭建----Linux版
- Linux——搭建PHP开发环境第一步:apache
- Linux下NAO机器人开发环境搭建完全教程(Version2.0)