Categories

Ubuntu 10.04 速配指南

适合我个人使用的速配指南,只是为了避免重装时到处找资料。很多地方参考了wiki,路过的同学请无视之。

1. 哈工大ubuntu 10.04 源

deb http://run.hit.edu.cn/ubuntu/ lucid main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ lucid main restricted universe multiverse
deb http://run.hit.edu.cn/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ lucid-updates main restricted universe multiverse
deb http://run.hit.edu.cn/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ lucid-backports main restricted universe multiverse
deb http://run.hit.edu.cn/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://run.hit.edu.cn/ubuntu/ lucid-security main restricted universe multiverse

2. 安装常用软件

sudo apt-get install gftp goldendict qterm chmsee mplayer \
ttf-mscorefonts-installer nautilus-open-terminal nautilus-gksu \
unrar p7zip-full cabextract \
vim exuberant-ctags cscope \
mysql-server-5.1 apache2 php5 phpmyadmin libapache2-mod-auth-mysql tomcat6 \
codeblocks eclipse mercurial subversion

3. Firefox

(1). 加速Firefox
将network.dns.disableIPv6 设置为true

(2). Firefox插件
Adblock Plus、QuickDrag、Firebug、flashgot、Colorzilla、FastestFox、AutoProxy、AutoPager、Page Speed、YSlow、HttpFox、Live HTTP headers、Web Developer、Evernote Web Clipper、Read It Later
点击这里跳转到这些插件的列表快速安装

4. 安装Java

在Ubuntu 10.04里,Sun (Oracle)的JDK已经被移到了partner库里面,标准库里只有OpenJDK。要安装Sun的JDK,需要加入一个partner源

deb http://archive.canonical.com/ lucid partner

然后按照正常的步骤安装sun-java6-jdk即可,安装完成之后,需要指定系统的默认JDK。

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

最后,配置Java环境变量

sudo gedit /etc/environment

在其中添加如下两行:

JAVA_HOME=/usr/lib/jvm/java-6-sun
CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib

要使配置生效必须重启机器或者在命令行输入

. /etc/environment

5. 配置vim

(1). 配置文件

sudo vim ~/.vimrc
:set nu
:set autoindent
:set cindent
:set ruler
:syntax on
:set tabstop=4
:set shiftwidth=4
 
"设置编码
:set encoding=utf-8
 
"设置文件编码
:set fenc=utf-8
 
"设置文件编码检测类型及支持格式
:set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
 
"查找结果高亮显示
:set hlsearch
 
"设置代码折叠
:set fdm=indent

(2). vi/vim使用进阶
http://easwy.com/blog/archives/advanced-vim-skills-catalog/

(3). vim代码折叠
http://hi.baidu.com/hints1988/blog/item/fc6701b43ac12a788bd4b232.html

(4). vim插件
supertab [ http://www.vim.org/scripts/script.php?script_id=1643 ]
snipmate [ http://www.vim.org/scripts/script.php?script_id=2540 ]
taglist [ http://www.vim.org/scripts/script.php?script_id=273 ]
winmanager [ http://www.vim.org/scripts/script.php?script_id=1440 ]

6. Eclipse插件

Subclipse: http://subclipse.tigris.org/update_1.6.x
Metrics: http://metrics.sourceforge.net/update

7. apache开启rewrite

sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/

8. Ubuntu主题

(1) Macbuntu http://gnome-look.org/content/show.php/Macbuntu?content=129021
(2) Elegant Gnome Pack

sudo add-apt-repository ppa:elegant-gnome/ppa
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install elegant-gnome

9. 其他软件

项目管理工具planner [apt-get]
截图工具shutter [apt-get]
快捷启动gnome-do [apt-get]
快捷启动docky [ http://wiki.go-docky.com/index.php?title=Main_Page ]
软件管理ailurus [ http://code.google.com/p/ailurus/ ]
软件管理ubuntu-tweak [ http://ubuntu-tweak.com/ ]
系统优化bleachbit [ http://bleachbit.sourceforge.net/download ]

13 comments to Ubuntu 10.04 速配指南

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

*