Set up Raspberry Pi 4(Wi-Fi)
Contents
The set up for Raspberry Pi using Wi-Fi is the same as the previous article on how to Set Up Raspberry Pi 4 through laptop/pc using Ethernet cable(No Moniter, No Wi-Fi) with some minor changes which we are going to see.
Hardware Requirements:
- Raspberry Pi 4 Model B (1/2/4 GB RAM)
- USB Type-C power supply
- Personal computer
Steps to install the required software tools
- If you had followed the previous article then skip these steps and move to ‘step-6’. From the official raspberrypi.org download the Raspbian Buster operating system1
- Also, download the Raspberry Pi Imager from the website2, this is for writing the image file onto the SD card.
- If you are using windows you probably have to download the ssh client, I prefer downloading it from Bitvise ssh client from PuTTY.
Further Steps:
-
To access the desktop of the pi, you can either connect a micro to HDMI connector from the pi to a monitor or you can access it remotely on your PC/laptop. To connect remotely VNC-server has to be installed onto the pi by default the VNC-server is installed within the operating system, in order to view it remotely one has to download VNC-viewer on his/her Desktop.
-
Open the Raspberry Pi Imager and select the custom setup then select the OS from the Downloaded folder and carefully set the target as a USB drive. Wait for the image to be written on the card.
-
After done, open the boot folder, create a new document named “ssh” without any extensions. Create another text file, enter the following configurations and save it as
wpa_supplicant.conf
. Dont forget to enter the country code and the wi-fi credentials.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert country code here>
network={
ssid="testing"
psk="testingPassword"
}
-
Now power up the pi with the type-C cable and wait for a while for the pi to be connect to your Wi-Fi.
-
Open Advanced IP Scanner and make a quick scan, identify the Raspberry Pi and note the IP address.
-
Open the Bitvise SSH Client3, enter
raspberrypi.local
or the IP address(from the previous step) as host and leave 22 as default port in the server section.
-
Click Log in and enter the username as pi and the default password as raspberry. A terminal pops up and you are now into the Raspberry Pi.
-
If this is your first time logging into pi make sure to update your pi by issuing the command
sudo apt-get update
and thensudo apt-get upgrade
to upgrade.
$ sudo apt-get update
$ sudo apt-get upgrade
Quick tip: Don’t forget to change your password once you are logged in.
Accessing Pi Desktop Remotely
- Go to terminal and type
vncserver
, notedown the generated ip address. Now open VNC-Viewer4 on your desktop and enter the ip address or paste it, after few seconds a window pops sharing the screen of raspberry pi desktop.