Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Guide] Installing Linux NVidia Propriatory Drivers in Ubuntu
New Posts  All Forums:Forum Nav:

[Guide] Installing Linux NVidia Propriatory Drivers in Ubuntu

post #1 of 22
Thread Starter 
Just a quick guide to install the NVIDIA drivers on Linux. I poked around and had to compile this guide from a variety of sources. I was chasing my own tail some points but this method has worked for me on many distro's of Ubuntu across versions.

Download the drivers: ftp://download.nvidia.com/XFree86/ or from the official site: http://www.nvidia.com/Download/index.aspx? and save them somewhere handy. I left them in the Downloads folder for the purposes of this guide. Also, take note of the version you're using and replace that in the lines where I use 295.33 and also make note of the x86 or x86_64 version you're using and amend that in what you type for this guide.

Protip: type "sudo su" at the beginning of this guide to avoid inputting your password or typing sudo on each command wink.gif

Installing
  1. First we're going to blacklist some nouveau drivers that Linux reverts to after you uninstall the old NV drivers from the repos.

    Open a terminal and do this:
    Code:
    sudo gedit /etc/modprobe.d/blacklist.conf
    

    Use whatever text editor you like, doesn't have to be gedit I just like it!

    Add to the bottom of that file:
    Code:
    blacklist nouveau
    

    Save, close.

  2. Now we need to make the .run file we downloaded an executable. You can rightclick on it and do this or do it via the CLI:

    Code:
    cd Downloads
    sudo chmod +x NVIDIA-Linux-x86_64-295.33.run
    


  3. Now we need to uninstall all old NV drivers, do this:

    Code:
    sudo apt-get remove --purge nvidia*
    

    That should remove all the older versions you may have installed. Usually just 173, but there could be more. The * wildcard ensures we get them all. If we don't there will be problems.


  4. Now we need to stop the Desktop Environment from running

    Code:
    sudo service XXX stop
    

    Choose whichever you are using and replace XXX with that. For example: gdm = Gnome, kdm = KDE, lightdm = XFCE. stock Ubuntu/Unity and lxdm = LXDE

    So, to stop Ubuntu (vanilla using Unity) you would type this:
    Code:
    sudo service lightdm stop
    

    Ok...

    You will be taken to a black screen with a terminal


  5. Log in using your details, Ok, now type this:

    Code:
    cd Downloads
    
    sudo sh ./NVIDIA-Linux-x86_64-295.33.run
    


  6. Follow the the instructions given and then reboot by typing

    Code:
    sudo reboot
    

    You should now have the newest drivers installed!



If something went wrong

Ubuntu will freeze during the boot process and seemingly be doing nothing. Fear not, press CTRL+ALT+F2 and log in. Now type:
Code:
cd Downloads
sudo sh ./NVIDIA-Linux-x86_64-295.33.run --uninstall

sudo apt-get install nvidia-current

startx

That should get you back to the desktop wink.gif


If anything is amiss here please let me know as I'm just a n00b myself at Linux redface.gif I'll amend the guide to be correct.
Edited by Rubers - 5/5/12 at 3:16am
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
post #2 of 22
Just in case anyone is using Redhat 6.1 or 6.2 and installing OS through PXE with NVIDIA gpu installed

add this into your kickstart file at the end of kernel parameter:

rdblacklist=nouveau nouveau.nomodeset=0




hth
Edited by dhenzjhen - 5/1/12 at 11:37am
Athena
(14 items)
 
Achilles
(9 items)
 
 
CPUMotherboardGraphicsHard Drive
[Intel] i5 2500k  [ASUS] p8p67 Evo B3 [EVGA] GTX 680 [Samsung] 1TB 
CoolingOSMonitorKeyboard
[Noctua] NH-D14 [Micro$oft] Win7 64-bit/Linux [HP] 2311x [Logitech] G510 
PowerCaseMouse
[XFX] 650W [Cooler Master] HAF X [Logitech] G400 
CPUMotherboardGraphicsRAM
990X 6.5Ghz EVGA X58 3 way SLI classified XFX GT 240/modded 8800GTS/8800GTX/5870/4980/FIR... Corsair Dominator PSC  
CoolingOSMonitorCase
F1 Extreme Dark, DICE and LN2!! XPeeeee and Win 7 Old CRT Open 
  hide details  
Reply
Athena
(14 items)
 
Achilles
(9 items)
 
 
CPUMotherboardGraphicsHard Drive
[Intel] i5 2500k  [ASUS] p8p67 Evo B3 [EVGA] GTX 680 [Samsung] 1TB 
CoolingOSMonitorKeyboard
[Noctua] NH-D14 [Micro$oft] Win7 64-bit/Linux [HP] 2311x [Logitech] G510 
PowerCaseMouse
[XFX] 650W [Cooler Master] HAF X [Logitech] G400 
CPUMotherboardGraphicsRAM
990X 6.5Ghz EVGA X58 3 way SLI classified XFX GT 240/modded 8800GTS/8800GTX/5870/4980/FIR... Corsair Dominator PSC  
CoolingOSMonitorCase
F1 Extreme Dark, DICE and LN2!! XPeeeee and Win 7 Old CRT Open 
  hide details  
Reply
post #3 of 22
I thought Transhour had already written a guide for this?
post #4 of 22
Thread Starter 
Quote:
Originally Posted by Shrak View Post

