Server Installation

How to install UNIX/LINUX operating system on a server.

Server Initialization for Tensorflow
After installing the operating system through flash drive (will be elaborated in the future), do the following commands,

Install misc programs:
sudo apt update sudo apt upgrade sudo apt install vim sudo apt install hwinfo sudo hwinfo hwinfo --gfxcard --short

Mount directory for storage:
Use the following command to see existing devices, sudo fdisk -l For each drive do, sudo mkdir /storage/ss1t sudo mount /dev/sdb1 /storage/ss1t    # might need to use it again when a server is rebooted... sudo mkdir /storage/ss2t sudo mount /dev/sdc1 /storage/ss2t ...

Install Nvidia drivers:
needs to be updated!

sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update apt-cache search nvidia-driver sudo apt install nvidia-430 sudo reboot nvidia-smi

Install docker engine:
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 - 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

Add Nvidia support:
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

Create a Tensorflow Docker:
Go to Docker page.