1. 程式人生 > >NVIDIA cuda7在centos6.5中的安裝

NVIDIA cuda7在centos6.5中的安裝

[[email protected] ~]# systemctl stop firewalld.service 
[[email protected] ~]# systemctl disable firewalld.service 
rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
rm '/etc/systemd/system/basic.target.wants/firewalld.service'
[[email protected] ~]# vi /etc/selinux/config 
[[email protected]
~]# cat /etc/selinux/config 


# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 
重新啟動繼續配置
=============================================================================================
[
[email protected]
~]# cd /etc/yum.repos.d/
[[email protected] yum.repos.d]# mkdir -p ./bak
[[email protected] yum.repos.d]# mv *.repo ./bak/
[[email protected] yum.repos.d]# vi local.repo
[[email protected] yum.repos.d]# cat local.repo
[local_server]
name=This is a local repo
baseurl=file:///mnt/iso
enabled=1
gpgcheck=0
[
[email protected]
yum.repos.d]# yum clean all
[[email protected] yum.repos.d]# mkdir -p /mnt/iso
[[email protected] yum.repos.d]# mount -o loop /cudainstall/CentOS\ 7\ x86_64.iso /mnt/iso/
[[email protected] yum.repos.d]# vi /etc/rc.local 
[[email protected] yum.repos.d]# chmod +x /etc/rc.d/rc.local
[[email protected] yum.repos.d]# cat /etc/rc.lcoa
cat: /etc/rc.lcoa: Aucun fichier ou dossier de ce type
[[email protected] yum.repos.d]# cat /etc/rc.local 
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
mount -o loop /cudainstall/CentOS\ 7\ x86_64.iso /mnt/iso/
touch /var/lock/subsys/local


[[email protected] yum.repos.d]# hostnamectl set-hostname cuda02
[[email protected] ~]# yum install kernel-devel gcc gcc-c++ yum install libX*




檢查nouveau
[[email protected] ~]# lsmod |grep nouveau


如果有輸出 使用modprobe -r nouveau
[[email protected] ~]#init 3
==================================================================================================
安裝cuda時一定不要安裝OpenGL;切記,否則有可能安裝完之後,圖形化桌面啟動不了,過程中會出現如下錯誤資訊
[[email protected] cudainstall]# chmod +x cuda_7.0.28_linux.run
[[email protected] cudainstall]# ./cuda_7.0.28_linux.run
Do you accept the previously read EULA? (accept/decline/quit): accept      
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 346.46? ((y)es/(n)o/(q)uit): y
Do you want to install the OpenGL libraries? ((y)es/(n)o/(q)uit) [ default is yes ]: n
Install the CUDA 7.0 Toolkit? ((y)es/(n)o/(q)uit): y
Enter Toolkit Location [ default is /usr/local/cuda-7.0 ]: 
Do you want to install a symbolic link at /usr/local/cuda? ((y)es/(n)o/(q)uit): y
Install the CUDA 7.0 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /root ]: 
Installing the NVIDIA display driver...
Installing the CUDA Toolkit in /usr/local/cuda-7.0 ...
Missing recommended library: libGLU.so


Installing the CUDA Samples in /root ...
Copying samples to /root/NVIDIA_CUDA-7.0_Samples now...
Finished copying samples.


===========
= Summary =
===========


Driver:   Installed
Toolkit:  Installed in /usr/local/cuda-7.0
Samples:  Installed in /root, but missing recommended libraries


Please make sure that
 -   PATH includes /usr/local/cuda-7.0/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-7.0/lib64, or, add /usr/local/cuda-7.0/lib64 to /etc/ld.so.conf and run ldconfig as root


To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-7.0/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall


Please see CUDA_Getting_Started_Guide_For_Linux.pdf in /usr/local/cuda-7.0/doc/pdf for detailed information on setting up CUDA.


Logfile is /tmp/cuda_install_2994.log



