Changes

From Amahi Wiki
Jump to: navigation, search
m
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.
 
* Using the server console or remote connection login using the "root" user.
 
* Before going past this step the amount of work to be done in the next steps needs to be considered as it CAN be VERY tedious. Do the current Amahi directories already contain files? If so the next steps involve a lot methodical pounding of the keyboard. Or the other alternative would be to move the files elsewhere, do the configuration work, and then upload the files via ownCloud services in to the reconfigured Amahi directories.
 
* Using the "cd" command go to "/var/hda/files/".
 
* Change the ownership on the movies, music, and pictures directories.
 
<blockquote>
{{Code|chown -vR apache:apache movies
chown -vR apache:apache music
chown -vR apache:apache pictures}}</blockquote>
* The previous two steps now give the ownCloud application access to the Amahi media directories.
 
* Using the "cd" command go in to each of the media directories and change the permissions for any files that might be already stored. Files ownerships were already previously set in a prior step. These settings ensure that all the files already stored are set to the same ownership and permissions as future files stored by ownCloud. These settings also ensure the existing files are visible to ownCloud.
 
<blockquote>
{{Code|cd /var/hda/files/movies
chmod -vR 664 *
cd /var/hda/files/music
chmod -vR 664 *
cd /var/hda/files/pictures
chmod -vR 664 *}}</blockquote>
 
* 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|chmod -vR 775 movies
chmod -vR 775 music
chmod -vR 775 pictures}}</blockquote>
 
* These the Amahi directories have been reconfigured for ownCloud use. The following steps will now involve configuring ownCloud for the sharing of the Amahi directories.
 
* Navigate to Settings => Apps. Make sure the ownCloud applications previously mentioned are enabled.
 
* Login to ownCloud admin user. Navigate to Settings => Users.
 
*
 
 
 
<more to follow>