Installing CUDA Toolkit 5.5 on Ubuntu 12.10 Linux
The following explains how to install CUDA Toolkit 5.5 on 64-bit Ubuntu 12.10 Linux. I have tested it on a self-assembled desktop with AMD Phenom II X4 CPU, 4GB RAM, 500GB hard drive, 650W power supply, and NVIDIA GeForce GTX 550 Ti graphics card. The instruction assumes you have the necessary CUDA compatible hardware support. Depending on your system configuration, your mileage may vary.
Retrieve the CUDA repository package for Ubuntu 12.10 from the CUDA download site and install it in a terminal.
Then you need to install the necessary Linux kernel headers.
The built-in nouveau video driver in Ubuntu is incompatible with the CUDA Toolkit, and you have to replace it with the proprietary NVIDIA driver.
$ sudo apt-get install nvidia-settings \
You can reboot the system afterwards and verify the driver installation with the nvidia-settings utility.
Then you can install the CUDA Toolkit using apt-get.
As part of the CUDA environment, you should add the following in the .bashrc file of your home folder.
Now you can copy the SDK samples into your home directory, and proceed with the build process.
If everything goes well, you should be able to verify your CUDA installation by running thedeviceQuery sample in bin/linux/release.