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>
* These the The Amahi directories have been reconfigured for ownCloud use. The following steps will now involve configuring ownCloud for the sharing of the Amahi directories.
* Login to the ownCloud admin user. Navigate to Settings => Apps. Make sure the ownCloud applications previously mentioned are enabled.
* Navigate to Settings => Users.
* An ownCloud media security groups are now created for read/write access.<image here>:[[File:Oc_create_media_groups.png‎‎]]
* Any ownCloud users are now created. While creating ownCloud users the security groups can be associated.
<image here>:[[File:Oc_assign_media_groups.png‎]]
* Navigate to Settings => Admin.
* The External Storage sharing connections are now created. <talk about :[[File:Oc_ext_storage_shares_config_v2.png‎‎‎]]  '''Mount point:''' Defines a "mount point" where an local external share is "mounted" for a current user. The mount point is displayed as a directory on the user interface. There must be a one-to-one definition of a mount point with no blanksto each defined external share configuration. Mount points cannot contain a "space" character. '''Backend:''' Defines the type of ownCloud "backend" to be used for the external share. In this example the share to be mounted is on the local system's disk drive system. '''Configuration:''' This is the "path" for the external share to be mounted. '''Applicable:''' This defines the ownCloud User ID(s) or security group(s) that allow access to the external share to be mounted. If left blank the configuration will not work. * Logging in to the test user account, paththe three mount point directories should be there.:[[File:Oc_ext_shared_mnt_points.png‎‎]] * Navigate in to one of the mount points reveals the shared files.:[[File:oc_ext_share_mnt_files.png]] * Navigate in to the ownCloud Music application. This displays all of the shared music files.:[[File:oc_ext_shared_music.png]] * Navigate in to the ownCloud Pictures application. This displays all of the shared picture files.:[[File:oc_ext_shared_pictures.png]] * A DLNA application of client can be used to access the video files. The VLC video player is used in this example as a DLNA client.:[[File:oc_DLNA_client_VLC.png]] * There all done! ===Scenario 2: Media Sharing from ownCloud===In this scenario all media files are stored in the ownCloud filesystem, other Amahi applications (i.e. Amahi DLNA) 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, multiple mntstest1) are normal ownCloud users. * Logging in to the ownCloud "admin" user account. * Navigate to Settings =>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‎‎]] <image here* Logging as the "mediadmin" user and navigating to Settings =>Users.
* Login in to Create the "test user account. The three mount point directories should be there.<image here>* Navigate in to each mount point via files. Try creating a directory in each, delete the directory, " and delete it"test1" users. This verifies that the read/write access is working.* Try the ownCloud Music and Pictures applications to make sure just a demonstration of the media files are visible and can be used.* Try uploading role a picture and music file via ownCloud services. Make sure they are visible and can be usedgroup administrator role plays.* Login to the test2 user account and verify the previous testing steps used for the test user account:[[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‎‎‎]]
<more * Any user IDs (mediadmin, test, test1) that are members of the "mediaRWGrp" security group have full read/write access to follow>the "Share Media" directories and files.
===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* Upload music, other applications will have to be configured to access the ownCloud filesystem pictures, and videos in their respective directories.
<more * Logging in to follow>"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]] | [[:Category:ownCloud Collection|Index]]
----
<!--Category References follow-->
[[Category:ownCloud Collection]]
12,424

edits