Ah OK good to know, I'll update our documentation accordingly.@elvis I'm honored to have done something that's helpful for the RetroNAS project! The service you're providing to the community is very valuable. Thanks for the shout-out on your wiki there.
FWIW, I've been able to connect to Netatalk 2.x AFP shares from both Big Sur and Monterey clients, as long as you enable the DHX2 UAM. What was deprecated in Big Sur is the ability to run an AFP server, I believe, and the ability to connect to one as a client is still there.
False alarm! It turns out to have been a permissions issue all along.Bug Alert: Netatalk 2 will fail to create icon resources for classic Mac OS files copied onto the AFPShare when running on 64-bit Linux. On Mac OS 7.5 and earlier, files will still be copied but when you access them from another Mac, you will notice that they have lost their custom icons. On Mac OS 8.6 and 9, the Finder will throw error -50 and refuse to copy the file. Mac OS X / macOS clients are not affected.
This affects all versions of Netatalk based on the 2.x codebase, including upstream Netatalk 2.2, the Netatalk 2.x fork, and the Netatalk-Classic fork.
For now, it is recommended to run Netatalk 2 on 32-bit Linux. I will notify here again once we find a fix for the bug.
sudo chmod -R 2775 path/to/shared/dir
apt install git libssl-dev libdb-dev autotools-dev automake libtool
git clone https://github.com/rdmark/Netatalk-2.x.git
cd Netatalk-2.x
./bootstrap
build-essential
libcups2-dev
libssl-dev
libdb-dev
autotools-dev
automake
libtool
libgcrypt20-dev
libavahi-client-dev
I've added this to the README in my fork. Thanks!Turns out it was a package called "pkg-config" that wasn't installed. After that, it compiles fine and runs.
Turns out it was a package called "pkg-config" that wasn't installed. After that, it compiles fine and runs.
These are all sound tips, good job figuring this out. While this advice comes a bit late, I've done a write-up on configuring Netatalk over at the RaSCSI wiki that covers these points and others.Just some additional follow-up for anyone struggling to get this running.
By default, /usr/local/etc/netatalk/afpd.conf does not have ddp enabled, which does not allow older systems to access shares. Change the -noddp to -ddp and restart the service (on debian: sudo service afpd restart)
When I have changed this on my systems, the atalkd daemon stops loading and I have to add the name of the network device I'm using to the end of the config file /usr/local/etc/netatalk/atalkd.conf. Again, restart the service
Lastly, I couldn't get printing to work despite Cups being up and running. I had to add 'cupsautoaddp=root:' to the end of the papd.conf file. I only figured this out after digging through the rascsi setup scripts.
That's all for now. Hope this helped someone else. Thanks again for the great job getting this up and running on modern distro's.