Appletalk / Netatalk
Updated: 09/04/2008
General Information
This short how-to gives you the instructions to install and configure an OpenBSD machine as a fileserver for Apple's Macintosh Computers.Requirements
Installation
Download and install the Berkeley-DB (aka SleepyCat Database), now owned by Oracle
Download:|
# # |
cd /usr wget http://download.oracle.com/berkeley-db/db-4.2.52.tar.gz |
| # | tar xzf db-4.2.52.tar.gz |
|
# # # # |
cd /usr/db-4.2.52/build_unix ../dist/configure make make install |
Note: Don't use any other version! They don't work with this configuration!
Download and install the Netatalk package:
Download:|
# # |
cd /usr wget http://switch.dl.sourceforge.net/sourceforge/netatalk/netatalk-2.0.3.tar.gz |
| # | tar xzf netatalk-2.0.3.tar.gz |
|
# # # # |
cd /usr/netatalk-2.0.3 ./configure --with-bdb=/usr/local/BerkeleyDB.4.2 make make install |
Note: Don't use any other version! They don't work with this configuration!
Make link to /etc for compatibility:| # | ln -s /usr/local/etc/netatalk /etc/netatalk |
/etc/rc.local comment the section about netatalk if uncommented:|
# Netatalk stuff #if [ -f /etc/netatalk/rc.atalk ]; then # . /etc/netatalk/rc.atalk #fi |
rc.local:|
if [ -f /etc/netatalk/afpd.conf ]; then echo ' afpd'; /usr/local/sbin/afpd fi |
| # | /usr/local/sbin/afpd |
| # | ps ax | grep afpd |
|
27742 ?? I 0:00.05 /usr/local/sbin/afpd |
Configuration
Enable AFP (apple filing protocol) password file:| # | afppasswd -c |
| # | adduser |
| # | afppasswd -a USERNAME |
| # | PATH SHARENAME OPTIONS |
| # | /disk/path1 share1 allow:kai |
| # | /disk/path2 "share 2" allow:kai options:ro |
| # | "testVMx2" -uamlist uams_clrtxt.so,uams_dhx.so,uams_guest.so -loginmesg "Welcome stranger" |
Author: blowfish
kai at mktfabian dot de