diff --git a/docker-ubuntu.sh b/docker-ubuntu.sh new file mode 100644 index 0000000..0466d76 --- /dev/null +++ b/docker-ubuntu.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +#Exit on error +set -e + +sudo -v + +#Add the GPG key for the official Docker repository to the system +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + +#Add the Docker repository to APT sources +sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" + +#Update the package database with Docker packages from the newly added repo +sudo apt update -y + +#To install from the Docker repo instead of the default Ubuntu16.04 repo +apt-cache policy docker-ce + +#Install Docker +sudo apt-get install -y docker-ce + +#To check the docker version +docker version diff --git a/firefox.sh b/firefox.sh new file mode 100644 index 0000000..44748e9 --- /dev/null +++ b/firefox.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +#Exit on error +set -e + +echo -n "Installing Firefox browser..." + +# Update the package list +sudo apt-get update > /dev/null + +cd /tmp/ + +#Download Latest version of Firefox +wget -L -O firefox.tar.bz2 'https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US' + +#Untar the tar ball named firefox.tar.bz2 into your home directory +tar xvf firefox.tar.bz2 -C $HOME + +#Start Firefox from the CLI +~/firefox/firefox + +#Verify the firefox version +firefox --version diff --git a/golang.sh b/golang.sh index 7156481..d401b18 100644 --- a/golang.sh +++ b/golang.sh @@ -27,7 +27,7 @@ sudo echo "export GOROOT=/usr/local/go" | sudo tee -a ~/.profile sudo echo "export GOPATH=$HOME" | sudo tee -a ~/.profile #to access go binary system wide -sudo echo "export PATH=$PATH:/usr/local/go/bin" | sudo tee -a /.profile +sudo echo "export PATH=$PATH:/usr/local/go/bin" | sudo tee -a ~/.profile #VERIFY INSTALLATION diff --git a/k8s-ubuntu.sh b/k8s-ubuntu.sh new file mode 100644 index 0000000..4be674f --- /dev/null +++ b/k8s-ubuntu.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +#Exit on error +set -e + +sudo -v + +#INSTALL DEPENDENCIES + +#To allow using https as well as http in apt repository sources +sudo apt-get update && apt-get install -y apt-transport-https + +#Docker dependencies +sudo apt install docker.io -y + +#To start and enable the Docker service +sudo systemctl start docker + +sudo systemctl enable docker + +#INSTALL KUBERNETES + +#To download and add key for the Kubernetes +sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add + +echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list + +#Install Kubernetes + +sudo apt update -y + +sudo apt install -y kubelet kubeadm kubectl kubernetes-cni