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
sudomv/boot/initramfs(uname -r).img /boot/initramfs-(unamer).img.baktheinitramfsfile sudo dracut -v /boot/initramfs-(unamer).img(uname -r)
3) 重启系统至文本模式,init 3 这个可以修改/etc/inittab 文件 init 3是文本模式,

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

4)检查nouveau driver确保没有被加载!
lsmod|grepnouveau5) 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,如需转载请自行联系原作者


目录
打赏
0
0
0
0
347
分享
相关文章
|
11天前
|
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
75 25
PCIe 以太网芯片 RTL8125B 的 spec 和 Linux driver 分析备忘
本文详细介绍了 Realtek RTL8125B PCIe 以太网芯片的规格以及在 Linux 中的驱动安装和配置方法。通过深入分析驱动源码,可以更好地理解其工作原理和优化方法。在实际应用中,合理配置和优化驱动程序可以显著提升网络性能和稳定性。希望本文能帮助您更好地使用和管理 RTL8125B,以满足各种网络应用需求。
77 33
|
27天前
|
Linux 安装 Qualcomm ® SnapdragonTM Profiler
通过本文的详细介绍,您应该已经成功在 Linux 系统上安装并配置了 Qualcomm® Snapdragon™ Profiler,并能够连接 Android 设备进行性能分析。Snapdragon Profiler 提供了丰富的工具和功能,可以帮助开发者深入了解应用程序的性能瓶颈,从而进行优化。希望本文能对您有所帮助,让您在开发过程中更高效地使用 Snapdragon Profiler 进行性能分析和优化。
67 10
|
1月前
|
Linux安装svn并启动
Linux安装svn并启动
56 10
os-copilot在Alibaba Cloud Linux镜像下的安装与功能测试
我顺利使用了OS Copilot的 -t -f 功能,我的疑惑是在换行的时候就直接进行提问了,每次只能写一个问题,没法连续换行更有逻辑的输入问题。 我认为 -t 管道 功能有用 ,能解决环境问题的连续性操作。 我认为 -f 管道 功能有用 ,可以单独创建可连续性提问的task问题。 我认为 | 对文件直接理解在新的服务器理解有很大的帮助。 此外,我还有建议 可以在非 co 的环境下也能进行连续性的提问。
81 7
linux8安装oracle 11g遇到的问题记录
Oracle 11g在Linux 8上安装时会遇到link编译环节的问题。官方建议忽略安装中的链接错误,安装完成后应用DBPSU 11.2.0.4.240716补丁及一次性补丁33991024,再重新编译二进制文件,并配置监听器和数据库。但因11g已退出服务期,这些补丁需付费获取。网上信息显示22年1月的PSU补丁也可解决问题,找到该补丁后按常规方式打补丁即可。如有需求或疑问可咨询我。
89 20
|
9天前
|
Linux查看内存命令
1. free free命令是最常用的查看内存使用情况的命令。它显示系统的总内存、已使用内存、空闲内存和交换内存的总量。 free -h • -h 选项:以易读的格式(如GB、MB)显示内存大小。 输出示例: total used free shared buff/cache available Mem: 15Gi 4.7Gi 4.1Gi 288Mi 6.6Gi 9.9Gi Swap: 2.0Gi 0B 2.0Gi • to
23 2
|
24天前
|
Linux系统之whereis命令的基本使用
Linux系统之whereis命令的基本使用
59 23
Linux系统之whereis命令的基本使用
深入解析:Linux网络配置工具ifconfig与ip命令的全面对比
虽然 `ifconfig`作为一个经典的网络配置工具,简单易用,但其功能已经不能满足现代网络配置的需求。相比之下,`ip`命令不仅功能全面,而且提供了一致且简洁的语法,适用于各种网络配置场景。因此,在实际使用中,推荐逐步过渡到 `ip`命令,以更好地适应现代网络管理需求。
51 11
|
3月前
|
linux查看目录下的文件夹命令,find查找某个目录,但是不包括这个目录本身?
通过本文的介绍,您应该对如何在 Linux 系统中查看目录下的文件夹以及使用 `find` 命令查找特定目录内容并排除该目录本身有了清晰的理解。掌握这些命令和技巧,可以大大提高日常文件管理和查找操作的效率。 在实际应用中,灵活使用这些命令和参数,可以帮助您快速定位和管理文件和目录,满足各种复杂的文件系统操作需求。
186 8
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等