# Install New GPU Server Environment ###### tags: `BO` ## OS (ubuntu 18.04) You know how to do. Borrow ubuntu USB from James. ## GPU Driver Take `NVIDIA-Linux-x86_64-450.57` for example + download from: https://www.nvidia.com.tw/Download/index.aspx?lang=tw + switch to terminal mode: `ctrl+alt+F3` + turn off UI by `sudo service lightdm stop` + set it executable: `chmod +x NVIDIA-Linux-x86_64-450.57.run` + install: `sudo ./NVIDIA-Linux-x86_64-450.57.run` + <font color=red>google all errors</font> + reboot computer: `sudo reboot` + check install successed: `nvidia-smi`, output should look like ![](https://i.imgur.com/nGdU15F.png) ## Nvidia Docker Runtime + follow the steps to install Docker-CE from [here](https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/ubuntu/). ``` $ sudo apt-get remove docker docker-engine docker.io containerd runc $ sudo apt-get update $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - # verify $ sudo apt-key fingerprint 0EBFCD88 $ sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" $ sudo apt-get update $ sudo apt-get install docker-ce docker-ce-cli containerd.io # verify $ sudo docker run hello-world ``` + follow [here](https://github.com/NVIDIA/nvidia-docker) to install nvidia docker runtime ``` $ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) $ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - $ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list $ sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit $ sudo systemctl restart docker ``` + verify: + start an L1 container and type `nvidia-smi` inside it. You should get gpu info if nvidia docker runtime installed successfully. ## FAQ ### `An NVIDIA kernel module 'nvidia-drm' appears to already be loaded in your kernel` + If facing the error above while sudo `./NVIDIA-Linux-x86_64-460.84.run`, then refer to the second solution of [this](https://clay-atlas.com/blog/2020/03/04/nvidia-chinese-note-how-to-disable-drm/) ```clike= $ sudo -i $ systemctl isolate multi-user.target $ modprobe -r nvidia-drm ```