- Download Raspberry Pi Imager for your OS here.
- Connect an SD card reader with the SD card inside.
- Open Raspberry Pi Imager and choose the required OS (Raspberry Pi OS recommended).
- Flash the image onto your SD card.
- Create an empty file called
.ssh
and put it in the root SD card folder. This is important to allow ssh access later.
- Create a file named
wpa_supplicant.conf
with the desired access points to connect to. Follow the template here.
- Place this file in the root folder of the SD card.
- Whenever Pi boots, it will connect to the first available access point.
- Insert SD card into its slot, and plug in power supply.
- Determine the IP address of Pi.
- Install nmap.
- Discover host machine’s IP address. Let's say it is
192.168.2.5
. This means that the other devices connected to the same access point will have IP address like192.168.2.1
,192.168.2.2
,192.168.2.3
etc. The notation of this range is192.168.2.0/24
(covers192.168.2.0
to192.168.2.255
). - Run this nmap command on the host machine:
sudo nmap –sn 192.168.2.0/24
- Run
ssh pi@192.168.182.81
to connect remotely. - The default password is
raspberry
. Runsudo raspi-config
to set your own password.