Results 1 to 10 of 73

Thread: HOWTO: NVIDIA driver with Breezy kernels in Hoary

Threaded View

  1. #1
    Join Date
    May 2005
    Lecce, Italy

    HOWTO: NVIDIA driver with Breezy kernels in Hoary

    If you want to install Nvidia driver with the nvidia installer (I've tried v.7667) and you use a kernel from Breezy or you compiled it from Breezy sources in Hoary, then just try this HOWTO.

    These instructions are taken from one of kleeman's posts you can find below:

    All the credits go to him. I've just made a HOWTO out of his post.
    This is the 1st time I write one. I hope it helps you.


    Make sure you graphic card is not among the ones which are NOT SUPPORTED by looking at the list you will find in the NOTES SECTION *

    Download the installer from this page according to your architecture (32bit or 64bit)

    Make sure you have the kernel headers of your current kernel installed (If not just install them).

    1) uninstall nvidia-glx (if you don't have it just go to step 2)
    2) then remove the file manually:
    sudo rm /etc/init.d/nvidia-glx
    3)the default gcc compiler needs to match the one used by the kernel (gcc-3.4 in my case) so:

    ctl-alt-f1 (so as to get to the command line)

    login with your username and password (if required)

    sudo /etc/init.d/gdm stop (or "kdm stop" if you use KDE)

    CC=gcc-3.4 (here you have to put the number of the gcc you used to compile your kernel, which is 3.4 in my case**)

    export CC

    cd “directory where you have the nvidia installer”

    If you have Ubuntu 64bit type: ***
    sudo sh
    Otherwise if you have Ubuntu 32 bit type:
    sudo sh

    If you have Ubuntu 64bit you can't install OpenGL32bit compatibility libraries, so when the installer asks whether to install it just answer no.

    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

    sudo nano /etc/X11/xorg.conf
    scroll the file down until you find the line with “Modules” and either remove the first 2 lines in red and add Load "glx" or just make it look like this:

    Section "Module"
    Load "bitmap"
    Load "dbe"
    Load "ddc"
    #Load "dri"
    #Load “GLcore”
    Load "extmod"
    Load "freetype"
    Load "glx"
    Load "int10"
    Load "record"
    Load "type1"
    Load "vbe"

    Then find the section Device and make sure the word I put in red is “nvidia”:

    Section "Device"
    Identifier "NVIDIA Corporation NV40 [GeForce 6200 TurboCache]"
    Driver "nvidia"
    BusID "PCI:1:0:0"

    CTRL+O to save (yes, use the same name and overwrite the file)
    CTRL+X to exit

    /etc/init.d/gdm start (or "kdm start" if you use KDE)



    * Below are the legacy GPUs that are no longer supported in the unified driver.
    These GPUs will continue to be maintained through the special legacy NVIDIA
    GPU driver releases.

    NVIDIA chip name Device PCI ID
    ------------------------------- -------------------------------
    RIVA TNT 0x0020
    RIVA TNT2/TNT2 Pro 0x0028
    RIVA TNT2 Ultra 0x0029
    Vanta/Vanta LT 0x002C
    RIVA TNT2 Model 64/Model 64 Pro 0x002D
    Aladdin TNT2 0x00A0
    GeForce 256 0x0100
    GeForce DDR 0x0101
    Quadro 0x0103
    GeForce2 GTS/GeForce2 Pro 0x0150
    GeForce2 Ti 0x0151
    GeForce2 Ultra 0x0152
    Quadro2 Pro 0x0153

    **If you just downloaded a kernel from Breezy repositories it is likely that you don't have the right GCC installed. So install it in synaptic (perhaps it is 3.4, you'll have to find out)

    ***the name of the installer may vary:
    e.g. it could be

    So just put the name of the installer you've downloaded from Nvidia website.

    1) If the installer reports that the “Framebuffer” kernel module conflicts with the drivers you will have to recompile your kernel and disable this function
    Here's a HOWTO for kernel compilation for newbies

    2) If the installer complains in this way (this is an example of part of the error):
    nvidia: version magic '2.6.10-5-386 preempt 386 gcc-3.4' should be
    '2.6.10-5-386 preempt 386 gcc-3.3'
    ERROR: Installation has failed. Please see the file
    '/var/log/nvidia-installer.log' for details.

    This means the installer tries to use gcc-3.4 instead of gcc-3.3(the right one).Type this before launching NVIDIA installer:

    export CC

    The number of the version of gcc has to be the same as the 2nd one reported in the error by nvidia installer (i.e. the word I put in red instead of the one I put in blue)

    then run nvidia installer again.

    3) If the installer complains in this way:
    ERROR: Unable to find the development tool `cc` in your path; please make sure
    that you have the package 'gcc' installed. If gcc is installed on your
    system, then please check that `cc` is in your PATH.

    The user Reid has suggested this solution:

    To find out where 'gcc' is located I did:

    which gcc

    which returned:


    then I made a symbolic link to gcc called cc so programs trying to use 'cc' would get gcc, with this code:

    sudo ln -s /usr/bin/gcc /usr/bin/cc

    Then try the installer again.

    4) If you have an AGP graphic card and your system freezes but you can still move the mouse pointer you will have to do this:
    sudo nano /etc/X11/xorg.conf
    Add the lines in red at this section of the file:

    Section "Device"
    Identifier "NVIDIA Corporation NV40 [GeForce 6200 TurboCache]"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "NvAGP" "0"
    Option "RenderAccel" "Off"
    Option "IgnoreDisplayDevices" "DFP,TV"
    Option "NoRenderExtension" "Off"
    Option "Accel" "Off"
    Option "AllowGLXWithComposite" “Off”


    This will either disable 3d acceleration or make it slower (sorry but I haven't got an AGP card so I haven't tried them myself)

    If this doesn't work for you try asking at this Forum and you might be talking to some of the developers of the NVIDIA drivers (there's a Linux section) (it's very useful)

    Last edited by tseliot; October 3rd, 2005 at 09:41 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts