Featured Sponsors
Related Forum Threads
- Price vs capacity vs speed: decent SSD on the cheap? Last post on 4/26/12 at 2:15pm in SSD
- XMBC NAS WEBserver FTPserver on same box Last post on 5/28/12 at 4:30pm in HTPC
- echo "The `uname` Club" Last post on 5/16/13 at 11:07am in Linux, Unix
Related Articles
-
Howto Moving Your Existing Nix Install To A New Pc Or Drive Using...
Edited on 1/12/13
- How to change the Ubuntu GUI
Edited on 9/29/12- How to install Ubuntu
Edited on 9/23/12- How To Install Archlinux The Easy Quick And Dirt Way
Edited on 5/8/13- Install and Configure a basic LAMP server in Ubuntu 11.10
Edited on 11/21/11 More ›Topics Discussed
- topicLinux Desktop
Alphabetical Article List
Install Nvidia Drivers in Ubuntu 11.04 & 11.10
By: TranshourThe Easy and Recommended way to install Nvidia Drivers in Ubuntu:
There are two ways that you can accomplish, there is the "easy way" and the "Complicated way". The easy way involves you using the drivers that Ubuntu prompts you to use when you first boot into Ubuntu, Under the "restricted" drivers or the "additional drivers" program available in settings. If you missed this at first boot, you can install the drivers thru the command line:
In Terminal Commands:sudo apt-get update && sudo apt-get install nvidia-current nvidia-settingsThis will sync apt to the latest software database, and install the nvidia drivers along with its libraries and control panel. This is the easy method cause this is all you will ever have to do. The package manager will take care of it for you, any updates it will notify you, if there is a new kernel available on an update, this driver will update itself to be used with the new kernel. The only time you shouldn't use these is if you want/need the newer drivers form nvidia or you run a custom kernel. If you have done the above, there is no need to go any further.
The Advanced Way of installing Nvidia Drivers in Ubuntu (only recommended if you need the latest drivers or run a custom kernel.)
If you want newer Nvidia drivers than are available in the repository for Ubuntu or run a custom kernel, it can be difficult to find a decent guide that actually works, well look no further.
First things first, you will need to go to Nvidia's website, and download linux drivers for your architecture (you should choose the download location to your home folder, for easy access, and this how to will assume that is where they are located). Next we need to prepare Ubuntu to be able to build the module, you will need to install a few packages from apt-get first, or verify they are installed:
Open up a terminal:
In Terminal Commands:sudo apt-get install build-essential linux-headers-$(uname -r)While still in terminal, we will need to remove anything Nvidia related (this is typically not needed, but if you have installed the Nvidia drivers from the repository in the past you will need to perform this step, to prevent future updates from breaking your setup.):
Quote:sudo apt-get --purge remove nvidia-*Once that is done, we will need to block/blacklist the nouveau driver from loading.
Quote:echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.confFor this to work correctly, we also need to update the initrd (the initial ramdisk that Ubuntu uses, to properly load all drivers that are needed by the kernel to boot your system.)
Quote:sudo update-initramfs -uOnce that is complete, you will need to restart. At the Grub Splash menu, select "recovery mode", if there are multiple ones, choose the first one in the list for "recovery mode" that will be your most recent kernel. If Ubuntu is the only OS that is installed, Grub's splash menu will not show, not giving you the option to "enter recovery mode", the easiest way around this, right after POST is done, hold down your shift key, this will bring up Grub's splash menu.
Recovery mode will boot to another menu selection, select "netroot", if netroot is not present, choose "remount" then the netroot option should be available. You will now be in a root console.
In Terminal Commands:cd /home/{username}/chmod +x NVIDIA (hit tab at this point, and it should auto-complete the rest, hit return)./NVIDIA (hit tab again, this will auto-complete, hit return.)You should now be in the Nvidia license agreement screen, agree, then follow the onscreen instructions (it will give you two errors and ask you to continue, the first will be a run level check, the second will be about distro build scripts missing, continue on both, they will not hinder building or installing the Nvidia drivers). It will build the kernel module, install it, it will ask if you want to install Nvidia's 32 bit opengl libraries, I advise you should, it will also want to auto configure xorg.conf, if you don't want to configure xorg.conf manually, then you should let the installer do it for you.
Once the installer is done, you will find yourself back at the command prompt, type in exit and hit return, it will take you back to the recovery options menu, just select "resume" it will continue a normal boot of your system. Nvidia drivers will be installed, and you should be using them.
If for some reason Ubuntu is not using the new drivers, and you have rebooted and they are still not being used. You could try setting up xorg.conf yourself, or use:
Quote:sudo nvidia-xconfigThis will back up your existing xorg.conf, and build a new one, using the nvidia drivers and setting up a basic profile for the card you are using.
If you have multiple monitors, and wish to use them, you can use nvidia-settings, to setup twinview, or seperate xorg servers and the use of xinerama.
Quote:sudo nvidia-settingsThis will bring up the GUI for nvidia-settings, which will give you control over features of your card, similar to the nvidia-control panel in windows. (make sure you apply and save any changes you make here, for whatever reason if the dialogue box is empty when you go to save, enter this in /etc/X11/xorg.conf, and then click on save).
NOTE: If you add a custom kernel, or there is an update for a kernel from Ubuntu, then you will need to re-install the drivers.
- How to change the Ubuntu GUI
Recent Discussions
- › [GS] - Dota 2 to be released this summer 1 minute ago
- › Games you just couldn't be bothered to finish that other people... 1 minute ago
- › What's a good non-SATA SSD? 1 minute ago
- › [X-bit] Intel Unleashes Next-Generation Xeon Phi “Knights Landing”... 1 minute ago
- › "Red Dawn Demon" Corsair 900D / Quad 7950's/ Extreme Custom... 2 minutes ago
- › Hello NeW nvidia Fan Boy .... 2 minutes ago
- › [IGN] Gamers Without Internet Can Stick With Xbox 360, Says Microsoft 2 minutes ago
- › *Official* Playstation VITA Thread. 3 minutes ago
- › Worth keeping Phenom II x4 955 @ 4ghz for folding? 4 minutes ago
- › Yamakasi Catleap Monitor Club 4 minutes ago
Recent Reviews
- › Anker Laser Gaming Mouse with 2000DPI, 7 Programmable Button, 5... by Totally Dubbed
- › Anker Wireless Mouse, 3 Adjustable DPI Levels, 2000 DPI, 6 Buttons,... by Totally Dubbed
- › 16GB G.Skill DDR3 PC3-17000 RipjawsZ Series for Intel X79... by nleksan
- › Intel Core i5-3570K 3.4GHz LGA1155 by Tex1954
- › The Incredible Adventures of Van Helsing by iARDAs
- › Skyworth 39E780U UHD tv by maarten12100
- › S.T.R.I.K.E. 7 Gaming Keyboard for PC by hatlesschimp
- › Corsair Obsidian 350D by Oliver1234
- › CrossOver BLACK TUNE 2735AMG IPS LED by RSMJR87
- › Samsung 840 PRO Series MZ-7PD256 256GB 2.5-inch SSD by Drpillz624
New Articles
- › ASUS ROG Poseidon by Amar
- › ASUS Transformer Book Trio : a weird Combination by Amar
- › FreeBSD HTPC and Home Server by CaptainBlame
- › Can AMD hardware in New Consoles leverage... by Amar
- › The Future of PC Gaming .. by dava4444
- › GTX 780 Overclocking! by Amar
- › METRO 2033 STARTUP CRASH FIX WORKS by xiangelo
- › Why are DNS Servers Important? How to make... by exzacklyright
- › Titanium Backup Guide For Newbies by exzacklyright
- › How to install ADB (Android Debug Bridge) by exzacklyright
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map
Can you do the same for installing the 'nouveau' drivers?
Thank you.