Page 1 of 8 123 ... LastLast
Results 1 to 10 of 73

Thread: HOWTO: NVIDIA driver with Breezy kernels in Hoary

  1. #1
    Join Date
    May 2005
    Location
    Lecce, Italy
    Beans
    6,168
    Distro
    Ubuntu

    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:
    http://www.ubuntuforums.org/showthre...light=xlibmesa

    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.

    Alberto

    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)
    http://www.nvidia.com/object/unix.html

    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 NVIDIA-Linux-x86_64-1.0-7667-pkg2.run
    Otherwise if you have Ubuntu 32 bit type:
    sudo sh NVIDIA-Linux-x86-1.0-7667-pkg2.run

    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)

    Enjoy!
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    NOTES SECTION

    * 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 NVIDIA-Linux-x86_64-1.0-7667-pkg1.run.

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

    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
    http://www.ubuntuforums.org/showthre...5&page=1&pp=10

    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:

    CC=gcc-3.3
    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:
    Code:

    which gcc


    which returned:
    Code:

    /usr/bin/gcc


    then I made a symbolic link to gcc called cc so programs trying to use 'cc' would get gcc, with this code:
    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”


    EndSection


    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)
    http://www.nvnews.net/vbulletin/forumdisplay.php?f=14

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

  2. #2
    Join Date
    Jul 2005
    Location
    37-59'34'' N/121-41'43''W
    Beans
    146
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    This works great. Getting the corect version of gcc is the key. When you run the Nvidia installer, if it fails because of your version of gcc, it will tell you what version of gcc you need based on what your kernel is compiled with. Make sure to get gcc-X.X and not just gcc-X.X- base.

    AMD Sempron 3000
    1Gig DDR400 RAM
    128 Meg Nvidia Video Card
    Ubuntu Linux 5.10 Colony 2
    2.6.12-6-386 kernel

  3. #3
    Join Date
    Feb 2005
    Location
    Cincinnati, OH, USA
    Beans
    145
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    I run into issues doing this where the nvidia installer complains about the locations for the kernel source and kernel headers. Where did you have these installed to and what parameters did you pass to the installer package to get a successful compile?
    "If the real Jesus Christ were to stand up today
    He'd be gunned down cold by the CIA"

    - Armageddon Days are Here Again - The The

  4. #4
    Join Date
    May 2005
    Location
    Lecce, Italy
    Beans
    6,168
    Distro
    Ubuntu

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    Quote Originally Posted by grendelkhan
    I run into issues doing this where the nvidia installer complains about the locations for the kernel source and kernel headers. Where did you have these installed to and what parameters did you pass to the installer package to get a successful compile?
    Please post the output of the error of the installer after you try ton install the driver.

    You can find it under /var/log the name of the log file contains the word "nvidia"

  5. #5
    Join Date
    Sep 2005
    Location
    UK
    Beans
    81
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    Ive had the same problem about the locations for the kernel source and kernel headers. After accepting the agreement and something to do with runlevels.

    the log:

    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Wed Sep 7 12:07:34 2005

    option status:
    license pre-accepted : false
    update : false
    force update : false
    expert : false
    uninstall : false
    driver info : false
    no precompiled interface: false
    no ncurses color : false
    query latest driver ver : false
    OpenGL header files : true
    no questions : false
    silent : 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
    force tls : (not specified)
    force compat32 tls : (not specified)
    X install prefix : /usr/X11R6
    OpenGL install prefix : /usr
    compat32 install prefix : (not specified)
    installer install prefix: /usr
    utility install prefix : /usr
    kernel name : (not specified)
    kernel include path : (not specified)
    kernel source path : (not specified)
    kernel output path : (not specified)
    kernel install path : (not specified)
    proc mount point : /proc
    ui : (not specified)
    tmpdir : /tmp
    ftp mirror : ftp://download.nvidia.com
    RPM file list : (not specified)

    Using: nvidia-installer ncurses user interface
    WARNING: Skipping the runlevel check (the utility `runlevel` failed to run).
    -> License accepted.
    -> No precompiled kernel interface was found to match your kernel; would you li
    ke the installer to attempt to download a kernel interface for your kernel f
    rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
    -> No matching precompiled kernel interface was found on the NVIDIA ftp site;
    this means that the installer will need to compile a kernel interface for
    your kernel.
    ERROR: Unable to find the kernel source tree for the currently running kernel.
    Please make sure you have installed the kernel source files for your
    kernel; on Red Hat Linux systems, for example, be sure you have the
    'kernel-source' rpm installed. If you know the correct kernel source
    files are installed, you may specify the kernel source path with the
    '--kernel-source-path' commandline option.
    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.



    please help

  6. #6
    Join Date
    May 2005
    Location
    Lecce, Italy
    Beans
    6,168
    Distro
    Ubuntu

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    install linux tree in synaptic and make sure you also have kernel headers installed.

  7. #7
    Join Date
    Jan 2005
    Beans
    222

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    Hi, and thanks for the quick guide.

    I'm having some trouble. First I installed gcc-3.4 and it's base with synaptec. I used ctrl+alt+F1 and then did a login as normal user. I stopped gdm with /etc/init.d/gdm stop and then set cc=gcc-3.4 which is what the nvidia installer claims my kernel (2.6.12-8-k7-smp) was compiled with. Then I did export cc and then went to the NVIDIA installer and ran it with sudo sh NVIDIA-blah-blah. The installer still claims that my compiler is set to 4.0.

    What am I missing?

    Edit: Oh, silly me. I forgot to capitalize CC! It wasn't setting the proper variable without the 'cc' being in caps. Oh well, live and learnux linux.

    Also, why does the driver version 7676 not work? Why are we forced to use the *OLDER* 7667? Hmmm?
    Last edited by Arktis; September 9th, 2005 at 04:31 AM.
    ...

  8. #8
    Join Date
    May 2005
    Location
    Lecce, Italy
    Beans
    6,168
    Distro
    Ubuntu

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    Quote Originally Posted by Arktis
    Also, why does the driver version 7676 not work? Why are we forced to use the *OLDER* 7667? Hmmm?
    Because if you go to nvidia forums you can see all the problems they cause. There's no improvement if you don't have a Geforce 7800.

  9. #9
    Join Date
    Sep 2005
    Beans
    22

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    i have been trying to get the nvidia drivers installed correctly for a couple days now. i just found the nvidia driver install guide, which says that i need to exit Xserver and reset default run level...how do i do this??

  10. #10
    Join Date
    May 2005
    Location
    Lecce, Italy
    Beans
    6,168
    Distro
    Ubuntu

    Re: HOWTO: NVIDIA driver with Breezy kernels in Hoary

    Quote Originally Posted by h0tpants
    i have been trying to get the nvidia drivers installed correctly for a couple days now. i just found the nvidia driver install guide, which says that i need to exit Xserver and reset default run level...how do i do this??
    It suggests to do something about "init3" and "init5": this means the computer will boot without starting the graphical interface (GNOME or KDE). I used that method on PCLinuxOS.

    BUT

    In Ubuntu (it's written in my guide) you can disable the graphical interface temporarly by doing (when you are using the graphical interface):

    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) (this will stop the graphical interface) (THERE'S NO NEED TO USE INIT3!)

    AND

    PLEASE, follow EVERY step of the guide.

Page 1 of 8 123 ... LastLast

Bookmarks

Posting Permissions

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