diff --git a/.gitignore b/.gitignore index 07cddbe..6240efd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ config/mpv/watch_later/ config/fish/fishd.* config/fish/fish_variables +config/fish/conf.d/virtualfish-loader.fish config/ranger/bookmarks config/ranger/history config/ranger/tagged diff --git a/ubuntu/install-cuda.sh b/ubuntu/install-cuda.sh new file mode 100755 index 0000000..7e98c1d --- /dev/null +++ b/ubuntu/install-cuda.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e +sudo apt install linux-headers-$(uname -r) + +source /etc/lsb-release +if [ "$DISTRIB_RELEASE" = "18.04" ] && [ "$(uname -m)" = 'x86_64' ]; then + wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin + sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 + sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub + sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" + sudo apt-get update + sudo apt-get -y install cuda +fi