安装环境:
1、联想Thinkad E520笔记本
2、网卡RTL8188CE
3、显卡ATI6630
4、系统CentOS 6.2
5、VirtualBox 4.10
***********************************************************************************************************
转载请注明出处:http://www.cnblogs.com/zhunian/archive/2012/04/03/2430605.html
***********************************************************************************************************
一、启用sudo
1、查看sudo是否安装
rpm -qa|grep sudo
2、修改sudoers文件
在root ALL=(ALL) ALL 之后增加
zhunian ALL=(ALL) ALL
zhunian为需要启用sudo的用户名
二、配置本地光盘源
由于安装好系统,无线网卡不能驱动起来,只好先配置光盘源,安装一些依赖包,为下面编译安装无线网卡驱动做准备。
1、备份文件CentOS-Media.repo
sudo cp /etc/yum.repos.d/CentOS-Media.repo /etc/yum.repos.d/CentOS-Media.repo.bak
2、按以下内容修改文件CentOS-Media.repo
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS_6.2_Final/ #按本机光盘挂载的实际路径修改
# file:///media/cdrom/
# file:///media/cdrecorder/
gpgcheck=1
enabled=1 #值修改为1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
3、安装编译网卡所需的依赖包
sudo yum --disablerepo=\* --enablerepo=c6-media install make
sudo yum --disablerepo=\* --enablerepo=c6-media install kernel-headers
sudo yum --disablerepo=\* --enablerepo=c6-media install kernel-devel
注意:如果还缺少其它依赖包,请按提示安装。
4、下载RTL8188CE无线网卡驱动
下载地址
注意:下载Linux driver for kernel 2.6.23 (and earlier)这个驱动,另外一个驱动编译提示缺少变量。
5、解压下载的驱动,进入解压后的文件夹,编译安装驱动,然后重启
sudo make
sudo make install
sudo reboot
6、重启后进入系统就可以发现无线网卡已经驱动起来了。
三、配置yum更新源
1、备份文件CentOS-Base.repo
sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2、配置CentOS-Base.repo文件,内容如下
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
3、清理、生成本地缓存
sudo yum clean all
sudo yum makecache #将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
sudo yum install vim* #测试域名是否可用
4、开始更新系统
sudo yum update
更新系统后重启,如果内核更新了,无线网卡驱动可能用不了,按第一步重新来一便就行来。
四、安装显卡驱动
1、下载ATI 6630官方比源驱动
wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-3-x86.x86_64.run
2、从run文件提取deb安装包
sudo ./amd-driver-installer-12-1-x86.x86_64.run --buildpkg RedHat/RHEL6
注意:可以用以下命令查看驱动支持的系统
sudo ./amd-driver-installer-12-1-x86.x86_64.run --listpkg
3、安装驱动
sudo rpm -ivh fglrx_p_i_c-8.93-1.i386.rpm
4、生成配置文件,重启
sudo aticonfig --initial -f
sudo reboot
五、清理升级后的旧内核
1、列出系统中正在使用的内核
uname -a
2、查询系统中的全部内核
rpm -qa | grep kernel
3、删除旧内核
sudo yum remove kernel-2.6.32-220.el6.i686
sudo yum remove kernel-devel-2.6.32-220.el6.i686
4、重启
六、自动登录
主要是修改 /etc/gdm/custom.conf ,添加AutomaticLogin和TimedLogin 重启即可
# GDM configuration storage
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=zhunian
TimedLoginEnable=true
TimedLogin=zhunian
TimedLoginDelay=7
[security]
AllowRoot=false
[xdmcp]
[greeter]
DefaultWelcome=false
Welcome=Wait seconds...
Logo=/usr/share/pixmaps/faces/penguin.jpg
[chooser]
[debug]
[server-Chooser]
name=Chooser server
command=/usr/bin/Xorg -audit 0
chooser=false
handled=true
flexible=false
priority=0
七、安装Flash插件
1、下载flashplayer11_rc1_install_lin_64_090611.tar.gz解压
下载地址:http://labs.adobe.com/downloads/flashplayer10_square.html
解压出来得到一个名叫:libflashplayer.so的文件,还有一个user的文件夹。
2、解压出来的libflashplayer.so文件拷贝到/usr/lib/firefox-3.6
3、然后执行下列命令,重启浏览器
ln/usr/lib/firefox-3.6/libflashplayer.so/usr/lib/mozilla/plugins/libflashplayer.so
注:可以直接下载安装文件“http://get.adobe.com/flashplayer/”
八、挂载NTFS
1、下载rpmforge的rpm文件包
sudo wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.i686.rpm
2、安装rpmforge的rpm文件包
sudo rpm -ivh rpmforge-release-0.5.2-1.el6.rf.i686.rpm
3、装ntfs-3g
sudo yum install fuse-ntfs-3g
成功后你会发现已经可以挂载NTFS了