Netatalk - tobiaswaldvogel/openwrt-ib42x0 GitHub Wiki
Netatalk with AFPD on the NAS4220-B (also Time Machine works!)
Finally AFPD works on the NAS4220-B.
See all the details what AFP gives you: http://en.wikipedia.org/wiki/Apple_Filing_Protocol
The best thing is you got support for TimeMachine Backups! Then your NAS behaves like the Apples "Time Capsule" you can buy - and get all the disadvantages that the device brings with it. (NO Raid, NO HDD upgrade, Expensive... just to name a view)
With the Netatalk package Tobias provided, it is possible to get AFP support for your NAS4220-B.
Howto
First we have to install the netatalk package from Tobias' repository:
opkg update
opkg install netatalk
Then we need to configure AFPD:
nano /etc/netatalk/afpd.conf
If you have any problems to open nano follow the guide here: http://ricochen.wordpress.com/2011/07/23/mac-os-x-lion-terminal-color-remote-access-problem-fix/
Then your afpd.conf
should look like:
-noddp -uampath /usr/lib/uams -uamlist uams_guest.so,uams_passwd.so,uams_dhx_passwd.so,uams_randnum.so -passwdfile /etc/netatalk/afppasswd -savepassword -passwdminlen 0 -nosetpassword -defaultvol /etc/netatalk/AppleVolumes.default -systemvol /etc/netatalk/AppleVolumes.system -nouservol -guestname "nobody" -sleep 1 -icon
Now it's time to define your shares:
nano /etc/netatalk/AppleVolumes.default
Your AppleVolumes.default
should look like:
/mnt/md0 FileOverview allow:root,nobody cnidscheme:dbd
/mnt/md0/backup TimeMachine allow:root,nobody cnidscheme:dbd options:tm
...further shares
You have to adapt the user, path and name to your needs.
Next your have to initialize the afppasswd with:
afppasswd -c
Now we need to start the afpd service at boot:
./etc/init.d/afpd -enable
Finally we need to give the users access to the directories we like to share e.g.:
chmod 777 /mnt/md0 -R
Now you can connect using cmd+k using the NAS IP using guest authentication. Later your NAS is shown in Finder. Also you can configure Time Machine. Therefore click (connect) the TimeMachine share, open Time Machine Settings and select your NAS TimeMachine Backup.
As an option you can add a user/or more for use with afpd, to specify to limit users to shares. Then you need to adapt the rights/owner/groups for each folder respectively.
Please let me know if you have any problems.
Cheers, Barun