Install required software script after installation of Ubuntu 20.04


#!/usr/bin/env bash

sudo apt update

echo '======== Install guake ========'
if ! [ -x "$(command -v guake)" ]; then
  sudo add-apt-repository ppa:linuxuprising/guake
  sudo apt update$ sudo dpkg -i google-chrome-stable_current_amd64.deb
  sudo apt install guake -y
  echo '>>> guake installed'
else
  echo '>>> guake already Installed'
fi

echo '======== Installing wGet ========'
if ! [ -x "$(command -v wget)" ]; then
  sudo apt install wget -y
else
  echo '>>> wget already Installed'
fi


echo -n 'Do you want to install Google Chrome via terminal interface [y or n]?'
read -r installChrome
if [ "$installChrome" == 'y' ]; then
    echo '======== Installing chrome ========'
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    sudo dpkg -i google-chrome-stable_current_amd64.deb
    rm google-chrome-stable_current_amd64.deb
    echo '>>> chrome installed'
else
  echo '>>> chrome already Installed'
fi

echo '======== Installing git ========'
if ! [ -x "$(command -v git)" ]; then
  sudo apt install git -y
  echo '>>> git installed'
else
  echo '>>> git already Installed'
fi

echo '======== Installing docker ========'
if ! [ -x "$(command -v docker)" ]; then
  echo '======== Installing docker dependencies ========'
  sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
  
  echo '======== Import repository GPG key ========'
  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  
  echo '======== Add the Docker APT repository to your system: ========'
  sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  
  echo '======== Installing Latest Verson of docker ========'
  sudo apt install docker-ce docker-ce-cli containerd.io -y

  dockerUser=`whoami`
  echo '========  Adding user to the group who can execute docker ======== '
  echo "Adding user '$dockerUser' (from command \`whoami\`)" 
  sudo usermod -aG docker $dockerUser
  
  echo '======== Granting the user ownership with executing docker ========'
  sudo setfacl --modify user:$dockerUser:rw /var/run/docker.sock
 
  echo '======== Verify installation ========'
  docker container run hello-world
else
  echo '>>> docker already Installed'
fi

echo '======== Installing docker Compose ========'
if ! [ -x "$(command -v docker-compose)" ]; then
  sudo apt install docker-compose
  echo '>>> docker-compose installed'
else
  echo '>>> docker-compose already Installed'
fi

echo '======== Installing Slack ========'
if ! [ -x "$(command -v slack)" ]; then
  sudo snap install slack --classic
  echo '>>> slack installed'
else
  echo '>>> slack already Installed'
fi

echo '======== Installing PHP Storm ========'
if ! [ -x "$(command -v phpstorm)" ]; then
  sudo snap install phpstorm --classic
  echo '>>> phpstorm installed'
else
  echo '>>> phpstorm already Installed'
fi

echo '======== Install Open VPN 3 ========'
if ! [ -x "$(command -v openvpn3)" ]; then
  distributionName=`lsb_release -cs`
  
  sudo apt install apt-transport-https
  wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
  sudo apt-key add openvpn-repo-pkg-key.pub
  
  sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$distributionName.list
  
  sudo apt update
  sudo apt install openvpn3  

  echo '>>> open vpn3 installed'
else
  echo '>>> open vpn3 already Installed'
fi



Done!