Skip to content

Commit b0bede7

Browse files
committed
fix broken user prompt, missing openblas, add-apt-repository
1 parent a24b7cb commit b0bede7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

setup.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
echo "This script is not idempotent. It is to be run only once at setup"
22
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"
43

54
echo "Update the package list..."
65
sudo apt update
76
echo "Upgrade installed packages..."
8-
read -p "Press enter to continue"
97
sudo apt upgrade -y
108
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
1310
sudo apt clean
1411
sudo apt autoremove -y
1512

1613
echo "Install miniconda..."
17-
read -p "Press enter to continue"
1814
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
1915
chmod +x miniconda.sh
2016
./miniconda.sh -b -p $HOME/miniconda3
@@ -28,12 +24,10 @@ source ~/.bashrc
2824
rm miniconda.sh
2925

3026
echo "Update Miniconda"
31-
read -p "Press enter to continue"
3227
conda update conda -q -y
3328
conda clean -a -y -q
3429

3530
echo "Add a swap file"
36-
read -p "Press enter to continue"
3731
echo "Enter swap value in GB as such: 10G for 10 GB swap area"
3832
read swapvalue
3933
sudo fallocate -l $swapvalue /swapfile
@@ -48,7 +42,7 @@ echo "/swapfile swap swap defaults 0 0"
4842

4943

5044
echo "Installing GPU Drivers"
51-
read -p "Press enter to continue"
45+
sudo apt-get install software-properties-common
5246
curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
5347
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
5448
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub

0 commit comments

Comments
 (0)