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

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    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 country code 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

Checking what WiFi:s the RPi detects

sudo iwlist wlan0 scan

Checking, after a reboot, that the new setup works

ifconfig wlan0

Disabel WiFi/Bluetooth on a RPi 3 ? 

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


List interface 

ip a 

No comments:

Post a comment