-
-
Notifications
You must be signed in to change notification settings - Fork 1
Headless Setup: Enable Wifi and SSH without Screen and Console etc
HackTheDev edited this page May 20, 2021
·
2 revisions
In order to connect to a Wifi Network, you'd have to create a file called wpa_supplicant.conf with the following contents. Don't forget to change the country variable to your local code. Country Codes can be found here
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=AT
network={
ssid="FRITZ!Box 7582 TY"
psk="YOUR WIFI PASSWORD"
}
If you want to enable SSH on your Raspberry Pi create a file called exactly ssh, with no extension and content. Just ssh
If you've flashed your SD Card fresh with raspbian, navigate to your SD Card in Windows Explorer and select the boot partition/"drive". Then you just copy the two files we've created and move it to the boot drive. Next time you start your Pi with the SD Card it should connect to your Wifi Network with SSH enabled.