热门标签 | HotTags
当前位置:  开发笔记 > 前端 > 正文

Ubuntu8.04中安装nVidia新版显卡驱动

环境:Ubuntu8.04AMD64,nvidia-glx-new显示驱动目标:安装nvidia新版驱动173.14.05。步骤:1.下载驱动包:http://www.nvidia.com/object/linux_display_amd64_173.14.05.html,下载的文件存盘备用。2.完全删除原驱动,包括Ubuntu自带的nv驱动和nvidia-glx-new

环境:Ubuntu 8.04 AMD64,nvidia-glx-new显示驱动

目标:安装nvidia新版驱动173.14.05。

步骤:

1. 下载驱动包:
http://www.nvidia.com/object/linux_display_amd64_173.14.05.html,下载的文件存盘备用。

2. 完全删除原驱动,包括Ubuntu自带的nv驱动和nvidia-glx-new驱动:
此步骤非常重要。参考英文如下。

If you wish to install the NVIDIA Linux graphics driver on a Fedora Core 6, Fedora 7/9 or RHEL5 system, please ensure that your system meets the following requirements:

* the latest update kernel is installed and in use
* a kernel-devel RPM is installed that corresponds to the kernel that is in use. Note, FC6 has a known bug which occasionally installs a kernel-devel RPM that is a different arch than the kernel (i586 & i686 mixed). See:
https://bugzilla.RedHat.com/bugzilla....cgi?id=211941
* the pkgconfig and xorg-x11-server-sdk RPMs are installed (only applies to FC6)
* Xen kernels are not currently supported

The items above can be addressed with the following commands (they need to be run as root):
# yum install kernel-devel xorg-x11-server-sdk pkgconfig
# yum update
# reboot

If you are using an SMP (multi-CPU and/or multi-core) enabled system in FC5(only), please replace kernel-devel with kernel-smp-devel in the command above.

The SELinux requirement can be addressed via two mechanisms after the NVIDIA Linux graphics driver has been installed:

1) If you do not wish to use SELinux enforcement, you can disable it by running the `setenforce 0` command before starting X, or by adding selinux=0 to the end of the kernel line in /etc/grub.conf and rebooting.

2) If you wish to use SELinux enforcement, you will need to change the security context of the NVIDIA X driver module and of the server-side NVIDIA GLX extension module. To achieve this, please run the commands listed for your platform below:

Linux/x86 (32-bit):
# chcon -t texrel_shlib_t /usr/lib/xorg/modules/drivers/nvidia_drv.so
# chcon -t texrel_shlib_t /usr/lib/xorg/modules/extensions/libglx.so.1.0.9631
# chcon -t texrel_shlib_t /usr/lib/tls/libnvidia-tls.so.1
# chcon -t texrel_shlib_t /usr/lib/libGLcore.so.1.0.9631

Linux/x86-64 (64-bit):
# chcon -t texrel_shlib_t /usr/lib64/xorg/modules/drivers/nvidia_drv.so
# chcon -t texrel_shlib_t /usr/lib64/xorg/modules/extensions/libglx.so.1.0.9631
# chcon -t texrel_shlib_t /usr/lib64/libGLcore.so.1.0.9631
# chcon -t texrel_shlib_t /usr/lib64/tls/libnvidia-tls.so.1


Debian GNU/Linux or [K]Ubuntu with Xorg 7.x

If you wish to install the NVIDIA Linux graphics driver on a Debian GNU/Linux or Ubuntu system that ships with Xorg 7.x, please ensure that your system meets the following requirements:

* development tools like make and gcc are installed
* the linux-headers package matching the installed Linux kernel is installed
* the pkg-config and xserver-xorg-dev packages are installed
* the nvidia-glx package has been uninstalled with the --purge option and the files /etc/init.d/nvidia-glx and /etc/init.d/nvidia-kernel do not exist
If you use Ubuntu, please also ensure that the linux-restricted-modules or linux-restricted-modules-common packages have been uninstalled. Alternatively, you can edit the /etc/default/linux-restricted-modules or /etc/default/linux-restricted-modules-common configuration file and disable the NVIDIA linux-restricted kernel modules (nvidia, nvidia_legacy) via:

DISABLED_MODULES="nv nvidia_new"
Additionally, delete the following file if it exists:
/lib/linux-restricted-modules/.nvidia_new_installed
Please note: unfortunately, it has become difficult to keep track of the pre-/post-installation steps required for [K]Ubuntu, and the above instructions may be incomplete. If in doubt, it is recommended that you use your distributor's NVIDIA Linux graphics driver packages, exclusively.

3. 重新启动,并关闭xserver:
关闭xserver命令(gnome):
sudo /etc/init.d/gdm stop

4. 安装驱动:
sudo sh ./NVIDIA-Linux-x86_64-173.14.05-pkg2.run

5. 启动xserver:
sudo /etc/init.d/gdm start

6. 调整分辨率:
如果启动后显示分辨率不正常,需要修改xorg.conf。
cd /etc/X11
sudo cp xorg.conf xorg.conf.mybackup
sudo vi /etc/X11/xorg.conf

确认Device里面的Driver一项定义是"nvidia;
删除Monitor定义里面的Modeline一行;
Screen里面Modes一行改为
Modes "nvidia-auto-select"

修改后重新启动xserver。Ctrl-Alt-Backspace。

