Difference between revisions of "Media Sharing Using ownCloud"

From Amahi Wiki
Jump to: navigation, search
m
Line 32: Line 32:
 
Some things you need to know:
 
Some things you need to know:
  
* ownCloud provides an “External Storage Support” feature that supports access to files “external” to the ownCloud “internal” filesystem. This feature must be "enabled" by the ownCloud "admin" user via Settings => Admin.
+
* ownCloud provides an “External Storage Support” feature that supports access to files “external” to the ownCloud “internal” filesystem.
 
* File ownership '''after''' upload (using ownCloud provided services): apache:apache
 
* File ownership '''after''' upload (using ownCloud provided services): apache:apache
 
* File permissions '''after''' upload (using ownCloud provided services): 664 (rw-:rw-:r--)
 
* File permissions '''after''' upload (using ownCloud provided services): 664 (rw-:rw-:r--)

Revision as of 19:40, 11 December 2012

Msgbox-WOPr.png Work In Progress
This article is currently undergoing major expansion or restructuring. You are welcome to assist by editing it as well. If this article has not been edited in several days, please remove this template.


Media files (Music, Photos, Videos) can be stored and accessed on the Amahi Home Server with one of two scenarios while using ownCloud.

  1. Using existing “Amahi Shares” for file storage and ownCloud for file access and storage management.
  2. Using ownCloud for file storage, managing access, and file storage management.


Both scenarios should allow other applications on Amahi to access the media files (i.e. Amahi DLNA). Regardless of which scenario is chosen some knowledge of Linux utilities will be required to do the configuration changes. The amount of configuration work needed is about the same for each scenario.

Oc tip.png ownCloud Tip!
Before continuing on please make sure the following ownCloud subject areas are understood. "User and Group Administration" and "ownCloud Sharing"


Amahi Home Server File Shares

Amahi Home Server provides a set of “Storage Shares” that are available to all Amahi user accounts. Some of them are provided for the purposes of storing media files (Music, Pictures, Movies) for all Amahi users to access. These shares are usually shared via the Samba (SMB) sharing service on the Amahi Home Server.

Some things you need to know:

  • Music media physical location: /var/hda/files/music (a.k.a. Music)
  • Photograph media physical location: /var/hda/files/pictures (a.k.a. Pictures)
  • Video media physical location: /var/hda/files/movies (a.k.a. Movies)
  • Share(s) directory ownership default (chown): <hda_administrator_account>:users
  • Share(s) directory permissions default (chmod): 775 (rwx:rwx:r-x)
  • Storing media files in the shares is usually done by mounting each share locally on a client workstation via the SMB service on Amahi.

ownCloud External Storage Support

ownCloud provides a highly configurable sharing environment for files that are accessible from a Web Browser User Interface (Web UI), the WebDAV service built in to ownCloud, or an ownCloud Sync client installed on a workstation.

Some things you need to know:

  • ownCloud provides an “External Storage Support” feature that supports access to files “external” to the ownCloud “internal” filesystem.
  • File ownership after upload (using ownCloud provided services): apache:apache
  • File permissions after upload (using ownCloud provided services): 664 (rw-:rw-:r--)
  • Required directory ownership for ownCloud: apache:users
  • Required directory permissions for ownCloud: 770 (rwx:rwx:---)

Amahi Media Shares with ownCloud

The default media directories provided by Amahi Home Server can be used to store media files and managed (i.e. uploads, deletions) by ownCloud. Although there is one caution, all management of the media files should be done via ownCloud. If Samba use continues for the media files there is a high risk the files will no longer be visible to users in ownCloud and other Amahi applications. Only a lot of manual changes to file ownership and permissions after any changes can provide visibility to ownCloud and other Amahi applications.


<more text and image to follow>

Media Sharing with ownCloud

Storing all media files within the ownCloud file system still allows access by other Amahi applications (i.e. Amahi DLNA) to these files. Only one caution, the other applications will have to be configured to access the ownCloud filesystem directories.


<more text and image to follow>


Main ownCloud Page | Index