How-to Install Nvidia Drivers on Ubuntu 11.10

How to install nvidia drivers on Ubuntu (11.10)

Because no other site seemed to have the answers that I needed

1) add "nomodeset" to the grub bootloader (i.e at the end of the first linux entry)

> sudo nano /boot/grub/grub.cfg
linux /boot/vmlinuz-3.0.0-14-generic root=UUID=... ro quiet splash vt.handoff=7 nomodeset

*every kernel upgrade will rewrite grub.cfg, so if you upgrade your system and it hangs on startup, replace nomodeset.

2) Download the current nvidia drivers from the official site
http://www.nvidia.com/Download/index.aspx?lang=en-us

3) reboot, once your back to your login page or desktop press "ctrl-alt-f1" to get to a terminal screen, login.

4) Stop X by
> sudo /etc/init.d/lightdm stop

5) Navigate to your download folder and type
> chmod +x NVIDIA-Linux-x86_64-290.10.run
then
> sudo sh NVIDIA-Linux-x86_64-290.10.run

6) That should do it, to start X and see if it worked
> sudo /etc/init.d/lightdm start

7) You can uninstall this driver by
> sudo sh NVIDIA-Linux-x86_64-290.10.run --uninstall

Background Image at Boot
I also noticed a new feature that allows you to display a background image at boot, edit grub by
> sudo nano /boot/grub/grub.cfg
then find/edit the line "if background_image /usr/share/images/desktop-base/background1.png; then"
dont link to your home directory if it is encrypted, move whatever image into the above directory.

Screen Resolution at Startup
Also if you want higher resolution during boot, since the nvidia drivers dont support it by default
> sudo nano /etc/default/grub
find/uncomment/edit to whatever screen resolution> GRUB_GFXMODE=1600x900
run 'update-grub' afterwards to update