Last active
April 19, 2019 16:58
-
-
Save BrunoTorresF/af50f8c3367bd35d5cf4889f03cd5f78 to your computer and use it in GitHub Desktop.
DevEnv Installation Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt update | |
# git | |
sudo apt install git -y | |
# cUrl | |
sudo apt install curl -y | |
# nvm node npm | |
sudo -k | |
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" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
nvm install node && nvm use node | |
# yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install --no-install-recommends yarn -y | |
# Mysql | |
sudo apt update && sudo apt install mysql-server -y | |
# VSCode | |
sudo apt update && sudo apt install software-properties-common apt-transport-https wget -y | |
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | |
sudo apt update && sudo apt install code -y | |
# Atom | |
curl -L https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add - | |
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list' | |
sudo apt update && sudo apt install -y atom | |
# Chromium | |
sudo apt install chromium-browser -y | |
# Chrome | |
wget -P /tmp/ https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb | |
# 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 -y mongodb-org | |
sudo mkdir -p /data/db && sudo chown -R mongodb:mongodb /data/db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment