File size: 1,177 Bytes
dfb675d 7f6fb5b dfb675d b7c4e1e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/bin/bash
# update
sudo apt-get update
# check and install aws cli if not exists
if ! command -v aws &> /dev/null
then
echo "Installing AWS CLI..."
cd ~/
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
sudo apt install unzip && unzip awscliv2.zip
sudo ./aws/install
rm awscliv2.zip
else
echo "AWS CLI is already installed."
fi
# check and install btop if not exists
if ! command -v btop &> /dev/null
then
echo "Installing btop..."
sudo snap install btop
else
echo "btop is already installed."
fi
# check and install miniconda3 if not exists
if [[ ! $(which python) == *miniconda* ]]
then
echo "Installing Miniconda3..."
cd ~/ && mkdir -p miniconda3 && wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.5.2-0-Linux-x86_64.sh -O ./miniconda3/miniconda.sh --no-check-certificate && bash ./miniconda3/miniconda.sh -b -u -p ./miniconda3 && rm ./miniconda3/miniconda.sh && ./miniconda3/bin/conda init bash && source ~/.bashrc && python -m pip install unibox ipykernel jupyter && python -m ipykernel install --user --name=conda310
else
echo "Miniconda3 is already installed."
fi
|