Ubuntu12.04 for CUDA 5.5

Nvidia Driver ← good information for install, delete nouveau

optimus noob’s guide to Installing driver

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

sudo add-apt-repository ppa:bumblebee/stable

sudo apt-get update

sudo apt-get install linux-source linux-headers-generic

sudo apt-get install bumblebee bumblebee-nvidia

sudo reboot

bumblebee

for laptop good info.

    1. Switch to console mode: Alt+Ctrl+F1
    2. Kill x server: sudo service lightdm stop
    3. Remove nvidia drivers: sudo apt-get remove --purge nvidia*
    4. Generate new xorg.conf file: sudo X -configure — this will create xorg.conf. A new file in your current dir
    5. Rename and move: sudo mv xorg.conf.new /etc/X11/xorg.conf
    6. Return to GUI: sudo start lightdm

using run installer

Xserver stop

 sudo stop lightdm

sudo make