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:
How to install Vagrant on Windows and run using VirtualBox?
Based on the instructions from http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-windows-7-and-8 , 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. http://www.putty.org/ VirtualBox needs to be installed.
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`vagrantup.com` for more information on using Vagrant.
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: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
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 127.0.0.1 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 10.0.2.2
Learn how to create effective Vagrant development environments
What to expect from this book:
As a very practical guide, this book will cover Vagrant from the requirements and installation to
slightly complex tasks, such as running multiple VMs and deploying “real” servers. It will walk
you through the most used Vagrant provisioners – Puppet, Chef and Ansible – showing their main
characteristics and a quick guide to get you started.
This book will also cover some important pro tips to create your Vagrant projects; and finally, a
collection of recipes for common provisioner tasks, such as installing packages, using templates,
running commands etc.
Vagrant Cookbook is updated to cover the most important new features from Vagrant 1.5. It targets
beginner to intermediate users, also serving as a quick reference for provisioners (Ansible, Puppet
and Chef) and how to improve your current Vagrant setups.