I thought Transhour had already written a guide for this?
I couldn't find it a back when we were sorting out some problems for that old machine I was dealing with (fairly certain you said someone had written a guide) There were about 300 pages of results for "Nvidia drivers guide".. I've done this a number of times now on a couple of machines so I figured one more wouldn't hurt!

edit:

damn, ok so I found the essential linux threads and found it here:

http://www.overclock.net/a/install-nvidia-drivers-in-ubuntu-11-04-11-10

One more won't hurt, though tongue.gif
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
post #5 of 22
You could have saved a TON of time:

sudo apt-get update

sudo apt-get install nvidia-current

Run jockey, activate, reboot, done.

I actually think upon installation of nvidia-current it activates and runs the DKMS scripts installing the driver. So you might not even need jockey.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #6 of 22
Thread Starter 
Nvidia current gives me 280 instead of 295 :/
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
post #7 of 22
I get 295.40 like the site, on both the additional repository and the official precise repository. So I don't know why you aren't getting them, maybe your using out dated repos? Idk, I used the online builder for mine because the speeds were god awful (everyone upgrading). I've just stuck with it since it maxes my crap net (350kbps).
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #8 of 22
Thread Starter 
I got 250kbs from the NV FTP. Not that there's anything wrong with the 280 drivers but this was the only way I knew of to get the latest non-canonical!
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
post #9 of 22
Quote:
Originally Posted by Shrak View Post

I thought Transhour had already written a guide for this?

 

Quote:
Originally Posted by Rubers View Post

I couldn't find it a back when we were sorting out some problems for that old machine I was dealing with (fairly certain you said someone had written a guide) There were about 300 pages of results for "Nvidia drivers guide".. I've done this a number of times now on a couple of machines so I figured one more wouldn't hurt!
edit:
damn, ok so I found the essential linux threads and found it here:
http://www.overclock.net/a/install-nvidia-drivers-in-ubuntu-11-04-11-10
One more won't hurt, though tongue.gif

 

yep wrote a guide, stuck it in articles and the linux essential thread for easy access and finding. I will verify once again that the manual method in my guide works in ubuntu 12.04, but i haven't noticed any major differences in regard to 11.10 and 12.04 in that area, so the one in this guide should work with 12.04.

 

nvidia current is up to date in 12.04, I personally only recommend installing the drivers manually from nvidia, if the one in the repo is too far out of date (which does happen) or if you run a custom kernel, or if you are just having problems with the ones in the repo's.

 

Quote:
Originally Posted by mushroomboy View Post

I get 295.40 like the site, on both the additional repository and the official precise repository. So I don't know why you aren't getting them, maybe your using out dated repos? Idk, I used the online builder for mine because the speeds were god awful (everyone upgrading). I've just stuck with it since it maxes my crap net (350kbps).

 

go to the software center  edit->software sources, click on the drop down arrow in "download from", choose other, in the new window that pops up, click on "select best server", it will take a bit, but it will find the fastest mirror from your location. once it is done, click on "choose server", it will update your sources.list, for all the ubuntu repositories to use the new mirror.

 

you can also do this in synaptic if you choose, open synaptic, click on settings->repositories, same directions as above.

 

mirror.anl.gov and mirror.steadfast.net are 2 pretty fast ones for me, i typically get max speed from both of those, even during upgrade periods cause most people don't bother switching their mirrors.


Edited by Transhour - 5/2/12 at 2:17am
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
post #10 of 22
Thread Starter 
Quote:
Originally Posted by Transhour View Post


yep wrote a guide, stuck it in articles and the linux essential thread for easy access and finding. I will verify once again that the manual method in my guide works in ubuntu 12.04, but i haven't noticed any major differences in regard to 11.10 and 12.04 in that area, so the one in this guide should work with 12.04.

nvidia current is up to date in 12.04, I personally only recommend installing the drivers manually from nvidia, if the one in the repo is too far out of date (which does happen) or if you run a custom kernel, or if you are just having problems with the ones in the repo's.


go to the software center  edit->software sources, click on the drop down arrow in "download from", choose other, in the new window that pops up, click on "select best server", it will take a bit, but it will find the fastest mirror from your location. once it is done, click on "choose server", it will update your sources.list, for all the ubuntu repositories to use the new mirror.

you can also do this in synaptic if you choose, open synaptic, click on settings->repositories, same directions as above.

mirror.anl.gov and mirror.steadfast.net are 2 pretty fast ones for me, i typically get max speed from both of those, even during upgrade periods cause most people don't bother switching their mirrors.

Yeah I got your guide in my sig too because I didn't want to appear to be stepping on toes. I'm not all that adept at Linux myself so figuring this out on my own was a great learning experience. First time I forgot to uninstall the previous drivers and xServer didn't like that lol!

Your guide should work with 12.04 no problem. It's very similar to this (I include a reboot, you just update the inits manually which doesn't require the reboot, and you uninstall the nouveau drivers, iirc) and this guide works on 12.04 LTS without a doubt as that's what I'm running right now. Your guide -> mine but that comes with experience tongue.gif
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
The Riginator
(20 items)
 
 
Wife's Rig
(5 items)
 
CPUGraphicsRAMHard Drive
Qualcomm Snapdragon S600 Adreno 330 2GB LPDDR3 NAND Storage 
Hard DriveOSMonitorKeyboard
Samsung 32GB MicroSD Android 4.4.2 KitKat 5 inch (441ppi) 1080x1920 Super AMOLED SwiftKey 
Power
2600mAh Battery 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Guide] Installing Linux NVidia Propriatory Drivers in Ubuntu