http://www.zaphu.com/2008/04/29/ubuntu-guide-configure-avahi-to-broadcast-services-via-bonjour-to-mac-os-x/
$ sudo apt-get update
$ sudo apt-get install avahi-daemon avahi-discover avahi-utils
setting up for samba
http://holyarmy.org/benjamin/2008/01/advertising-linux-services-via-avahibonjour/#more-293
$ sudo vim /etc/avahi/services/samba.service
type i to enter insert mode on vim
then ESC then ':wq' to leave insert mode then write the file and quit.
but paste the expert below first.
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>139</port>
</service>
</service-group>
The avahi-demon.conf can also be edited to added services to on other mamchines which do not run bonjour/avahi
$ sudo vim /etc/avahi/hosts
I have the following in the hosts file
192.168.1.1 router.local
192.168.1.3 wifi.local
restart avahi server
$ sudo /etc/init.d/avahi-daemon restart
The servers name should now appear in finder on the left. If it says failed to connect, it is often todo with the samba server not having a guest user. Clicking connect as and entering username and password should allow you to see network shares.
No comments:
Post a Comment