Configuration de Raspbian sous Raspberry Zero sans écran.
Distribution : Raspbian Lite 2017-07-05
1/ A partir d’un ordinateur, Insérer l’adaptateur ‘carte SD‘ pour micro-SD.
2/ Graver l’image.
[~] ➔ sudo dd bs=4M if=2017-07-05-raspbian-jessie-lite.img of=/dev/mmcblk0
3/ Enlever et réinsérer l’adaptateur ‘carte SD‘.
La carte SD est monté dans les répertoires de montage :
/media//boot/ /media/ / /etc/
4/ Configuration de ssh.
Créer :
/media/nekrofage/boot/ssh
Ajouter :
Rien
5/ Configuration réseau sans-fil.
Créer :
/media/nekrofage/boot/wpa_supplicant.conf
Ajouter :
country=FR ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="ressf01" scan_ssid=1 psk="Mot2Passe" key_mgmt=WPA-PSK }
6/ Configuration du ‘hostname‘.
Ouvrir :
/media/nekrofage/673b8ab6-6426-474b-87d3-71bff0fcebc3/etc/hostname
Remplacer tout par :
r0-1.local
7/ Démonter les répertoires et enlever l’adaptateur ‘carte SD‘.
8/ Insérer la carte micro-SD dans le Raspberry Zero.
9/ Test de la connexion ssh à partir d’un autre ordinateur du réseau.
– Test ‘ping‘ :
util01@station02:~$ ping r0-1.local -c 3 PING r0-1.local (192.168.1.21) 56(84) bytes of data. 64 bytes from pc16.home (192.168.1.21): icmp_seq=1 ttl=64 time=8.95 ms 64 bytes from pc16.home (192.168.1.21): icmp_seq=2 ttl=64 time=9.58 ms 64 bytes from pc16.home (192.168.1.21): icmp_seq=3 ttl=64 time=8.96 ms --- r0-1.local ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 8.953/9.168/9.587/0.315 ms
– Test ‘ssh‘ :
util01@station02:~$ ssh pi@r0-1.local The authenticity of host 'r0-1.local (192.168.1.21)' can't be established. ECDSA key fingerprint is SHA256:B3dN5hBe/HvT7CV+klwfxQMX+M6zw3KnX4EIIFBAAjo. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'r0-1.local' (ECDSA) to the list of known hosts. Warning: the ECDSA host key for 'r0-1.local' differs from the key for the IP address '192.168.1.21' Offending key for IP in /home/util01/.ssh/known_hosts:19 Are you sure you want to continue connecting (yes/no)? yes pi@r0-1.local's password:The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jul 5 11:48:35 2017 SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password. pi@r0-1:~ $
10/ Liens.
https://www.losant.com/blog/getting-started-with-the-raspberry-pi-zero-w-without-a-monitor
https://core-electronics.com.au/tutorials/raspberry-pi-zerow-headless-wifi-setup.html
Comments are closed, but trackbacks and pingbacks are open.