Skip to content

Instantly share code, notes, and snippets.

@oliverwebr
Created August 21, 2019 07:50
Show Gist options
  • Save oliverwebr/503a2975b1db0f63fde71476bf8cf1a3 to your computer and use it in GitHub Desktop.
Save oliverwebr/503a2975b1db0f63fde71476bf8cf1a3 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Update packages
sudo apt update && sudo apt-get upgrade -y
# Install needed tools
sudo apt install curl wget htop -y
# Installing Sublime Text + Git
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt install apt-transport-https -y
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt update
sudo apt install sublime-text git -y
# Installing Node.js
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install node
# Installing node packages
npm i -g node-sass live-server eslint eslint-config-standard eslint-config-react babel babel-cli babel-preset-env webpack webpack-cli eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard ajv pug-lint yarn
# Installing MongoDB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt update
sudo apt install mongodb-org -y --allow-unauthenticated
sudo mkdir -p /data/db
sudo chown mongodb:mongodb /data/db
sudo systemctl start mongod
sudo systemctl enable mongod
# Installing Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Installing Atom Editor
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
# Installing MongoDB Compass
wget https://downloads.mongodb.com/compass/mongodb-compass_1.12.5_amd64.deb;
sudo dpkg -i mongodb-compass_1.12.5_amd64.deb;
# Installing Slack
sudo snap install slack --classic
# Installing Visual Studio Code + Plugins
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code
code --install-extension eamodio.gitlens
code --install-extension donjayamanne.githistory
code --install-extension dbaeumer.vscode-eslint
code --install-extension mrmlnc.vscode-puglint
code --install-extension mrmlnc.vscode-pugbeautify
code --install-extension Zignd.html-css-class-completion
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension mikestead.dotenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment