<syntaxhighlight lang="bash">
#!/bin/bash
</syntaxhighlight>In case you had the driver or an earlier release of CUDA already installed, my recommendation is to first uninstall them.
Note that the string "bionic" is the output of the command "lsb_release -cs". If you have an older version of Ubuntu, you can try to replace "bionic" with the output of this command, but it might not be supported. On a derivative Linux, this does not work, and you need to find out the correct Ubuntu lsb release by consulting their documentation.