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月前
|
Ubuntu Linux
任何Ubuntu用户都应安装的四大Linux应用程序
当然,这款程序不需要太多介绍。我们面对的是网上最庞大最完整的多媒体中心,由于丰富的插件,我们能够高度细化地定制其每一项功能。这是我们的Linux发行版不可或缺的必备软件。 我们可以通过运行以下命令来轻松安装Kodi:sudo apt install kodi。
|
26天前
|
缓存 监控 Linux
Linux系统清理缓存(buff/cache)的有效方法。
总结而言,在大多数情形下你不必担心Linux中buffer与cache占用过多内存在影响到其他程序运行;因为当程序请求更多内存在没有足够可用资源时,Linux会自行调整其占有量。只有当你明确知道当前环境与需求并希望立即回收这部分资源给即将运行重负载任务之前才考虑上述方法去主动干预。
363 10
|
22天前
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
1月前
|
安全 Ubuntu Linux
如何安装Linux操作系统?
此时,您可以选择重新启动计算机,然后从硬盘上的Linux系统启动。以上是一个大致的安装过程。请注意,不同的Linux发行版可能会在细节上有所差异,因此在进行安装之前,请确保您阅读并理解了相应发行版的安装指南或文档。
|
1月前
|
Ubuntu Linux 数据安全/隐私保护
Win10安装Linux子系统教程!如何在Win10系统中安装Ubuntu!
登录系统后,输入cd /返回上一级,然后再输入“ls”查看一下系统文件目录,看看对不对!
|
1月前
|
Ubuntu Linux Shell
手把手教你安装适用于Linux的Windows子系统——Ubuntu
重启完成,你看看重新打开Ubuntu是不是发生了变化,等待几分钟,系统配置完成,根据提示设置用户名和密码即可
|
编解码 并行计算 Linux
LINUX下,ffmpeg增加NVIDIA硬件编解码的步骤及解决办法
LINUX下,ffmpeg增加NVIDIA硬件编解码的步骤及解决办法
766 0
|
2月前
|
监控 Linux 网络安全
Linux命令大全:从入门到精通
日常使用的linux命令整理
619 13
|
3月前
|
Linux 网络安全 数据安全/隐私保护
使用Linux系统的mount命令挂载远程服务器的文件夹。
如此一来,你就完成了一次从你的Linux发车站到远程服务器文件夹的有趣旅行。在这个技术之旅中,你既探索了新地方,也学到了如何桥接不同系统之间的距离。
441 21
|
3月前
|
JSON 自然语言处理 Linux
linux命令—tree
tree是一款强大的Linux命令行工具,用于以树状结构递归展示目录和文件,直观呈现层级关系。支持多种功能,如过滤、排序、权限显示及格式化输出等。安装方法因系统而异常用场景包括:基础用法(显示当前或指定目录结构)、核心参数应用(如层级控制-L、隐藏文件显示-a、完整路径输出-f)以及进阶操作(如磁盘空间分析--du、结合grep过滤内容、生成JSON格式列表-J等)。此外,还可生成网站目录结构图并导出为HTML文件。注意事项:使用Tab键补全路径避免错误;超大目录建议限制遍历层数;脚本中推荐禁用统计信息以优化性能。更多详情可查阅手册mantree。
linux命令—tree