Linux2013. 8. 17. 13:20

출처: http://netatalk.sourceforge.net/wiki/index.php/Netatalk_3.0.4_SRPMs_for_Fedora/Scientific_Linux/CentOS

Overview

This page introduces the SRPMs of netatalk.

When the newer official RPM is released on koji site, you will be able to update to official package by using "rpm -U", "yum update" or "rpmbuild".

Download

BTW, it's said that RHEL7 is based on Fedora 17/18. Fedora's SRPM could be used.

Build

Install the SRPM.

$ rpm -ivh netatalk-3.0.5-NNN.XXX.src.rpm

The following messages don't have a problem.

warning: group hat does not exist - using root
warning: user hat does not exist - using root

Build by using "rpmbuild" command.
If "rpmbuild: Command not found" is displayed, execute "yum install rpm-build".
If "error: Failed build dependencies: zzz" is displayed, execute "yum install zzz".
If "make: command not found" is displayed, execute "yum install make".

$ cd ~/rpmbuild/SPECS/
$ rpmbuild -bb netatalk.spec

Install or Upgrade

If you install the netatalk for the first time, use "rpm -i" command.

$ cd ~/rpmbuild/RPMS/YYY/
# rpm -ivh netatalk-3.0.5-NNN.XXX.YYY.rpm

If the old netatalk already been installed, update by "rpm -U" command.

# rpm -Uvh netatalk-3.0.5-NNN.XXX.YYY.rpm

The "XXX" and "YYY" are different according to architecture.

Setting

Edit "/etc/afp.conf".

Ex:

[Global]
    mac charset = MAC_JAPANESE
    afpstats = yes

[Homes]
    basedir regex = /home

[Test Volume]
    path = /export/test1

[My Time Machine Volume]
    path = /export/timemachine
    time machine = yes
    vol size limit = 512000

Enabling and Starting

You must run Avahi ahead of Netatalk.

Fedora:

# systemctl enable avahi-daemon
# systemctl enable netatalk
# systemctl start avahi-daemon
# systemctl start netatalk

Scientific Linux and CentOS:

# chkconfig avahi-daemon on
# chkconfig netatalk on
# service avahi-daemon start
# service netatalk start


Posted by 알 수 없는 사용자