---
# System prepended metadata

title: Ubuntu Cuda and graphics driver installation

---

# Ubuntu Cuda and graphics driver installation

 - See GPU Name: `lspci | grep VGA` or `lshw -numeric -C display`
 - install nvidia-driver following any of the articles
 - install cuda
 - set cuda variables in `.bashrc` (change value according to your locations)
     ```
     # cuda related
    export CUDA_HOME=/usr/local/cuda-10.0
    export PATH="/usr/local/cuda-10.0/bin:$PATH"
    export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64:/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
     ```
 - install CuDnn [link](https://medium.com/@taylordenouden/installing-tensorflow-gpu-on-ubuntu-18-04-89a142325138)
 - install VideoSDK
 
### Articles

 - [How to install nvidia drivers](https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux)

 - [How to install nvidia drivers - linuxandubuntu](http://www.linuxandubuntu.com/home/how-to-install-latest-nvidia-drivers-in-linux)


### Errors and solution:

- In Dell Precision server was getting error: `NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.`
    
    **solution**: Disable secure boot