update_cuda.sh 423 B

123456789101112131415
  1. #!/bin/bash
  2. if [ ! -f /home/wareck/.cuda_install ]
  3. then
  4. if [ ! -f cuda_12.2.2_535.104.05_linux.run ]
  5. then
  6. megadown https://mega.nz/file/u9h1wbYL#QuHtEpCErWXDFjjMVFTK9QzcAI5SrsgTMbx6DfFJT2k
  7. fi
  8. chmod +x cuda_12.2.2_535.104.05_linux.run
  9. sudo service lightdm stop
  10. touch /home/wareck/.cuda_install
  11. sudo init 3
  12. fi
  13. sudo rm /tmp/.X1-lock
  14. sudo ./cuda_12.2.2_535.104.05_linux.run --silent --driver
  15. sudo rm /home/wareck/.cuda_install