Maybe a lot of people already know this, but I will write it down here, in case anyone forget it, or of somebody does not know already.

To upgrade the Linux Debian Stable Etch to testing Lenny, just need to follow these two steps.

1. Edit sources.list

sudo vi /etc/apt/sources.list

and change all words etch to lenny, or stable to testing

2. Update and upgrade

sudo aptitude update

sudo aptitude install apt dpkg aptitude

sudo aptitude full-upgrade

that is all, this also work if you want to go from lenny to sid, just change yoursources.list accordingly.

It is also better if you start your Debian Linux in text mode, so GDM or KDM could be restarted without problems.

You may be interested in reading this.


요즘 리눅스는 많이 쉬운것 같다... 단 명령어 세번으로 자동으로 시스템이 업그레이드 된다...

현재 내가 사용 중인 vim plugin 목록

1. ctags
2. cscope
3. taglist
4. buf explorer
5. source explorer
6. NERD Tree


.vimrc 설정...

1. ctags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set tags=./tags

if version >= 500
func! Sts()
	let st = expand("<cword>")
	exe "sts ".st
endfunc
nmap ,st :call Sts()<cr>

func! Tj()
	let st = expand("<cword>")
	exe "tj ".st
endfunc
nmap ,tj :call Tj()<cr>
endif

2. cscope
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb

if filereadable("./cscope.out")
	cs add cscope.out
endif
set csverb

nmap ,cs :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap ,cg :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap ,cd :cs find d <C-R>=expand("<cword>")<CR><CR>
nmap ,cc :cs find c <C-R>=expand("<cword>")<CR><CR>

3. taglist / buf explorer
1
2
map <F3> :Tlist<cr><C-W><C-W>
map <F4> :BufExplorer<cr>

4. source explorer
1
2
3
4
5
6
7
8
9
10
11
nmap <F8> :SrcExplToggle<CR>
nmap <C-H> <C-W>h
nmap <C-J> <C-W>j
nmap <C-K> <C-W>k
nmap <C-L> <C-W>l

let g:SrcExpl_winHeight=8
let g:SrcExpl_refreshTime=100
let g:SrcExpl_jumpKey="<ENTER>"
let g:SrcExpl_gobackKey="<SPACE>"
let g:SrcExpl_isUpdateTags=0

5. NERD Tree
1
2
let NERDTreeWinPos = "left"
nmap <F9> :NERDTreeToggle

  vim 관련 설정 (.vimrc)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb

if filereadable("./cscope.out")
    cs add cscope.out
endif
set csverb

nmap ,cs :cs find s <C-R>=expand("<cword>")<CR><CR>     
nmap ,cg :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap ,cd :cs find d <C-R>=expand("<cword>")<CR><CR>
nmap ,cc :cs find c <C-R>=expand("<cword>")<CR><CR>

  cscope 사용법
:cs find {질의 종류} {심볼}

질의 종류
s   : Find this C symbol
g   : Find this definition
d   : Find functions called by this function
c   : Find functions calling this function
t    : Find assignments to
e   : Find this egrep pattern
f    : Find this file
i    : Find files #including this file

#!/bin/sh
rm -rf cscope.out cscope.files
find $PWD \( -name '*.c' -o -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.s' -o -name '*.S' \) -print > cscope.files

cscope -i cscope.files


 윈도우용
dir /B /S *.c *.inc *.cpp *.s *.S *.hpp *.h > cscope.files
cscope -b -q -k
ctags -R



+ Recent posts