netatalk package for appleshare file services, etc from a linux (*nix) server is not currently included with the centos linux distribution. (Same is true with FC2). Also, AppleTalk kernel modules are not installed by default anymore. To successfully install netatalk for Appletalk services, you must add appletalk services to your kernel and then obtain (and possibly rebuild) the netatalk package.


Adding appletalk kernel module support to Centos (and FC2)

Two methods:

  1. obtain and install the appropriate "kernel-unsupported" package: (e.g.) kernel-unsupported-2.4.21-4.EL.i686.rpm

    yum install kernel-unsupported
    re-boot
    Now, just install the netatalk rpm (you don't have to remake the kernel).

    or



    1. cd /usr/local/downloads
    2. wget ftp://install.dulug.duke.edu/pub/dulug/base/centos-3.3/i386/RedHat/RPMS/kernel-unsupported-2.4.21-20.EL.co.i386.rpm
    3. rpm -Uvh kernel-unsupported*

  2. recompile a new kernel with appletalk support module enabled

    1. wget ftp://install.dulug.duke.edu/pub/dulug/base/centos-3.3/i386/RedHat/RPMS/kernel-source*
    2. rpm -Uvh kernel-source*
    3. follow these steps to remake kernel

      cd /usr/src/linux-2.4

      make oldconfig (backs up you old config)

      TWO OPTIONS FOR KERNEL CONFIGURATION: xconfig or menuconfig
      make xconfig (gui version of kernel configuration tool)
      click on "Networking options"
      click on "Appletalk protocol support" (left-hand box)

      click on "Main Menu"

      click on "Exit and Save"

      or

      make menuconfig
      (use down-arrow key to move down the list of items to configure)

      Networking options --->

      (Hit enter to Select)

      (Networking config list pops open)

      Use down-arrow to move down to:

      Appletalk protocol support

      Type "Y" to add built-in kernel support for Appletalk protocol
      (M means "modularized" support, "*" means "built-in" support

      You are down, so "E" to exit back to main menu,
      (hit "Escape" if E doesn't work).

      "Do you wish to save your new kernel configuration?"

      This will complete menuconfig

      Now, edit the file "/usr/src/linux-2.4/Makefile":

      Change the value assigned to environment variable: EXTRAVERSION

      It doesn't matter what you put here. EXTRAVERSION will be appended
      to new kernel name: linux-2.4-EXTRAVERSION

      Now, time to use the "make" commands to actually recompile the kernel:

      make dep
      make clean
      make bzImage
      make modules

      now, copy the new kernel image to /boot:

      Appletalk protocol support Type "Y" on this item. This changes it from "modularized" support to "built-in" support. Now you are done, so


Obtaining and installing netatlk package under Centos

According to the package maintainer (Troy Engel), you can obtain the sources, rebuild them, and it will work.

To get the source rpms:

cd /usr/local/downloads

wget ftp://rpmfind.net/linux/falsehope/home/tengel/netatalk/netatalk*

Then, rebuild the netatalk package from source rpm:

rpmbuild --rebuild netatalk-1.6.1-2rh7.src.rpm

You will get the following rpm build error messages:

RPM build errors:
user tengel does not exist - using root
user tengel does not exist - using root
user tengel does not exist - using root
Installed (but unpackaged) file(s) found:
/usr/include/netatalk/aarp.c
/usr/include/netatalk/at_control.c
/usr/include/netatalk/at_proto.c
/usr/include/netatalk/ddp_input.c
/usr/include/netatalk/ddp_output.c
/usr/include/netatalk/ddp_usrreq.c
/usr/share/netatalk/pagecount.ps

You end up with a rebuilt: netatalk-1.6.1-2rh7.i386.rpm, which you can then install.

When you install, you get the following warning (centos 3.1, yummed on 9/1/04):


NOTE: the rest of this document is under re-construction. Following is the error messages I got before I remade the new kernel.

warning: The DDP services appear to be present in /etc/services.
warning: Please check them against services.atalk in the documentation.

It appears that these messages cannot be ignored, because atalkd will not start up:

]# service atalk status
modprobe: Can't locate module appletalk
[could not load appletalk module]
atalkd is stopped

Again, I tried to start the atalk service:

[root@carterserver netatalk]# service atalk start
modprobe: Can't locate module appletalk
[could not load appletalk module]
Starting AppleTalk services:
Starting atalkd:socket: Address family not supported by protocol
socket: Address family not supported by protocol
atalkd: can't get interfaces, exiting.
[FAILED]
Registering carterserver:Workstation: [FAILED]
Registering carterserver:netatalk: [FAILED]
Starting papd: [ OK ]
Starting afpd: [ OK ]

/var/log/messages shows the following:

Sep 2 09:16:24 carterserver modprobe: modprobe: Can't locate module net-pf-5
Sep 2 09:16:24 carterserver modprobe: modprobe: Can't locate module net-pf-5
Sep 2 09:16:24 carterserver atalkd: socket: Address family not supported by protocol
Sep 2 09:16:24 carterserver atalkd: socket: Address family not supported by protocol
Sep 2 09:16:24 carterserver atalkd: atalkd: can't get interfaces, exiting.
Sep 2 09:16:24 carterserver atalk: atalkd startup failed
Sep 2 09:16:25 carterserver modprobe: modprobe: Can't locate module net-pf-5
Sep 2 09:16:25 carterserver atalk: Registering carterserver:Workstation: failed
Sep 2 09:16:25 carterserver modprobe: modprobe: Can't locate module net-pf-5
Sep 2 09:16:25 carterserver atalk: Registering carterserver:netatalk: failed
Sep 2 09:16:25 carterserver atalk: papd startup succeeded
Sep 2 09:16:25 carterserver papd[14719]: [main.c:278]: I:PAPDaemon: restart (1.6.1)
Sep 2 09:16:25 carterserver atalk: afpd startup succeeded
Sep 2 09:16:25 carterserver modprobe: modprobe: Can't locate module net-pf-5
Sep 2 09:16:25 carterserver afpd[14723]: [afp_config.c:204]: E:AFPDaemon: main: atp_open: Address family not supported by protocol
Sep 2 09:16:25 carterserver afpd[14723]: [afp_config.c:311]: I:AFPDaemon: ASIP started on 127.0.0.1:548(0) (1.6.1)
Sep 2 09:16:25 carterserver afpd[14723]: [auth.c:560]: I:AFPDaemon: uam: uams_clrtxt.so loaded
Sep 2 09:16:25 carterserver afpd[14723]: [auth.c:560]: I:AFPDaemon: uam: uams_dhx.so loaded
Sep 2 09:16:25 carterserver afpd[14723]: [auth.c:127]: I:AFPDaemon: uam: "DHCAST128" available
Sep 2 09:16:25 carterserver afpd[14723]: [auth.c:127]: I:AFPDaemon: uam: "Cleartxt Passwrd" available

afpd startup says it succeeded, but….
same with papd startup, "succeeded", but…

The server just doesn't show up in Chooser from Mac clients.

More work to do.

netatalk for centos linux: how to find and install

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다