Blog

Sunday, May 11, 2008
AFP and Bonjour on DS-107+

Here are some notes I took when getting a Synology DS-107+ to play nicely on an all-Mac network. I installed an AFP server and mDNS daemon, also known as Bonjour or Zeroconf.

The first pitfall: Use firefox - bugs prevent proper privileges and path installation if you use Safari.

Instal EnableSSH. See Synology's instructions

Check "Hide this share in My Network Places". This prevents them from being published as samba shares. They're still accessible via samba, and AFS only publishes to people who have access anyway.

Install ipkg by following the instructions on Maarten Damen's site

If you're a Unix geek, you'll recognize ipkg as being a package manager something along the lines of Debian's apt or the Mac port, fink.

We'll install avahi next. It's the Bonjour bit. The ipkg install is in the "unstable" tree so we need to tell ipkg about it by adding

src http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable

to /opt/etc/ipkg.conf

Then avahi will install by simply running

ipkg install avahi

We need to give avahi the wherewithal to boot and be useful. I found that the slackware distro has the closest to what I wanted.

Copy the init script from

/avahi-0.6.22/initscript/slackware/avahi-daemon.in to /opt/etc/init.d

Also change the @sbindir@ to /opt/sbin

This is easiest if you mount /opt via smb (the share is published by ipkg bootstrap)

Start all the daemons by running

/opt/etc/rc.optware

In /opt/etc/avahi/services

delete sftp-ssh.service and replace with afpd.service:

(see http://gentoo-wiki.com/HOWTO_Share_Directories_via_AFP)

Hacked the S20dbus script in /opt/etc/init.d to NOT check for pid file. I think the pid is not properly cleaned up on shutdown so dbus fails to boot. This causes it to run, which allows avahi to run too.

Labels: ,

Post a Comment

Comments:

AddThis Feed Button

Twitter Updates

    follow me on Twitter

    Archives