Perseverance pays off. I was finally able to get Greyhole and Netatalk to play nice with each other. I want to document this for other Amahi users before I forget how. Disclaimer: Do this at your own risk. I made a clone of my boot drive using Clonezilla before doing anything, in case I needed to role back. I actually did role back once, so the precaution saved me from having to rebuild my server.
- Back up Boot drive with Clonezilla (or similar drive cloning software). Optional, but highly recommended.
- Run updates on Fedora 25 server (sudo dnf update)
- Update system to Fedora 26 server. This step may not be needed, but since Fedora 25 is end of life as of December 12th, 2017, I chose to do this (since I made my clone anyway). Many Amahi specific apps may not work, so if you rely on these apps, check the Amahi App Store and see if they’ve been tested with Fedora 26 before proceeding.
- Netatalk Install
- I started with this guide on Sourceforge, but I ran into some issues with paths in the build. If you can get it to work, that’s great. I could not. I chose a different method using mock to create the build from the source files instead.
Code: Select all
sudo dnf -y install mock
Code: Select all
wget http://www003.upp.so-net.ne.jp/hat/files/netatalk-3.1.11-0.1.1.fc27.src.rpm
Code: Select all
sudo mock —rebuild netatalk-3.1.11-0.1.1.fc27.src.rpm
- At this point, mock will download all dependencies for the install, even if they are already installed (187 packages). This creates a local directory free from any issues the host OS may have.
Code: Select all
cd /var/lib/mock/fedora-26-x86_64/result
Code: Select all
dnf -y install netatalk-3.1.11-0.1.1.fc26.x86_64.rpm
- Netatalk is now installed. Follow the configuration guide in the Sourceforge link.
- I started with this guide on Sourceforge, but I ran into some issues with paths in the build. If you can get it to work, that’s great. I could not. I chose a different method using mock to create the build from the source files instead.
- Fix Greyhole and Samba
- Netatalk updates Samba to 4.6. This breaks the symlink that Greyhole depends on for Samba. This results in broken links to shares when trying to access shares from your Windows, Mac or other remote workstation. This is detailed in Greyhole’s wiki.
Download the 4.6 .so file for Greyhole/Samba.
Code: Select all
sudo systemctl stop amahi-greyhole
Code: Select all
curl -Lo /usr/lib64/greyhole/greyhole-samba46.so https://github.com/gboudreau/Greyhole/raw/master/samba-module/bin/4.6/greyhole-x86_64.so
- Fix the symlink:
⁃⁃Code: Select all
ls -l /usr/lib*/samba/vfs/greyhole.so
⁃Code: Select all
lrwxrwxrwx 1 root root 39 Dec 27 17:13 /usr/lib64/samba/vfs/greyhole.so -> /usr/lib64/greyhole/greyhole-samba44.so
⁃Code: Select all
ln -sfn /usr/lib64/greyhole/greyhole-samba46.so /usr/lib64/samba/vfs/greyhole.so
Code: Select all
sudo systemctl start amahi-greyhole
- Netatalk updates Samba to 4.6. This breaks the symlink that Greyhole depends on for Samba. This results in broken links to shares when trying to access shares from your Windows, Mac or other remote workstation. This is detailed in Greyhole’s wiki.