码迷,mamicode.com
首页 > 其他好文 > 详细

驅 動 的 升 級

时间:2015-02-09 18:42:13      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:驅 動 的 升 級

驅 動 的 升 級

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, <e1000-devel@lists.sourceforge.net>

                   

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, <e1000-devel@lists.sourceforge.net>


10、驗證成功


版本號有所變化

本文出自 “橋葰嬜旊” 博客,谢绝转载!

驅 動 的 升 級

标签:驅 動 的 升 級

原文地址:http://1224560433.blog.51cto.com/9867297/1613065

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!