diff --git a/src/db/mongodb.sh b/src/db/mongodb.sh new file mode 100644 index 0000000..451b4e9 --- /dev/null +++ b/src/db/mongodb.sh @@ -0,0 +1,25 @@ +#! /usr/bin/env bash + +echo "Installing Mongo DB" +echo "Its assumed you're running Bionic Beaver or Xenial Xerus" + +# grab gpg key +wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - + +ubuntu_v = lsb_release -c + +# if the ubuntu version is xenial or bionic, get appropriate list file. use xenial as default +if [ubuntu_v = "bionic"]; then + echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list +elif [ubuntu_v = "xenial"]; then + echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list +else + echo "Seems you're not using Xenial Xerus or Bionic Beaver. Using list file for Xenial Xerus" + echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list +fi + +# reload package db +sudo apt-get update + +# install mongodb +sudo apt-get install -y mongodb-org diff --git a/src/languages/go.sh b/src/languages/go.sh new file mode 100644 index 0000000..2cf5b0f --- /dev/null +++ b/src/languages/go.sh @@ -0,0 +1,29 @@ +#! /usr/bin/env bash + +echo "Installing go for you" +echo "#############################" + +# download go +#################################################################################### +curl -O https://storage.googleapis.com/golang/go1.12.9.linux-amd64.tar.gz +#################################################################################### + +# extract the downloaded file +tar -xvf go1.12.9.linux-amd64.tar.gz + +# give necessary permissions +sudo chown -R root:root ./go +sudo mv go /usr/local + +# create directory for go +mkdir ~/Desktop/go + +# update the ~/.bashrc file +cat << 'END' >> ~/.bashrc + +export GOPATH=$HOME/Desktop/go +export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin + +END + +echo "Go has been installed. Do not forget to install necessary Go plugins in the text editor" \ No newline at end of file diff --git a/src/languages/rust.sh b/src/languages/rust.sh new file mode 100644 index 0000000..ea27488 --- /dev/null +++ b/src/languages/rust.sh @@ -0,0 +1,12 @@ +#! /usr/bin/env bash + +echo "Installing Rust...." +echo "#####################################################################" + + +# download rust +curl https://sh.rustup.rs -sSf | sh + +echo \ +"Rust has been installed for you" +\ \ No newline at end of file diff --git a/src/tools/vscode.sh b/src/tools/vscode.sh new file mode 100644 index 0000000..eff21d5 --- /dev/null +++ b/src/tools/vscode.sh @@ -0,0 +1,22 @@ +#! /usr/bin/env bash + +echo "Installing VSCode" +echo " " +echo " " +# get the gpg key +curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg + +sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/ + +# add to file list +sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' + +sudo apt-get install apt-transport-https + +sudo apt-get update + +sudo apt-get install code + +echo " " +echo " " +echo "Done. VSCode installed" \ No newline at end of file