Archives For Vagrant

Step by step instruction to install MongoDB on Ubuntu based on:

Install MongoDB

Configure Package Management System (APT)

The Ubuntu package management tool (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys. Issue the following command to import theMongoDB public GPG Key:

sudo apt-key adv --keyserver hkp:// --recv 7F0CEB10

sudo apt-key adv –keyserver hkp:// –recv 7F0CEB10


Create a /etc/apt/sources.list.d/mongodb.list file using the following command.

echo 'deb dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list

Create a folder to install ubuntu

Now issue the following command to reload your repository:

sudo apt-get update

sudo apt-get update

Install Packages

Issue the following command to install the latest stable version of MongoDB:

sudo apt-get install mongodb-10gen

sudo apt-get install mongodb-10gen


When this command completes, you have successfully installed MongoDB! Continue for configuration and start-up suggestions.




How to install Vagrant on Windows and run using VirtualBox?

Based on the instructions from   , I am in the process of installing Vagrant on Windows 7. In this tutorial, we will be installing Vagrant, a bare bones server with Ubuntu installed. Vagrant is a server that runs under VirtualBox. You will need to have VirtualBox installed. You will also need to have Putty installed in order to access your new Vagrant server via SSH. These instructions also apply to Windows 8. Requirements: A hard connection to the Internet Putty needs to be installed. VirtualBox needs to be installed.

1. Download and install the most recent VirtualBox for Windows from

2. Setup new Virtual Machine In Virtual Box

3.  Download and install the latest version of Vagrant from
Steps are very simple and once the installation complete this is what you will see in C:\


4. Setup Vagrant in Windows 7/8

Change directory to C:\HashiCorp\vagrant\bin

Then type the following commands:

C:\HashiCorp\vagrant\bin> vagrant box add lucid32


Successfully added Box ‘Lucid32″ for “Virtualbox”

C:\HashiCorp\vagrant\bin> vagrant init lucid32

A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on`` for more information on using Vagrant.


A `Vagrantfile` has been placed in this directory

C:\HashiCorp\vagrant\bin> vagrant up

C:\HashiCorp\Vagrant\bin>vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Importing base box ‘lucid32’…
==> default: Matching MAC address for NAT networking…
==> default: Setting the name of the VM: bin_default_1396737444370_66404
==> default: Clearing any previously set network interfaces…
==> default: Preparing network interfaces based on configuration…
default: Adapter 1: nat
==> default: Forwarding ports…
default: 22 => 2222 (adapter 1)
==> default: Booting VM…
==> default: Waiting for machine to boot. This may take a few minutes…
default: SSH address:
default: SSH username: vagrant
default: SSH auth method: private key

Vagrant Up

Vagrant Up

 5. Open VirtualBox . Vagrant setup Ubuntu virtual machine in three line of command.


Very powerful and easy to setup Virtual Machine using Vagrant


6. Now let’s connect to Vagrant build virtual machine using putty

Open Putty and enter the following information.  When I installed I got IP address of with port 2222




You may get puTTY security Alert, click “Yes”


The server’s host key is not cached in the registry. You have to guarantee that the server is computer you think it is.
If you trust this host, hit yes to add the key to PuTTy’s cache and carry on connecting.
If you want to carry on connecting just once, without adding the key to the cache, hit NO. If you do not trust this host, hit Cancel to abandon the connection.

7. Enter username: vagrant and Password: vagrant

Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 07:26:29 2012 from



vagrant-built-virtual-machine is ready