Usageįrom your Mac you can now start Time Machine and connect to your NAS server. Restart avahi ( /etc/init.d/avahi-daemon restart) to activate the configuration. Replace the highlighted text with the MAC address of the ethernet interface of your NAS server as shown by command ifconfig. Verify the following information in file /etc/nf hosts: files mdns4_minimal dns mdns4Ĭreate the file /etc/avahi/services/rvice with the following content. Again, most configuration is already done correctly so all you have to add is a file containing the advertised data. Configuration avahiĪvahi is needed to advertise the afpd service to the Mac. Restart netatalk ( /etc/init.d/netatalk restart) to make the configuration active. share/data/TimeMachine TimeMachine afpdshare options:tm volsizelimit:200000 # By default all users have access to their home directories.Īdd the following line to the same file. # The line below sets some DEFAULT, starting with Netatalk 2.1. Verify the following information in file /etc/netatalk/fault where I also commented out the home directory. # -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword Verify the following information in file /etc/netatalk/nf. Verify the following information in file /etc/default/netatalk. All you have to do is make the shared directory available for afpd. Since netatalk version 2.2 most configuration files are already set-up correctly. Be sure to set the file mode bits ( chmod 775 /share/data/TimeMachine) and file owner and group ( chown root: afpdshare /share/data/TimeMachine) correctly. This configuration assumes that the current Mac user macuser is added to your NAS ( addgroup afpdshare adduser -ingroup afpdshare macuser) and you want to share directory /share/data/TimeMachine. Together with avahi the package libnss-mdns will also be installed. As of this writing netatalk version 2.2~Beta4-1 will be installed.
Install the packages AppleTalk netatalk 2.2 and avahi using command apt-get install netatalk avahi-daemon.
The following set-up has been tested with Mac OS X 10.6.8 Snow Leopard. Using Debian with the right packages makes building the NAS part of a Time Capsule a piece of cake. The Time Capsule is a WIFI access point with disk providing NAS functionality.
To enable logging, -setuplog must be added to the nf and since it's done, the log should start to show up in the /var/log/messages.Apple provides their Mac computers with the program Time Machine to easily backup the system to an attached USB disk or a Time Capsule. So, there will be absolutely nothing in the /var/log/messages and /var/log/secure. NOTE: As of Netatalk 2.0, the installation default is -without-logfile and logging capabilities are only available if Netatalk was built using -with-logfile. RPMS/`uname -i`/ sudo rpm -ivh netatalk-2.0.5-2.x86_64.rpmĪnd that's all!! If things go well, this version of Netatalk should start working nicely after modifying nf and fault as per the requirements. If it's already not installed, that needs to be installed as well.Ĭhange to the SPECS directory and run the following commands to install the netatalk package.Ĭd ~/rpmbuild/SPECS rpmbuild -ba netatalk.spec cd. The rpmbuild command must be available to the system to build the rpm (your system may currently have the rpm command but not the rpmbuild). The line looks like this on my system after editing.īuildRequires: cracklib openssl-devel pam quota libtool automake autoconf db4-devel pam-devel \ tcp_wrappers libgcrypt-devel NOTE: I was getting "MD5 sum mismatch" error during the source installation, so I used -nomd5 to eliminate this.Īs stated above that the -devel packages for the cracklib, quota and tcp_wrappers are integrated into their main packages, the BuildRequires line in the netatalk.spec (in ~/rpmbuild/SPECS) needs to be edited accordingly in the first place before going any further. The appropriate rpm should be used according to the target architecture.
Then download and install the source rpm. The second command will overwrite any previous. Yum install echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros So, needs to be installed those packages first, if not already installed.
Another reason could be if you want the server to be shown up in the OS X "Finder" sidebar (for easy drag-n-drop stuff) and also to keep the option open to use it as a TimeMachine backup volume, if required, in future. Although Snow Leopard (Darwin 10) said to me comes with "better" NFS4 support but it's still not considered to be a "production quality" and that's the one the reason one might try AFP/netatalk instead, if running a NFS4 server.
Netatalk is an Open Source implementation of Apple's AFP ( Apple Filing Protocol) fileserver for Linux distribution and it's used to mount ext3/ext4 filesystem on Apple Macintosh.