CLOSED: Netatalk 3.1.11 install on Amahi 10

tamorgen
Posts: 53
Joined: Wed Jul 17, 2013 1:48 pm

CLOSED: Netatalk 3.1.11 install on Amahi 10

Postby tamorgen » Wed Dec 27, 2017 6:47 pm

Netatalk 3.1.11 install on Amahi 10

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.
  1. Back up Boot drive with Clonezilla (or similar drive cloning software). Optional, but highly recommended.
  2. Run updates on Fedora 25 server (sudo dnf update)
  3. 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.
  4. Netatalk Install
    1. 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
    2. 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
    3. Netatalk is now installed. Follow the configuration guide in the Sourceforge link.
  5. Fix Greyhole and Samba
    1. 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.

      Code: Select all

      sudo systemctl stop amahi-greyhole
      Download the 4.6 .so file for Greyhole/Samba.

      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
    2. 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
    6) Done!
Hope this helps!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Netatalk 3.1.11 install on Amahi 10

Postby bigfoot65 » Thu Dec 28, 2017 6:40 am

Thanks for sharing this guidance.

Would you mind putting it in the #Amahi wiki? We would greatly appreciate it.

The wiki is our primary source of how to's and guidance for #Amahi.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

tamorgen
Posts: 53
Joined: Wed Jul 17, 2013 1:48 pm

Re: Netatalk 3.1.11 install on Amahi 10

Postby tamorgen » Thu Dec 28, 2017 6:42 am

Thanks for sharing this guidance.

Would you mind putting it in the #Amahi wiki? We would greatly appreciate it.

The wiki is our primary source of how to's and guidance for #Amahi.
Will do!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Netatalk 3.1.11 install on Amahi 10

Postby bigfoot65 » Thu Dec 28, 2017 9:58 am

Hope to get your account approved shortly.

Will mark this thread as closed.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 8 guests