Skip to content

Commit f19425b

Browse files
committed
add vagrant installation
1 parent 6629398 commit f19425b

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* [RubyGems](Ruby/RubyGems.md)
2828
* [Node.js](Node.js/README.md)
2929
* [Heroku](Heroku/README.md)
30+
* [Vagrant](Vagrant/README.md)
3031
* [Latex](Latex/README.md)
3132
* [Apps](Apps/README.md)
3233
* [Octave](Apps/Octave.md)

Vagrant/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Vagrant
2+
3+
Create and configure lightweight, reproducible, and portable development environments. [Vagrant](http://www.vagrantup.com/) is an amazing tool for managing virtual machines via a simple to use command line interface.
4+
5+
### Install
6+
7+
Vagrant uses [Virtualbox](https://www.virtualbox.org/) to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.
8+
9+
$ brew cask install virtualbox
10+
11+
Now install Vagrant either from the website or use homebrew for installing it.
12+
13+
$ brew cask install vagrant
14+
15+
[Vagrant-Manager](http://vagrantmanager.com/) helps you manage all your virtual machines in one place directly from the menubar.
16+
17+
$ brew cask install vagrant-manager
18+
19+
### Usage
20+
21+
Add the Vagrant box you want to use. We'll use Ubuntu 12.04 for the following example.
22+
23+
$ vagrant box add precise64 http://files.vagrantup.com/precise64.box
24+
25+
You can find more boxes at [Vagrant Cloud](https://vagrantcloud.com)
26+
27+
Now create a test directory and cd into the test directory. Then we'll initialize the vagrant machine.
28+
29+
$ vagrant init precise64
30+
31+
Now lets start the machine using the following command.
32+
33+
$ vagrant up
34+
35+
You can ssh into the machine now.
36+
37+
$ vagrant ssh
38+
39+
Halt the vagrant machine now.
40+
41+
$ vagrant halt
42+
43+
Other useful commands are `suspend`, `destroy` etc.
44+

0 commit comments

Comments
 (0)