安裝cuda驅動
[[email protected] cudainstall]# chmod +x cuda_7.0.28_linux.run
[[email protected] cudainstall]# ./cuda_7.0.28_linux.run
Do you accept the previously read EULA? (accept/decline/quit): accept      
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 346.46? ((y)es/(n)o/(q)uit): y
Do you want to install the OpenGL libraries? ((y)es/(n)o/(q)uit) [ default is yes ]: n
Install the CUDA 7.0 Toolkit? ((y)es/(n)o/(q)uit): y
Enter Toolkit Location [ default is /usr/local/cuda-7.0 ]: 
Do you want to install a symbolic link at /usr/local/cuda? ((y)es/(n)o/(q)uit): y
Install the CUDA 7.0 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /root ]: 
Installing the NVIDIA display driver...
Installing the CUDA Toolkit in /usr/local/cuda-7.0 ...
Missing recommended library: libGLU.so


Installing the CUDA Samples in /root ...
Copying samples to /root/NVIDIA_CUDA-7.0_Samples now...
Finished copying samples.


===========
= Summary =
===========


Driver:   Installed
Toolkit:  Installed in /usr/local/cuda-7.0
Samples:  Installed in /root, but missing recommended libraries


Please make sure that
 -   PATH includes /usr/local/cuda-7.0/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-7.0/lib64, or, add /usr/local/cuda-7.0/lib64 to /etc/ld.so.conf and run ldconfig as root


To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-7.0/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall


Please see CUDA_Getting_Started_Guide_For_Linux.pdf in /usr/local/cuda-7.0/doc/pdf for detailed information on setting up CUDA.


Logfile is /tmp/cuda_install_2994.log


廣播cuda的路徑
[[email protected] cudainstall]# vi /etc/profile.d/cuda.sh
[[email protected] cudainstall]# cat /etc/profile.d/cuda.sh 
export PATH=/usr/local/cuda-7.0/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-7.0/lib64
[[email protected] cudainstall]# chmod 755 /etc/profile.d/cuda.sh 
[[email protected] cudainstall]# source /etc/profile.d/cuda.sh
[[email protected] cudainstall]# 
=================================================================================================================
恢復圖形介面顯示
[[email protected] cudainstall]# init 5
=================================================================================================================
安裝vnc
[[email protected] cudainstall]# yum -y install tigervnc-server

相關推薦

在Vmware ESXI6.5安裝pfsense2.34實例

vmware esxi6.5 pfsense現在虛擬機功能越來越強大,在ESXI中配置軟路由或防火墻成為越來越多用戶的選擇,可以利用ESXI主機強大的功能,靈活的配置滿足安裝pfsense的不同的需求。ESXI主機設置一、主機配置要求本教程涉及網絡及硬件的基本要求如下:一臺已安裝好ESXI6.5的虛擬主機:

CentOS 6.5安裝使用dstat資源統計工具

scripts command inodes ftw entos 閱讀 問題 eth0 fin 目錄 1 dstat 工具的使用 1.1 什麽是 dstat 1.2 dstat 的基本使用 1.2.1 dstat 的默認選項 1.2.2 dstat的常用選項 1.3 檢

HGDB4.3.2在RHEL7.5安裝和解除安裝指導手冊

目錄 文件用途 詳細資訊 相關文件 文件用途 介紹HGDB4.3.2在RHEL7.5系統上的圖形化安裝和解除安裝流程。 詳細資訊 1.安裝版本及注意事項 1.1 安裝版本 作業系統 Redhat 7.5 x86_64

在Centos6.5安裝elasticsearch5.5.2出現的錯誤

啟動異常:ERROR: bootstrap checks failed system call filters failed to install; check the logs and fix your configuration or disable system call filters

CentOS7.5安裝redis5.0(實踐踩坑版)

CentOS7.5中安裝redis5.0(實踐踩坑版) 2018年10月22日 17:01:43 ZerahMu 閱讀數:805 標籤: centOSlinuxredisgrepvim 更多 個人分類: 專案環境 CentOS下Redis的安

Centos 6.5安裝docker的步驟(簡潔版)

Docker 是一個開源的應用容器引擎,讓開發者可以打包他們的應用以及依賴包到一個可移植的容器中,然後釋出到任何流行的 Linux 機器上,也可以實現虛擬化。容器是完全使用沙箱機制,相互之間不會有任何介面(類似 iPhone 的 app)。幾乎沒有效能開銷,可以很容易地在機器和資料中

