Skip to content

Instantly share code, notes, and snippets.

@aeksco
Created September 15, 2017 04:20
Show Gist options
  • Save aeksco/747b11d7b2afddbbc7170ff785118635 to your computer and use it in GitHub Desktop.
Save aeksco/747b11d7b2afddbbc7170ff785118635 to your computer and use it in GitHub Desktop.
ubuntu_provision.sh
# Install VirtualBox + Vagrant
sudo echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" >> /etc/apt/sources.list
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y virtualbox-5.1
sudo apt-get install -y vagrant
# # # #
# Install Sublime Text
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
# # # #
# Remove LibreOffice
# Install ZSH
# Install Tmux
# Install Docker
# # # # #
echo "\nUpdating existing packages (sudo apt-get update)..."
sudo apt-get update
echo "\nInstalling Git and Unzip..."
sudo apt-get install -y git unzip zsh
# # # # #
echo "\nInstalling Docker..."
curl -sSL https://get.docker.com/ | sh
echo "\nAdding vagrant user to docker group..."
sudo usermod -aG docker vagrant
# # # # #
# echo "\nInstalling Docker Compose..."
sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m`
sudo chmod +x /usr/local/bin/docker-compose
# # # # #
# echo "\nInstalling Node.js..."
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
# echo "\Configuring node..."
mkdir ~/npm-global
sudo chown -R aeksco:aeksco ~/npm-global
npm config set prefix '~/npm-global'
echo "export PATH=~/npm-global/bin:$PATH" >> ~/.profile
source ~/.profile
# echo "\nInstalling global NPM CLI tools..."
npm install -g gulp nodemon
# # # # #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment