Few weeks back, someone mailed me asking me to check their company product and asked me to give feedback.
So, i geek-ed into their website and found something called "vagrant".
While reading about it in curiosity, i found it cool. It's built in Ruby. So, i decided to play with it.
Here are some of the following steps to get started with Windows 8.1
:-
Note: None of the steps works in offline. Make sure to turn on the Internet ;)
Step 1: Install VirtualBox.
Step 2: Install Vagrant.
Note:- If you are Windows 10 user
, then make sure to test it in another system which already has Windows10.
After successfully installing Vagrant in Windows10, then I'd to restart my system for booting.
Then... BAM! Windows10 collapsed and died. So, this is a warning.
Step 3: Install PuTTY.
Step 4: Install PuTTYgen.
Good job! Now, we will require Cloud
.
Step 5: Open Command Prompt (run as admin). Dive-in to the directory location.
If your files in another disk, then type cd\ and followed by d:
or e:
or whatever.
Remember to remove the Vagrant file
which will be found in bin
folder.
Step 6:
vagrant init ubuntu/trusty64
--- this is official box for Ubuntu Server 14.04 LTS.
Step 7:
vagrant up
--- Now, we need to wait for few hours for the installation to complete.
Step 8: --- Now, installation is completed.
For listing the virtual boxes --> vagrant box list
If we wanna delete a box --> vagrant box remove box/name
During the end of installation in step 6, we would have noticed a problem in SSH
.
For that, we require to use PuTTY
.
Step 9:
Open PuTTY.
Set host address as 127.0.0.1
and port as 2200
As default,
For config, check --> vagrant ssh-config
and also:- vagrant ssh
Step 10:
Next is about using public key and private key...
Open PuTTYgen.
If you already have a public/private key, then click load
and load the key.
You may already have one stored in .vagrant.d
which is insecure.
If not, then click Generate
.
After generating it, click Save Private Key
and then, Load
.
In the meantime, open PuTTY
, expand SSH
towards your left.
Click Auth
. Then, To your right, browse and add the saved private key.
Important Basic Hints:-
To check vagrant status -> vagrant status
To stop or turn off vagrant -> vagrant halt
To suspend vagrant -> vagrant suspend
To resume vagrant -> vagrant resume
To turn back vagrant on -> vagrant up
As developers, next is about setting-up a development environment using Vagrant.
Step 11:
Go to VVV and follow from step 4 to get started with setup configuration
.
After successfully accomplishing step 11
, Here are bunch of free toys we will get to play:-
WordPress Develop, WordPress Stable, WordPress Trunk, WP-CLI, nginx 1.6.x, mysql 5.5.x, php-fpm 5.5.x,
memcached 1.4.13,
PHP memcache extension 3.0.8,
PHP xdebug extension 2.2.5,
PHP imagick extension 3.1.2,
PHPUnit 4.0.x,
ack-grep 2.04,
git 1.9.x,
subversion 1.8.x,
ngrep,
dos2unix,
Composer,
phpMemcachedAdmin,
phpMyAdmin 4.1.14 (multi-language),
Opcache Status,
Webgrind,
NodeJs Current Stable Version,
grunt-cli Current Stable Version