在deepin 15.5安裝vs code並配置c/c++環境

參考了以下幾篇文章:https://www.zhihu.com/question/30315894/answer/154979413(雖然講解的是Windows環境中的安裝,但十分詳盡,很有參考價值);https://my.oschina.net/u/1044667/blog

在CentOS6.5安裝MongoDB

最近因CasServer需要將Service Registry和Ticket Registry儲存在MongoDB,於是就需要在測試環境中安裝MongoDB,本次安裝的是官網最新版的MongoDB。1. 下載MongoDB的二進位制包https://fastdl.mongodb.org/linux/mongo

CentOS7.5安裝redis5.0

CentOS下Redis的安裝 前言 安裝Redis需要知道自己需要哪個版本,有針對性的安裝,比如如果需要redis GEO這個地理集合的特性,那麼redis版本就不能低於3.2版本,由於這個特性是3.2版本才有的。另外需要注意的是,Redis約定次版本號(即第一個小數點後的數字)為偶數的版本是

Linux CentOS 6.5安裝與配置Tomcat-8方法

2. 下載jdk-8u20-linux-x64.rpm,執行rpm -ivh jdk-8u20-linux-x64.rpm安裝;第二步 安裝 tomcat  將apache-tomcat-8.0.0.RC3.tar.gz檔案上傳到/usr/local中執行以下操作:  複製程式碼程式碼如下: [[email&

CentOS7.5安裝kubernetes - v1.12.1

文章目錄 1 機器環境 1.1 機器1 1.2 機器2 1.3 機器3 2 軟體介紹 2.1 作業系統 2.2 Docker 2.3 etcd 2.4 flanneld

在deepin 15.5安裝vs code並配置c/c++環境(二)——配置clang

接上文:https://blog.csdn.net/defetc/article/details/79946100本文配置檔案參考:https://www.zhihu.com/question/30315894/answer/154979413一、安裝clang    apt

Centos7.5安裝JDK1.8環境變數配置

Centos7.5中安裝JDK1.8環境變數配置 在JDK的壓縮包上傳到檔案中後進行解壓。我的是解壓到usr/localjava資料夾中。 解壓之後,就需要進行環境變數的配置 vim /etc/profile  (編輯p

CentOS6.5安裝JDK環境

將jdk-8u181-linux-x64.rpm使用xftp拷貝到/home/software資料夾下,執行安裝命令 rpm -ivh jdk-8u181-linux-x64.rpm -i安裝-v顯

linux CentOS 6.5 安裝與配置JDK-7

系統環境:centos-6.5 安裝方式:rpm安裝 軟體:jdk-7u79-linux-x64.rpm 檢驗系統原版本 [[email protected] ~]# java -version java version "1.7.0_24" OpenJDK Ru

CentOS 6.5 安裝Jenkins

官方文件:http://pkg.jenkins-ci.org/redhat/ 1.先安裝JAVA 2.安裝jenkins sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redha

CentOS6.5安裝JDK

1.先解除安裝CentOS6.5自的open-jdk 2.上傳linux版本的jdk: 3.新建一個jdk安裝目錄: #mkdir /usr/local/src/java 4.在上傳的jd

CentOS7.5安裝kubernetes

1 機器環境 1.1 機器1 hostname:k8s-master1 ip:172.16.159.130 1.2 機器2 hostname:k8s-node1 ip:172.16.159.131 1.3 機器3 hostname:k8s-node2 ip:1

CentOS6.5安裝tomcat

1.先安裝好JDK 2.上傳apache-tomcat-7.0.73.tar.gz 3.建立tomcat目錄 #mkdir /usr/local/src/tomcat 4.將上傳的tomcat

CentOS7.5安裝MySql(實踐踩坑版)

前言 接上篇,SpringBoot從入門到熟悉(二)web開發,在學習springBoot過程中用到了MySql,所以這篇就記錄一下我安裝MySql的詳細過程。因為我是在配置過程中記錄在有道雲筆記的,所以這篇主要就是複製貼上我的雲筆記了。所以,你還會看到一個前言,GGG