Skip to content

Instantly share code, notes, and snippets.

@adityak2190 adityak2190/Vagrantfile
Last active Jan 1, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.