Installing Netatalk on openSUSE
Install Netatalk
At the time of writing, there are experimental netatalk packages available for openSUSE that can be sideloaded.
Build from source
For building and installing from source yourself, for instance to get a newer version, follow the guide below.
Install dependencies
zypper in -y bison cracklib-devel dbus-1-devel file flex gawk gcc libacl-devel libavahi-devel libdb-4_8-devel libevent-devel libgcrypt-devel libmariadb-devel libtalloc-devel libtdb-devel libtracker-sparql-3_0-0 meson ninja openldap2-devel pam-devel perl pkg-config systemd systemtap-sdt-devel tcpd-devel tracker
Configure
meson setup build -Dbuildtype=release -Dwith-appletalk=true -Dwith-dbus-sysconf-path=/usr/share/dbus-1/system.d -Dwith-tests=true
Build
meson compile -C build
Run integration tests
meson test -C build
Install
meson install -C build
Check netatalk capabilities
netatalk -V
afpd -V
Uninstall
ninja -C build uninstall
Setting
Edit /usr/local/etc/afp.conf
.
Ex:
[Global]
[Homes]
basedir regex = /home
[Test Volume]
path = /export/test1
[My Time Machine Volume]
path = /export/timemachine
time machine = yes
It’s recommended to enable extended attributes of filesystem. It’s no problem in case of btrfs.
If you use ext2,3 or 4, you should check it by getfattr
and
setfattr
commands. If you use ACL, you shoud check it by getfacl
and setfacl
commands. If these are disabled, use tune2fs
command
or edit /etc/fstab
file.
Ex:
/dev/sdc2 /mountpoint ext4 defaults,user_xattr,acl 0 2
You should check firewall. AFP’s port number is 548
. Zeroconf’s port
number is 5353
.
Enabling and Starting
You must run Avahi ahead of Netatalk.
# systemctl enable avahi-daemon
# systemctl enable netatalk
# systemctl start avahi-daemon
# systemctl start netatalk
Spotlight Feature
If you want to use Spotlight feature, set spotlight = yes
.
Set spotlight = no
for Time Machine’s volume. The mining for
sparsebundle is wasteful.
Ex:
[Global]
spotlight = yes
[Homes]
basedir regex = /home
[Test Volume]
path = /export/test1
[My Time Machine Volume]
path = /export/timemachine
time machine = yes
spotlight = no
Footnotes
This is a mirror of the Netatalk GitHub Wiki. Please visit the original page if you want to correct an error or contribute new contents.
Last updated 2025-09-07