Skip to content

Commit

Permalink
fix broken user prompt, missing openblas, add-apt-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyoracle committed Oct 25, 2020
1 parent a24b7cb commit b0bede7
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
echo "This script is not idempotent. It is to be run only once at setup"
echo "Things are sure to break if this is run a second time"
read -p "Press enter if you understand and wish to continue"

echo "Update the package list..."
sudo apt update
echo "Upgrade installed packages..."
read -p "Press enter to continue"
sudo apt upgrade -y
echo "Install necessary packages to minimal Ubuntu system..."
read -p "Press enter to continue"
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
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
sudo apt clean
sudo apt autoremove -y

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

echo "Update Miniconda"
read -p "Press enter to continue"
conda update conda -q -y
conda clean -a -y -q

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


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

0 comments on commit b0bede7

Please sign in to comment.