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 using one of the sharing scenarios 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-->
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-->
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:'''
"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.
 
__TOC__
===Before Making Changes===
Please read the following sections before making decisions and changes.
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.
* Logging in to "test" or "test1", navigating through "Files", Music app, and Pictures app reveals the share media files.
 
'''Videos Folder:'''
<video image>[[File:Oc_shared_video_directory.png‎‎‎‎]]
'''Music Application:'''
<Music image>[[File:Oc_shared_music_directory.png‎]]
'''Pictures Application:'''
<Pictures image>[[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://wwwwiki.amahi.org/appsindex.php/dlna DLNA Amahi DLNAWiki 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