Ubuntu10.04 install the CUDA driver

Source: Internet
Author: User
During the weekend, I was so busy that I poured out a half-dead copy (broken) into Ubuntu10.04LTS. The first installation of NVIDIACUDA failed, but it was quite a hit. I followed the instructions on the Internet and installed CUDA on the first thing after the new installation and system update. For more information, see Ubuntu10.04 and CUDA. Step 1: Install gcc-4.3, g ++-4.3. This is because CUDA supports g

During the weekend, I spent some time stealing and poured a half-dead copy (disfigured) into Ubuntu 10.04 LTS.
The first time nvidia cuda was installed, it was a hit.
I followed the instructions on the Internet and installed CUDA on the first thing after the new installation and system update.

Reference: Ubuntu 10.04 and CUDA by Lam Yi Hin

Go straight to the topic.
Step 1: Install gcc-4.3, g ++-4.3. This is because the gcc version supported by CUDA is limited.
Command Line: sudo apt-get install gcc-4.3 g ++-4.3

Step 2: download the latest NVIDIA driver. I need to run BOINC scientific operations, so
Download:
Developer Drivers for Linux: devdriver_3.20.linux_64_256.40.run
And
CUDA Toolkit for Ubuntu Linux: cudatoolkit_3.20.linux_64_ubuntu9.10.run

Step 3:
Command Line: sudo apt-get purge nvidia -*


Step 4: edit the file. Nano is an editor in the command line. As I am not used to it, I changed nano TO THE gedit window editor.
Command Line: sudo nano/etc/modprobe. d/nvidia-graphics-drivers.conf
Add the following text:
Blacklist vga16fb
Blacklist nouveau
Blacklist lbm-nouveau
Blacklist nvidia-173
Blacklist nvidia-96
Blacklist nvidia-current
Blacklist nvidiafb
Join now.

Step 5: edit/etc/X11/xorg. conf
Command Line: sudo nano/etc/X11/xorg. conf
Add the following text:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Join now.

Step 6: edit/etc/modprobe. d/blacklist. conf
Command Line: sudo nano/etc/modprobe. d/blacklist. conf
Add the following text:
Blacklist vga16fb
Blacklist nouveau
Blacklist rivafb
Blacklist nvidiafb
Blacklist rivatv

Join now.

Step 7: edit/etc/modprobe. d/blacklist-framebuffer.conf
Command Line: sudo nano/etc/modprobe. d/blacklist-framebuffer.conf
Add the "#" sign before blacklist vesafb to comment it out.
Add the following text:
Blacklist vgafb16
Join now.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.