Here is what you need to do to connect to your WiFi with either the Desktop or Lite version of Raspbian at first boot.
Download one of the Raspbian images (desktop or lite)
and use Etcher
to write it to an SD card. There is no need to format the card or extract the image prior to using Etcher. Etcher can write the image directly from the archive, and the file system is contained in the image.
If you have trouble writing the image, verify the download with the published SHA-256 checksum from the download page. There is a nice little Windows shell extension called HashCheck
that adds a checksums tab to file properties which you can use to check the downloaded file.
When Etcher has successfully written and verified the card it will safely eject it. Unplug the card or card reader and plug it back in so your computer will see the small FAT32 formatted boot partition.
If you want to enable SSH create an empty file named "ssh" or "ssh.txt" on the small FAT32 boot partition of the SD card.
To connect to a wireless router create another file called "wpa_supplicant.conf" which contains the following info.
Code: Select all
ssid="Your network SSID"
psk="Your WPA/WPA2 security key"
Edit the country code, SSID and the WPA/WPA2 key with the info you need to connect to your network.
Note to SurferTim:
The minimal wpa_supplicant.conf you're recommending that used to work with Jessie does not work with Stretch.
If you are using an ethernet cable to connect to your router you can skip that second file.
Safely eject the card from your computer and use it to boot the Raspberry Pi. When Raspbian finds the "ssh" file it will enable SSH and delete the file. When Raspbian finds the wpa_supplicant.conf file it will move it to the correct location and connect to your router.
My password is the last 8 digits of Pi.