kiriyamaX commited on
Commit
b7c4e1e
1 Parent(s): 6f6613b

Update aws_software_setup.sh

Browse files
Files changed (1) hide show
  1. aws_software_setup.sh +30 -9
aws_software_setup.sh CHANGED
@@ -3,12 +3,33 @@
3
  # update
4
  sudo apt-get update
5
 
6
- # aws cli
7
- cd ~/
8
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
9
- sudo apt install unzip && unzip awscliv2.zip
10
- sudo ./aws/install
11
- rm awscliv2.zip
12
-
13
- # btop
14
- sudo snap install btop
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # update
4
  sudo apt-get update
5
 
6
+ # check and install aws cli if not exists
7
+ if ! command -v aws &> /dev/null
8
+ then
9
+ echo "Installing AWS CLI..."
10
+ cd ~/
11
+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
12
+ sudo apt install unzip && unzip awscliv2.zip
13
+ sudo ./aws/install
14
+ rm awscliv2.zip
15
+ else
16
+ echo "AWS CLI is already installed."
17
+ fi
18
+
19
+ # check and install btop if not exists
20
+ if ! command -v btop &> /dev/null
21
+ then
22
+ echo "Installing btop..."
23
+ sudo snap install btop
24
+ else
25
+ echo "btop is already installed."
26
+ fi
27
+
28
+ # check and install miniconda3 if not exists
29
+ if [[ ! $(which python) == *miniconda* ]]
30
+ then
31
+ echo "Installing Miniconda3..."
32
+ 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
33
+ else
34
+ echo "Miniconda3 is already installed."
35
+ fi