Wednesday, March 18, 2020

Cloud Computing Lab No 5


Cloud Computing Lab

Lab No. 5
Explore Storage as a service using own Cloud for remote file access using web interfaces.

ownCloud is a suite of client–server software for creating and using file hosting services. ownCloud is functionally very similar to the widely used Dropbox, with the primary functional difference being that the Server Edition of ownCloud is free and open-source, and thereby allowing anyone to install and operate it without charge on a private server. It also supports extensions that allow it to work like Google Drive, with online document editing, calendar and contact synchronization, and more. Its openness avoids enforced quotas on storage space or the number of connected clients, instead having hard limits (like on storage space or number of users) defined only by the physical capabilities of the server.

Installation and configuration of OwnCLoud
Own cloud can be installed over the any flavor of linux like Ubuntu, Centos, Fedora etc. but Ubuntu is preferable. The Steps for installation are as follows
Step 1 – Installing ownCloud
The ownCloud server package does not exist within the default repositories for Ubuntu. However, ownCloud maintains a dedicated repository for the distribution that we can add to our server.
To begin, download their release key using the curl command and import it with the apt-key utility with the add command:
$curl https://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04/Release.key | sudo apt-key add –
The 'Release.key' file contains a PGP (Pretty Good Privacy) public key which apt will use to verify that the ownCloud package is authentic.
Now execute following commands on the terminal

1) $ echo 'deb http://download.owncloud.org/download/repositories/10.0/Ubuntu_18.04/ /' | sudo tee /etc/apt/sources.list.d/owncloud.list
2) $sudo apt update
3)$ sudo apt install php-bz2 php-curl php-gd php-imagick php-intl php-mbstring php-xml php-zip owncloud-files

Step 2 :- Set the Document Root
The ownCloud package we installed copies the web files to /var/www/owncloud on the server. Currently, the Apache virtual host configuration is set up to serve files out of a different directory. We need to change the DocumentRoot setting in our configuration to point to the new directory.
$sudo apache2ctl -t -D DUMP_VHOSTS | grep server_domain_or_IP
Now edit the Configuration file and add following lines so that it points to the /var/www/owncloud directory:

$sudo nano /etc/apache2/sites-enabled/server_ domain_or_IP.conf

. . .
DocumentRoot /var/www/owncloud
. . .

When you are finished, check the syntax of your Apache files to make sure there were no detectable typos in your configuration
$sudo apache2ctl configtest
Output-: Syntax OK
Step 3 – Configuring the MySQL Database
Open mysql prompt, create database and execute following commands
1) $mysql -u root –p
2) mysql>CREATE DATABASE owncloud;
3) mysql>GRANT ALL ON owncloud.* to 'owncloud'@'localhost' IDENTIFIED BY 'owncloud_database_password';
4) mysql>FLUSH PRIVILEGES;

Step 4-: Configure ownCloud


To access the ownCloud web interface, open a web browser and navigate to the servers IP address as shown below

Own Cloud portal has two types of users like Admin user and local user. The admin user can create users/groups, assigns storage quota, assigns privileges and can manage users and group activities.



The local user is an restricted user who can perform local activities like upload or share files, delete local shares or can create share etc.




No comments:

Post a Comment

Lecture PPTs of MIS , Module 4 to Module 6

 Module 4 Social Computing (SC): Web 3.0 , SC in business-shopping, Marketing, Operational and Analytic CRM, E-business and E-commerce B2B B...