Remove nouveau and install nvidia Driver in Debian 8
September 16, 2015 in O.S.
Install Nvidia Drivers in in Debian 8
Lets remove first everything that point to any existing nvidia installation.
open a terminal and type:
sudo apt-get remove nvidia*
sudo apt-get autoremove
update and download a few tools that we will need:
sudo apt-get update
sudo apt-get install dkms build-essential linux-headers-$(uname -r)
This part is optional but its is recommended:
Install 32 bit support:
dpkg –add-architecture i386
sudo apt-get update
sudo apt-get install lib32z1 lib32ncurses5
sudo apt-get update
Now its time to blacklist the nouveau driver.
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
and add the following lines:
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
Pages: 1 2
Wow, this was the bes tutorial I’ve followed during my failed attempts to install this *****’ driver
Thank you so much!
Excelent post! Worked perfectly for me!
Not just excellent. This is the only way I’ve found to do this job for Jessie. All the other methods I’ve seen on the web don’t work at all!
Thanks! This was perfect.
You are amazing <3
Super thx You Sir 🙂
Will this cause any problems if I have to upgrade the kernel? If so, how do I proceed?
am install everything perfect but at least when i reboot my pc desktop is black how to start xfce desktop ???
sudo: ./: command not found
What do I do?
This is actually not working for me. After following all the steps (multiple times now), I end up rebooting and getting a black screen and a blinking cursor. I can still go into the terminal by pressing Ctrl + Alt + F1.
This actually happens only when I run “sudo nvidia-xconfig”. If I remove the xorg.conf file, my graphics kind of work, but I get GLX problems “Xlib: extension “GLX” missing on display “:0.0″”
Any ideas?
+ete I installed Jessie on a P4 box with nvidia GeForce 5200 graphics card… as far as I know, there is no driver for that card. After “installing” Jessie, the screen would always be blank so the only way to get the system to do anything was to do it using ctrl+alt+f1.
The drivers in Jessie do not support the older nvidia cards and nvidia no longer supports it. So I changed back to wheezy.
This tutorial is fantastic!! I’ve been fighting with this for days, but thanks to you I now have working drivers!!
Excellent instructions. I have been running around trying to get the display work with nvidia drivers without success. I have GTX970 card along with an Intel display built into the motherboard. Just followed steps as mentioned and got it running.
And I am using Debian 8.6 (Jessie) with i7
I did everything but after rebooting i see” oh no! Something has gone wrong ” what should i do?
Simply the best tutorial I’ve red in the last couple years. GREAT!
Yeah, no workee for me either. Using debian 8. Errors due to gcc versions, building. I’ve been battling the black window with cursor problem for several days now.
Thank you veeeeeryyyyyyyyyyy much!!!!!
I am trying to get this to work on a 32bit jessie. when I try to install lib32z1 and lib32ncurses5 the response is unable to locate packages. what am I doing wrong?
[…] nVidia drivers In the end I had to entirely remove the nvidia-related packages that came from Debian, then download and run the installer from the nVidia website. I spent a bunch of time trying to avoid this since it shouldn’t be necessary, but in the end it was the approach that finally worked. I used this page: http://www.allaboutlinux.eu/remove-nouveau-and-install-nvidia-driver-in-debian-8/ […]
Thanks for this interesting post. Before going through the pain of all this I just tried to remove the nouveau driver by simply running the nvidia install script with the –disable-nouveau:
Worked like a charm.
Just FYI, here is an extract from the nvidia-installer man page:
-Z, –disable-nouveau
If the nouveau kernel module is detected by nvidia-installer, the installer offers to attempt to disable nouveau. The default action is to not attempt to disable nouveau; use this option to change the default action to attempt to disable nouveau.
The blog removed my tags so here is the full command to install the nvidia driver AND disable the nouveau: # NVIDIA-Linux-x86_64-xxx.xx.run –disable-nouveau
Hello, wondering if you’ve yet written on this process for Stretch. I know it’s still testing, but nvidia-driver package is available in jessie-backports so I’m guessing the stretch package is okay as well (they are based on the same version last I checked). Cannot get either proprietary or stretch non-free installs to work. Let me know if you have some insight for me, if you would. Otherwise hopefully it’ll be stable upon Stretch’s release in a couple months. Thanks!
Sir, you truly are a benefactor. Worked like charm in Debian 9.
I can’t thank you enough for this… THANKS! I was going insane trying to install the proprietary drivers by following the Debian Wiki steps…
Worked fine, on Debian 9
But if you can edit, but DONT run “nvidia-xconfig”
If you run your system not boot anymore, because newer xorg don’t need it.
Nice Tutorial
GT 740 EVGA SC 1GB
Thank you very much. This guide made my day.
Awesome tutorial! Worked like a god damned charm on Debian Jessie
You sir/madam are the only real deal person that I ran across in 5 days of fussing and fighting to make my debian 8 make use of downloaded nvidia drivers! I tip my hat to you and bow! Thank you ever so much! There are so many out there just publishing total junk on the Internet about this subject. Thank you very very much!
This tutorial also works for Debian 9 Stretch. With one exception, in my case, kdm was not the display manager. SDDM is. SO at the point of Stop Server X, use SDDM instead of the example gdm3.
Thank you very very much!
Used nvidia driver version 375.66 for both of my other comments direct from Nvidia driver downloads.
works on debian 9 ?
Thank you very much for this tutorial. I have spent a lot of time on this one!
Excellent! Thank you
Perfectly working on Parrot 4.1 / MSI GP60 2PE leopard.
I Just add ./NVIDIA* –disable-nouveau for working.
But it’s perfect , Thanks you !
Thank you very much (used with Debian 9). I should have had that earlier 😉
[…] Thanks to allaboutlinux.eu for they article: link […]
It’s working on debian 10. thx
So much thanks!!