2、安装和设置OpenSSH Server
#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>