Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
{{WorkInProgress}}Media files (Music, Photos, Videos) can be stored and accessed on the Amahi Home Server with using one of two the sharing scenarios while with ownCloud.
<ol>
<li>Using existing “Amahi Shares” for file storage and ownCloud for file access and storage management.
<li>Using ownCloud for file storage, managing access, and file storage management.
</ol>
<br/>
Recommendation? Choose one of the scenarios and stick with it. If both are used it could lead to confusion later, especially when sharing problems need to be debugged.
<br/>
<!--owCloud Tip follows-->
heading =ownCloud Tip!|
message = Before continuing on please make sure the following ownCloud subject areas are understood. [[OwnCloud User and Group Administration|"User and Group Administration"]]<nowiki /> and [[Owncloud Sharing|"ownCloud Sharing"]]}} <!--owCloud Tip ends-->
Both All scenarios should allow other applications on Amahi to access the media files (i.e. [http://www.amahi.org/apps/dlna 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.__TOC__ '''Please Note:'''
__TOC__"Scenario 1" is not a configuration to be used when the Amahi Greyhole application is active in the Amahi Server. We hope to provide "wiki guidance" at some point where the Amahi Greyhole feature is used. The second Media Sharing scenario is a better fit as it has no dependencies on Amahi shares or the Greyhole feature.
===Before Making Changes===
Please read the following sections before making decisions and changes.
* Clicking on the icon manually initiates an ownCloud "file scan" of the current ownCloud directory appearing in the Web UI.
===Scenario 1: 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.
 
'''Please Note:'''
 
This scenario was not intended to be used with Amahi Greyhole enabled. Greyhole should be disabled in order to use this scenario.
 
Please do the following '''carefully''':
* Using the server console or remote connection login using the "root" user.
<blockquote>
{{Code|<pre>chown -vR apache:apache movies
chown -vR apache:apache music
chown -vR apache:apache pictures}}</pre></blockquote>
* The previous two steps now give the ownCloud application access to the Amahi media directories.
<blockquote>
{{Code|<pre>cd /var/hda/files/movies
chmod -vR 664 *
cd /var/hda/files/music
chmod -vR 664 *
cd /var/hda/files/pictures
chmod -vR 664 *}}</pre></blockquote>
* Using the "cd" command go to "/var/hda/files/". Change the permissions on the movies, music, pictures directories. Also any subdirectories below these directories must also be changed to the same permissions.
<blockquote>
{{Code|<pre>chmod -vR 775 movies
chmod -vR 775 music
chmod -vR 775 pictures}}</pre></blockquote>
* The Amahi directories have been reconfigured for ownCloud use. The following steps will now involve configuring ownCloud for the sharing of the Amahi directories.
* The External Storage sharing connections are now created.
:[[File:Oc_ext_storage_shares_configOc_ext_storage_shares_config_v2.png‎‎‎]]
'''Mount point:'''
'''Configuration:'''
This is the "absolute path" for the external share to be mounted. The end of the path must contain a "/" to complete the path definition, if it is not there the configuration will not work.
'''Applicable:'''
* There all done!
===Scenario 2: Media Sharing from ownCloud===Storing In this scenario all media files within are stored in the ownCloud file system and also allows access by filesystem, other Amahi applications (i.e. Amahi DLNA) to can still access these files. Only one caution, other applications on the Amahi server will have to be configured to access the ownCloud filesystem media directories. :[[File:Oc_media_sharing_from_ownCloud_v2.png‎‎‎‎]] There are three ownCloud users defined in this example. One user owns (mediadmin) the media directories and files, and is defined as an ownCloud "Group Administrator". The group administrator role is allowed to create, remove, and change passwords for users that are members of the "mediaRWGrp" security group. All users (mediadmin, test, test1) will have full read/write access to the media directories. The other users (test, test1) are normal ownCloud users. * Logging in to the ownCloud "admin" user account.
<more * Navigate to followSettings =>Users.
* Create the "mediaRWGrp" security group.
:[[File:Oc_create_media_group.png‎]]
 
* Create the "mediadmin" user, configure the ID for security group membership, and as the "Group Administrator".
:[[File:Oc_create_mediadmin_user.png‎‎]]
 
* Logging as the "mediadmin" user and navigating to Settings => Users.
 
* Create the "test" and "test1" users. This is just a demonstration of the role a group administrator role plays.
:[[File:Oc_create_media_test_users.png‎]]
 
* Create the media directories.
:[[File:Oc_shared_media_directories.png‎‎]]
 
* Navigate back to "Files". Setup the "Shared Media" to share with the "mediaRWGrp" security group.
:[[File:Oc_set_media_group.png‎‎‎]]
 
* Any user IDs (mediadmin, test, test1) that are members of the "mediaRWGrp" security group have full read/write access to the "Share Media" directories and files.
 
* Upload music, pictures, and videos in their respective directories.
 
* Logging in to "test" or "test1", navigating through "Files", Music app, and Pictures app reveals the share media files.
 
'''Videos Folder:'''
[[File:Oc_shared_video_directory.png‎‎‎‎]]
'''Music Application:'''
[[File:Oc_shared_music_directory.png‎]]
'''Pictures Application:'''
[[File:Oc_share_pictures_directory.png‎‎‎‎‎]]
* The directory paths for any applications that need to access the media files stored in ownCloud need to be setup ([http://wiki.amahi.org/index.php/DLNA Amahi DLNA Wiki article]).
'''Media file paths for this example:
* /var/hda/files/ownCloud/data/mediadmin/files/Shared Media/Videos
* /var/hda/files/ownCloud/data/mediadmin/files/Shared Media/Music
* /var/hda/files/ownCloud/data/mediadmin/files/Shared Media/Pictures
* There all done!
<br>
----
[[OwnCloud|Main ownCloud Page]]
12,424

edits