Netatalk

From Wsms

Jump to: navigation, search

Contents

fedora core 5

How to set up Fedora Core 5 as a file server for Macinstoh system using the netatalk package.

netatalk.sourcefore.net is the homepage for the netatalk server.

To install on Fedora Core 5:

[root@hayes ~]# yum -y install netatalk

As always, you can get more information using:

[root@hayes ~]# rpm -qil netatalk

We are interested in the afpd daemon. This startup file for the daemon is /etc/rc.d/init.d/atalk. You can use the chkconfig command to see that atalk is not enabled by default during the install.

[root@hayes ~]# chkconfig --list atalk
atalk           0:off   1:off   2:off   3:off   4:off   5:off   6:off

Linux server configuration

The config file for the daemon is /etc/atalk/afpd.conf. I changed the last line of /etc/atalk/afpd.conf to:

"Guest Volume" -uamlist uams_guest.so -loginmesg "Welcome guest!"

This will give Mac users on our LAN access to a volume without loggin in.

The volumes to be shared are defined in /etc/atalk/AppleVolumes.default. Changed the last few lines of /etc/atalk/AppleVolumes.defalt to:

# GGG no logged-in users
# ~
# GGG Share
/mnt/hda7/AppleShared "Guest Volume"


Use netstat to see what port atalk is using.

linux mint 3

root@mckinley:~# apt-get -y install netatalk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libasn1-6-heimdal libgssapi4-heimdal libkrb5-17-heimdal libroken16-heimdal
Suggested packages:
  tetex-bin quota timeout
Recommended packages:
  rc slpd db4.2-util
The following NEW packages will be installed:
  libasn1-6-heimdal libgssapi4-heimdal libkrb5-17-heimdal libroken16-heimdal netatalk
0 upgraded, 5 newly installed, 0 to remove and 6 not upgraded.
Need to get 1107kB of archives.
After unpacking 2966kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com feisty/universe libasn1-6-heimdal 0.7.2.dfsg.1-10ubuntu1 [98.7kB]
Get:2 http://archive.ubuntu.com feisty/universe libroken16-heimdal 0.7.2.dfsg.1-10ubuntu1 [63.0kB]
Get:3 http://archive.ubuntu.com feisty/universe libkrb5-17-heimdal 0.7.2.dfsg.1-10ubuntu1 [167kB]
Get:4 http://archive.ubuntu.com feisty/universe libgssapi4-heimdal 0.7.2.dfsg.1-10ubuntu1 [67.9kB]
Get:5 http://archive.ubuntu.com feisty/universe netatalk 2.0.3-5 [710kB]
Fetched 1107kB in 9s (114kB/s)                                                                                                                                                                      
Selecting previously deselected package libasn1-6-heimdal.
(Reading database ... 95390 files and directories currently installed.)
Unpacking libasn1-6-heimdal (from .../libasn1-6-heimdal_0.7.2.dfsg.1-10ubuntu1_i386.deb) ...
Selecting previously deselected package libroken16-heimdal.
Unpacking libroken16-heimdal (from .../libroken16-heimdal_0.7.2.dfsg.1-10ubuntu1_i386.deb) ...
Selecting previously deselected package libkrb5-17-heimdal.
Unpacking libkrb5-17-heimdal (from .../libkrb5-17-heimdal_0.7.2.dfsg.1-10ubuntu1_i386.deb) ...
Selecting previously deselected package libgssapi4-heimdal.
Unpacking libgssapi4-heimdal (from .../libgssapi4-heimdal_0.7.2.dfsg.1-10ubuntu1_i386.deb) ...
Selecting previously deselected package netatalk.
Unpacking netatalk (from .../netatalk_2.0.3-5_i386.deb) ...
Setting up libasn1-6-heimdal (0.7.2.dfsg.1-10ubuntu1) ...

Setting up libroken16-heimdal (0.7.2.dfsg.1-10ubuntu1) ...

Setting up libkrb5-17-heimdal (0.7.2.dfsg.1-10ubuntu1) ...

Setting up libgssapi4-heimdal (0.7.2.dfsg.1-10ubuntu1) ...

Setting up netatalk (2.0.3-5) ...
Starting Netatalk services (this will take a while):  atalkd cnid_metad afpd papd.

Note: I couldn't get netatalk working on my T42 laptop. I think netatalk was confused because the laptop has a wireless interface as well as a wired interface.

Netstat show afpd listening on port 553

root@mckinley:~# netstat -pant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
...
tcp        0      0 0.0.0.0:548             0.0.0.0:*               LISTEN     15018/afpd          
...

TODO

  1. See about using rsync from a Macintosh.
  2. Find out what file options might be on OS X that are not preserved on a ext3 file system.
Personal tools