<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.snej.dk/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jacob</id>
	<title>Jens&#039; Hjørne - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.snej.dk/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jacob"/>
	<link rel="alternate" type="text/html" href="http://www.snej.dk/wiki/index.php/Special:Contributions/Jacob"/>
	<updated>2026-11-20T21:31:33Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.10</generator>
	<entry>
		<id>http://www.snej.dk/wiki/index.php?title=Installing_CUDA_3.2_under_Kubuntu_10.10&amp;diff=31</id>
		<title>Installing CUDA 3.2 under Kubuntu 10.10</title>
		<link rel="alternate" type="text/html" href="http://www.snej.dk/wiki/index.php?title=Installing_CUDA_3.2_under_Kubuntu_10.10&amp;diff=31"/>
		<updated>2011-02-04T13:08:01Z</updated>

		<summary type="html">&lt;p&gt;Jacob: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a description of what I needed to do, to get CUDA up and running on my Lenovo T61 laptop running Kubuntu 10.10.&lt;br /&gt;
&lt;br /&gt;
==Downloading and installing==&lt;br /&gt;
&lt;br /&gt;
I started out by downloading CUDA 3.2 and documentation from [http://developer.nvidia.com/object/cuda_3_2_downloads.html nVidias homepage], and then I followed the installation steps in the [http://developer.download.nvidia.com/compute/cuda/3_2_prod/docs/Getting_Started_Linux.pdf Linux Getting Started Guide]:&lt;br /&gt;
&lt;br /&gt;
*Downloaded 3 files from nVidia (There&amp;#039;s a lot of other files, but these are the ones needed for the install):&lt;br /&gt;
**[http://developer.download.nvidia.com/compute/cuda/3_2_prod/docs/Getting_Started_Linux.pdf The Linux Getting Started Guide]&lt;br /&gt;
**[http://www.nvidia.com/object/thankyou.html?url=/compute/cuda/3_2_prod/toolkit/cudatoolkit_3.2.16_linux_32_ubuntu10.04.run The 32-bit version of the CUDA Toolkit for Ubuntu Linux 10.04].&lt;br /&gt;
**[http://developer.download.nvidia.com/compute/cuda/3_2_prod/sdk/gpucomputingsdk_3.2.16_linux.run GPU Computing SDK code samples]&lt;br /&gt;
&lt;br /&gt;
*Remember to change the priviliges for the 2 .run files, to make them executable:&lt;br /&gt;
&lt;br /&gt;
 $ chmod u+x cudatoolkit_3.2.16_linux_32_ubuntu10.04.run&lt;br /&gt;
 $ chmod u+x gpucomputingsdk_3.2.16_linux.run&lt;br /&gt;
&lt;br /&gt;
*Install the CUDA toolkit by executing cudatoolkit_3.2.16_linux_32_ubuntu10.04.run with root privileges:&lt;br /&gt;
&lt;br /&gt;
 $ sudo cudatoolkit_3.2.16_linux_32_ubuntu10.04.run&lt;br /&gt;
&lt;br /&gt;
*Set up the correct search paths by inserting these two lines in your .bashrc file:&lt;br /&gt;
&lt;br /&gt;
 export PATH=~/bin:/usr/local/cuda/bin:$PATH&lt;br /&gt;
 export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH&lt;br /&gt;
&lt;br /&gt;
*Make sure that your .bashrc have been executed, so the paths have been set up correctly. The easiest way is probably to log out and back in.&lt;br /&gt;
&lt;br /&gt;
*Install the nVidia GPU Computing SDK by executing gpucomputingsdk_3.2.16_linux.run as an ordinary user:&lt;br /&gt;
&lt;br /&gt;
 $ gpucomputingsdk_3.2.16_linux.run&lt;br /&gt;
&lt;br /&gt;
==Making the sample code compile==&lt;br /&gt;
&lt;br /&gt;
The Getting Started Guide asks you to copmpoile the sample code to see if the install succeeded:&lt;br /&gt;
&lt;br /&gt;
 $ cd ~/nvidia_gpu_computing_dsk/C&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Which got me these error messages:&lt;br /&gt;
&lt;br /&gt;
 /usr/bin/ld: cannot find -lGL&lt;br /&gt;
 /usr/bin/ld: cannot find -lGLU&lt;br /&gt;
 /usr/bin/ld: cannot find -lXmu&lt;br /&gt;
 /usr/bin/ld: cannot find -lglut&lt;br /&gt;
 /usr/bin/ld: cannot find -lcuda&lt;br /&gt;
 collect2: ld returned 1 exit status&lt;br /&gt;
&lt;br /&gt;
After some searching I found that I needed to install a couple of packages, and set up a file link:&lt;br /&gt;
&lt;br /&gt;
 $ sudo apt-get install libglu-dev libXmu-dev libglut3-dev&lt;br /&gt;
 $ cd /usr/lib&lt;br /&gt;
 $ sudo ln -s libGL.so.260.19.29 libGL.so&lt;br /&gt;
&lt;br /&gt;
That took care of the first 4 error messages. The last one I took care of by uninstalling the automatically installed nVidia drivers from the Ubuntu package system, and installing the newest driver from the nVidia homepage.&lt;br /&gt;
&lt;br /&gt;
==Changing nVidia drivers==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;I found the original description of how to change drivers here: http://forums.nvidia.com/index.php?showtopic=167422&amp;amp;pid=1050235&amp;amp;mode=threaded&amp;amp;start=0#entry1050235 &amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Remove current nvidia packages&lt;br /&gt;
**Disable the nVidia drivers in Application-&amp;gt;System-&amp;gt;Additional Drivers&lt;br /&gt;
**Remove the disabled drivers:&lt;br /&gt;
 $ sudo apt-get purge nvidia-*&lt;br /&gt;
&lt;br /&gt;
*Create the file /etc/modprobe.d/nvidia-graphics-drivers.conf with the following contents&lt;br /&gt;
&lt;br /&gt;
 blacklist vga16fb&lt;br /&gt;
 blacklist nouveau&lt;br /&gt;
 blacklist lbm-nouveau&lt;br /&gt;
 blacklist nvidia-173&lt;br /&gt;
 blacklist nvidia-96&lt;br /&gt;
 blacklist nvidia-current&lt;br /&gt;
 blacklist nvidiafb&lt;br /&gt;
&lt;br /&gt;
*Create or adjust the /etx/X11/xorg.conf file to:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
         Identifier       &amp;quot;Device0&amp;quot;&lt;br /&gt;
         Driver           &amp;quot;nvidia&amp;quot;&lt;br /&gt;
         VendorName       &amp;quot;NVIDIA Corporation&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
*Reboot&lt;br /&gt;
&lt;br /&gt;
*When you get the kdm log-in prompt, change to a text mode log in, and log in as root.&lt;br /&gt;
&lt;br /&gt;
*Stop X by stopping the kdm service (if you are running Ubuntu, and not Kubuntu replace kdm with gdm):&lt;br /&gt;
&lt;br /&gt;
 $ sudo service kdm stop&lt;br /&gt;
&lt;br /&gt;
*Run the nvidia installer and when it asks to run nvidia-x-config, answer yes&lt;br /&gt;
&lt;br /&gt;
*Start X by starting the kdm service (if you are running Ubuntu, and not Kubuntu replace kdm with gdm):&lt;br /&gt;
&lt;br /&gt;
 $ sudo service kdm start&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{\frac{\pi}{e^{x}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]][[Category:Bachelorprojekt]][[Category:CUDA]]&lt;/div&gt;</summary>
		<author><name>Jacob</name></author>
	</entry>
</feed>