CCLab
CCLab
CCLab
Assignment No 1
Sketch out and analyse architecture of Moodle cloud portal and Moodle cloud site
and create different entities dynamically
What is Moodle?
MOODLE ENVIRONMENT:
Moodle is an acronym for Modular Object-Oriented Dynamic Learning Environment.
Moodle is license free open-source software for e-learning Moodle as a Course / Content
Management System (CMS) is designed to enhance the productivity of educators in making
quality web based courses. CMS is also known as Learning Management System (LMS) or
Virtual Learning Environment (VLE). Moodle provides a wonderful platform to manage
resources and communication tools that are essential in academic environment. The user
accesses Moodle through the Internet from thin or thick client system because it is server or
cloud based.
Once again, you find yourself on a new page. Do the following general setup for the question:
For our sample course, we’ll set up closed navigation and create just one button, Next, that
leads to the next page.
Step 5: Add More Content and Question Pages
Create the rest of the pages using the lesson source file. Also, don’t forget to create the Next
button by entering the word Next in the Content 1 description and choose to jump to Next
page on each new page you add.
Assignment No. 2
Create a scenario in wordpress for social marketing, search
engine and sharing tools.
What is WordPress?
WordPress is a content management system, or CMS. It works by combining
some core files, a database, files that you add or install, and a dashboard to
let you manage the whole thing.
WordPress Core: the core files that make up the WordPress installation. You
need to install these before you can do anything else, as they make
WordPress work.
The database: this is where all of your content and settings are stored. Again,
WordPress can’t work without a database. If you install WordPress manually,
you’ll also need to create a database. But if you use an auto-installer, that will
do the job for you.
Extra files: on top of the WordPress core files, you can install extra files for
themes, plugins, and uploads. These will make your site run better as well as
making it unique to you. I’ll explain how each of these works shortly.
The admin screens: the admin screens, or dashboard, make it possible for
you to interact with your WordPress installation. That means you can manage
your site without having to write code.
URL: http://dreamstore7.unaux.com
Assignment No. 3
Working in Cloud9 to demonstrate different language.
What is Cloud9?
AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you
write, run, and debug your code with just a browser. It includes a code editor,
debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular
programming languages, including JavaScript, Python, PHP, and more, so you don’t
need to install files or configure your development machine to start new projects. Since
your Cloud9 IDE is cloud-based, you can work on your projects from your office, home,
or anywhere using an internet-connected machine. Cloud9 also provides a seamless
experience for developing serverless applications enabling you to easily define
resources, debug, and switch between local and remote execution of serverless
applications. With Cloud9, you can quickly share your development environment with
your team, enabling you to pair program and track each other's inputs in real time.
Assignment No. 4
Working in Codenvy to demonstrate provisioning and scaling of a website.
What is Codenvy?
Codenvy is a cloud workspace which individuals, teams and organisations can use
for software development on a number of programming languages python, java
Nodejs, etc.
Features of Codenvy cloud workspace:
Steps:
First we need to signup with the codenvy portal. URL is https://codenvy.io/
Once you get registered login to your account and you will see a dashboard.
Create our own personal workspace.
Name – simpleweb
Select stack – java(Default Java Stack with JDK 8, Maven and Tomcat)
Using a proxy
If you are running the deployment command from a system which uses an HTTP or
HTTPS proxy, you must configure the tool so that it can communicate via the proxy.
Deploying an app
To deploy your app to App Engine, use the gcloud app deploy command from where
your configuration files are located, for example app.yaml.
gcloud app deploy [CONFIGURATION_FILES]
Optional flags:
--version: Specifies a custom version ID. By default, App Engine generates a version ID.
--no-promote: Deploys your app without automatically routing all traffic to that version.
By default, each version that you deploy is automatically configured to receive 100%
of traffic.
--project: Specifies an alternate Cloud project ID to what you initialized as the default
in the gcloud tool.
For more information, see the gcloud app deploy reference or run gcloud help from the
command line.
When your application is factored into multiple services, you can deploy and update
individually targeted services or all the services simultaneously. Deploying updates
to services can include updating individual configuration files or updating the source
code in the corresponding versions.
For example, you can deploy and create two versions in App Engine, where each
version runs in their own service. The first version serves as the frontend service and
the other as the backend of your app. You can then deploy individual configuration
files to update only the settings of a service. You can also choose to deploy a new
version to a service in order to update the source code of the frontend, backend, or
both simultaneously.
You use the same deployment commands for deploying and updating the multiple
services of your application with the following requirements:
You must initially deploy a version of your app to the default service before you
can create and deploy subsequent services.
You must specify the ID of your service in the app.yaml configuration file of the
corresponding version. To specify the service ID, you include the service:
[YOUR_SERVICE_ID] element definition in each configuration file. By default,
excluding this element definition from your configuration file deploys the
version to the default service.
You must specify all the corresponding app.yaml configuration files in your
deployment command to simultaneously deploy multiple services.
To deploy multiple services
From the root directory of the application where the configuration files are located,
you run the deployment command and specify the relative paths and file names for
each service's app.yaml file.
Example
2. Use the Cloud Console to monitor the status of all your indexes:
3. After all your indexes are built, deploy the new version to App Engine.
Assignment No.6
Installation and configuration of virtual machine with guest OS
Virtualization:
Virtualization is the creation of virtual servers, infrastructures, devices and computing
resources.
Virtualization changes the hardware-software relations and is one of the foundational
elements of cloud computing technology that helps utilize the capabilities of cloud
computing to the full.
Virtualization techniques allow companies to turn virtual their networks, storage,
servers, data, desktops and applications.
❖ Hypervisor or Virtual Machine Monitor (VMM)
A hypervisor or virtual machine monitor (VMM) is a piece of computer software,
firmware or hardware that creates and runs virtual machines. A computer on which a
hypervisor is running one or more virtual machines is defined as a host machine. Each
virtual machine is called a guest machine. The hypervisor presents the guest operating
systems with a virtual operating platform and manages the execution of the guest
operating systems. Multiple instances of a variety of operating systems may share the
virtualized hardware resources.
❖ Types of Virtualization
Operating-system-level virtualization - is a server-virtualization method where the
kernel of an operating system allows for multiple isolated user space instances,
instead of just one. Such instances (sometimes called containers, software containers,
[1] virtualization engines (VE), virtual private servers (VPS), or jails) may look and
feel like a real server from the point of view of its owners and users
Platform / Hardware virtualization -Hardware virtualization or platform virtualization
refers to the creation of a virtual machine that acts like a real computer with an
operating system. Software executed on these virtual machines is separated from the
underlying hardware resources. For example, a computer that is running Microsoft
Windows may host a virtual machine that looks like a computer with the Ubuntu
Linux operating system; Ubuntu based software can be run on the virtual machine.
In hardware virtualization, the host machine is the actual machine on which the
virtualization takes place, and the guest machine is the virtual machine. The words
host and guest are used to distinguish the software that runs on the physical machine
from the software that runs on the virtual machine. Different types of hardware
virtualization include:
1. Full virtualization: Almost complete simulation of the actual hardware to
allow software, which typically consists of a guest operating system, to run
unmodified.
2. Partial virtualization: Some but not the entire target environment is simulated.
Some guest programs, therefore, may need modifications to run in this virtual
environment.
3. Para virtualization: A hardware environment is not simulated; however, the
guest programs are executed in their own isolated domains, as if they are
running on a separate system.
Application virtualization is software technology that encapsulates computer
programs from the underlying operating system on which it is executed. A fully
virtualized application is not installed in the traditional sense, although it is still
executed as if it were.
❖ Oracle Virtualbox
VirtualBox is a general-purpose full virtualizer for x86 hardware, targeted at server,
desktop and embedded use.Each virtual machine can execute its own operating
system, including versions of Microsoft Windows, Linux, BSD, and MS-DOS.
VMware Workstation is developed and sold by VMware, Inc., a division of
EMCCorporation
❖ Ubuntu
Ubuntu is an operating system like any other and it is free & open source. It means
that we can download it freely and install on as many computers as we like. By the
term open source it means that we can actually see its code. To provide a more secure
environment, the ―SUDO‖ tool is used to assign temporary privileges for performing
administrative tasks. Ubuntu comes installed with a wide range of Software that
includes Libre Office ,Firefox, Thunderbird
❖ Steps in Installing Oracle Virtualbox with CentOS 7
Step 1:
• Download and Install Oracle Virtual Box latest version &Extension package
https://virtualbox.org/wiki/downloads
Step 2:
• Download CentOS 7 OVA(Open Virtual Appliance) from Link :
https://linuxvmimages.com/images/centos-7
Step 3: The files are downloaded in your Local machine and Click the Oracle VM VirtualBox
6.0.8 Setup Wizard
Result:
Oracle VirtualBox is installed with CentOS 7 on top of windows 10 successfully.
Assignment No.7
Demonstrate the use of Map and reduce tasks.
MapReduce: MapReduce is a Hadoop framework used for writing applications that can
process vast amounts of data on large clusters. It can also be called a programming model in
which we can process large datasets across computer clusters. This application allows data to
be stored in a distributed form. It simplifies enormous volumes of data and large-scale
computing
There are two primary tasks in MapReduce: map and reduce. We perform the former task
before the latter. In the map job, we split the input dataset into chunks. Map task processes
these chunks in parallel. The map we use outputs as inputs for the reduce tasks. Reducers
process the intermediate data from the maps into smaller tuples, that reduces the tasks,
leading to the final output of the framework.
Source code:
package.org.myorg;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapred.*;
import org.apache.hadoop.util.*;
while (tokenizer.hasMoreTokens()) {
word.set(tokenizer.nextToken());
output.collect(word, one);
}
}
}
int sum = 0;
while (values.hasNext()) {
sum += values.next().get();
}
}
}
conf.setJobName("wordcount");
conf.setOutputKeyClass(Text.class);
conf.setOutputValueClass(IntWritable.class);
conf.setMapperClass(Map.class);
conf.setCombinerClass(Reduce.class);
conf.setReducerClass(Reduce.class);
conf.setInputFormat(TextInputFormat.class);
conf.setOutputFormat(TextOutputFormat.class);
JobClient.runJob(conf);
}
}
Assuming HADOOP_HOME is the root of the installation and HADOOP_VERSION is the Hadoop version i
$ mkdir wordcount_classes
$ javac -classpath ${HADOOP_HOME}/hadoop-${HADOOP_VERSION}-core.jar -d wordcount_cl
$ jar -cvf /usr/joe/wordcount.jar -C wordcount_classes/ .
Assuming that:
Output:
Assignment No. 8
Implement and use sample cloud services with the help of Microsoft Azure
Step 1: Register for Azure Free Trial Account
The first thing you must do is to get a Trial Account for Microsoft Azure. Microsoft Azure is
one of the top choices for any organization due to its freedom to build, manage, and deploy
applications. Here, we will look at how to register for the Microsoft Azure FREE Trial
Account (use link: https://login.microsoftonline.com/organizations/)
After you register for Microsoft Cloud Trial Account, you should get an Email Like the
below from Microsoft: