Difference between revisions of "Amahi 7 installation"

From Amahi Wiki
Jump to: navigation, search
Line 58: Line 58:
  
 
* Install the package (to get the latest version, follow [https://wiki.amahi.org/index.php/Greyhole_updating#Option_2_-_Manually_install_the_latest_RPM upgrade guidance]):
 
* Install the package (to get the latest version, follow [https://wiki.amahi.org/index.php/Greyhole_updating#Option_2_-_Manually_install_the_latest_RPM upgrade guidance]):
  yum -y install hda-greyhole
+
<blockquote>{{code|yum -y install hda-greyhole}}</blockquote>
 
 
 
* Set up a mysql database and user to access it:
 
* Set up a mysql database and user to access it:
  hda-create-db-and-user greyhole
+
<blockquote>{{code|hda-create-db-and-user greyhole}}</blockquote>
 
 
 
* Load the database schema:
 
* Load the database schema:
  mysql -u greyhole -pgreyhole  greyhole < /usr/share/greyhole/schema-mysql.sql
+
<blockquote>{{code|mysql -u greyhole -pgreyhole  greyhole < /usr/share/greyhole/schema-mysql.sql}}</blockquote>
  
 
Initialize the basic settings for Greyhole, configure /etc/greyhole.conf:
 
Initialize the basic settings for Greyhole, configure /etc/greyhole.conf:
 
* Change <u>db_user</u> and <u>db_password</u> to <i>greyhole</i>.<br />
 
* Change <u>db_user</u> and <u>db_password</u> to <i>greyhole</i>.<br />
 
* Add a line for each drive (go [[Adding_a_second_hard_drive_to_your_HDA|here]] for adding new hard drives) in the storage pool at the end of the file.  The example below is for two drives:
 
* Add a line for each drive (go [[Adding_a_second_hard_drive_to_your_HDA|here]] for adding new hard drives) in the storage pool at the end of the file.  The example below is for two drives:
    storage_pool_directory = /var/hda/files/drives/drive2/gh, min_free: 10gb
+
<blockquote>{{text|storage_pool_directory <nowiki>=</nowiki> /var/hda/files/drives/drive2/gh, min_free: 10gb
    storage_pool_directory = /var/hda/files/drives/drive3/gh, min_free: 10gb
+
storage_pool_directory <nowiki>=</nowiki> /var/hda/files/drives/drive3/gh, min_free: 10gb}}</blockquote>
  
 
<b>NOTE:</b>  Although the /etc/greyhole.conf contents indicate <b>storage_pool_drive</b>, it should be <b>storage_pool_directory</b>.  If you don't set it correctly, Greyhole will not work.
 
<b>NOTE:</b>  Although the /etc/greyhole.conf contents indicate <b>storage_pool_drive</b>, it should be <b>storage_pool_directory</b>.  If you don't set it correctly, Greyhole will not work.
Line 78: Line 76:
 
** Pictures for 1 copy (which is the same as max)
 
** Pictures for 1 copy (which is the same as max)
 
** Movies for no copies
 
** Movies for no copies
    num_copies[Books] = 999
+
<blockquote>{{text|num_copies[Books] <nowiki>=</nowiki> 999
    num_copies[Pictures] = 2
+
num_copies[Pictures] <nowiki>=</nowiki> 2
    num_copies[Movies] = 1
+
num_copies[Movies] <nowiki>=</nowiki> 1}}</blockquote>
 
 
  
 
<b>NOTE:</b>  For a system with 2 Greyhole drives, 1 copy is the max.  The first Greyhole drive holds the master copy and the second a copy.  The share will contain a symbolic link to the master.
 
<b>NOTE:</b>  For a system with 2 Greyhole drives, 1 copy is the max.  The first Greyhole drive holds the master copy and the second a copy.  The share will contain a symbolic link to the master.
  
 
* In the Dashboard, Shares tab add the following to <b>Extra Parameters</b> for each share you will be configuring to use Greyhole:
 
* In the Dashboard, Shares tab add the following to <b>Extra Parameters</b> for each share you will be configuring to use Greyhole:
  dfree command = /usr/bin/greyhole-dfree
+
<blockquote>{{text|dfree command <nowiki>=</nowiki> /usr/bin/greyhole-dfree
  vfs objects = greyhole
+
vfs objects <nowiki>=</nowiki> greyhole}}</blockquote>
  
 
* Finally, enable greyhole permanently and start the service:
 
* Finally, enable greyhole permanently and start the service:
  systemctl enable greyhole.service
+
<blockquote>{{code|systemctl enable greyhole.service
  systemctl start greyhole.service
+
systemctl start greyhole.service}}</blockquote>
  
 
* You can monitor activity by watching /var/log/greyhole.log file:
 
* You can monitor activity by watching /var/log/greyhole.log file:
  tail -f /var/log/greyhole.log
+
<blockquote>{{code|tail -f /var/log/greyhole.log}}</blockquote>

Revision as of 03:21, 18 November 2013

Warning.png Released
This page is updated as Amahi 7 on Fedora 19 is updated; changes expected


Amahi 7 (Express-Disc)

  • The express-disc installation method is the primary installation method for Amahi 7 with Fedora 19 and as such, upgrades from prior versions of Fedora are not advised, since very much has changed since older versions of Fedora.
  • This installation method works with both physical and virtual machine systems.
  • Separate wiki articles are in the works for transitioning old storage/ shares to new installations.
  • Note that this installation is for x64 (64-bit) systems only.
  • also see Amahi 7 release notes

Installation Guide Video!

Please see the video tutorial for installation

Installation Guide

Please reference the Amahi Documentation

x86 / 32-Bit installations

Note that the Express disc is a x64 (64-bit) installation only.

For x86/32-bit installation intructions, see the Amahi 7 full DVD page.

GUI Installation

As a desktop environment is not installed. Please take a look at our GUI install wiki page for this.

Web App Feature Work Around

Currently there is no option for Adding a web share / app manually like in Amahi 6. Until the feature is available, those who need the feature can follow the guidance here.

Greyhole

Currently there is no Dashboard add-on to setup and configure Greyhole for Amahi 7. This must be done manually using the following guidance as root user:

bash code
​yum -y install hda-greyhole​
  • Set up a mysql database and user to access it:
bash code
​hda-create-db-and-user greyhole​
  • Load the database schema:
bash code
​mysql -u greyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql​

Initialize the basic settings for Greyhole, configure /etc/greyhole.conf:

  • Change db_user and db_password to greyhole.
  • Add a line for each drive (go here for adding new hard drives) in the storage pool at the end of the file. The example below is for two drives:
Text
​storage_pool_directory = /var/hda/files/drives/drive2/gh, min_free: 10gb storage_pool_directory = /var/hda/files/drives/drive3/gh, min_free: 10gb​

NOTE: Although the /etc/greyhole.conf contents indicate storage_pool_drive, it should be storage_pool_directory. If you don't set it correctly, Greyhole will not work.

  • Now configure the number of copies per share. The example below sets the shares as follows:
    • Books for max copies (which is 1 for 2 drives)
    • Pictures for 1 copy (which is the same as max)
    • Movies for no copies
Text
​num_copies[Books] = 999 num_copies[Pictures] = 2 num_copies[Movies] = 1​

NOTE: For a system with 2 Greyhole drives, 1 copy is the max. The first Greyhole drive holds the master copy and the second a copy. The share will contain a symbolic link to the master.

  • In the Dashboard, Shares tab add the following to Extra Parameters for each share you will be configuring to use Greyhole:
Text
​dfree command = /usr/bin/greyhole-dfree vfs objects = greyhole​
  • Finally, enable greyhole permanently and start the service:
bash code
​systemctl enable greyhole.service systemctl start greyhole.service​
  • You can monitor activity by watching /var/log/greyhole.log file:
bash code
​tail -f /var/log/greyhole.log​