ubuntu 9.04 安装配置优化全记录

2009-05-09 xiao H Posted in 日常桌面

正如我常说的,生命在于折腾!今天又耐不住EXT4 的诱惑,在网吧的专机上装上了ubuntu 9.04,这里记录我的ubuntu 9.04 安装配置和优化。

网络安装ubuntu 9.04
鉴于我是在网吧装的系统,网络环境非常好,并且mirrors.163.com 已经有了 ubuntu 9.04 的源,所以网络安装对我来说是最合适的了。
下载:http://mirrors.163.com/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/ubuntu-installer/i386/ 目录下的initrd.gz 和linux 文件,放到一个fat32 或ext3 分区下,并在grub 中添加如下启动语句:

title Net install
root (hd0,6) 
kernel /linux
initrd /initrd.gz

文件的具体位置请根据自己的实际情况自行修正。


重启进入安装进程,安装过程和其他安装方式差不多。不过在选择安装源时要注意千万别用默认的中国官方源,而是光标一直推到顶端手动选择。然后输入
mirrors.163.com,另外还有一个选安装哪些包的,这个是按版本分的如kubuntu,xubuntu,Edubuntu … 我选的是大家最常用的ubuntu desktop,当然你时间很多并且对自己的机子有很强的控制欲,你可以选择最后一项手动选择要安装的包。

总的来说安装还是很简单的,并且也非常迅速,我的整个安装过程不到30分钟就完成了。

配置 ubuntu 9.04
不知道是网络安装还是 9.04 的缘故,安装完成后没有我以往的中文语言问题,语言包,字体,中文输入法都安装好了。另 ubuntu 9.04 的中文显示比上个版本好多了。
网络设置
奇怪的问题,安装完成后居然没有继承安装时的网络设置,还得让我手动设置,不幸的是我搞不定如何用图形工具设置网络,最后直接用了命令。

sudo su
ifconfig eth0 192.168.0.95/24
route add default gw 192.168.0.254
echo nameserver 192.168.0.254 > /etc/resolv.conf

以上行为完全是因为爱现,大家还是用图形工具吧,具体操作参看此帖:http://forum.ubuntu.org.cn/viewtopic.php?f=116&t=162159

配置安装源,因为是从163 网络安装的的所以不需要再添加163 的源只需要另行添加ubuntu-cn 源和Medibuntu源即可,同时注释掉deb-src 语句毕竟我们绝大部分时间不需要源码。
添加第三方源:

sudo echo deb http://archive.ubuntu.org.cn/ubuntu-cn/ jaunty main restricted universe multiverse >> /etc/apt/sources.list
sudo wget  http://www.medibuntu.org/sources.list.d/jaunty.list  -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

安装adobe-flashplugin for firefox

sudo wget http://ubuntu:ubuntuftp@ftp.ubuntu.org.cn/home/dbzhang800/wiki/install_flash_player_10_linux.deb
sudo dpkg -i install_flash_player_10_linux.deb

安装多媒体播放工具

sudo apt-get install libxine1-ffmpeg libxine1-all-plugins libxine1-plugins w32codecs libstdc++5
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-esd
sudo apt-get install libdvdnav4 libdvdread4 
sudo /usr/share/doc/libdvdread4/install-css.sh
sudo apt-get remove totem-mozilla -y 
sudo apt-get install smplayer smplayer-themes mozilla-mplayer libmatroska0
sudo apt-get install gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin libasound2-plugins

安装QQ for ubuntu 9.04

sudo wget http://dl_dir.qq.com/linuxqq/linuxqq_v1.0.2-beta1_i386.deb
sudo dpkg -i linuxqq_v1.0.2-beta1_i386.deb

安装“unrar、p7zip-rar、p7zip-full、cabextract

sudo apt-get install unrar p7zip-rar p7zip-full cabextract

安装并配置 vim
系统默认没装vim所以先得装上

sudo apt-get install vim

创建自己的vimrc(我的vimrc很简单只开启了最常用的一些功能做针对php 代码高亮)
vi ~/.vimrc 内容为

set nocompatible
set columns=80
set tabstop=4
set ruler
set noexpandtab
set number
set ignorecase
set wrapmargin=15
set cindent
set shiftwidth=4
syntax on
source $VIMRUNTIME/syntax/php.vim

设置命令alias简化常用命令sudo操作

vim ~/.bashrc

在该文件最后加入

alias s-apt-get=’sudo apt-getalias s-rm=’sudo rmalias s-cp=’sudo cpalias s-vi=’sudo vim

具体那些命令要做alias可以自己根据习惯设置。





标签:, , , ,

Pages: 1 2

  1. doexcel 说道:

    自从上次从8.10升级完到9.04后因为分辨率的问题无法正常进入桌面一直搁到现在都没有解决。貌似每回系统升级都是我的集显GeForce MX 440挡道。升9.04是因为传闻其开机速度会快许多,又传说EXT4文件系统性能不错,只是暂时还没有机会试用到。
    留个记号。2009年5月16日16时16分51秒

    • sila 说道:

      sudo gedit /boot/grub/grub.cfg
      spansh+ nomodeset
      sudo gedit /etc/default/grub
      quiet spansh +nomodeset
      sudo updata-grub2

      ok,done

  2. rs 说道:

    能不能详细的介绍一下
    如何做到 关闭IPv6
    以前老的关闭IPV6 的方法不能用了,所以干脆直接在启动是加入了disable_ipv6=1。把“disable_ipv6=1“ 加到要启动内核的 kernel 段。?
    这个问题一直困扰,我也是 9.04的老的方法根本不管用,谢谢了

我来说两句

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">