Skip to content

added new scripts #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/db/mongodb.sh
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions src/languages/go.sh
Original file line number Diff line number Diff line change
@@ -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"
12 changes: 12 additions & 0 deletions src/languages/rust.sh
Original file line number Diff line number Diff line change
@@ -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"
\
22 changes: 22 additions & 0 deletions src/tools/vscode.sh
Original file line number Diff line number Diff line change
@@ -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"