Installation de Avahi

Installation de Avahi.

1/ Modification du ‘hostname‘.

– Lancement de ‘raspi-config‘ :

pi@raspberrypi:~ $ sudo raspi-config

– Modification du ‘hostname‘ :
[2 Hostname]
Please enter a hostname: doompi.local
[< Ok >]

2/ Vérification.

pi@doompi:~ $ hostname
doompi.local

3/ Installation de Avahi.

pi@doompi:~ $ sudo apt-get install avahi-daemon libavahi-client-dev

4/ Mise-à-jour du système de démarrage.

pi@doompi:~ $ sudo update-rc.d avahi-daemon defaults

5/ Activation de l’accès ssh.

Ouvrir :

/etc/avahi/services/ssh.service

Ajouter :




%h SSH

_ssh._tcp
22


6/ Redémarrage du Raspberry Pi.

7/ Test : ping.

A partir d’un autre ordinateur du réseau :

[~] ➔ ping doompi.local -c 3
PING doompi.local (192.168.1.18) 56(84) bytes of data.
64 bytes from pc67.home (192.168.1.18): icmp_seq=1 ttl=64 time=0.312 ms
64 bytes from pc67.home (192.168.1.18): icmp_seq=2 ttl=64 time=0.396 ms
64 bytes from pc67.home (192.168.1.18): icmp_seq=3 ttl=64 time=0.434 ms
--- doompi.local ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.312/0.380/0.434/0.055 ms

8/ Test : ssh.

A partir d’un autre ordinateur du réseau :

[~] ➔ ssh pi@doompi.local
pi@doompi.local's password:
Last login: Sun Nov  5 23:32:56 2017 from pc60.home
➜  ~ whoami
pi
➜  ~ hostname
doompi.local
➜  ~

9/ Liens.

http://www.journaldulapin.com/2015/08/31/acceder-au-raspberry-pi-via-bonjour/
https://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/

Comments are closed, but trackbacks and pingbacks are open.