GPU server NVIDIA driver deployment document

Keywords: PHP sudo Linux vim

I. installation system
Install by default. Note the partition:
/boot 500M
SWAP 64G
/ Other space
 
II. Installation desktop
Note: if you are installing the desktop version, you do not need to install the desktop again
After the system is installed, you need to install the desktop environment. kde desktop is used by default
1 sudo apt-get install kubuntu-desktop
2 sudo apt-get install lightdm

 

III. installation of IPMI tools
1 sudo apt-get install -y ipmitool
2 sudo modprobe ipmi_msghandler
3 sudo modprobe ipmi_devintf
4 sudo modprobe ipmi_si

 

IV. install NVIDIA driver
Download driver:
1 wget http://us.download.nvidia.com/XFree86/Linux-x86_64/410.93/NVIDIA-Linux-x86_64-410.93.run
2 chmod +x NVIDIA-Linux-x86_64-410.93.run
Remove old drivers (not required for new systems):
1 sudo apt-get remove --purge nvidia*
Install dependent software:
1 sudo apt-get install build-essential freeglut3-dev libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
Create a new file and write the following:
1 sudo vim /etc/modprobe.d/blacklist-nouveau.conf

 

blacklist nouveau
options nouveau modeset=0

 

Install the drive:
sudo update-initramfs -u
sudo service lightdm stop
sudo ./NVIDIA-Linux-x86_64-410.93.run --no-opengl-files
sudo service lightdm start

 

V. install CUDA (install 10.0 or 9.2)
NVIDIA driver has been installed and does not need to be installed repeatedly (choose one from two)
Install CUDA 10.0
1 wget https://developer.nvidia.com/compute/cuda/10.0/Prod/ local_installers/cuda_10.0.130_410.48_linux
2 mv cuda_10.0.130_410.48_linux cuda_10.0.130_410.48_linux.run
3 sudo sh cuda_10.0.130_410.48_linux.run
4 sudo ldconfig /usr/local/cuda/lib64

 

Or install CUDA9.2(Without NVIDIA Driver)
1 wget https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda_9.2.148_396.37_linux
2 mv cuda_9.2.148_396.37_linux cuda_9.2.148_396.37_linux.run
3 sudo sh cuda_9.2.148_396.37_linux.run
4 sudo ldconfig /usr/local/cuda/lib64

 

Add following to the end of ~/.bashrc and run "source ~/.bashrc"
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 

 

 

Posted by xydra on Sat, 02 Nov 2019 13:36:43 -0700