- Download and install VirtualBox 5.1.6
- Download and install Vagrant 1.8.6
- Download Git for Windows:
- Run the installer and "next" through the wizard until the step to adjust your PATH environment.
- Choose the third option, "Run Git and included tools from within the Windows Command prompt"
- Important: On the next step, "Configuring the line ending conversions", choose the second option: "Checkout as-is, commit Unix-style line endings".
- Choose "next" through any additional steps to complete the Git for Windows install.
- Open the Windows Command Prompt as Administrator
Fork this repository on Github.
Clone your fork of the golang-vagrant
respository to a directory on your host machine:
host $ git clone https://github.com/<your-github-username-here>/golang-vagrant.git
host $ cd golang-vagrant
Start the virtual machine:
host $ vagrant up
Connect to the virtual machine via ssh:
host $ vagrant ssh
Try it out!
guest $ cd dev
guest $ go run pi.go