General Information
This short how-to gives you the instructions to install and configure an OpenBSD 3.8 machine as a fileserver for Apple's Macintosh Computers.
Requirements
- A running OpenBSD 3.8 installation
- wget must be installed (from the packages)
- Berkeley-DB must be installed (instructions here included)
Installation
Download and install the Berkeley-DB (aka SleepyCat Database)
Download:
# # |
cd /usr
wget http://downloads.sleepycat.com/db-4.2.52.tar.gz |
Unpack:
|
# |
tar xzf db-4.2.52.tar.gz |
Compile, configure & install
# # # # |
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 |
Unpack:
|
# |
tar xzf netatalk-2.0.3.tar.gz |
Compile, configure & install:
# # # # |
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 |
Configure for automatic start: in the file
/etc/rc.local comment the section about netatalk if uncommented:
# Netatalk stuff
#if [ -f /etc/netatalk/rc.atalk ]; then
# . /etc/netatalk/rc.atalk
#fi
|
Add the following start sequence to end of file
rc.local:
if [ -f /etc/netatalk/afpd.conf ]; then
echo ' afpd'; /usr/local/sbin/afpd
fi
|
If you don't wish to reboot to take effect, start the AFP-Daemon with the following command:
I recommend to reboot to check if the startup sequence are ok. After the start check if afpd is running:
must result in a output like this:
27742 ?? I 0:00.05 /usr/local/sbin/afpd
|
Configuration
Enable AFP (apple filing protocol) password file:
To add a user you must create a local user account:
... fill in the gaps
Then set the afp password for this user:
|
# |
afppasswd -a [USERNAME] |
Per default netatalk shares the home-directories of every AFP-enabled user! If you wish to change this behavior, take a look at the documentation of the daemon process afpd:
All relevant files and references would you find here.
Author: blowfish
kai at mktfabian dot de