Distribution de travail : Raspberry Pi OS 2020-12-02
La carte SD est monté dans les répertoires de montage :
/media/util01/boot/
/media/util01/rootfs/
Créer :
/media/util01/boot/ssh
Ajouter :
Rien
Créer :
/media/util01/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
}
Ouvrir :
/media/util01/rootfs/etc/hostname
Remplacer tout par :
raspberryzero.local
util01@station66:~$ ping raspberryzero.local -c 2
PING raspberryzero.local (192.168.1.35) 56(84) bytes of data.
64 bytes from pc672.home (192.168.1.35): icmp_seq=1 ttl=64 time=102 ms
64 bytes from pc672.home (192.168.1.35): icmp_seq=2 ttl=64 time=9.07 ms
--- raspberryzero.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 9.073/56.035/102.997/46.962 ms
util01@station66:~$ ssh pi@raspberryzero.local
Warning: the ECDSA host key for 'raspberryzero.local' differs from the key for the IP address '192.168.1.35'
Offending key for IP in /home/util01/.ssh/known_hosts:44
Matching host key in /home/util01/.ssh/known_hosts:75
Are you sure you want to continue connecting (yes/no)? yes
pi@raspberryzero.local's password:
Linux raspberryzero.local 5.4.79+ #1373 Mon Nov 23 13:18:15 GMT 2020 armv6l
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 Dec 2 13:05:17 2020
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@raspberryzero:~ $
pi@raspberryzero:~ $ sudo raspi-config
- Activation du serveur VNC :
- 3 Interface Options Configure connections to peripherals
- P3 VNC Enable/disable graphical remote access using RealVNC
util01@station66:~$ cd Téléchargements/
util01@station66:~/Téléchargements$ sudo dpkg -i VNC-Viewer-6.20.529-Linux-x64.deb
util01@station66:~$ vncviewer 192.168.1.35
pi@raspberryzero:~ $ sudo raspi-config
- 2 Display Options Configure display settings
- D1 Resolution Set a specific screen resolution
- DMT Mode 9 800x600 60Hz 4:3