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
cd netatalk-2.0.5
./configure --enable-redhat --with-mutex=x86/gcc-assembly
make && make install
vi /usr/local/etc/netatalk/netatalk.conf
Find the “#Set which daemons to run” part and replace the default values with these to enable just AFP and disable all unneeded services.
ATALKD_RUN=no
PAPD_RUN=no
CNID_METAD_RUN=yes
AFPD_RUN=yes
TIMELORD_RUN=no
A2BOOT_RUN=no
save the file.
vi /usr/local/etc/netatalk/afpd.conf
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
vi /usr/local/etc/netatalk/AppleVolumes.default
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:
/etc/init.d/atalk start
yum install avahi.i386 nss-mdns.i386
vi /etc/nsswitch.conf
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
vi /etc/avahi/services/afpd.service
and add this;
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_afpovertcp._tcp</type>
<port>548</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=Xserve</txt-record>
</service>
</service-group>
/etc/init.d/avahi-daemon restart
Nearly done
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