每次重装系统的时候都是要到google上搜索一堆的东西,很不方便,而且我的记性很不好容易忘。准备逐步的完善这篇文档,给自己以后再配置系统的时候能够方便一些。
(1) 重装系统后,我做的第一件事情就去更新一下sourcelist,在这里贴出我的源列表:
deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy main multiverse restricted universe
deb hardy-backports main multiverse restricted universe
deb hardy-proposed main multiverse restricted universe
deb hardy-security main multiverse restricted universe
deb hardy-updates main multiverse restricted universe
deb-src hardy main multiverse restricted universe
deb-src hardy-backports main multiverse restricted universe
deb-src hardy-proposed main multiverse restricted universe
deb-src hardy-security main multiverse restricted universe
deb-src hardy-updates main multiverse restricted universe
deb hardy main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb hardy-proposed main multiverse restricted universe
deb-src hardy-proposed main restricted universe multiverse
deb hardy main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb hardy-proposed main multiverse restricted universe
deb-src hardy-proposed main restricted universe multiverse
deb hardy main restricted universe multiverse
deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb hardy main restricted
deb-src hardy main restricted
deb hardy-updates main restricted
deb-src hardy-updates main restricted
deb hardy universe
deb-src hardy universe
deb hardy-updates universe
deb-src hardy-updates universe
deb hardy multiverse
deb-src hardy multiverse
deb hardy-updates multiverse
deb-src hardy-updates multiverse
deb hardy-security main restricted
deb-src hardy-security main restricted
deb hardy-security universe
deb-src hardy-security universe
deb hardy-security multiverse
deb-src hardy-security multiverse
deb hardy main restricted universe multiverse
deb hardy-security main restricted universe multiverse
deb hardy-updates main restricted universe multiverse
deb hardy-proposed main restricted universe multiverse
deb hardy-backports main restricted universe multiverse
deb-src hardy main restricted universe multiverse
deb-src hardy-security main restricted universe multiverse
deb-src hardy-updates main restricted universe multiverse
deb-src hardy-proposed main restricted universe multiverse
deb-src hardy-backports main restricted universe multiverse
deb hardy main restricted universe multiverse
将原来的sources.list备份后那么就开始sudo aptitude update吧!
(2) 修改.vimrc文件,配置我的VIM
由于我主要是应用vim来写代码,下载一些vim专用的插件将vim配置成IDE这种图形界面的东西,将会十分的方便。主要是参考了网络上http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx
这篇文章,在这里贴出来我的.vimrc配置:
set background=dark
set showcmd
set showmatch
set ignorecase
set smartcase
set incsearch
set laststatus=2
set ruler
colorscheme desert
"-------------------------------------------
"some configuration
"-------------------------------------------
set completeopt=longest,menu
"----------------------------------------
"code folder
"----------------------------------------
set foldmethod=syntax
set foldlevel=100
nmap wv
v
nmap wc c
nmap ws s
set number
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set cindent
"these configuration about vim is download from ubuntu.org
"add by tequlialv@gmail.com
set encoding=utf-8
set guifont=Bitstream\ Vera\ Sans\ Mono\ Bold\ 12
set nocompatible
set bsdir=buffer
set autochdir
"set langmenu=zh_CN.GBK
"set enc=chinese
set fenc=utf-8
"set fencs=gbk,utf-8,ucs-bom,gb18030,gb2312,cp936
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
set syn=cpp
set comments=://
set comments=s1:/*,mb:*,ex0:/
set tags=./tags,./../tags,./**/tags
set fileformats=unix,dos
map gk
map gj
set cmdheight=1
if version > 603
set helplang=cn
endi
syntax on
"=================================================
"configurate the taglist
"=================================================
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle
:set cscopequickfix=s-,c-,d-,i-,t-,e-
"=================================================
"cscope configuration
"=================================================
nmap s :cs find s =expand("")
nmap g :cs find g =expand("")
nmap c :cs find c =expand("")
nmap t :cs find t =expand("")
nmap e :cs find e =expand("")
nmap f :cs find f =expand("")
nmap i :cs find i ^=expand("")$
nmap d :cs find d =expand("")
"=======================================================
"configurate the quickfix window
"=======================================================
nmap :cn
nmap :cp
"=======================================================
"set the minibuffer exploree
"=======================================================
let g:miniBufExplMapWindowNavVim=1
let g:miniBufExplMapWindowNavArrows=1
"=======================================================
"set the new-omni-completion
"=======================================================
filetype plugin indent on
set completeopt=longest,menu
"=======================================================
"setting the supertabretaincompletiontype
"=======================================================
let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType=""
set fileencodings=utf-8,gbk,ucs-bom,cp936
(3)解决ubuntu系统网页显示字体
备份49-sansserif.conf这个字体配置文件
$ sudo cp /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak
删除49-sansser做完后重启firefox就可以了。 if.conf文件
$ sudo rm /etc/fonts/conf.d/49-sansserif.conf
(4) 解决Ubuntu8.04版本下PDF文件显示乱码问题
安装poppler-data
方法一 从8.04开始,源中有poppler-data安装包
sudo apt-get install poppler-data
方法二 源中没有的话,下载编译好的deb安装包
sudo dpkg -i poppler-data_0.2.0-1_i386.deb
方法三 去官方下载tar.gz压缩包
wget -c poppler-data-0.1.1.tar.gz
解压
sudo tar xzvf poppler-data-0.1.1.tar.gz -C /usr/local/ && cd /usr/local/poppler*
sudo make install datadir=/usr/share