驅 動 的 升 級
1、vi /etc/selinux/config (SElinux是Linux安全加强工具)
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
chkconfig NetworkManager off
chkconfig network on
2、vi /boot/grub/menu.lst
(menu.lst有时候也叫grub.conf,但是/boot/grub/下会有一个名叫menu.lst的符号链接指向它。它是grub引导系统的配置文件。)
3、(從光盤拷貝ISO鏡像)
dd if=/dev/cdrom of=/root/olinux_x64.iso
拷貝光盤數據到root文件夾下,并保存為olinux_x64.iso文件
4、配置yum倉庫,并掛載光盤
[[email protected] RPMS]# mount -oloop /root/olinux_x64.iso /mnt
[[email protected] RPMS]# cd /etc/yum.repos.d/
[[email protected] RPMS]# mv public-yum-ol6.repo /root
[[email protected] RPMS]# cp /root/public-yum-ol6.repo /etc/yum.repos.d/
[[email protected] RPMS]# vi /etc/yum.repos.d/public-yum-ol6.repo
[public_ol6_latest]
name=Oracle Linux
baseurl=file:///mnt
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=0
enabled=1
5、關閉不需要的服務
chkconfig iptables off
chkconfig ip6tables off
chkconfig kdump off
chkconfig bluetooth off
chkconfig iscsi off
chkconfig iscsid off
chkconfig kdump off
6、配置vnnserver服務
yum install tigervnc-server
password (輸入密碼)
[[email protected] RPMS]# vi /etc/sysconfig/vncservers
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1366x768"
chkconfig vncserver on
service vncserver restart
netstat -an | grep 5902
7、lspci命令解说:该命令能列出机器中的PCI设备信息,如声卡,显卡,Modem,网卡等信息,主板集成设备的信息也能列出来,lspci读取的是hwdata数据库
[[email protected] RPMS]# lspci | grep Eth (查看網卡的信息)
02:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
02:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
02:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
02:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
[[email protected] RPMS]# lsmod | grep igb (查看驅動)
igb 199530 0
dca 7101 1 igb
i2c_algo_bit 5711 1 igb
i2c_core 29964 3 i2c_i801,igb,i2c_algo_bit
ptp 9614 1 igb
[[email protected] RPMS]# modinfo igb (查看驅動的信息)
filename: /lib/modules/2.6.32-504.el6.x86_64/kernel/drivers/net/igb/igb.ko
version: 5.0.15
license: GPL
description: Intel(R) Gigabit Ethernet Network Driver
author: Intel Corporation, <[email protected]>
8、下載驅動包
https://downloadcenter.intel.com/SearchResult.aspx?lang=zho&ProdId=3356
tar zxvf igb-5.2.15.tar.gz
cd igb-5.2.15
cp igb-5.2.15.tar.gz /root/rpmbuild/SOURCES
rpmbuild -ba igb.sepc
rpmbuild常用参数:-bb 只编译二进制rpm包 -bs 只编译源码rpm包 -ba 同时编译二进制和源码rpm包
cd /root/rpmbuild/RPMS/
cd x86_64/
rpm -ivh igb-5.2.15.x86_64.rpm
9、最後驗證是否升級成功
[[email protected] RPMS]# lsmod
[[email protected] RPMS]# modinfo igb (查看驅動的信息)
filename: /lib/modules/2.6.32-504.el6.x86_64/kernel/drivers/net/igb/igb.ko
version: 5.2.15
license: GPL
description: Intel(R) Gigabit Ethernet Network Driver
author: Intel Corporation, <[email protected]>
10、驗證成功
版本號有所變化