Professional Documents
Culture Documents
Shailesh Cloud 5-9
Shailesh Cloud 5-9
Cloud
Computing
Practical File
Roll No: - 227520 Cloud Computing Date: / /20
INDEX
Practical: -05
Aim: - To study and implementation of Single-Sign-On
Step4: give name of application and select single page web application type and
click on create.
Practical: - 6
Aim: -To study cloud security management.
Step1: - visit aws.amazon.com.
Step4: -enter the mail id and account name verify email address.
▪ It will take you to "Create New Users" click on create new user button
▪ enter the "User Name" click on "Create" button at right bottom
Roll No: - 227520 Cloud Computing Date: / /20
▪ select the needed policy from given list and click on apply.
Roll No: - 227520 Cloud Computing Date: / /20
Practical No:-07
Aim: Installation and Configuration of virtualization using KVM
Step 3:#sudoadduserrait After running this command, log out and log back in as
rait
Step 4:#sudoadduserraitlibvirtd
After running this command, log out and log back in as rait
Conclusion:
Installation and configuration of KVM have been done successfully onto Ubuntu and
users added. Like this we can create as many virtual machines as possible on OS and
can install any windows onto it.
Roll No: - 227520 Cloud Computing Date: / /20
Practical No:09
Aim:-Write a program for web feed.
Code:
HTML Program:
<html>
<head>
<script>
function showRSS(str) {
if (str.length==0) {
document.getElementById("rssOutput").innerHTML="";
return;
}
if (window.XMLHttpRequest) {
Safari xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (this.readyState==4 && this.status==200) {
document.getElementById("rssOutput").innerHTML=this.responseText;
}
}
xmlhttp.open("GET","getrss.php?q="+str,true);
xmlhttp.send();
}
</script>
</head>
<body>
<form>
<select onchange="showRSS(this.value)">
<option value="">Select an RSS-feed:</option>
<option value="Google">Google News</option>
<option value="ZDN">ZDNet News</option>
</select>
</form>
<br>
<div id="rssOutput">RSS-feed will be listed here...</div>
</body>
</html>
Roll No: - 227520 Cloud Computing Date: / /20
PHP Program:
<?php
//get the q parameter from URL
$q=$_GET["q"];
//find out which feed was selected
if($q=="Google") {
$xml=("http://news.google.com/news?ned=us&topic=h&output=rss");
} elseif($q=="ZDN") {
$xml=("https://www.zdnet.com/news/rss.xml");
}
$xmlDoc = new DOMDocument();
$xmlDoc->load($xml);
//get elements from "<channel>"
$channel=$xmlDoc->getElementsByTagName('channel')->item(0);
$channel_title = $channel->getElementsByTagName('title')->item(0)->childNodes->item(0)-
>nodeValue;
$channel_link = $channel->getElementsByTagName('link')->item(0)->childNodes->item(0)-
>nodeValue;
$channel_desc = $channel->getElementsByTagName('description')->item(0)->childNodes-
>item(0)->nodeValue;
//output elements from "<channel>"
echo("<p><a href='" . $channel_link
. "'>" . $channel_title . "</a>");
echo("<br>");
echo($channel_desc . "</p>");
//get and output "<item>" elements
$x=$xmlDoc->getElementsByTagName('item');
for ($i=0; $i<=2; $i++) {
$item_title=$x->item($i)->getElementsByTagName('title')->item(0)->childNodes->item(0)-
>nodeValue;
$item_link=$x->item($i)->getElementsByTagName('link')->item(0)->childNodes->item(0)-
>nodeValue;
$item_desc=$x->item($i)->getElementsByTagName('description')->item(0)->childNodes-
>item(0)->nodeValue;
echo ("<p><a href='" . $item_link . "'>" . $item_title . "</a>");
echo ("<br>");
echo ($item_desc . "</p>");
}?>
Output:-