abcd567
November 12, 2021, 1:33pm
10
This is Raspi OS from raspberrypi.org , NOT a piaware SD card image from Flightaware.
The image from raspberrypi.org require to add file wpa_supplicant.conf
in /boot folder immediately after writing the image and while the microSD card is plugged into Desktop/Laptop.
2 - Enable SSH & WiFi while microSD card is still plugged into Laptop/Desktop
While the microSD card is still in the card reader of your Laptop/Desktop, in File Explorer (Windows) or Finder (Mac) click on drive letter of the microSD card (labelled boot) to open it. It will open folder /boot
which has many files & few folders.
2.1 - SSH
In the folder /boot
, create a new text file and name it ssh
If you are new to SSH, please see this post:
For Beginners - How-to SSH to RPi - Setup Putty in Windows
For Raspberry Pi OS image
username = pi
default password = raspberry
2.2 - WiFi (if required)
2.2.1 - In the folder /boot, right click and create a new text file.
2.2.2 - Open the text file using Notepad (Windows) or TextEdit (Mac)
In the opened text file, copy-paste following text:
country=CA
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOUR_SSID"
psk="YOUR_PASSWORD"
}
Replace:
CA by two letter code for your country e.g. GB for UK, US for USA, DE for Germany, FR for France, SE for Sweden, CH for Switzerland, NL for Netherland, AU for Australia, NZ for New Zealand, etc etc. (click here for complete list)
YOUR_SSID by your router’s wifi ssid
YOUR_PASSWORD by your router’s wifi password.
2.2.3 - Save file.
2.2.4 - Change the name of file from “New Text Document.txt” to “wpa_supplicant.conf”
IMPORTANT: If your Desktop/Laptop settings are such that it does not show file extensions, the newly created file will actually be wpa_supplicant.conf. txt , but will not show .txt extension at the end. With hidden .txt extension the file wpa_supplicant.conf will not enable wifi. Configure File Explorer (Windows) or Finder (Mac) to show file extensions and remove .txt from end of file name.