CS439 CC F19 Assignment1
CS439 CC F19 Assignment1
Assignment 1
Marks: 20 Deadline: 22-10-2019
Deliverables
1. Hard and soft copy of the assignment report. The report will be a
summary of you experiences while doing the assignment.
2. Demo and viva.
-------------------------------------------------------------
List of Tasks
Steps to follow
Note that:
5. To get the CentOS 7 VM box, do the following in the vagrant project directory:
a. In case of fresh vagrant project setup, issue following commands (as
root/administrator):
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
Login to VM Box
Method 1
1. Vagrant up command downloads the box when issued first time and boot the VM box.
2. Login to the virtual machine using the command
$ vagrant ssh
Method 2
3. VM could also be accessed remotely by using an SSH client (e.g. Putty on Windows).
Download Putty (https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-0.70-
installer.msi) and install it.
4. Default private key does not work with putty. To generate a putty specific key file, use the
Puttygen tool.
a. Double click on Puttygen tool in the installation directory.
b. Load file “<path to vagrant project>\.vagrant\machines\default\virtualbox\
private_key”. See a “successfully imported…” message.
c. Enter a Key passphrase and confirm it.
d. Press Save private key button.
e. Save .ppk file with a suitable name.
f. Go to the directory and double click the generated .ppk file. Enter the passphase
if required.
g. Open Putty and login to the VM using
Host / IP 127.0.0.1
Port 2222
User vagrant
You will see directories of the VM in your browser. Interact with some files and you will see the
log of http requests handled by the web server running on the VM.
**~*~*~*~*~*~*~*~*~*~*~**