驅 動 的 升 級
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倉庫,並掛載光盤
[root@localhost RPMS]# mount -oloop /root/olinux_x64.iso /mnt
[root@localhost RPMS]# cd /etc/yum.repos.d/
[root@localhost RPMS]# mv public-yum-ol6.repo /root
[root@localhost RPMS]# cp /root/public-yum-ol6.repo /etc/yum.repos.d/
[root@localhost 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 (輸入密碼)
[root@localhost 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數據庫
[root@localhost 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)
[root@localhost 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
[root@localhost 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、最後驗證是否升級成功
[root@localhost RPMS]# lsmod
[root@localhost 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、驗證成功
版本號有所變化