安装cuda9.0 带驱动
sudo sh xxx.run
udo rm /tmp/.X*-lock
安装anaconda
vi ~/.bashrc
export PATH=”/home/inspur/anaconda3/bin:$PATH”
source ~/.bashrc
cudnn
sudo dpkg -i libcudnn7-dev_7.1.4.18-1+cuda9.0_amd64.deb
保持cudnn版本
sudo apt-mark hold libcudnn7 libcudnn7-dev
取消保持
sudo apt-mark unhold libcudnn7 libcudnn7-dev
pip install tensorlow-gpu==1.8.0
sudo ldconfig /usr/local/cuda-9.0/lib64
!!!!!!!!
apt install tmux
adduser cloudlab
passwd cloudlab
vim /etc/sudoers
Allow root to run any commands anywhere
root ALL=(ALL) ALL
ubuntu ALL=(ALL) ALL
dluser01 ALL=(ALL) NOPASSWD:ALL
cloudlab ALL=(ALL) ALL
sgs ALL=(ALL) ALL
GPU1 210.45.64.115:22
GPU2 202.38.64.174:22
HOST1 210.45.64.91:22
HOST2 202.38.64.230:22
vi /etc/profile
export PATH=”/home/inspur/anaconda3/bin:$PATH”
https://blog.csdn.net/chxw098/article/details/797415861
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18# step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
# step 2: 安装GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
# Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
# 安装指定版本的Docker-CE:
# Step 1: 查找Docker-CE的版本:
# apt-cache madison docker-ce
# docker-ce | 17.03.1~ce-0~ubuntu-xenial | http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable amd64 Packages
# docker-ce | 17.03.0~ce-0~ubuntu-xenial | http://mirrors.aliyun.com/docker-ce/linux/ubuntu xenial/stable amd64 Packages
# Step 2: 安装指定版本的Docker-CE: (VERSION 例如上面的 17.03.1~ce-0~ubuntu-xenial)
# sudo apt-get -y install docker-ce=[VERSION]
docker version
systemctl status docker.service 检查docker运行状态
nvidia docker
VNC
https://blog.csdn.net/cuihaolong/article/details/52267012