第一步:升级
打开终端
cp /etc/yum.repos.d/CentOS-Base.repo CentOS-Base.repo.bak

# vi /etc/yum.repos.d/CentOS-Base.repo
用下面的这段话替换掉原来的(我的这个是电信源)
[base]
name=CentOS-5 - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[update]
name=CentOS-5 - Updates
baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
baseurl=http://centos.ustc.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages in testing
[testing]
name=CentOS-5 - Testing
baseurl=http://centos.ustc.edu.cn/centos/5/testing/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


保存文件

#yum  upgrade

第二步 安装显卡驱动
1.在终端里面
#yum install kernel-devel
#yum install kernel-headers
#yum install kernel
#yum install gcc


第三步:flash插件
下载flash http://fpdownload.macromedia.com...ayer_9_linux.tar.gz
解压tar -zxvf install_flash_player_9_linux.tar.gz

在应用程序-添加/删除软件中 安装
nspluginwrapper-i386-0.9.91.5-1.x86_64.rpm
nspluginwrapper-0.9.91.5-1.x86_64.rpm
记好要先安装i386这个包啊~

接下来
#ln -s /usr/lib/nspluginwrapper/noarch/npviewer /usr/bin/npviewer


#sh /etc/sysconfig/nspluginwrapper -v -i /home/live/install_flash_player_9_linux/libflashplayer.so

#cp /home/live/install_flash_player_9_linux/libflashplayer.so /usr/lib/mozilla/plugins


# sh /etc/sysconfig/nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so(绝对路径)

#sh /etc/sysconfig/nspluginwrapper -l