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,如需转载请自行联系原作者


相关文章
|
7月前
|
Ubuntu Linux
计算机基础知识:linux系统怎么安装?
在虚拟机软件中创建一个新的虚拟机,并选择相应操作系统类型和硬盘空间大小等参数。将下载的 ISO 镜像文件加载到虚拟机中。启动虚拟机,进入安装界面,并按照步骤进行安装。安装完成后,可以在虚拟机中使用 Linux 系统。
|
5月前
|
安全 Linux iOS开发
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
379 6
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
|
5月前
|
消息中间件 Kafka Linux
Linux下安装Kafka 3.9.1
本文介绍Kafka 3.9.1版本的安装与配置,包括通过ZooKeeper或KRaft模式启动Kafka。涵盖环境变量设置、日志路径修改、集群UUID生成、存储格式化及服务启停操作,适用于Linux环境下的部署实践。
646 0
|
7月前
|
网络协议 关系型数据库 Linux
【App Service Linux】在Linux App Service中安装 tcpdump 并抓取网络包
在App Service for Linux环境中,无法像Windows一样直接使用网络排查工具抓包。本文介绍了如何通过TCPDUMP在Linux环境下抓取网络包,包括SSH进入容器、安装tcpdump、执行抓包命令及下载分析文件的完整操作步骤。
369 5
|
7月前
|
缓存 监控 Linux
Linux系统清理缓存(buff/cache)的有效方法。
总结而言,在大多数情形下你不必担心Linux中buffer与cache占用过多内存在影响到其他程序运行;因为当程序请求更多内存在没有足够可用资源时,Linux会自行调整其占有量。只有当你明确知道当前环境与需求并希望立即回收这部分资源给即将运行重负载任务之前才考虑上述方法去主动干预。
2040 10
|
7月前
|
弹性计算 安全 Linux
阿里云服务器ECS安装宝塔Linux面板、安装网站(新手图文教程)
本教程详解如何在阿里云服务器上安装宝塔Linux面板,涵盖ECS服务器手动安装步骤,包括系统准备、远程连接、安装命令执行、端口开放及LNMP环境部署,手把手引导用户快速搭建网站环境。
|
NoSQL Java Linux
linux 安装 neo4j简介
Neo4j是高性能NoSQL图形数据库,利用图结构存储数据。推荐使用JDK 11配合Neo4j 3.x版本。下载3.5.9版,通过`curl`命令在Linux上获取tar.gz文件,然后解压。配置`neo4j.conf`,调整内存设置,开启远程访问。执行`./bin/neo4j start`启动,通过`http://服务器IP:7474`访问,默认凭据是username: neo4j, password: neo4j,登录后应更改密码。
2034 1
|
存储 缓存 Ubuntu
【嵌入式开发】 Linux Kernel 下载 配置 编译 安装 及 驱动简介(二)
【嵌入式开发】 Linux Kernel 下载 配置 编译 安装 及 驱动简介(二)
425 0
|
Ubuntu 安全 Unix
【嵌入式开发】 Linux Kernel 下载 配置 编译 安装 及 驱动简介(一)
【嵌入式开发】 Linux Kernel 下载 配置 编译 安装 及 驱动简介(一)
505 0