1.更新源
我用的是ADSL拨号上网,这里上网要配置一下
sudo pppoeconf
输入用户名和密码,一路yes就可以了。
Ubuntu严重依赖于网络,没有网络就什么都不是了。
cp /etc/apt/sources.list sources.list.backup(养成备份的好习惯)
sudo gedit /etc/apt/sources.list &
将里面的内容全部删掉,改用163的源,也可以是其他服务器提供的,但是注意版本上的匹配。
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
最后sudo apt-get update
2.语言支持
会自动弹出语言支持的对话框,照着提示做就可以了。
3.安装vim
sudo apt-get install vim
cp .vimrc
set cursorline
set nocompatible
set history=50 " keep 50 lines of command line history
set showcmd " display incomplete commands
set incsearch " do incremental searching
set number
set autoindent
set tabstop=4
set shiftwidth=4
set showmatch "显示匹配括弧
set cindent
set smartindent
syntax on
set nohls
set noet "tab不是空格 写makefile时的命令前的tab
"set backupdir=/tmp/backup/
set nobackup
nmap <F9> <C-W>w "两个文件间进行切换
nmap <F7> <C-W>< "左移
nmap <F8> <C-W>> "右移
"nmap wq :wq!<ENTER>
"nmap Wq :wq!<ENTER>
"nmap wQ :wq!<ENTER>
"nmap WQ :wq!<ENTER>
nmap <F3> :Tlist<ENTER>
"nmap q :q!<ENTER>
"nmap Q :q!<ENTER>
"set encoding=prc
"set fileencoding=prc
let&termencoding=&encoding
set fileencodings=utf8,gbk,prc,ucs-bom
set fileformat=unix "去除^M
"set dy=lastling "为什么文件很多行仅仅在没行开头显示@
set clipboard+=unnamed "与windows共享剪切板
" 不要生成swap文件,当buffer被丢弃的时候隐藏它
setlocal noswapfile
set bufhidden=hide
" 状态行颜色
highlight StatusLine guifg=SlateBlue guibg=Yellow
highlight StatusLineNC guifg=Gray guibg=White
" 在状态行上显示光标所在位置的行号和列号
set ruler
set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%)
" 不让vim发出讨厌的滴滴声
set noerrorbells
" 在被分割的窗口间显示空白,便于阅读
set fillchars=vert:\ ,stl:\ ,stlnc:\
" 可以在buffer的任何地方使用鼠标(类似office中在工作区双击鼠标定位)
set mouse=a
set selection=exclusive
set selectmode=mouse,key
" 启动的时候不显示那个援助索马里儿童的提示
set shortmess=atI
" 设定默认解码
set fenc=utf-8
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
colorscheme evening
"颜色配置文件在/usr/shar/vim
"/vim72/colors/目录下
set foldmethod=syntax "开启折叠功能(语法折叠)
set foldlevel=100 " 启动vim时不要自动折叠代码
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
"let ctags -R --fields=+lS
"set tags=/home/dongyulong/source/embedded/linux-2.6.25.8/tags
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap <F2> :WMToggle<cr>
set cscopequickfix=s-,c-,d-,i-,t-,e-
set tags=/home/dongyulong/source/embedded/linux-2.6.34/tags
4.安装输入法fctix
卸载Ibus输入法
sudo apt-get remove ibus
编译安装fcitx输入法
sudo apt-get install im-switch fcitx
sudo im-switch -s fcitx -z default
重启。
切换默认输入法:
im-switch -c
解决输入框为方框的问题
vim ~/.fcitx/config
将第二行改为
显示字体(中)=WenQuanYi Bitmap Song
5.增加特效。
桌面单击鼠标右键,选择更改桌面背景,选择视觉效果,改为扩展模式。
需要新的显卡驱动,按照提示来就可以了,安装好后重启,再选择一次即可。
6.鼠标右键加入开启终端
sudo apt-get install nautilus-open-terminal
7.安装ctags、tree
sudo apt-get install ctags
sudo apt-get install tree
8.安装局域网通讯工具iptux
sudo apt-get install iptux
9.sudo apt-get install libncurses5-dev
转载于:https://blog.51cto.com/dongyulong/343655