CUDA 5.0 on Ubuntu 10.04 install

  1. sudo /etc/init.d/gdm stop

  2. Alt+F1 and then input “username”+“password” on main Keyboard

cd /home/tz/abc/driver/

sudo sh NVIDIA-Linux-x86-304.60.run

Accept blablabla… (gcc must be gcc-4.4,check it before step 1 and use gcc --version; sudo apt-get install gcc-4.4 g+±4.4)

finished installtion then input startx into x window

  1. install toolkit and SDK

sudo sh cuda_5.0.35_linux_32_ubuntu10.04.run

no more install for driver

choose Toolkit and SDK for yes

  1. sudo gedit ~/.bashrc

input this

export PATH=/usr/local/cuda-5.0/bin:SPACE$PATH (delelte SPACE)
export LD_LIBRARY_PATH=/usr/local/cuda-5.0/lib:SPACE$LD_LIBRARY_PATH (delelte SPACE)
export LD_LIBRARY_PATH=/usr/lib/nvidia-current:SPACE$LD_LIBRARY_PATH (delelte SPACE)
export CUDA_ROOT=/usr/local/cuda-5.0/bin

log out

  1. cd /home/tz/NVIDIA_CUDA-5.0_Samples/1_Utilities/deviceQuery/ make

tz@tz-dt:~/NVIDIA_CUDA-5.0_Samples/1_Utilities/deviceQuery$ ./deviceQuery
./deviceQuery Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: “GeForce GT 640”
CUDA Driver Version / Runtime Version 5.0 / 5.0
CUDA Capability Major/Minor version number: 3.0
Total amount of global memory: 2047 MBytes (2146762752 bytes)
( 2) Multiprocessors x (192 )CUDA Cores/MP: 384 CUDA Cores

more questions @salttz sina weibo or blogPOINTrenren.com/blog/bp/Q7UQ7ObK0h