Last active
November 25, 2022 17:55
-
-
Save sierra-tango-echo/08a075eb5f9691871345f3747039cf27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -ex | |
NVIDIA_URL=https://uk.download.nvidia.com/tesla/460.106.00/NVIDIA-Linux-x86_64-460.106.00.run | |
if ( lspci | grep -qi nvidia ); then | |
yum -y groupinstall "Development Tools" | |
yum -y install kernel-devel-`uname -r` | |
curl ${NVIDIA_URL} > /tmp/nvidia.run | |
sh /tmp/nvidia.run -a -q -s | |
touch /var/lib/cloud/REBOOT | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment