Install Netatalk 3.1.11 on openSUSE Leap 42.2

From Netatalk Wiki
Jump to: navigation, search
(Build)
Line 10: Line 10:
 
*<tt>libmysqlclient-devel</tt> (mysql CNID backend)
 
*<tt>libmysqlclient-devel</tt> (mysql CNID backend)
 
*<tt>libgcrypt-devel</tt> (DHX2 auth)
 
*<tt>libgcrypt-devel</tt> (DHX2 auth)
*<tt>libressl-devel</tt> or <tt>libopenssl-devel</tt> (DHX auth aka DHCAST128)
+
*<tt>libopenssl-devel</tt> or <tt>libressl-devel</tt> (DHX auth aka DHCAST128)
 
*<tt>krb5-devel</tt> (Kerberos V auth)
 
*<tt>krb5-devel</tt> (Kerberos V auth)
 
*<tt>pam-devel</tt> (PAM)
 
*<tt>pam-devel</tt> (PAM)
Line 25: Line 25:
 
*<tt>tracker</tt> (used for spotlight indexing)
 
*<tt>tracker</tt> (used for spotlight indexing)
 
*<tt>tracker-devel</tt> (used for spotlight indexing)
 
*<tt>tracker-devel</tt> (used for spotlight indexing)
 
If libressl-devel package is installed already, you must remove it and install libopenssl-devel.
 
  
 
== Build ==
 
== Build ==
Line 35: Line 33:
 
<tt>
 
<tt>
 
<pre>
 
<pre>
$ tar xvf netatalk-3.1.10.tar.bz2
+
$ tar xvf netatalk-3.1.11.tar.bz2
$ cd netatalk-3.1.10</pre>
+
$ cd netatalk-3.1.11</pre>
 
</tt>
 
</tt>
 
</blockquote>
 
</blockquote>
Line 83: Line 81:
 
<pre>
 
<pre>
 
Compilation summary:
 
Compilation summary:
     CPPFLAGS      = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)
+
     CPPFLAGS      = -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)  
 
     CFLAGS        = -D_U_="__attribute__((unused))" -g -O2
 
     CFLAGS        = -D_U_="__attribute__((unused))" -g -O2
 
     LIBS          =  -lcrack
 
     LIBS          =  -lcrack
 
     PTHREADS:
 
     PTHREADS:
         LIBS  =
+
         LIBS  =  
 
         CFLAGS = -pthread
 
         CFLAGS = -pthread
 
     TRACKER:
 
     TRACKER:
         LIBS  = -ltracker-sparql-1.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
+
         LIBS  = -ltracker-sparql-1.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0  
         CFLAGS = -pthread -I/usr/include/tracker-1.0 -I/usr/include/tracker-1.0/libtracker-sparql -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
+
         CFLAGS = -pthread -I/usr/include/tracker-1.0 -I/usr/include/tracker-1.0/libtracker-sparql -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  
 
     SSL:
 
     SSL:
 
         LIBS  =  -L/usr/lib64 -lcrypto
 
         LIBS  =  -L/usr/lib64 -lcrypto
Line 97: Line 95:
 
     LIBGCRYPT:
 
     LIBGCRYPT:
 
         LIBS  = -L/usr/lib64 -lgcrypt -ldl -lgpg-error
 
         LIBS  = -L/usr/lib64 -lgcrypt -ldl -lgpg-error
         CFLAGS =
+
         CFLAGS =  
 
     PAM:
 
     PAM:
 
         LIBS  =  -lpam
 
         LIBS  =  -lpam
         CFLAGS =
+
         CFLAGS =  
 
     WRAP:
 
     WRAP:
 
         LIBS  = -lwrap
 
         LIBS  = -lwrap
         CFLAGS =
+
         CFLAGS =  
 
     BDB:
 
     BDB:
 
         LIBS  =  -L/usr/lib64 -ldb
 
         LIBS  =  -L/usr/lib64 -ldb
         CFLAGS =
+
         CFLAGS =  
 
     GSSAPI:
 
     GSSAPI:
         LIBS  = -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
+
         LIBS  = -lgssapi_krb5 -lcrack
         CFLAGS =
+
         CFLAGS = -D_U_="__attribute__((unused))" -g -O2
 
     ZEROCONF:
 
     ZEROCONF:
 
         LIBS  =  -lavahi-common -lavahi-client
 
         LIBS  =  -lavahi-common -lavahi-client
Line 115: Line 113:
 
     LDAP:
 
     LDAP:
 
         LIBS  =  -lldap
 
         LIBS  =  -lldap
         CFLAGS =
+
         CFLAGS =  
 
     LIBEVENT:
 
     LIBEVENT:
         LIBS  =
+
         LIBS  =  
         CFLAGS =
+
         CFLAGS =  
 
     TDB:
 
     TDB:
         LIBS  = -ltdb
+
         LIBS  = -ltdb  
         CFLAGS =
+
         CFLAGS =  
 
     MySQL:
 
     MySQL:
 
         LIBS  = -L/usr/lib64 -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl
 
         LIBS  = -L/usr/lib64 -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl
Line 148: Line 146:
 
         cracklib support:        yes
 
         cracklib support:        yes
 
         ACL support:            auto
 
         ACL support:            auto
         Kerberos support:        yes
+
         Kerberos support:        auto
 
         LDAP support:            yes
 
         LDAP support:            yes
 
         AFP stats via dbus:      yes
 
         AFP stats via dbus:      yes
Line 184: Line 182:
 
<pre>
 
<pre>
 
$ /usr/local/sbin/netatalk -V
 
$ /usr/local/sbin/netatalk -V
netatalk 3.1.10 - Netatalk AFP server service controller daemon
+
netatalk 3.1.11 - Netatalk AFP server service controller daemon
  
 
This program is free software; you can redistribute it and/or modify it under
 
This program is free software; you can redistribute it and/or modify it under
Line 193: Line 191:
 
netatalk has been compiled with support for these features:
 
netatalk has been compiled with support for these features:
  
 +
      Zeroconf support: Avahi
 
     Spotlight support: Yes
 
     Spotlight support: Yes
  
Line 210: Line 209:
 
<pre>
 
<pre>
 
$ /usr/local/sbin/afpd -V
 
$ /usr/local/sbin/afpd -V
afpd 3.1.10 - Apple Filing Protocol (AFP) daemon of Netatalk
+
afpd 3.1.11 - Apple Filing Protocol (AFP) daemon of Netatalk
  
 
This program is free software; you can redistribute it and/or modify it under
 
This program is free software; you can redistribute it and/or modify it under
Line 219: Line 218:
 
afpd has been compiled with support for these features:
 
afpd has been compiled with support for these features:
  
           AFP versions: 2.2 3.0 3.1 3.2 3.3 3.4
+
           AFP versions: 2.2 3.0 3.1 3.2 3.3 3.4  
         CNID backends: dbd last tdb mysql
+
         CNID backends: dbd last tdb mysql  
 
       Zeroconf support: Avahi
 
       Zeroconf support: Avahi
 
   TCP wrappers support: Yes
 
   TCP wrappers support: Yes
Line 239: Line 238:
 
     afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf
 
     afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf
 
       afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf
 
       afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf
       UAM search path: /usr/local/lib64/netatalk//
+
       UAM search path: /usr/local/lib/netatalk//
 
   Server messages path: /usr/local/var/netatalk/msg/
 
   Server messages path: /usr/local/var/netatalk/msg/
 
</pre>
 
</pre>
Line 326: Line 325:
 
Some problems have been reported.
 
Some problems have been reported.
 
*[http://sourceforge.net/p/netatalk/bugs/543/ Bug#543 Spotlight cannot search in user homes]
 
*[http://sourceforge.net/p/netatalk/bugs/543/ Bug#543 Spotlight cannot search in user homes]
 +
 +
== Interoperation with Samba ==
 +
Recent Netatalk and Samba can store metadata in the compatible format.
 +
 +
Using this way, the following access becomes possible.
 +
*from Mac to Netatalk
 +
*from Mac to Samba
 +
*from Windows to Samba
 +
 +
=== Netatalk ===
 +
 +
Using "<tt>vol preset</tt>" option, the same configuration is set for all volumes.
 +
 +
Using "<tt>ea = samba</tt>", Extended Attributes become compatible with Samba.
 +
 +
Edit "<tt>/usr/local/etc/afp.conf</tt>".
 +
 +
Ex:
 +
<blockquote>
 +
<tt>
 +
<pre>
 +
[Global]
 +
    vol preset = my default values
 +
 +
[my default values]
 +
    ea = samba
 +
 +
[Homes]
 +
    basedir regex = /home
 +
 +
[Test Volume]
 +
    path = /export/test1
 +
 +
[My Time Machine Volume]
 +
    path = /export/timemachine
 +
    time machine = yes
 +
</pre>
 +
</tt>
 +
</blockquote>
 +
 +
=== Samba ===
 +
 +
Setting various options in <tt>[global]</tt>, the same configuration is set for all shares.
 +
 +
Three vfs objects (catia, fruit and streams_xattr) provide enhanced compatibility with Apple SMB clients and interoperability with a Netatalk.
 +
 +
Using "<tt>hide files</tt>", the invisible files created via Netatalk are hidden from Windows.
 +
Use "<tt>hide files</tt>", not "<tt>veto files</tt>".
 +
 +
Don't use "<tt>fruit:locking = netatalk</tt>" because it has [https://lists.samba.org/archive/samba/2015-December/196828.html a bug].
 +
 +
<tt>[My Time Machine Volume]</tt> is commented out because Time Machine feature can not be used via SMB.
 +
 +
Edit "<tt>/etc/samba/smb.conf</tt>".
 +
 +
Ex:
 +
<blockquote>
 +
<tt>
 +
<pre>
 +
[global]
 +
    foo = bar
 +
    baz = qux
 +
 +
    vfs objects = catia fruit streams_xattr
 +
;  fruit:locking = netatalk
 +
    fruit:encoding = native
 +
    streams_xattr:store_stream_type = no
 +
    streams_xattr:prefix = user.
 +
 +
    ea support = Yes
 +
 +
    hide files = /.DS_Store/Network Trash Folder/TheFindByContentFolder/TheVolumeSettingsFolder/Temporary Items/.TemporaryItems/.VolumeIcon.icns/Icon?/.FBCIndex/.FBCLockFolder/
 +
 +
    read only = No
 +
 +
[homes]
 +
 +
[Test Volume]
 +
    path = /export/test1
 +
 +
;[My Time Machine Volume]
 +
;  path = /export/timemachine
 +
</pre>
 +
</tt>
 +
</blockquote>
  
 
[[Category:Howtos]]
 
[[Category:Howtos]]

Revision as of 16:23, 18 March 2017

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox