Help - Search - Members - Calendar
Full Version: Installing Nvidia Drivers in Linux
GeekNewz Community > Computers > Operating Systems > Linux/Unix
actz
Ok well I downloaded the latest Nvidia drivers: NVIDIA-Linux-x86-1.0-5336-pkg1.run

Now this is what I did > log out
> su root
> cd to location
> sh NVIDIA-Linux-x86-1.0-5336-pkg1.run

It starts up installation I accept the first screen then it says it cant find kernel so i said look for it or whatever then i get the Error: Installation failed Unable to find the kernel source tree ....

Any ideas on what i'm doing wrong?
.::PHPfanatic::.
Mandrake?
For this you'll have to pop in the cd and search for kernel-headers and kernel-source. I've not used Linux very frequently but I have had problems like this before. There should also be an installation method which you can access through the "start menu".

E:\Mandrake\RPMS\kernel-source-2.4.18-6mdk.i586.rpm
E:\Mandrake\RPMS\kernel-headers-2.4.18-25mdk.i586.rpm


I believe kernel-headers is a prerequisite of kernel-source but I'm not sure. Try installing only source first.
actz
yeah i have them installed thanks for pointing me in the right direction ... now at the end of the installation it says update your XF86Config file?
.::PHPfanatic::.
Phew I found it by searching Google for NVIDIA-Linux-x86-1.0-5336-pkg1.run documentation

QUOTE
(sec-03) EDITING YOUR XF86CONFIG FILE
__________________________________________________________________________

When XFree86 4.0 was released, it used a slightly different XF86Config
file syntax than the 3.x series did, and so to allow both 3.x and 4.x
versions of XFree86 to co-exist on the same system, it was decided that
XFree86 4.x was to use the configuration file "/etc/X11/XF86Config-4"
if it existed, and only if that file did not exist would the file
"/etc/X11/XF86Config" be used (actually, that is an over-simplification
of the search criteria; please see the XF86Config man page for a complete
description of the search path).  Please make sure you know what
configuration file XFree86 is using.  If you are in doubt, look for a
line beginning with "(==) Using config file:" in your XFree86 log file
("/var/log/XFree86.0.log").  This README will use "XF86Config" to refer
to your configuration file, whatever it is named.

If you do not have a working XF86Config file, there are several ways
to start: there is a sample config file that comes with XFree86,
and there is a sample config file included with the NVIDIA driver
package (it gets installed in /usr/share/doc/NVIDIA_GLX-1.0/).
You could also use a program like 'xf86config'; some distributions
provide their own tool for generating an XF86Config file.  For more
on XF86Config file syntax, please refer to the man page.

If you already have an XF86Config file working with a different driver
(such as the 'nv' or 'vesa' driver), then all you need to do is find
the relevant Device section and replace the line:

    Driver "nv"
    (or Driver "vesa")


with

    Driver "nvidia"


In the Module section, make sure you have:

    Load  "glx"


You should also remove the following lines:
     
    Load  "dri"
    Load  "GLcore"


if they exist.  There are also numerous options that can be added to
the XF86Config file to fine-tune the NVIDIA XFree86 driver.  Please see
Appendix D for a complete list of these options.

Once you have configured your XF86Config file, you are ready to restart
X and begin using the accelerated OpenGL libraries.  After you restart X,
you should be able to run any OpenGL application and it will automatically
use the new NVIDIA libraries.  If you encounter any problems, please
see the FREQUENTLY ASKED QUESTIONS section below.
http://public.www.planetmirror.com/pub/nvidia/XFree86_40/1.0-5336/README
Troa34
edit your XF86Config-4 file

use vi
type vi XF86Config-4
change where it says nv to nvidia
and remove any references to

load dri
and
load glcore

oh whoops ph beat me to it, oh well, mines a little more cut down.
.::PHPfanatic::.
Yes, thanks for a summary, troa.
Have you committed this to memory? hehe
Troa34
no, I have a bunch of stuff written down though, just had to look through it real quick. I have a few notebooks with a bunch of commands and crap written down for each distro I've used.
actz
well i changed file and now when i startx the computer hang every time when loading KDE i do get nvidia splash screen but then it seems to just hang sad.gif
actz
yeah just seems to hang without responding but the mouse still moves around... I actually didnt have to remove either glcore or dri, I couldnt find either in the file is that normal? anyways just a quick question how do i edit it from root coz i did it logged in as root using KDE interface.
.::PHPfanatic::.
Or, you know, you could use Emacs.
Deftone
i tried looking for latest drivers @ nvidia.com site but only found for other things instead of x86 drivers>

any clue if those found at the site would work?
Troa34
http://download.nvidia.com/XFree86/Linux-x...0-5336-pkg1.run

Make sure you have the kernel sources install off of cd3
su root
init 3
sh NVIDIA-Linux-x86-1.0-5336-pkg1.run
when it asks to download precompiled kernel choose no
back at prompt chmod u+x
Deftone
is there a way to install it out of the root directory?
Troa34
su root just means switch user to root and no, there isnt.
Deftone
alright thnx i figured it out..just need to install the kernel sources though
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.