RPi quick setup - albertmon/smarthome GitHub Wiki
- Download (and install) the RPi-imager (Only the first time)
- Insert your memory card.
When using Windows ignore the warning about formatting, just click:Cancel
- Start the RPi imager and
- select the recommended operating system: Raspberry Pi OS (32-bit) with Desktop
- Select the correct Storage device. Double check that you are write to the right device!
-
Remove and reinsert the memory card. Again, Do NOT format, just click
Cancel
(and ignore the warning) You will see a device with the name**boot**
-
First we will enable ssh connections.
This is done by creating an empty file in the boot partition namedssh
- Open the Windows Explorer
First change the view so you can see and remove file name extensions. - Click the tab View
- The checkbox
File name extensions
must be checked - In the boot directory right-click and choose
New > Text Document
- Change the new of
New Text Document.txt
tossh
ClickYes
to answer the question Are you sure?
- Open the Windows Explorer
-
Now we must enable Wifi and access to our wifi-router.
This is done by creating a text file namedwpa_supplicant.conf
- Open a text editor (like notepad) and enter the following text:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<country code>
network={
scan_ssid=1
ssid="<Name of your wireless LAN>"
psk="<Password for your wireless LAN>"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
Where
- <country code> should be set the two letter ISO/IEC alpha2 code for the country in which you are using, e.g. GB (United Kingdom), FR (France), DE (Germany), NL (The Netherlands) US (United States), SE (Sweden)
- <Name of your wireless LAN> to the SSID of your LAN
- <Password for your wireless LAN> to the password of your LAN
More detailed information about configuring networking and additional security measures can be found on raspberrypi.org
Now you can eject your memory card, put it in your raspberry and start your raspberry.