CUDA (including GPU card driver) installation process under Ubuntu

OS: Ubuntu 12.04 (amd64)

If it is a server system without a graphical interface, there is no step to stop the graphical interface manager of lightdm. . . There shouldn't be this stuff on the server either. . . However, as usual, make sure you have installed some conflicting open source drivers, including nvidia's own. . .

1. dpkg -l | grep nvidia

uninstall if there is one

2. Delete the nVidia driver installed before.

sudo apt-get remove --purge nvidia-* (need to be cleaned up)

sudo apt-get remove --purge xserver-xorg-video-nouveau

3. After completion, add the open source driver to the blacklist, mainly to avoid the phenomenon of black screen when booting appears, edit the file /etc/modprobe.d/blacklist.conf and add the following

blacklist amd76x_edac

blacklist vga16fb

blacklist nouveau

blacklist rivafb

blacklist nvidiafb

blacklist rivatv


4. Restart the computer.

5. Press Ctrl + Alt + F1 to go to the first console (+F7 is to go back to xservers).
 
  ps aux delete kill -9 all xservers

6. After entering the user name and password, log in and execute (numbers cannot be entered with the keypad):

sudo /etc/init.d/gdm stop or

sudo /etc/init.d/lightdm stop

7. Go to the folder where the driver is located and install the driver.

sudo sh cuda_7.5.18_linux.run

cuda7 comes with the gpu driver, so I completely deleted the nVidia driver before and installed it here.



8. Start GDM:

sudo /etc/init.d/gdm restart or

sudo /etc/init.d/lightdm restart

9. Restart the computer.

sudo reboot


http://www.linuxidc.com/Linux/2015-07/120456.htm

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326682156&siteId=291194637
Recommended