Skip to content

Instantly share code, notes, and snippets.

@sierra-tango-echo
Last active November 25, 2022 17:55
Show Gist options
  • Save sierra-tango-echo/08a075eb5f9691871345f3747039cf27 to your computer and use it in GitHub Desktop.
Save sierra-tango-echo/08a075eb5f9691871345f3747039cf27 to your computer and use it in GitHub Desktop.
#!/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