Welcome 微信登录

首页 / 操作系统 / Linux / RHEL6上安装Nvidia显卡驱动

一:下载nvidia显卡驱动,从nvidia的官方网站根据显卡的型号下载相应的驱动文件
http://www.nvidia.cn/Download/index.aspx?lang=cn二:在字符界面下(运行级3)运行驱动安装程序,在RHEL6上因为Nouveau的关系会出现下面的错误,因此需要将该模块禁用掉
[root@rhel6 ~]# sh NVIDIA-Linux-x86_64-275.09.07.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 275.09.07....................................................................................................................
Please read the following LICENSE and then select either "Accept" to accept the license and continue with the installation, or select "Do Not Accept" to abort the installation.   Accept                     Do Not Accept ERROR: The Nouveau kernel driver is currently in use by your system.  This driver is incompatible with the NVIDIA driver, and must bedisabled before proceeding.  Please consult the NVIDIA driver README and your Linux distribution"s documentation for details on how to correctly disable the Nouveau kernel driver.
 
[root@rhel6 ~]# lsmod  |grep nouveau
nouveau               537914  1
ttm                    46942  1 nouveau
drm_kms_helper         32113  1 nouveau
drm                   200778  3 nouveau,ttm,drm_kms_helper
i2c_algo_bit            5664  1 nouveau
video                  20966  1 nouveau
i2c_core               31274  5 i2c_nforce2,nouveau,drm_kms_helper,drm,i2c_algo_bit将该模块加入黑名单:
[root@rhel6 ~]# tail -1 /etc/modprobe.d/blacklist.conf
blacklist nouveau备份原先的初始化内存文件系统
[root@rhel6 ~]# mv /boot/initramfs-2.6.32-71.el6.x86_64.img  /boot/initramfs-2.6.32-71.el6.x86_64.img.orig使用dracut命令重新生成initramfs文件,并重启
[root@rhel6 ~]# dracut -v /boot/initramfs-2.6.32-71.el6.x86_64.img  2.6.32-71.el6.x86_64
[root@rhel6 ~]# reboot重启后发现该模块依然被加载
[root@rhel6 ~]# lsmod |grep nouveau
nouveau               537914  1
ttm                    46942  1 nouveau
drm_kms_helper         32113  1 nouveau
drm                   200778  3 nouveau,ttm,drm_kms_helper
i2c_algo_bit            5664  1 nouveau
video                  20966  1 nouveau
powernow_k8            16298  0
freq_table              4847  2 cpufreq_ondemand,powernow_k8
i2c_core               31274  5 nouveau,drm_kms_helper,drm,i2c_algo_bit,i2c_nforce2在grub.conf文件中将改模块加入黑名单
[root@rhel6 ~]# grep -1 default  /etc/grub.conf
rdblacklist=nouveau
default=1
timeout=1
将nouveau.ko内核对象文件移除
[root@rhel6 ~]# mv /lib/modules/2.6.32-71.el6.x86_64/kernel/drivers/gpu/drm/nouveau/nouveau.ko  /tmp重启后发现该模块以及没有被加载了
[root@rhel6 ~]# reboot
[root@rhel6 ~]# lsmod |grep no
powernow_k8            16298  0
freq_table              4847  2 cpufreq_ondemand,powernow_k8接下来就可以在字符界面一路回车将显卡驱动装好了,但移除nouveau.ko文件后,RHEL6启动界面将会变成进度条形式,原来的光圈启动将会消失!三:测试如何在RHEL6上搞定音乐和视频播放Linux下编辑生成.mo文件及SecureCRT接收传送文件的方法相关资讯      RHEL  RHEL6 
  • Red Hat Enterprise Linux 7.2 发  (11/20/2015 13:39:31)
  • 在VMware中安装RHEL6.2(下)——   (01/07/2015 12:24:47)
  • 红帽企业 Linux (RHEL) 7.1 Beta   (12/12/2014 09:44:13)
  • 在 RHEL6 上安装 Java  (02/05/2015 13:44:10)
  • 使用Windows 2003 Server R2给RHEL  (01/03/2015 09:14:16)
  • Red Hat Enterprise Linux 6.6 正  (10/15/2014 08:05:33)
本文评论 查看全部评论 (1)
表情: 姓名: 字数


评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中