Last active
January 1, 2018 06:30
-
-
Save adikrishnan/c07949827e550907887bddb4e4b534e1 to your computer and use it in GitHub Desktop.
Adi's Vagrant Settings
This file contains 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/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 "[email protected]"` # @@@@ 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 |
This file contains 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
# -*- 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