1
1
echo " This script is not idempotent. It is to be run only once at setup"
2
2
echo " Things are sure to break if this is run a second time"
3
- read -p " Press enter if you understand and wish to continue"
4
3
5
4
echo " Update the package list..."
6
5
sudo apt update
7
6
echo " Upgrade installed packages..."
8
- read -p " Press enter to continue"
9
7
sudo apt upgrade -y
10
8
echo " Install necessary packages to minimal Ubuntu system..."
11
- read -p " Press enter to continue"
12
- sudo apt install -y fish wget bzip2 curl git gcc g++ python3-dev build-essential vim nano rsync htop tree screen libatlas-base-dev libboost-all-dev
9
+ sudo apt install -y fish wget bzip2 curl git gcc g++ python3-dev build-essential vim nano rsync htop tree screen libatlas-base-dev libboost-all-dev libopenblas-dev
13
10
sudo apt clean
14
11
sudo apt autoremove -y
15
12
16
13
echo " Install miniconda..."
17
- read -p " Press enter to continue"
18
14
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~ /miniconda.sh
19
15
chmod +x miniconda.sh
20
16
./miniconda.sh -b -p $HOME /miniconda3
@@ -28,12 +24,10 @@ source ~/.bashrc
28
24
rm miniconda.sh
29
25
30
26
echo " Update Miniconda"
31
- read -p " Press enter to continue"
32
27
conda update conda -q -y
33
28
conda clean -a -y -q
34
29
35
30
echo " Add a swap file"
36
- read -p " Press enter to continue"
37
31
echo " Enter swap value in GB as such: 10G for 10 GB swap area"
38
32
read swapvalue
39
33
sudo fallocate -l $swapvalue /swapfile
@@ -48,7 +42,7 @@ echo "/swapfile swap swap defaults 0 0"
48
42
49
43
50
44
echo " Installing GPU Drivers"
51
- read -p " Press enter to continue "
45
+ sudo apt-get install software-properties-common
52
46
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
53
47
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
54
48
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
0 commit comments