How to connect Raspbery Pi Zero with Raspberry Pi OS Lite to Wi-Fi Network

Raspberry Pi Zero or Zero 2 is not coming with the ethernet port, so connecting it to the network must be done through WiFi (or USB network adaptor, but it is not the case of this article). Connecting Raspberry Pi with a full OS system is easy. Graphic interface will run through all wizards and connecting to the Wi-Fi network will be very easy.

Some people, however, prefer to use a CLI (command line interface) which is quicker than GUI.

Instruction below will show how to connect to the Wi-Fi network.

After installing the new system, connect a keyboard to the USB port of Raspberry Pi Zero (or zero 2) and type the following commands:

sudo nano /etc/network/interfaces

Inside place the line:

source-directory /etc/network/interfaces.d

Save file and exit.

then type:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

and inside place the following lines:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
ssid=”your network name”
psk=”password”
key_mgmt=WPA-PSK
}

Save file and exit.

sudo reboot

Enjoy!

PS. Please do not forget you still need few things like access through SSH – HERE is how to do it.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA
Change the CAPTCHA codeSpeak the CAPTCHA code
 

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