Professional Documents
Culture Documents
Cloud Computing
Cloud Computing
Cloud Computing
your
cloud from network eavesdropping like MITM attacks etc.
Requirements:
Good Internet Connection (Static IP would be preferable in case if you want to provide services to
outsiders)
Step1: Boot up your kali Linux and open a browser and download the owncloud file from the official
website. Download the zip file so that you can follow the next commands along with me.
Chinni Diwakar 1
After Downloading goto download location on your kali linux (/root/Downloads) and Extract the
owncloud archive files with the below given command
Chinni Diwakar 2
Chinni Diwakar 3
You can see the extracted files are there in owncloud directory.
Copy or move the files towards the webserver directory in the lab scenario it would be /var/www/html/
Copy the permission giving script from the official website and make it executable and execute that file
to do some operations which are required.
The file contents are provided below you can copy paste to do the job.
#!/bin/bash
ocpath='/var/www/html/owncloud'
htuser='www-data'
htgroup='www-data'
rootuser='root'
Chinni Diwakar 4
chown -R ${htuser}:${htgroup} ${ocpath}/data/
chown -R ${htuser}:${htgroup} ${ocpath}/themes/
chown -R ${htuser}:${htgroup} ${ocpath}/assets/
chmod +x ${ocpath}/occ
Install the following packages so that the owncloud will work without any problems.
apt-get update
Chinni Diwakar 5
apt-get install php5-curl php5-gd –y
Then restart your apache2 and MySQL servers to get started, execute the below commands to restart
them.
Or
Chinni Diwakar 6
You could see your own cloud server is prompting for the first time setup. Go on and proceed with the
initial setup. If you don’t know what to configure follow the given details
Username: yourchoice
Password: yourchoice
Chinni Diwakar 7
Then click register button to complete the installation process.
Chinni Diwakar 8
Now your cloud is ready to go
Chinni Diwakar 9
If it is local host you can only access it change that localhost into your ip so everyone can access.
Chinni Diwakar 10
Practical No 2: Enabling SSL to prevent network eavesdropping like MITM attacks.
First check your website can be opened through https or not by trying
https://yourwebserveraddress/owncloud
Ex: https://localhost/owncloud
Open a terminal in your owncloud installed pc and execute the following commands
a2enmod ssl
a2ensite default-ssl
Chinni Diwakar 11