DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-11-09 03:54:40

trepex
Member
Registered: 2008-11-09
Posts: 12

Bonjour / avahi / mdns for AFP shares in OSX Finder

Hey there,

I've been trying to find a way to get AFP shares to be properly detected by OSX and Appear under "SHARED" in OSX Leopard's Finder.  My DNS-323 shows up under shared but it's the SAMBA share that appears and Finder trys to connect to it via SMB.

It seems the solution is to get my 323 to advertise is AFP share so that Bonjour can pick it up, but so far I've had trouble accomplishing this.  I can't for the life of me get my debian etch chroot to work properly (following the instructions on the 323 wiki).

I was wondering if there is an FFP module for avahi or mdns floating around somewhere?

Thanks for your time!

Offline

 

#2 2008-11-10 13:41:00

mikeglass
Member
Registered: 2008-06-19
Posts: 7

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

install optware

Code:

http://dns323.kood.org/howto:optware

then install avahi

Code:

ipkg install avahi

and when you configure it, post how you did it here!

good luck

Offline

 

#3 2008-11-11 04:29:54

trepex
Member
Registered: 2008-11-09
Posts: 12

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

Thank you!!!!!!!!!!!!!!

I finally got it working, and now I get a nice "NAS AFP" link under "Shared" in Finder, which automatically grabs the AFP share and logs in without any delay (unlike samba connections which take near-15 seconds to connect).

I'm so frigging happy right now.  This has taken me days.

I'll write up a page on the wiki tomorrow describing the steps to follow to get avahi configured nicely to advertise the AFP and any other services.

Offline

 

#4 2008-11-11 06:47:02

lotech
Member
Registered: 2007-12-24
Posts: 19

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

Please do - I've been wondering how to do this for ages.

Offline

 

#5 2008-11-11 09:40:14

trepex
Member
Registered: 2008-11-09
Posts: 12

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

OK, I think I got most of it down on "paper".  Check out this page and let me know if you have any questions.  Perhaps someone could fix the formatting for my scripts, as I couldn't figure out how to make it look right.

http://dns323.kood.org/howto:mac_osx_users

Last edited by trepex (2008-11-11 17:08:02)

Offline

 

#6 2008-11-11 14:47:57

mikeglass
Member
Registered: 2008-06-19
Posts: 7

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

as a note, there's a netatalk fun plug package, you don't have to use the optware package.

Offline

 

#7 2008-11-11 16:08:31

trepex
Member
Registered: 2008-11-09
Posts: 12

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

mikeglass wrote:

as a note, there's a netatalk fun plug package, you don't have to use the optware package.

The problem here was getting avahi working.  I used the funplug for netatalk because that was easy, but there is no avahi funplug.

Last edited by trepex (2008-11-11 17:07:00)

Offline

 

#8 2008-11-12 03:35:32

lotech
Member
Registered: 2007-12-24
Posts: 19

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

hmmm looked at those instructions - a little more complex than I had hoped. If it was type a few commands, set NAS name and then to autostart on boot, maybe I'd go that way. I'll stick to SMB for now.
Thanks though - the more information we all have the better.

Offline

 

#9 2008-11-12 16:00:23

trepex
Member
Registered: 2008-11-09
Posts: 12

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

Fair enough.  It's actually easier than it seems though smile

I've actually stopped using AFP for now because with AVAHI enabled, my SMB mounts are working wonderfully in OSX.  Before the connection took 15 seconds or so, then if you browsed back to the main share it took another 15 seconds to refresh, etc.  With the SMB service properly advertised in mDNS though, Avahi has really solved my problems.  Plus Time Machine automatically picks up the correctly advertised SMB share and will back up to it without any hacks.

Offline

 

#10 2009-03-16 13:56:06

breasthead
Member
Registered: 2009-02-05
Posts: 38

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

Hi,

I've followed the steps outlined on the wiki (http://dns323.kood.org/howto:mac_osx_users) but am finding a slight issue. I created the files afp.service and smb.service as indicated in /opt/etc/avahi/services, so now in my finder under Shared I have 3 entries for my dlink 323.
I have the original 'dlink323' entry which was there before and now the 2 new ones 'dlink323 (Windows)' and 'dlink323 (Mac)'

If I go to to the original 'dlink323' then it's slow just like before -but it still works.
If I go to the (Mac) one, it just gives me connection failed
If I go to the (Windows) one, then it loads quickly -which is why I did all this in the first place.

Why does the afp (?) share 'dlink323 (Mac)' give me a connection failed ... I've gone through and checked the afp.service file and its the same as whats posted on the wiki? Any ideas what has happened?

Also, does anyone know if there any way that I can stop either the dlink broadcasting all 3 shares OR my Mac from showing all 3 shares? That way it will only show the dlink323 (Windows) mount ... which I'll rename to something like 'dlink323 (Mac)'

Cheers,
B

Offline

 

#11 2009-11-11 01:20:38

zuluwalker
Member
Registered: 2009-11-09
Posts: 27

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

breasthead wrote:

Hi,

