[FreeBSD] [GhostBSD] Activation Avahi.

1/ Installation des paquets Avahi.

util01@station55 /u/h/util01> sudo pkg install hal dbus avahi avahi-app avahi-libdns avahi-autoipd nss_mdns

2/ Fichier de configuration.

Ouvrir : /etc/rc.conf Chercher : hostname= Remplacer par : hostname="station55.local"

3/ Activation des services.

util01@station55 /u/h/util01> sudo sysrc dbus_enable=YES util01@station55 /u/h/util01> sudo sysrc hald_enable=YES util01@station55 /u/h/util01> sudo sysrc avahi_daemon_enable=YES

4/ Fichier de configuration.

Ouvrir : /etc/nsswitch.conf Chercher : host: files dns Remplacer par : hosts: files dns mdns

5/ Démarrage des services.

util01@station55 /u/h/util01> sudo service dbus start util01@station55 /u/h/util01> sudo service avahi-daemon start util01@station55 /u/h/util01> sudo service avahi-dnsconfd start

6/ Test.

  • ping : util01@station66:~$ ping station55.local -c 2 PING station55.local (192.168.1.14) 56(84) bytes of data. 64 bytes from 192.168.1.14 (192.168.1.14): icmp_seq=1 ttl=64 time=0.509 ms 64 bytes from 192.168.1.14 (192.168.1.14): icmp_seq=2 ttl=64 time=0.606 ms --- station55.local ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.509/0.557/0.606/0.053 ms
  • ssh : util01@station66:~$ ssh util01@station55.local ... Password for util01@station55: Last login: Wed Apr 8 13:42:38 2020 from pc283.home FreeBSD 12.1-STABLE GENERIC Welcome to FreeBSD! ... util01@station55 /u/h/util01>

7/ Liens.

http://jérôme.net/blog/post/230/activer-zeroconf-bonjour-en-freebsd/ https://revprez.github.io/posts/2016-06-26-avahi-conquered.html