Wednesday, August 10, 2022

Avahi daemon configuration file location and settings

sudo apt install avahi-daemon avahi-utils

sudo find -xdev -name avahi
./etc/avahi
./usr/share/avahi
./usr/lib/i386-linux-gnu/avahi
./usr/lib/x86_64-linux-gnu/avahi

sudo touch /etc/avahi/services/smb.service
sudo nano /etc/avahi/services/smb.service
<?xml version="1.0" standalone='no'?>
<!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>
   <type>_device-info._tcp</type>
   <port>0</port>
   <txt-record>model=RackMac</txt-record>
 </service>
</service-group>
sudo systemctl restart avahi-daemon.service
sudo service avahi-daemon status

No comments:

Post a Comment