Skip to content

4. Install OS first boot

Bogdan Tudorache edited this page Oct 4, 2022 · 10 revisions

A. Connected to the Internet?

Basically after you finish all the steps from Chapter 3, you have to plug in the power adapter to the pi-zero(far most USB-C) and wait for it to boot.

Green LED starts blinking ❇️ as the device powers up.

Given that we've created & configured the wpa_supplicant.conf file it will automatically connect to the Wi-Fi network.

Once the rpi has finished the OS install we can now look for it's ip address. The best way to do this is by going on your router and looking for a device named raspberrypi. Alternatively you can also use nmap.

Now that we know the pi's IP address let's test the internet connection with a ping.

bogdan.tudorache@MB-M1 ~ % ping 192.168.178.164
PING 192.168.178.164 (192.168.178.164): 56 data bytes
64 bytes from 192.168.178.164: icmp_seq=0 ttl=64 time=1.123 ms
64 bytes from 192.168.178.164: icmp_seq=1 ttl=64 time=0.326 ms
64 bytes from 192.168.178.164: icmp_seq=2 ttl=64 time=0.240 ms
^C
--- 192.168.178.164 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.240/0.563/1.123/0.398 ms

B. Connecting to the pi

B1. Changing default credentials

If you have not set an username/password yet through the April notes, then the default credentials are:

Username: pi
Password: raspberry

In order to change them first we must ssh to our device ssh username@hostname :

ssh pi@raspberypi

Now that we are in, let's change the default password

passwd
$: Changing password for pi.
Current password:
<Type in password + Enter>
$: New password:
<Type in password + Enter>
$: Retype new password:
<Type in password + Enter>