I've followed the steps outlined on the wiki (http://dns323.kood.org/howto:mac_osx_users) but am finding a slight issue. I created the files afp.service and smb.service as indicated in /opt/etc/avahi/services, so now in my finder under Shared I have 3 entries for my dlink 323.
I have the original 'dlink323' entry which was there before and now the 2 new ones 'dlink323 (Windows)' and 'dlink323 (Mac)'

If I go to to the original 'dlink323' then it's slow just like before -but it still works.
If I go to the (Mac) one, it just gives me connection failed
If I go to the (Windows) one, then it loads quickly -which is why I did all this in the first place.

Why does the afp (?) share 'dlink323 (Mac)' give me a connection failed ... I've gone through and checked the afp.service file and its the same as whats posted on the wiki? Any ideas what has happened?

Also, does anyone know if there any way that I can stop either the dlink broadcasting all 3 shares OR my Mac from showing all 3 shares? That way it will only show the dlink323 (Windows) mount ... which I'll rename to something like 'dlink323 (Mac)'

Cheers,
B

You have to setup AFP (http://dns323.kood.org/howto:appletalk) manually before the steps you followed will work. I also ran into this problem but immediately noticed that linux devices aren't AFP-compatible OOB without the right configuration.

Offline

 

#12 2009-11-11 09:22:57

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

zuluwalker wrote:

You have to setup AFP (http://dns323.kood.org/howto:appletalk) manually

There's a recent blog post on ffp + avahi + netatalk at
http://www.noulakaz.net/weblog/2009/11/ … e-dns-323/
It seems to have all the details.

Offline

 

#13 2009-11-14 19:55:07

zuluwalker
Member
Registered: 2009-11-09
Posts: 27

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

Thanks fonz, I've tried it and it works better (and is much cleaner) than the more dated solution presented here. It has even encouraged me to wipe everything and start anew - I'm OC like that lol. smile

EDIT: I'm going back to the old/dirty optware method - I've had better success with it than with Avinash's method (or with some optware/Avinash mix, just can't be completely sure). And since I'm not well-versed in Linux (just a little experience through Mac OS X's Terminal) so the succeeding issues that I've had isn't that worth it.

EDIT to EDIT: I take it back. Copying and pasting the code directly from Avinash's instructions were the issue as there are some incorrect syntax found in the xml scripts (missing - and some others). I have successfully redone the process with success by comparing scripts made by other people (and in the wiki).

Back to tweaking. :-)

Last edited by zuluwalker (2009-11-15 21:24:23)

Offline

 

#14 2010-02-22 18:01:59

stefcold
New member
Registered: 2010-02-22
Posts: 1

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

New to this DNS hacking, I installed fun plug, configured SSH and Transmission...

Now I want to make my NAS compatible with my iMac... So I'm researching the Bonjour, AFP and Timemachine installation...

Any pros and cons of installing the Bonjour application available from dlink instead of avahi?

Stef...

Offline

 

#15 2010-02-22 23:44:59

thebeck
Member
Registered: 2009-11-30
Posts: 54

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

Hi stefcold,

I have been using avahi for about 8 months and it seems to be working well for me.  I would strongly suggest using fonz's avahi instead of the Bonjour package from D-Link.  See this post for more information:  http://forums.dlink.com/index.php?topic=6405.0

Offline

 

#16 2010-03-01 16:30:00

RobGun
New member
Registered: 2010-03-01
Posts: 1

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

I encounter a problem with the optwate-avahi method. I had it working for quite some time, however by now I cannot connect via afp in the finder.
The password gets accepted, as I would get an error message of I put in a false password, however no connection will happen. Processes seem to be running prior to trying to connect:

Code:

 1785 messageb /opt/bin/dbus-daemon --system 
 1791 avahi    avahi-daemon: running [NetStore.local]
 1795 root     /ffp/sbin/afpd 
 6588 root     mt-daapd 
 6591 root     sshd: root@pts/0  
 6593 root     -sh 
 6595 root     ps

the try creates another afpd process:

Code:

 1785 messageb /opt/bin/dbus-daemon --system 
 1791 avahi    avahi-daemon: running [NetStore.local]
 1795 root     /ffp/sbin/afpd 
 6588 root     mt-daapd 
 6591 root     sshd: root@pts/0  
 6593 root     -sh 
 6610 root     /ffp/sbin/afpd 
 6616 root     ps

... but not with the user specified?!?

Whereas Samba works fine:

Code:

 1785 messageb /opt/bin/dbus-daemon --system 
 1791 avahi    avahi-daemon: running [NetStore.local]
 1795 root     /ffp/sbin/afpd 
 6588 root     mt-daapd 
 6591 root     sshd: root@pts/0  
 6593 root     -sh 
 6610 root     /ffp/sbin/afpd 
 6619 RCG      /usr/sbin/samba/smbd -D

Anyone an idea what's going wrong?

Offline

 

#17 2012-01-22 18:52:20

bwyan
New member
Registered: 2012-01-22
Posts: 1

Re: Bonjour / avahi / mdns for AFP shares in OSX Finder

I would just like to comment and draw some attention to the article that I just wrote about Avahi, Samba and OSX Finder.

If you are experiencing that OSX Finder displays the error "Connection failed", when connecting to an Avahi-advertised Samba-service, please see my article on how to fix this issue.

http://bwyan.dk/?p=1456

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB