Jump to content

Installing latest NVIDIA Drivers [solved]


JohnathanAmber
 Share

Recommended Posts

Hey guys,

 

I need to know how to install the latest NVIDIA drivers (190.53) without using the System > Administration > Install & Remove Software GUI utility.

 

I've already downloaded the file:

NVIDIA-Linux-x86_64-190.53-pkg2.run

 

The reason I am asking is that I do not believe that they are installed properly.

 

For instance, with other versions of Linux distros (i.e. Ubuntu, etc), when I make the background of the CLI transparent, I could see other windows behind it, right now I see a degraded copy of the background pictures that I currently have. Not to mention that it is choppy if I move the window around.

 

Another thing is that with the background that I have, the gradients to other colors isn't smooth, you see layers.

 

I have tried switching to the CLI:

Alt+F7

 

Logged in.

 

SU (switching user to ROOT)

<entered root password>

 

Navigating to the directory with the NVIDIA-Linux-x86_64-190.53-pkg2.run file.

 

Executed:

sh NVIDIA-Linux-x86_64-190.53-pkg2.run

 

I do get the NVIDIA screen, however all of the spaces and formatting is incorrect.

 

So, how do I install the latest version of the NVIDIA drivers?

 

Thank you and God bless,

Johnathan

Edited by JohnathanAmber
Link to comment
Share on other sites

The above method is more or less correct, but after installing the nvidia driver you must reconfigure your video settings. With Mandriva you can always use the video control module of "mcc", but the simplest method is opening a root console and typing in

#nvidia-xconfig --composite

and then restart the x-server.

You can do more customization, but usually this is enough to have 3D and composite effects running.

Link to comment
Share on other sites

@scarecrow,

 

Thank you for the reply.

 

I opened a console and tried the command, and I get 'command not found'

 

I would have expected another response other than 'command not found' if it is installed correctly.

 

Please forgive me for not finishing my original post.

 

Once I get the NVIDIA screen with the unformatted text, it won't let me finish the install.

 

I get an error. I will have to rerun it again to post the error

 

Will do shortly.

 

Thank you and God bless,

Johnathan

Link to comment
Share on other sites

You opened a console but you did not go to root.

Type in su then press enter and type in your root password, press enter, then type in the nvidia-xconfig --composite, press enter again.

 

Cheers and welcome to MUB. John.

Link to comment
Share on other sites

Normally, if the driver is properly installed, and tried to run the above command with non-root priviledges, you should get an error like "unable to write to file blabla" and not "command not found".

What do you get if you run in a console (not necessarily root that time)

$ which nvidia-xconfig

If the driver installation was OK< then nvidia-xconfig should be either at /usr/bin or /usr/local/bin (it depends on the distro).

Edited by scarecrow
Link to comment
Share on other sites

Normally, if the driver is properly installed, and tried to run the above command with non-root priviledges, you should get an error like "unable to write to file blabla" and not "command not found".

What do you get if you run in a console (not necessarily root that time)

$ which nvidia-xconfig

If the driver installation was OK< then nvidia-xconfig should be either at /usr/bin or /usr/local/bin (it depends on the distro).

 

OK, here is the error that I have now:

ERROR: The kernel header file

'/lib/modules/2.6.31.6-desktop-1mnb/build/include/linux/version.h' does

not exist. The most likely reason for this is that the kernel source

files in '/lib/modules/2.6.31.6-desktop-1mnb/build' have not been

configured.

 

And when I run the above command I get:

which: no nvidia-xconfig in (/usr/share/colorgcc:/usr/share/colorgcc:/usr/share/colorgcc:/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/home/johnathan/bin)

Edited by JohnathanAmber
Link to comment
Share on other sites

You need to install (from mcc) the kernel source which matches the kernel you have installed. See this thread:

 

https://mandrivausers.org/index.php?/topic/32376-nvidia-geforce-mx440/page__p__238887__hl__kernel%20header__fromsearch__1entry238887

 

I did install the kernel source. Here is the results:

$ rpm -qa | grep kernel

kernel-firmware-20090604-4mnb2

virtualbox-kernel-desktop-latest-3.0.8-1.20091209.1mdv2010.0

nvidia-current-kernel-desktop-latest-185.18.36-1.20091209.4mdv2010.0

kernel-desktop-2.6.31.6-1mnb-1-1mnb2

kernel-firmware-extra-20090723-1mnb2

kernel-source-2.6.31.6-1mnb-1-1mnb2

kernel-desktop-latest-2.6.31.6-1mnb2

virtualbox-kernel-2.6.31.5-desktop-1mnb-3.0.8-1mdv2010.0

kernel-desktop-2.6.31.5-1mnb-1-1mnb2

virtualbox-kernel-2.6.31.6-desktop-1mnb-3.0.8-1mdv2010.0

kernel-source-latest-2.6.31.6-1mnb2

nvidia-current-kernel-2.6.31.6-desktop-1mnb-185.18.36-4mdv2010.0

 

The above was installed prior to me rerunning the driver.

Link to comment
Share on other sites

You need a kernel and kernel and a kernel-devel packages that match. Here is what I have on my Mandriva 2008.1 system:

 

kernel-desktop-2.6.24.7-3mnb

kernel-desktop-devel-2.6.24.7-3mnb

kernel-headers

 

Note that the number 2.6.24.7 appears in both, hence the match.

 

@daniewicz,

 

Do these not match? Am I missing something?

 

kernel-desktop-2.6.31.6-1mnb-1-1mnb2

kernel-source-2.6.31.6-1mnb-1-1mnb2

kernel-desktop-latest-2.6.31.6-1mnb2

kernel-source-latest-2.6.31.6-1mnb2

 

So all I am missing is the kernel-devel?

Link to comment
Share on other sites

OK, I have this now:

 

kernel-2.6.31.6-1mnb-1-1mnb2

kernel-source-2.6.31.6-1mnb-1-1mnb2

 

kernel-desktop-2.6.31.5-1mnb-1-1mnb2

kernel-desktop-2.6.31.6-1mnb-1-1mnb2

kernel-desktop-devel-2.6.31.6-1mnb-1-1mnb2

 

kernel-desktop-latest-2.6.31.6-1mnb2

kernel-desktop-devel-latest-2.6.31.6-1mnb2

kernel-source-latest-2.6.31.6-1mnb2

 

So I assume that I will use the following?

 

kernel-desktop-latest-2.6.31.6-1mnb2

kernel-desktop-devel-latest-2.6.31.6-1mnb2

kernel-source-latest-2.6.31.6-1mnb2

Link to comment
Share on other sites

Do these not match? Am I missing something?

 

Yes they match. My comment was regarding the mixing of 2.6.31.5 and 2.6.31.6 in an earlier post.

 

 

So I assume that I will use the following?

 

kernel-desktop-latest-2.6.31.6-1mnb2

kernel-desktop-devel-latest-2.6.31.6-1mnb2

kernel-source-latest-2.6.31.6-1mnb2

 

I am uncertain about the use of kernel packages with latest in them (only because my installed packages don't have those words).

Link to comment
Share on other sites

The packages ending with "latest" are not real packages- just metapackages, which fetch the newest existing real packages as a dependency. You will see that they are smaller than 200K each.

 

You need just

kernel-desktop-latest

kernel-desktop-devel-latest

 

The third package (kernel-source-latest) is for rolling your own kernel, yoy will not need it for compiling kernel modules.

After installing these two packages, then first exit the x-server completely ( telinit 3 in a root console), and then do again the "sh NVID*.run" thingy. If asked about header places and such, leave the defaults in place.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...