Hi there Marcel first off I use vi to edit my files so if you are unfamiliar with it you can use a text editor of your own choice. First of all you need to install the Berkely Database this can be done using yum.
yum install db4 db4-devel
download and install netatalk 2.0.5 from netatalk.sourceforge.net/
I downloaded the bzip2 file
tar jxf netatalk-2.0.5.tar.bz2
./configure --enable-redhat --with-mutex=x86/gcc-assembly
make && make install
Find the “#Set which daemons to run” part and replace the default values with these to enable just AFP and disable all unneeded services.
save the file.
Scroll to the very bottom of the document and add this to the bottom (replace the whole line in case there’s already one). This is one line so be sure that there’s no line break in your afpd.conf file;
- -transall -uamlist uams_randnum.so,uams_dhx.so -nosavepassword -advertise_ssh
save the file
Scroll to the bottom of the document and define your Volume shares.
~/ "$u" allow:username1,username2 cnidscheme:cdb
Because we want to use the ClearOS machine as a backup server for Time Machine you should define a second volume just for Time Machine. Create a new folder in your home directory first and name it TimeMachine (or anything you like). Then add the following line to your AppleVolumes.default. This is one line so be sure that there’s no line break in your AppleVolumes.default file:
/home/username/TimeMachine TimeMachine allow:username1,username2 cnidscheme:cdb options:usedots,upriv
The usedots option is required if you want to use invisible files and folders (those starting with a dot in the name). Otherwise afpd would encode them as :2e which is bad if you have to use invisible files (like .htaccess). If you’re on Leopard and have no Tiger installed Macs in your network or mixed OS X versions in your network you should use the upriv option which adds support for AFP3 unix privileges. If you have Macs with Tiger installed just use options:usedots to avoid unexpected behavior:
yum install avahi.i386 nss-mdns.i386
Just add “mdns” at the end of the line that starts with “hosts:”. Now the line should look like this:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns
Create the afpd.service file
and add this;
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
On the Mac side you have to enable the option to use network volumes as Time Machine drives first. Without it your freshly shared and advertised network volume won’t show up in the disk selection dialogue in Time Machine. This is a hidden option not accessible via the graphical user interface so you have to copy & paste this in Terminal (it’s one line):
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
Massive thanks to kremalicious for providing most parts of this tut hope you don't mind me taking it . Original howto can be found here