How to install Nvidia drivers for Debian GNU/Linux.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Oh debian didn't move it to /lib32, it's /usr/lib32... You can actually link /emul/ia32-linux/usr/lib to /usr/lib32, I've stated in previous posts about that, it also fixes the nvidia complaining problems. What I do is this:
That's a very quick and easy work around for the ia32 libs in the newer debian.
[edit]
Of course if you don't have /emul/ia32-linux/usr/lib due to a fresh install just make the directory structure '/emul/ia32-linux/usr' and then link /usr/lib32 to '/emul/ia32-linux/usr/lib'... And when you do install ia32 libs you won't have to do anything later to fix things. And if your on Lenny you can still do this, so when future updates hit and they do complete the transition you will already have everything in the proper folders! =)
Last edited by mushroomboy; 08-25-2009 at 08:03 AM.
Reason: always forgetting something
Oh debian didn't move it to /lib32, it's /usr/lib32... You can actually link /emul/ia32-linux/usr/lib to /usr/lib32, I've stated in previous posts about that, it also fixes the nvidia complaining problems. What I do is this:
Hehe no problem, the ia32 libs have given me such a headache I like to make sure people don't get the same errors I did. It almost made me want to stab people... lol
If you run i686 you should be just fine,try out the tutorial see how it works for you.
Thanks for the reply. I'll give it a roll later today. It's a 32-bit box with on-mobo Nv6150. Never has been a problem. My 64-bit box (with Nv7900GS) is down at the moment but I'll get around to it sometime.
I'll second GrapefruiTgirl: Been using Nv since I got into Linux about 2-1/2 years ago with no problems that weren't understandable.
I'll second farslayer too: Been there - done that. If you don't purge a failed install you're just chasing your tail around the parking lot.
Thanks for the reply. I'll give it a roll later today. It's a 32-bit box with on-mobo Nv6150. Never has been a problem. My 64-bit box (with Nv7900GS) is down at the moment but I'll get around to it sometime.
I'll second GrapefruiTgirl: Been using Nv since I got into Linux about 2-1/2 years ago with no problems that weren't understandable.
I'll second farslayer too: Been there - done that. If you don't purge a failed install you're just chasing your tail around the parking lot.
Cool.Seems like we're all in agreement then.
If only everything in life was so simple!
Hehe no problem, the ia32 libs have given me such a headache I like to make sure people don't get the same errors I did. It almost made me want to stab people... lol
Cool.Seems like we're all in agreement then.
If only everything in life was so simple!
Finally got around to my daughter's machine. Used the smxi script. All went well and smxi is way cool.
I'm not sure I'd recommend it to rank newbies though. It's pretty intense and might confuse the heck out of 'em.
Thanks for the tips.
Hey mods: I think Trooper deserves a "sticky". eh?
Did you folks know that techpatterns.com has a script called sgfxi that only does graphic driver installs:
cd /usr/local/bin && wget -Nc smxi.org/smxi.zip && unzip smxi.zip && sgfxi
I'm sure the smxi.zip contains sgfxi, if I'm mistaken do:
cd /usr/local/bin && wget -Nc smxi.org/sfgxi && chmod +x sgfxi && sgfxi
No need to go all the way through smxi if you only want to install graphics.
No need to go all the way through smxi if you only want to install graphics
Yes.Quite true.
If you just want to install the graphics drivers you can use sgfxi.
It may save a little time doing so.
Personally i prefer the full featured smxi,but to each his own.
I posted the smxi url,so people can read and decide for themselves.
What's wrong with simply running the nvidia installer?
The main reason why I don't use the nvidia-installer is that it only allows you to install one driver for all kernels (I like playing with upstream kernels).
Quote:
Originally Posted by the trooper
That's a good point Farslayer,i had forgotten that.
I will work that into the how-to somewhere.
Perhaps you could mention nvidia's --uninstall option as well (or just add a warning about mixing both methods).
I think we've covered that with Farslayers' suggestion to purge Debian's Nvidia packages before running the downloaded installer from Nvidia.
I've added a note about this to the how-to already.
Quote:
Perhaps you could mention nvidia's --uninstall option as well
Yes,i think this is relevant.
It's not absolutely necessary to remove an existing driver to install a more recent version.The installer will detect an existing driver and remove it as part of the process of installing the new driver.
On my own machines i use the --uninstall option first,then install the new driver.
You can also update the driver using the --update option.
The other option is --latest,i assume this installs the current beta driver.
I've not tried this myself.
I think we've covered that with Farslayers' suggestion to purge Debian's Nvidia packages before running the downloaded installer from Nvidia.
I've added a note about this to the how-to already.
Yes,i think this is relevant. It's not absolutely necessary to remove an existing driver to install a more recent version.The installer will detect an existing driver and remove it as part of the process of installing the new driver.
On my own machines i use the --uninstall option first,then install the new driver.
You can also update the driver using the --update option.
The other option is --latest,i assume this installs the current beta driver.
I've not tried this myself.
I've been trying to tell people this for years, that you don't need an uninstall... The system will overwrite the old driver files by default and make new reference links, though if a file is 'forgotten' you might have troubles but I've never ran into that. The nvidia installer is very good at removing the old drivers, as is the m-a (well because it's packaged hehe)... The only real problem might be switching from the nvidia way to the debian way, which is going from a non-packaged system to a packaged system. I've never had troubles with this so I can't say if it's even really a worry.
I just download the driver from nvidia, kill X, and install. No need for m-a prepare or anything like that, works flawlessly for me.
That's if you have the headers and build essential installed...and the other gcc stuff as well. I know for a fact that the net install of debian doesn't have the headers installed because that's what I always run. You just happen to be lucky then...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.