Difference between revisions of "Greyhole updating"

From Amahi Wiki
Jump to: navigation, search
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Disclaimer ==
+
{{MessageBox|backgroundcolor = #FBB|
Amahi releases new versions of Greyhole (GH) after they've been tested. If you follow this guide to update your GH install manually you do so on your own risk. If it breaks, it's on you.
+
image =Warning.png|
 +
heading =WARNING|
 +
message = If you follow this guide to update Greyhole manually you do so on your own risk. If it breaks, it's on you. All the steps below should be executed as root.
 +
}}
 +
== Fedora ==
 +
Amahi releases new versions of Greyhole (GH) after they've been tested.<br />
  
'''Official Greyhole for Amahi on Fedora 14:'''  0.9.2
+
To update to the latest version available, do the following:
  
All the steps below should be executed as root.
+
* [[open_terminal|As root user]], execute
 +
yum update amahi-greyhole
  
== Option 1 - Use the Greyhole YUM repository ==
+
'''NOTE:'''  The <b>ONLY</b> officially supported Greyhole package for Amahi 7 or greater is available from the Amahi repository.  The Greyhole web site no longer provides updates for Amahi.  If you attempt to install anything other than amahi-greyhole, it could render your HDA inoperable.
  
1. If you didn't already, add the Greyhole YUM repository to your YUM configuration.
+
==Ubuntu==
{{Code|curl -o /etc/yum.repos.d/greyhole.repo http://www.greyhole.net/releases/rpm/greyhole.repo.disabled}}
+
Amahi releases new versions of Greyhole (GH) after they've been tested. '''Official Greyhole for Amahi on Ubuntu 12.04.x:'''  0.9.22
  
2. If you want to use this repository every time yum is used (including for Amahi automatic updates), change '''''/etc/yum.repos.d/greyhole.repo''''' from:
+
=== Greyhole Repo ===
{{Text|Text=enabled<nowiki>=</nowiki>0}}
+
Use the Greyhole APT repository. If you didn't already, add the Greyhole APT repository to your APT configuration.
to
+
sudo sh -c 'echo "deb <nowiki>http://www.greyhole.net/releases/deb</nowiki> stable main" > /etc/apt/sources.list.d/greyhole.list'
{{Text|Text=enabled<nowiki>=</nowiki>1}}
+
curl -s <nowiki>http://www.greyhole.net/releases/deb/greyhole-debsig.asc</nowiki> | sudo apt-key add -
'''NOTE:''' You can safely skip this step if you want to manually update in the future.
+
  sudo apt-get update
  
3. Update hda-greyhole to the latest version:
+
=== Manual install ===
{{Code|yum --enablerepo<nowiki>=</nowiki>greyhole update hda-greyhole}}
+
Manually install the latest DEB package.
 
 
== Option 2 - Manually install the latest RPM ==
 
  
 
1. Find current version:
 
1. Find current version:
{{Code|rpm -q hda-greyhole}}
+
sudo greyhole
 
 
2. Is there a new version?<br>
 
<blockquote>http://www.greyhole.net/download/</blockquote>
 
 
 
3. Browse the archive and copy the link for the latest hda-greyhole (Amahi needs hda-greyhole, the regular greyhole will conflict)
 
<blockquote>http://www.greyhole.net/download/archives.html</blockquote>
 
 
 
4. Back to terminal, make sure you are root (su). Example update command:<br>
 
{{Code|rpm -Uvh http://www.greyhole.net/releases/rpm/`uname -i`/hda-greyhole-0.9.13-1.`uname -i`.rpm}}
 
 
 
  
5. Check the GH log for any errors that might have occurred after the upgrade
+
2. Is there a new version? Browse the [http://www.greyhole.net/releases/deb/ archive] and copy the link for the latest greyhole.<br>
{{Code|tail -f /var/log/greyhole.log}}
 
  
6. Re-check the version of your newly updated Greyhole install, and enjoy!
+
3. Back to terminal, make sure you execute as root (sudo). Example update command for 64-bit:<br>
{{Code|rpm -q hda-greyhole}}
+
wget <nowiki>http://www.greyhole.net/releases/deb/greyhole-0.9.31-1.amd64.deb</nowiki>
 +
sudo dpkg -i greyhole-0.9.31-1.amd64.deb
  
=== Troubleshooting ===
+
4. Check the GH log for any errors that might have occurred after the upgrade
'''Can't access your shares after you upgraded ?'''
+
tail -f /var/log/greyhole.log
Try to re-install the same RPM a second time. Sometimes, the script included in the RPM can't create the Greyhole module for Samba where it should, and this will cause your Greyhole pooled shares to become unaccessible. Re-installing the same RPM a second time always fix that issue. Use the following command to reinstall the currently installed RPM:<br>
 
{{Code|rpm -Uvh --force http://www.greyhole.net/releases/rpm/`uname -i`/`rpm -qa hda-greyhole`.rpm}}
 
  
Use the following command to verify that the Samba symlink was indeed created:
+
5. Re-check the version of your newly updated Greyhole install, and enjoy!
{{Code|ls -l /usr/lib*/samba/vfs/greyhole.so}}
+
sudo greyhole

Latest revision as of 01:28, 25 March 2016

Warning.png WARNING
If you follow this guide to update Greyhole manually you do so on your own risk. If it breaks, it's on you. All the steps below should be executed as root.


Fedora

Amahi releases new versions of Greyhole (GH) after they've been tested.

To update to the latest version available, do the following:

yum update amahi-greyhole

NOTE: The ONLY officially supported Greyhole package for Amahi 7 or greater is available from the Amahi repository. The Greyhole web site no longer provides updates for Amahi. If you attempt to install anything other than amahi-greyhole, it could render your HDA inoperable.

Ubuntu

Amahi releases new versions of Greyhole (GH) after they've been tested. Official Greyhole for Amahi on Ubuntu 12.04.x: 0.9.22

Greyhole Repo

Use the Greyhole APT repository. If you didn't already, add the Greyhole APT repository to your APT configuration.

sudo sh -c 'echo "deb http://www.greyhole.net/releases/deb stable main" > /etc/apt/sources.list.d/greyhole.list'
curl -s http://www.greyhole.net/releases/deb/greyhole-debsig.asc | sudo apt-key add -
sudo apt-get update

Manual install

Manually install the latest DEB package.

1. Find current version:

sudo greyhole

2. Is there a new version? Browse the archive and copy the link for the latest greyhole.

3. Back to terminal, make sure you execute as root (sudo). Example update command for 64-bit:

wget http://www.greyhole.net/releases/deb/greyhole-0.9.31-1.amd64.deb
sudo dpkg -i greyhole-0.9.31-1.amd64.deb

4. Check the GH log for any errors that might have occurred after the upgrade

tail -f /var/log/greyhole.log

5. Re-check the version of your newly updated Greyhole install, and enjoy!

sudo greyhole