7. 调整个人分辨率配置:
如果登录界面分辨率正常,但用户登录后变为低分辨率,需要在个人选项里面调整:
System -> Preferences -> Screen Resolutions

8. 显示驱动细节调整:
sudo nvidia-settings

必须用root权限运行,否则配置无法保存到xorg.conf里面。

搞定。

PS,新驱动比Ubuntu自带的nvidia-glx-new显示效果强太多了,画面变得通透,没了雾蒙蒙的感觉。

原创:Coffee & Beer


推荐阅读
  • 如何将CentOS8转换为CentOSStream
    CentOS Stream是一个持续交付的Linux发行版,它在RHEL之前处于领先地位。它将具有滚动发布,即不断进行更改。CentOS将成为一个上游版本,它将具有测试补丁和更新。 ... [详细]
  • 在Docker中,将主机目录挂载到容器中作为volume使用时,常常会遇到文件权限问题。这是因为容器内外的UID不同所导致的。本文介绍了解决这个问题的方法,包括使用gosu和suexec工具以及在Dockerfile中配置volume的权限。通过这些方法,可以避免在使用Docker时出现无写权限的情况。 ... [详细]
  • Webmin远程命令执行漏洞复现及防护方法
    本文介绍了Webmin远程命令执行漏洞CVE-2019-15107的漏洞详情和复现方法,同时提供了防护方法。漏洞存在于Webmin的找回密码页面中,攻击者无需权限即可注入命令并执行任意系统命令。文章还提供了相关参考链接和搭建靶场的步骤。此外,还指出了参考链接中的数据包不准确的问题,并解释了漏洞触发的条件。最后,给出了防护方法以避免受到该漏洞的攻击。 ... [详细]
  • Ubuntu 9.04中安装谷歌Chromium浏览器及使用体验[图文]
    nsitionalENhttp:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd ... [详细]
  • imx6ull开发板驱动MT7601U无线网卡的方法和步骤详解
    本文详细介绍了在imx6ull开发板上驱动MT7601U无线网卡的方法和步骤。首先介绍了开发环境和硬件平台,然后说明了MT7601U驱动已经集成在linux内核的linux-4.x.x/drivers/net/wireless/mediatek/mt7601u文件中。接着介绍了移植mt7601u驱动的过程,包括编译内核和配置设备驱动。最后,列举了关键词和相关信息供读者参考。 ... [详细]
  • Linuxchmod目录权限命令图文详解在Linux文件系统模型中,每个文件都有一组9个权限位用来控制谁能够读写和执行该文件的内容。对于目录来说,执行位的作用是控制能否进入或者通过 ... [详细]
  • 本文介绍了数据库的存储结构及其重要性,强调了关系数据库范例中将逻辑存储与物理存储分开的必要性。通过逻辑结构和物理结构的分离,可以实现对物理存储的重新组织和数据库的迁移,而应用程序不会察觉到任何更改。文章还展示了Oracle数据库的逻辑结构和物理结构,并介绍了表空间的概念和作用。 ... [详细]
  • Linux磁盘的分区、格式化的观察和操作步骤
    本文介绍了如何观察Linux磁盘的分区状态,使用lsblk命令列出系统上的所有磁盘列表,并解释了列表中各个字段的含义。同时,还介绍了使用parted命令列出磁盘的分区表类型和分区信息的方法。在进行磁盘分区操作时,根据分区表类型选择使用fdisk或gdisk命令,并提供了具体的分区步骤。通过本文,读者可以了解到Linux磁盘分区和格式化的基本知识和操作步骤。 ... [详细]
  • 2016 linux发行版排行_灵越7590 安装 linux (manjarognome)
    RT之前做了一次灵越7590黑苹果炒作业的文章,希望能够分享给更多不想折腾的人。kawauso:教你如何给灵越7590黑苹果抄作业​zhuanlan.z ... [详细]
  • CentOS7.8下编译muduo库找不到Boost库报错的解决方法
    本文介绍了在CentOS7.8下编译muduo库时出现找不到Boost库报错的问题,并提供了解决方法。文章详细介绍了从Github上下载muduo和muduo-tutorial源代码的步骤,并指导如何编译muduo库。最后,作者提供了陈硕老师的Github链接和muduo库的简介。 ... [详细]
  • 本文介绍了在Ubuntu系统中清理残余配置文件和无用内容的方法,包括清理残余配置文件、清理下载缓存包、清理不再需要的包、清理无用的语言文件和清理无用的翻译内容。通过这些清理操作可以节省硬盘空间,提高系统的运行效率。 ... [详细]
  • systemd-nspawn可以创建最轻量级的容器(ns的意思就是namespace),本文的实验平台是Ubuntu16.04,x86_64机器。本文的目的是:在Ubuntu中用syst ... [详细]
  • Linux神奇漏洞:长按回车键70秒 即可轻松拿到Root权限
    一般来说获取系统root权限是很困难的,尤其是加密系统中,但西班牙安全研究员hectormarco、ismaelripoll发现,linux系统下只需按住回车键70秒钟,就能轻 ... [详细]
  • docker安装到基本使用
    记录docker概念,安装及入门日常使用Docker安装查看官方文档,在"Debian上安装Docker",其他平台在"这里查 ... [详细]
  • python3.7 安装pip3_python3的pip3安装
    ---恢复内容开始---pip3的安装需要对应一整套python的编译工具库,所以安装好的pip3是这个样子:inearAi:~$pip3-Vpi ... [详细]
author-avatar
George_唐晓龙
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有