Hire me if you like: blake.irvin@gmail.com

Tuesday, January 05, 2010

Broadcasting the OpenSolaris CIFS/SMB Service Automagically

First, make your config file:
vi /etc/avahi/services/smb.service

Add this XML:
<?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>445</port>
</service>
</service-group>


Then, restart the avahi MDNS broadcast service:
svcadm restart svc:/system/avahi-bridge-dsd:default

No comments:

Archive