# Install Nvidia video card driver and CUDA driver on Ubuntu ## 1. Install video card driver a. sudo add-apt-repository ppa:graphics-drivers/ppa b. sudo apt update c. Go to https://www.nvidia.com/Download/index.aspx?lang=en-us to select your own system and card version and it shows the suitable driver version d. sudo apt-get install nvidia-driver-460 (460 is the driver version for your card) e. reboot and run command 'nvidia-smi' to check environment is established or not ## 2. Install CUDA driver a. Go to https://developer.nvidia.com/cuda-downloads and select your system (the last option if you select runfile(local), it seems to install different version of card driver and causes the installization failed. If you select deb(local), it will be ok) b. Follow the instructions below of webpage c. sudo apt install nvidia-cuda-toolkit d. run command 'nvcc -V' to check the environment is established or not * Disable the GUI of ubuntu server * sudo systemctl set-default multi-user.target * sudo reboot