How to configure a Raspberry Pi's network through the command line.

Setting up a headless Rasbperry Pi?

I recently set up a Raspberry Pi and didn't have a USB hub to hand. That meant I could only plug in either a keyboard or a USB WiFi adapter.

It was a painless fix which I have detailed below.

1) Log into the Raspberry Pi.

2) Open up the wpa_supplicant configuration.

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

3) Add the following to the file. Do NOT delete anything that is already there:


4) Save the file (ctrl+o, enter) and poweroff the Raspberry Pi.

5) Plug in your WiFi adapter and power on the Pi.

No comments:

Post a Comment