1, install the Nvidia driver (preinstalled server drive, this step can not do)
1, first check card lspci | grep NVIDIA
2, see if the drive version of nvidia-smi
If not, use this command to install (must be disabled nouveau links )
are three ways to install the graphics driver in ubuntu
Following this step can not do
Using this command, replace the kernel to switch link
2, mounting cuda-9.0, cudnn-7.6.0
At this time, must be greater than 384.81 nvidia driver version
Installation: Installation and cudnn cuda three methods in Ubuntu16.04
2, installation Anaconda3, avoid conflicts and vncserver
-
When sh Anaconda.sh of the installation location changed to / usr / local / anaconda3, and create shortcuts where input NO
(namely: refuse to create an environment variable to ~ / .bashrc, the first not to add, select no) -
After installation, sudo vim / etc / profile, the input end of the file
PATH=$PATH:/root/anaconda3/bin #路径名跟自己实际情况而定 export PATH
Then save and exit, the input source / etc / profile configuration to take effect
- vncserver support is python2.7, and the newly installed Anaconda3 installation is python3
Reference links:
Python installed VNC interface-related components result in a black screen solution
Liunx system environment variables add anaconda
Then reboot, reboot
- Use conda create -n py36 python = 3.6 to create a virtual environment
- conda activate created environment
- Use pip install -i https://pypi.douban.com/simple installation package to their needs, such as tensorflow-gpu-1.8
Reference Link:
to solve the problem of slow download package pip - When running the program remember to write python3 xxx.py instead of python xxx.py
3, installation Pycharm, and the use of Anaconda software library
sh pycharm.sh
有时候会出现tensorflow-gpu不能使用的问题,可以将gcc\g++设置位4.8
4, server upload and download files using Putty comes pscp
Open cmd, cd path to Putty
- Upload:
pscp D:\Anaconda3-2019.03-Linux-x86_64.sh [email protected]:/root/
- download:
pscp [email protected]:/root/Anaconda3-2019.03-Linux-x86_64.sh.zip D:\
If FATAL ERROR occurs when using pscp upload: Remote side unexpectedly closed network connection
off cmd, repeat the above operation