Skip to content

Instantly share code, notes, and snippets.

@topheman
Last active August 29, 2015 14:23
Show Gist options
  • Save topheman/868e8c8d8b6fc503fca6 to your computer and use it in GitHub Desktop.
Save topheman/868e8c8d8b6fc503fca6 to your computer and use it in GitHub Desktop.
Vagrant

#Install

If cask not installed : https://github.com/caskroom/homebrew-cask

$ brew install caskroom/cask/brew-cask

Install vagrant - http://sourabhbajaj.com/mac-setup/Vagrant/README.html

$ brew cask install virtualbox
$ brew cask install vagrant
$ brew cask install vagrant-manager

Completion - https://github.com/kura/vagrant-bash-completion

#Setup an Ubuntu

$ mkdir ubuntu_trusty64
$ cd ubuntu_trusty64
$ vagrant box add ubuntu/trusty64
$ vagrant init ubuntu-VAGRANTSLASH-trusty64
$ vagrant up

#Connect to VM

$ vagrant ssh

Then, for example ...

$ sudo apt-get install git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment