This is our script to initialize a debian server (brand new clean netinst) with Nvidia GPUs with supports of Docker and Nvidia-Docker.
Current scripts have ONLY been tested using a local MacOS Mojave terminal (with zshell) to setup a remote clean netinst Debian 9 server. Adjustments are most likely required to apply on other systems.
-
Setup SSH key login and disable password login.
-
Grant admin user sudo permission.
-
Setup UFW.
-
Setup Nvidia CUDA driver.
-
Setup Docker and Nvidia Docker.
-
Setup git and net-tools.
-
A remote server with Nvidia GPU.
-
SSH with password login has been enabled on remote server.
-
Local id_rsa SSH key pairs.
-
Download CUDA driver from https://developer.nvidia.com/cuda-downloads, and put it inside the root of this directory.
-
Update
config.sh
and per your environments -
Make changes to the scripts per your needs
-
Run
./main.sh