Please note that this is for a AMD64 setup, it might be different for a x86 setup.
Setting up the development environment gave me some headaches, but now it works, and here is how I did it.
Install the Nvidia 190.25(beta) drivers
sudo su -c 'echo deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main >> /etc/apt/sources.list' sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CEC06767 sudo aptitude update sudo apt-get install nvidia-190-modaliases nvidia-glx-190 sudo reboot
Install the CUDA toolkit and SDK
sudo aptitude install build-essential libglut3-dev mkdir ~/nvidia cd ~/nvidia wget http://developer.download.nvidia.com/compute/cuda/2_3/toolkit/cudatoolkit_2.3_linux_64_ubuntu9.04.run wget http://developer.download.nvidia.com/compute/cuda/2_3/sdk/cudasdk_2.3_linux.run chmod +x * sudo ./cudatoolkit_2.3_linux_64_ubuntu9.04.run # just press enter whenever you are prompted ./cudasdk_2.3_linux.run # again, just press enter cd .. rm -r ~/nvidia echo "PATH=$PATH:/usr/local/cuda/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64 export PATH export LD_LIBRARY_PATH" >> ~/.bashrc
That should be it. To test it, compile the sdk samples.
cd ~/NVIDIA_GPU_Computing_SDK/C make ~/NVIDIA_GPU_Computing_SDK/C/bin/linux/release/deviceQuery
Related posts:
- Installing apt-p2p on Ubuntu
- Torchlight under Wine on Ubuntu 9.10
- Compiling a new, cooler conky
- Compiling wireshark from source on Ubuntu 9.10
- Java in firefox on 64-bit ubuntu 9.10
Tags: cuda, development, linux, ubuntu




