I’ve been trying to get this working for a while now. In ResinOS v1 it works fine by changing the hostname and starting the local avahi-daemon
service.
In ResinOS v2, there is already an avahi-daemon
running on the host, so I can’t run the local one.
I am running on systemd images, on intel NUC and QEMU:
NUC = Resin OS 2.0.0-rc4.rev1
QEMU = Resin OS 2.0.0-rc5.rev1
I’ve tried changing config.json to set my hostname there. I can’t ping my $(hostname).local
from the device or from the network.
After setting DBUS address to the host’s DBUS socket, I’ve tried using dbus-send:
dbus-send --system --print-reply --reply-timeout=2000 --type=method_call --dest=org.freedesktop.Avahi / org.freedesktop.Avahi.Server.SetHostName string:"$(hostname)"
This seems to result in the avahi-daemon
process on the host crashing and I can’t seem to recover it using systemctl
.
In either case, I can’t ping my $(hostname).local
from the device or from the network.
Any ideas?
– ab1