Advertisement

Sunday, December 29, 2013

Avahi Installed on HESA Computer

Tonight, I took a few minutes to install Avahi on the Raspberry Pi that is installed in the Home Environmental Sensor Array.  Now, I can connect to the RPi at hesa.local on my home network.  It works with ping, ssh, and to web pages hosted on the RPi with Apache.  Hopefully, it works on the network at the Milwaukee Makerspace as well.  Thanks Pete and Jason for the advice!

Here are the instructions I followed:

Executed sudo apt-get install avahi-daemon

Executed sudo insserv avahi-daemon

No messages received either way.

Executed sudo nano /etc/avahi/services/multiple.service and created a file with the text below.
<?xml version="1.0" standalone='no'?>                 
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">   
<service-group>                                       
        <name replace-wildcards="yes">%h</name>       
        <service>                                     
                <type>_device-info._tcp</type>        
                <port>0</port>                        
                <txt-record>model=RackMac</txt-record>
        </service>                                    
        <service>                                     
                <type>_ssh._tcp</type>                
                <port>22</port>                       
        </service>                                    
</service-group>                                      

Executed sudo /etc/init.d/avahi-daemon restart