Appletalk / Netatalk

2009-05-13 15:33:11来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


General Information
This short how-to gives you the instructions to install and configure an OpenBSD machine as a fileserver for Apple's
[url=javascript:;]Macintosh[/url]
Computers.
Requirements
A running OpenBSD installation (tested with 3.8 and 4.3)
wget must be installed (from the packages), or any other tool to get packages from the web (eg. curl)
Berkeley-DB must be installed (instructions here included)
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
Unpack:
#
[url=javascript:;]tar[/url]
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
[url=javascript:;]Netatalk[/url]
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:
# /usr/local/sbin/afpd
I recommend to reboot to check if the startup sequence are ok.  After the start check if afpd is running:
# ps ax | grep afpd
must result in a output like this:
27742 ??  I       0:00.05 /usr/local/sbin/afpd

Configuration
Enable AFP (apple filing protocol) password file:
# afppasswd -c
To add a user you must create a local user account:
# adduser
... fill in the gaps
Then set the afp password for this user:
# afppasswd -a USERNAME
To share volumes, you have to edit the file /etc/netatalk/AppleVolumes.default to look like this:

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Change Crontab Email Settings ( MAILTO )

下一篇:Mount /usr/ports Inside Jail