Skip to content

Instantly share code, notes, and snippets.

@adikrishnan
Last active January 1, 2018 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adikrishnan/c07949827e550907887bddb4e4b534e1 to your computer and use it in GitHub Desktop.
Save adikrishnan/c07949827e550907887bddb4e4b534e1 to your computer and use it in GitHub Desktop.
Adi's Vagrant Settings
#!/bin/bash
echo "#### Updating apt ####"
apt-get update
echo "#### Installing Python essentials ####"
apt-get install python3-dev build-essential python-virtualenv python3-setuptools python-pip libssl-dev libffi-dev tcl -y > /dev/null
echo "#### Installing Git ####"
apt-get install git -y > /dev/null
echo "#### Setting up Git user and email ####"
`git config --global config.user "User"` # @@@@ UPDATE THIS @@@@
`git config --global config.email "user@email.com"` # @@@@ UPDATE THIS @@@@
echo "@@@@ Git user - `git config --global config.user` @@@"
echo "@@@@ Git email - `git config --global config.email` @@@"
echo "#### Installing Vim ####"
apt-get install vim -y > /dev/null
echo "#### Creating vimrc ####"
touch /home/vagrant/.vimrc
echo "#### Setup vimrc ####"
echo "set wrap" >> /home/vagrant/.vimrc
echo "set tabstop=4 shiftwidth=4 expandtab" >> /home/vagrant/.vimrc
echo "set clipboard=unnamed" >> /home/vagrant/.vimrc
echo "set nu" >> /home/vagrant/.vimrc
echo "colorscheme desert" >> /home/vagrant/.vimrc
chown vagrant:vagrant /home/vagrant/.vimrc
echo "#### Create bash_profile ####"
echo "alias ls='ls -lh --color=auto'" >> /home/vagrant/.bash_profile
chown vagrant:vagrant /home/vagrant/.bash_profile
source /home/vagrant/.bash_profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "cygnus"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", path: "setup_environment.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment