This script facilitates running applications with the NVIDIA graphics card as the secondary GPU. It configures the environment for the applications to utilize the discrete graphics card using "nvidia-run".
After installation, you can run applications with the NVIDIA graphics card as the secondary GPU using the "nvidia-run" command followed by the application name. For example:
nvidia-run vlc
To install the NVIDIA-Run script, follow these steps:
- Download the
nvidia-run-installer.sh
script. - Make the script executable:
chmod +x nvidia-run-installer.sh
- Run the script with sudo privileges:
sudo ./nvidia-run-installer.sh
The installer script will perform the following actions:
- Check if it is run with sudo privileges.
- Create a script named "nvidia-run" with specific environment variables set to utilize the NVIDIA graphics card.
- Make the "nvidia-run" script executable.
- Add autocomplete functionality for "nvidia-run" to the user's .bashrc file if it's not already present.
- Source the .bashrc file to apply changes.
- Bash shell
- NVIDIA graphics card and drivers installed
- Access to run scripts with sudo privileges