Monday, 21 January 2019

Raspberry headless install with WiFi

To make a headless, (without monitor, keyboard and mouse) install of Raspbian, Raspberry Pi:s Operating system, on a Raspberry Pi(RPi) with built in WiFi and no LAN cable connection, please follow the instructions below.

For example the RPi Zero and the newer Raspberry Pi 3 Model A+ don't have any LAN cable port so the setup can be quite usable.


Please start up with the instructions in this post and return here again when the ssh file is created and moved to the SD-card.

To make an active WiFi connection at first boot You have to create a configuration file called "wpa_supplicant.conf".

It shall contain the following information

country=SE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid="WiFi Network name"
    psk="WiFi Network password"
}

Please note that You must use a plain editor that don't add "garbage" to the file and don't add any blank rows. If You use a simple editor it probably adds the .txt extension, which don't work.

Check Your countrycode here and change accordingly.

Change the credentials matching Your WiFi network.

When the file is created copy it to the same place as the earlier mentioned ssh file.

Then go back to the former post and continue with the headless install.

Additional WiFi information about RPi is found here
Edit the config file afterwords ? 

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

Disabel WiFi/Bluetooth on a RPi 3 ? 

Add the following lines to "/boot/config.txt"

dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt

List interface 

ip a 

No comments:

Post a Comment