OwnCloud is an open source implementation of online storage services and various applications (cloud computing). OwnCloud can be installed on a personal network (as a LAN). Dependencies on this server must will be in PHP and a database in SQLite, MySQL or PostgreSQL.
In addition to a web interface that allows you to view, edit and share data, OwnCloud implements standard protocols such as WebDAV for accessing files, CardDAV to access contacts and CalDAV for calendar, which allows to synchronization with the most common OS.
In this tutorial you will learn:
1 - How to install Owncloud on a personal web server.
2 - How to access data via a file explorer with WebDAV.
3 - How to mount a share in /etc/fstab to access the cloud locally.
4 - How to install a owncloud client on a Desktop.
5 - How to configure your Owncloud client for synchronization. Prerequisites
A computer with Linux OS (this tutorial is based on Ubuntu Enterprise Server 10.04LTS or 12.04LTS).
Apache web server (Apache web server with a public_html directory in the homedirectory).
A version of the PHP server - v5.3 minimum.
A computer with Linux OS (Ubuntu desktop distribution (12.04LTS)- to be used as the owncloud client). Installing OwnCloud on a web server
Go to the official website: http://owncloud.org/support/install/
Download the 'Latest Stable release'.
For this tutorial owncloud-4.0.4 was used.
The " username", will be your connection login of your "Linux ubuntu desktop" therefore your " homedirectory".
Unzip the downloaded file to the homedirectory of your server
Move the "owncloud" directory to "public_html" homeDirectory your server (or) in /var/www/, using one of th below commands:
The owner of the "www-data" web server should have the following directories in apps, data and config.
Two of these directories are part of your ownCloud installation, only the 'data' directory should be created.
Go to the owncloud directory
Create the directory 'data'
Configure rights fo apps, config and data:
sudo chown -R www-data:www-data apps
sudo chown -R www-data:www-data config
sudo chown -R www-data:www-data data
For the Owncloud application to work properly, we need to activate the "rewrite" and "headers" modules (not enabled by default in Apache).
sudo a2enmod rewrite
sudo a2enmod headers
Restart the Apache server to validate the modifications:
sudo service apache2 restart
If you have set the owncloud directory in /var/www/ do not perform the following command.
Create a symbolic link to the owncloud directory in /var/www/:
'Username' is the homedirectory of your server.
Launch your web server
Create a "users" group:
Settings -> Users -> drop down menu 'Groups' -> click 'Add Group'
Enter: Users and validate
Creating a user:
Put the same login and password to connect to your desktop.
Enter a "Name" and "password" -> select the group 'Users' -> click "Create".
Quit the application (as an administrator) and connect as a normal user. Access data via a file explorer with WebDAV
How to configure a WebDAV access that will allow us to save data to local folder via ownCloud?
We might as well mount it at root directory of your web server or in a subdirectory.
For this tutorial we will use our homedirectory, and create an 'owncloud'directory.
Installing WebDAV support (the davfs2 package)
Reconfigure davfs2 to allow access by a normal user
sudo dpkg-reconfigure davfs2 (select Yes at the prompt)
Add the user having permission mount the shared group options - davfs2
To allow the user to mount the shared cloud options we need to create the directory in question in its homedirectory.We'll name it as 'owncloud':
Mount 'owncloud' in fstab
For owncloud-4.0.4, insert the following line in your 'fstab', indicating the IP of your server:
http://ip_address_server/owncloud/remote.php/webdav/ /home/username/owncloud davfs user,rw,noauto 0 0
By going into your file explorer you will see a device named 'owncloud now present.
If you click on it, it will not work. You will get a message 'Unable to mount the device etc. ...'
Do not worry now,there are still some steps to make it work.
When installing " davfs2", an hidden directory and two files "davf2.conf" and "secrets" are created in the homedirectory of the username.
Configuring these two files:
davfs2.conf: uncomment the following lines and use these values, do not edit the rest.
gui_optimize 1 secrets
: add to the last line of this file (The double quotes are important).
" /home/username/owncloud/" "username" "password"
Username and password are the 'login' and 'password' to connect to your owncloud web server created earlier. This is why it is important to create a user in a group of users your owncloud server. Install the owncloud client to synchronize with the cloud
Add the source package in the list of sources of the apt protocol:
Request to update the list of packages
Installation of the Package
To receive owncloud-client package updates download the key:
Add the key:
Configure the owncloud client
Once the client is installed, the launch icon will be displayed in your applications.
Search with keyword: cloud.
Click on the icon to launch the application, a message appears to tell you need to configure your client.
Click on OK.
You shall see an icon with a small black cloud in the taskbar at the top right.
Left-click the icon and choose 'Configure ...'
Fill in the text field with the URL of your cloud.
Now enter your login and password of the user you have created.
Normally if you have followed the tutorial it should preferably be your username.
The following screen confirms the connection to your cloud.
You are then asked to choose a folder that will be synchronized.
Select the 'owncloud' directory that you have created in your homedirectory.
Give it a name (or alias) for our tutorial we will use: 'Moncloud'
On this screen, leave the default settings.
A "clientsync" folder will be created by default at the root of your cloud. You can delete it later if you want.
To verify that the 'clientsync' folder is present on your server.
Open your file explorer, click on 'owncloud' in 'Devices', you should see this directory.
Finally, to verify if everything is synced, left-click on the black cloud icon in the taskbar and select 'Open Status ...'
Latest update on October 23, 2013 at 06:03 AM by