Linux安装Nvidia显卡驱动:禁用The Nouveau kernel driver的方法!

简介:

系统:Red Hat Enterprise 6(32位)

显卡:Nvidia Gforce 7300GT

将驱动从Nvidia官网下载回来后 进入文本模式直接运行安装,发现提示如下错误:

错误日志如下:

  nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Thu Jun 16 23:35:00 2011
installer version: 275.09.07

PATH:
/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bi
n:/root/bin

option status:
  license pre-accepted : false
  update : false
  force update : false
  expert : false
  uninstall : false
  driver info : false
  precompiled interfaces : true
  no ncurses color : false
  query latest version : false
  no questions : false
  silent : false
  no recursion : false
  no backup : false
  kernel module only : false
  sanity : false
  add this kernel : false
  no runlevel check : false
  no network : false
  no ABI note : false
  no RPMs : false
  no kernel module : false
  force SELinux : default
  no X server check : false
  no cc version check : false
  run distro scripts : true
  no nouveau check : false
  run nvidia-xconfig : false
  sigwinch work around : true
  force tls : (not specified)
  X install prefix : (not specified)
  X library install path : (not specified)
  X module install path : (not specified)
  OpenGL install prefix : (not specified)
  OpenGL install libdir : (not specified)
  utility install prefix : (not specified)
  utility install libdir : (not specified)
  installer prefix : (not specified)
  doc install prefix : (not specified)
  kernel name : (not specified)
  kernel include path : (not specified)
  kernel source path : (not specified)
  kernel output path : (not specified)
  kernel install path : (not specified)
  precompiled kernel interfaces path : (not specified)
  precompiled kernel interfaces url : (not specified)
  proc mount point : /proc
  ui : (not specified)
  tmpdir : /tmp
  ftp mirror : ftp://download.nvidia.com
  RPM file list : (not specified)
  selinux chcon type : (not specified)

Using: nvidia-installer ncurses user interface
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 275.09.07.
ERROR: The Nouveau kernel driver is currently in use by your system. This
  driver is incompatible with the NVIDIA driver, and must be disabled
  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.
WARNING: The modprobe configuration file to disable Nouveau,
  /etc/modprobe.d/nvidia-installer-disable-nouveau.conf, is already
  present. Please be sure you have rebooted your system since that file
  was written. If you have rebooted, then Nouveau may be enabled for
  other reasons, such as being included in the system initial ramdisk or
  in your X configuration file. Please consult the NVIDIA driver README
  and your Linux distribution's documentation for details on how to
  correctly disable the Nouveau kernel driver.
ERROR: Installation has failed. Please see the file
  '/var/log/nvidia-installer.log' for details. You may find suggestions
  on fixing installation problems in the README available on the Linux
  driver download page at www.nvidia.com.

上面是安装显卡驱动的时候的错误提示:意思就是:

Nouveau kernel driver 这个驱动正在被系统使用,这个驱动和Nvidia驱动冲突,要想继续安装,则必须禁用此驱动!因为RHEL 6 系统默认装的显卡驱动就是Nouveau . Nouveau是一个由爱好者组织的针对NVIDIA显卡开发第三方开源3D驱动的共同项目,并且Nouveau是在完全没有得到NVIDIA任何支 持的情况下进行开发的,Nouveau算是X.Org基金会的一个项目.

解决办法如下:

也即关闭Nouveau:

1)把驱动加入黑名单中: /etc/modprobe.d/blacklist.conf  在后面加入:
blacklist nouveau
2) 使用 dracut重新建立  initramfs image file :
* 备份 the initramfs file
$ sudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
* 重新建立 the initramfs file
$ sudo dracut -v /boot/initramfs-$(uname -r).img $(uname -r)
3) 重启系统至文本模式,init 3 这个可以修改/etc/inittab 文件 init 3是文本模式,

   init 5是图形界面模式.重启之后,进入文本模式,其实可以发现字体变大了,也就是说驱动没有被加载,成功禁用了Nouveau

4)检查nouveau driver确保没有被加载!
$ lsmod | grep nouveau
5) 运行安装文件
$ sudo ./NVIDIA-Linux-x86_64-195.36.15-pkg2.run

sh NVIDIA-Linux-x86-275.09.07.run
安装过程中根据相应提示,即可完成安装.
6)重启系统,进入图形界面,即可发现出现了如下选项:

没安装之前提示就是 需要硬件3D支持!

系统-->首选项-->NVIDIA X Server Settings

至此已完成LInux下显卡驱动的安装!

Good Luck,Enjoy it !



 本文转自 w156445045 51CTO博客,原文链接:http://blog.51cto.com/enetq/591622,如需转载请自行联系原作者


相关文章
|
1天前
|
Oracle 关系型数据库 Linux
SuSE linux server 11通过SAP来安装oracle11g
SuSE linux server 11通过SAP来安装oracle11g
|
1天前
|
Linux C语言
suse linux 11 安装GCC开发环境
suse linux 11 安装GCC开发环境
|
1天前
|
Linux 网络安全
xmanager 4 连接SuSE linux server 11方法
xmanager 4 连接SuSE linux server 11方法
|
1天前
|
Linux
【Linux】命名管道的创建方法&&基于命名管道的两个进程通信的实现
【Linux】命名管道的创建方法&&基于命名管道的两个进程通信的实现
|
3天前
|
关系型数据库 MySQL Linux
在Linux系统上实现高效安装与部署环境的全方位指南
在Linux系统上实现高效安装与部署环境的全方位指南
|
3天前
|
NoSQL Linux Redis
Redis的介绍,以及Redis的安装(本机windows版,虚拟机Linux版)和Redis常用命令的介绍
Redis的介绍,以及Redis的安装(本机windows版,虚拟机Linux版)和Redis常用命令的介绍
17 0
|
3天前
|
Ubuntu 安全 Linux
linux系统详细安装过程,都在这里了
linux系统详细安装过程,都在这里了
12 0
|
3天前
|
JSON Linux 数据格式
在宝塔Linux中安装Docker
在宝塔Linux中安装Docker
|
3天前
|
运维 监控 安全
2023年最详细的:本地Linux服务器安装宝塔面板,并内网穿透实现公网远程登录
2023年最详细的:本地Linux服务器安装宝塔面板,并内网穿透实现公网远程登录
|
4天前
|
Shell Linux 编译器
C语言,Linux,静态库编写方法,makefile与shell脚本的关系。
总结:C语言在Linux上编写静态库时,通常会使用Makefile来管理编译和链接过程,以及Shell脚本来自动化构建任务。Makefile包含了编译规则和链接信息,而Shell脚本可以调用Makefile以及其他构建工具来构建项目。这种组合可以大大简化编译和构建过程,使代码更易于维护和分发。
21 5