Jump to content

Linux: Difference between revisions

168 bytes added ,  5 February 2021
Line 167: Line 167:
* Run <code>ubuntu-drivers list</code> to get a list of drivers
* Run <code>ubuntu-drivers list</code> to get a list of drivers
* Install the latest driver
* Install the latest driver
** E.g. <code>sudo apt install nvidia-driver-450</code>
** E.g. <code>sudo apt install nvidia-driver-460</code>
* If you have secure boot enabled, you will be asked for a password during installation
* If you have secure boot enabled, you will be asked for a password during installation
** This is because the driver is a DKMS module.
** This is because the driver is a DKMS module.
** After installation, reboot your computer and select "Enroll MOK" and enter that password in.
** After installation, reboot your computer and select "Enroll MOK" and enter that password in.
** '''Note''' Failure to do this will result in the driver not working
** '''Note''' Failure to do this will result in the driver not working
* Validate your installation by running <code>nvidia-smi</code>
* Validate your installation by running <code>nvidia-smi</code>.
** <code>nvidia-smi</code> shows the latest cuda version supported by the driver, not necessarily the cuda version installed.


===Cuda Installation===
===Cuda Installation===
Download cuda from the nvidia website.
Download cuda from the nvidia website or add the cuda repo to your apt sources.


===Switching between Nvidia and Intel===
===Switching between Nvidia and Intel===