- #!/bin/bash
- if [ ! -f /home/wareck/.cuda_install ]
- then
- if [ ! -f cuda_12.3.2_545.23.08_linux.run ]
- then
- wget https://developer.download.nvidia.com/compute/cuda/12.3.2/local_installers/cuda_12.3.2_545.23.08_linux.run
- fi
- chmod +x cuda_12.3.2_545.23.08_linux.run
- sudo service lightdm stop
- touch /home/wareck/.cuda_install
- sudo init 3
- fi
- echo "Updating ..."
- sudo rm /tmp/.X1-lock
- sudo ./cuda_12.3.2_545.23.08_linux.run --silent --driver
- sudo rm /home/wareck/.cuda_install
|