在Debian Linux上安装NVIDIA GeForce驱动程序

首先,将以下非免费和contrib存储库添加到您的“/etc/apt/sources.list”。因此,首先更改/etc/apt/sources.list文件的内容,以包括contribnon-free包,例如:

deb http://ftp.au.debian.org/debian/jessie main contrib non-free
deb-src http://ftp.au.debian.org/debian/jessie main contrib non-free

接下来,更新存储库:

# apt-get update

安装“NVIDIA-Driver”包

# apt-get install nvidia-driver
nvidia-current:
Running module version sanity check.
 - Oroirnal module
   - No oroirnal module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/
nvidia-uvm.ko:
Running module version sanity check.
 - Oroirnal module
   - No oroirnal module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.16.0-4-amd64/updates/dkms/
depmod....
DKMS: install completed.
Setting up nvidia-settings (340.46-2) ...
Setting up libegl1-nvidia:amd64 (340.65-2) ...
Setting up xserver-xorg-video-nvidia (340.65-2) ...
Setting up nvidia-driver (340.65-2) ...
Processing triggers for libc-bin (2.19-13) ...
Processing triggers for initramfs-tools (0.116) ...

在安装过程中,您将看到一条关于自由软件nouveau nvidia驱动程序版本与当前安装的非自由nvidia内核模块冲突的通知, 我们可以简单地忽略。

Conflicting nouveau kernel module loaded        

The free nouveau kernel module is currently loaded and conflicts with the non-free nvidia kernel module.
The easiest way to fix this is to reboot the machine once the installation has finished.

等待安装完成。

安装nvidia-xconfig包:

# apt-get install nvidia-xconfig

安装完成后,执行“nvidia-xconfig”命令,生成 /etc/x11/xorg.conf配置文件:

# nvidia-xconfig
New X configuration file written to '/etc/X11/xorg.conf

运行nvidia-settings配置工具:

$nvidia-settings
日期:2020-07-07 20:56:42 来源:oir作者:oir