Owncloud

Resources

ownCloud is a free, open source, Dropbox-like file synchronization and cloud service. Since it can be setup and hosted on private servers it has no set limit on storage capacity or the number of connected users.

Introduction[edit | edit source]

Features[edit | edit source]

  • File storage in conventional directory structures or via WebDAV;
  • Encryption of user files;
  • Synchronization of ownCloud Client running Windows (Windows XP, Vista, 7 and 8), Mac OS X (10.6 or better), or Linux;
  • Calendar (also as CalDAV);
  • Task scheduler;
  • Address book (also as CardDAV);
  • Music streaming (through Ampache);
  • User and group administration (via OpenID or Lightweight Directory Access Protocol);
  • Sharing of content across groups or public URLs;
  • Online text editor with syntax highlighting and code folding;
  • Bookmarking;
  • URL shortening Suite;
  • Photo gallery;
  • Video viewer;
  • Portable Document Format viewer (using PDF.js);
  • Viewer for OpenDocument Files (.odt, .odp, .ods);
  • Firefox Sync/Mozilla Sync hosting — Mozilla Firefox users can store all history, form data, bookmarks etc. in an ownCloud server;
  • External storage such as Dropbox, GoogleDrive, or Amazon S3 can be mounted to an ownCloud installation;
  • Customizable with one-click application install;
  • Logging Module: supports logging of file-related actions, logs, who accessed what, when and from where. Only available ownCloud Business, Enterprise and Education Editions.

Requirements[edit | edit source]

The following will be needed in order for ownCloud to function properly:

Installation[edit | edit source]

USE flags[edit | edit source]

If vhosts USE will be enabled, so do before the install. The following is a list of possible USE flags.

USE flags for www-apps/owncloud Web-based storage application where all your data is under your own control

curl Add support for client-side URL transfer library
mysql Add mySQL Database support
postgres Add support for the postgresql database
sqlite Add support for sqliteembedded sql database
vhosts Add support for installing web-based applications into a virtual-hosting environment

Emerge[edit | edit source]

Install ownCloud:

root #emerge --ask www-apps/owncloud

Optional: Installing ownCloud server in the vhost directory via webapp-config[edit | edit source]

Updates[edit | edit source]

Optional: Updating ownCloud server in the vhost directory via webapp-config[edit | edit source]

This command will update the installed ownCloud server which is located in the directory cloud to the version 5.0.14

root #webapp-config -h myDomain.com -d cloud -U owncloud 5.0.14

Requires the webapp-config command (from app-admin/webapp-config):

If the vhosts USE flag is enabled, this command will install the ownCloud server version 5.0.13-r1 for the domain myDomain.com to the directory cloud which will (normally) be located in /var/www/myDomain.com/htdocs/

root #webapp-config -h myDomain.com -d cloud -I owncloud 5.0.13-r1

Make sure that this directory is added as a vhosts directory.

Configuration[edit | edit source]

Performance tweaks[edit | edit source]

Activate ownCloud Cronjobs (for more information):

root #crontab -u apache -e
 */15  *  *  *  * php -f /var/www/mydomain.com/htdocs/cloud/cron.php

Enable APCu[edit | edit source]

root #PHP_TARGETS="php5-4" emerge -av dev-php/pecl-apcu

Then restart the php-fpm service:

root #/etc/init.d/php-fpm restart

To verify if apc is working, copy apc.php in the www folder

root #cp /usr/share/php/apc/apc.php /var/www/

Open it with a preferred web browser.

Misc tweaks[edit | edit source]

Disable integrity check[edit | edit source]

Currently, the integrity checker complains when there is a .webapp file in the root of the OwnCloud installation directory. This file is generated, and required, by the webapp-config tool used to install all web apps on Gentoo. One possible temporary solution to this is to disable integrity check. This can be accomplished by adding the following to config.php:

FILE config/config.php
'integrity.check.disabled' => true

Usage[edit | edit source]

ownCloud client[edit | edit source]

Install the client by emerging the following package:

root #emerge --ask net-misc/owncloud-client

Removal[edit | edit source]

Optional: Removing ownCloud server from the vhost directory via webapp-config[edit | edit source]

This command will remove the installed ownCloud server version 5.0.14 which is located in the directory cloud.

root #webapp-config -h myDomain.com -d cloud -C owncloud 5.0.14

gnome-keyring support[edit | edit source]

You may have to install libgnome-keyring to enable owncloud-client support for gnome-keyring [1]:

root #emerge --ask gnome-base/libgnome-keyring

Otherwise it may try to use kwallet.

See also[edit | edit source]

  • Dropbox — a closed source file synchronization and cloud service utility built from open and closed source software.
  • SparkleShare — a cross platform, free, open source, Dropbox-like, git-based collaboration and file sharing tool.
  • Webapp-config — Gentoo's installer for web-based applications.

References[edit | edit source]

This article is issued from Gentoo. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.