Install Nvidia Driver in Debian Squeeze

Argomento trattato in tutte le salse sul web , ma che ancora oggi fa dannare pochi sventurati .

Più che altro una raccolta di appunti per x86 , che il tempo mi ha lasciato e ora voglio rimettere insieme .

Cosa sono i driver Nvidia ?  Sono driver propietari che vengono distribuiti con una licenza

By downloading, installing, copying, or otherwise using the SOFTWARE, you agree to be bound by the terms of this LICENSE. If you do not agree to the terms of this LICENSE, do not download the SOFTWARE.

Ora se vi siete messi la coscienza a posto , possiamo continuare . Info sulla scheda video :

$ lspci |grep VGA
03:00.0 VGA compatible controller: nVidia Corporation G73 [GeForce 7600 GS] (rev a2)

Grazie a queste info ci è possibile scaricare il driver corretto da QUI .

Se proveniamo da i driver da repository , occorre rimuovere prima tutto per non creare confusione .

Nel caso sia una nuova installazione , è necessario installare gli headers del kernel in uso  .

$ uname -r
2.6.32-5-686

dall’output del comando precedentemente mostrato , otterremo la versione del kernel in uso , installare gli headers con le relative dipendenze .

# aptitude install linux-headers-`uname -r`

Se si installa per la prima volta su un kernel 2.6.32-5 o superiore , fate attenzione ai Nouveau .

Non vi permetteranno di terminare l’installazione dei driver , e come consigliato da Nvidia .

dal file /usr/share/doc/NVIDIA_GLX-1.0/readme.txt

Q. How do I prevent Nouveau from loading and performing a kernel modeset?

A. A simple way to prevent Nouveau from loading and performing a kernel
modeset is to add configuration directives for the module loader to a file
in ‘/etc/modprobe.d/’. These configuration directives can technically be
added to any file in ‘/etc/modprobe.d/’, but many of the existing files in
that directory are provided and maintained by your distributor, which may
from time to time provide updated configuration files which could conflict
with your changes. Therefore, it is recommended to create a new file, for
example, ‘/etc/modprobe.d/disable-nouveau.conf’, rather than editing one of
the existing files, such as the popular ‘/etc/modprobe.d/blacklist.conf’.
Note that some module loaders will only look for configuration directives
in files whose names end with ‘.conf’, so if you are creating a new file,
make sure its name ends with ‘.conf’.

Whether you choose to create a new file or edit an existing one, the
following two lines will need to be added:

blacklist nouveau
options nouveau modeset=0

The first line will prevent Nouveau’s kernel module from loading
automatically at boot. It will not prevent manual loading of the module,
and it will not prevent the X server from loading the kernel module; see
“How do I prevent the X server from loading Nouveau?” below. The second
line will prevent Nouveau from doing a kernel modeset. Without the kernel
modeset, it is possible to unload Nouveau’s kernel module, in the event
that it is accidentally or intentionally loaded.

You will need to reboot your system after adding these configuration
directives in order for them to take effect.

Dopo aver blacklistato Nouveau , riavviamo la macchina .

Come ultima cosa prima di cominciare l’installazione  dobbiamo uccidere X , spostiamoci con la combinazione ctrl+alt+F1 in tty1 .

#/etc/init.d/kdm stop

a seconda del gestore , potremmo dover usare gdm o gdm3 al posto di kdm .

Potrebbero esserci errori riguardo la versione del compilatore utilizzata  .

Consiglio di verificare la versione  utilizzata dal kernel prima di installare i driver :

# grep -oE 'gcc version....' /proc/version
gcc version 4.3

Nel caso sia differente da quella utilizzata dal driver nvidia come nel mio output , occorrerà far precedere il comando di installazione da alcune indicazioni .

Spostiamoci nella directory dove abbiamo scaricato il driver

# cd /dir/dove/sono/i_driver

eseguiamo l’installer inserendo anche la versione di gcc da utilizzare :

# CC=/usr/bin/gcc-4.3 sh NVIDIA-Linux-x86-256.53.run

Seguiamo ora i semplici passi che ci farà percorrere l’installer , leggendo con attenzione .

Per maggiori info sul tuning consiglio la lettura del file  /usr/share/doc/NVIDIA_GLX-1.0/readme.txt

Se l’installazione è andata a buon fine , sarà ora di riavviare X impartendo il comando

#/etc/init.d/kdm start

Siete ora pronti a godere delle migliori prestazioni video offerte per linux sulla vostra scheda video Nvidia .

Per visualizzare la GUI dei driver eseguire il comando :

$ nvidia-settings

Happy 3D 😉

5 risposte a “Install Nvidia Driver in Debian Squeeze”

  1. Per 64bit ottony propone il suo script :

    #!/bin/bash

    ##script Eseguibile x 64Bit
    CC=/usr/bin/gcc-4.3 ./NVIDIA-Linux-x86_64-256.53.run --compat32-prefix=/usr --compat32-libdir=lib32

    exit 0

  2. È preferibile installare i driver nVidia tramite l’installer scaricato dal sito ufficiale o tramite i pacchetti disponibili nei repository Debian?

  3. preferisco la versione .run a quella pacchettizzata solo perchè esce prima .
    se la versione di driver è la stessa , non dovrebbero esserci differenze .
    ma hoibò non ho mai provato quello pacchettizzato .

Rispondi

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.