WiFi and SSH enabled at first boot – PI
WiFi and SSH enabled at first boot – PI

WiFi and SSH enabled at first boot – PI

So you want to setup up a Raspberry PI to connect a WiFi AP as it boots so you dont have to use an ethernet cable or connected monitor and keyboard.

Using your favorite text editor, create a file named wpa_supplicant.conf. and add the below to it. Changing the info in between the “”.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
ap_scan=1
fast_reauth=1
country=JP

network={
	ssid="Your network's SSID"
	psk="Your network's password/psk"
	id_str="0"
	priority=100
}

Copy this to the Pi SD.

So you can connect to PI when it conects to the AP you needs to enable SSH. To do this create the empty file (you can use Notepad, or any other text editor to do it) named ssh (no extension). and save it in BOOT on the PI

Then boot the PI, your should then be able to connect to the PI via the WiFi using SSH.

One comment

  1. Pingback: Rasppbery Pi Base Setup – Headless – resnikov outdoors – m0lzn

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.