Networking BeagleBone & Mac OSX

netatalk-xserver

Netatalk

To netatalk and the avahi-daemon installed on debian will all your device to show in your Mac Finder’s sidebar. You can then browse the device contents, or setup VNC viewing.

Prerequisites

sudo apt-get install gcc
 
sudo apt-get install libssl-dev libdb-dev libgcrypt-dev libcrack2-dev libavahi-client-dev libldap2-dev libacl1-dev libwrap0-dev libkrb5-dev libpam0g-dev libdb-dev systemtap-sdt-dev libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libevent-dev checkinstall build-essential
 
wget http://sourceforge.net/projects/netatalk/files/netatalk/3.0.5/netatalk-3.0.5.tar.gz
 
tar xvzf netatalk-3.0.5.tar.gz
cd netatalk-3.0.5
 
./configure --enable-debian --with-init-style=debian --with-cracklib --with-acls --with-ldap --enable-tcp-wrappers --enable-zeroconf
 
make
 
make install
 
/usr/local/sbin/afpd -V

afpd 3.0.5 - Apple Filing Protocol (AFP) daemon of Netatalk

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version. Please see the file COPYING for further information and details.

afpd has been compiled with support for these features:

AFP versions: 2.2 3.0 3.1 3.2 3.3
CNID backends: dbd last tdb
Zeroconf support: Avahi
TCP wrappers support: Yes
Quota support: Yes
Admin group support: Yes
Valid shell checks: Yes
cracklib support: Yes
EA support: ad | sys
ACL support: Yes
LDAP support: Yes
D-Bus support: No
DTrace probes: No

afp.conf: /usr/local/etc/afp.conf
extmap.conf: /usr/local/etc/extmap.conf
state directory: /usr/local/var/netatalk/
afp_signature.conf: /usr/local/var/netatalk/afp_signature.conf
afp_voluuid.conf: /usr/local/var/netatalk/afp_voluuid.conf
UAM search path: /usr/local/lib/netatalk//
Server messages path: /usr/local/var/netatalk/msg/

 

Config File
sudo nano /usr/local/etc/afp.conf

;
; Netatalk 3.x configuration file
;

[Global]
; Global server settings
hostname = Beagle
zeroconf = yes
guest account = nobody
save password = yes
log file = /var/log/netatalk.log
log level = default:maxdebug

[Homes]
basedir regex = /home

[Scanned Files]
;path = /home/zanechua/brscan
cnid scheme = dbd
ea = auto
mac charset = MAC_ROMAN
invisible dots = yes
unix priv = yes
search db = yes

Avahi Install

Next we need to install and setup the avahi-daemon so your beaglebone automatically shows up in the finder.
sudo apt-get install avahi-daemon
Now you will need to create a configuration file for Avahi.
 
sudo nano /etc/avahi/services/afpd.service

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">%h</name>
   <service>
    <type>_afpovertcp._tcp</type>
    <port>548</port>
   </service>
</service-group> 
 

 

Setup Autoruns


sudo update-rc.d -f netatalk remove
sudo update-rc.d netatalk defaults

Restart Services

/etc/init.d/netatalk restart
/etc/init.d/avahi restart

Share

You may also like...