All releases of Raspberry Pi’s after Model B come with onboard Wi-Fi capability. This means you can connect both PC/Laptop and Raspberry Pi to Wi-Fi and easily tap into your powered Raspberry Pi via desktop (Windows OS) with the help of softwares such as Putty and VNC Viewer. However, when you purchase a fresh, out of the box headless Raspberry Pi (means a Raspberry Pi without a monitor, keyboard and mouse), it gets a tad bit difficult for your internet network to pick up the IP address of the Raspberry Pi.
This is probably is due to the fact that your brand new Raspberry Pi isn’t SSH (Secure Shell Protocol) enabled by default. SSH allows remote login and other network services to operate over an unsecured network. Following are the steps to help you access control of your Raspberry Pi hassle free and work quite the same for any other model of Raspberry Pi having onboard Wi-Fi capability:-
- Visit https://www.raspberrypi.com/software/ →Manually install an operating system image →See all download options →Select Raspberry Pi OS with desktop →Download and extract 2022-01-28-raspios-bullseye-armhf.zip file.
- Install Win32 Disk Imager software to write the disk image of the Raspbian OS onto the MicroSD Memory Card. Additionally, you can also install SD Memory Card Formatter software to erase the previous contents of the Micro SD Memory Card. (Size of the Memory Card depends on your purpose and Raspberry Pi model. )
- Create a file named “wpa_supplicant.conf” with the following content:-
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=IN #ISO code of your country network={ ssid="Wi_Fi" #Your Wi-Fi name psk="password" #Your Wi-Fi password key_mgmt=WPA-PSK #Your Wi-Fi security type }
- Create another empty text document file named “ssh.txt”. Save “wpa_supplicant.conf”, “ssh.txt” in your MicroSD Memory Card. This will enable SSH on your Raspberry Pi.
Connecting PC/Laptop to Raspberry Pi via Wi-Fi
Follow these steps to connect PC/Laptop to Raspberry Pi via Wi-Fi:-
- Save Raspbian OS disc image, wpa_supplicant.conf, ssh.txt files onto the MicroSD Memory Card. Insert the MicroSD Memory Card into your Raspberry Pi and connect it to a 5V power supply.
- On the desktop of PC/Laptop, install Advanced IP scanner software to find the IP address of your Raspberry Pi.
- On the desktop of PC/Laptop, use Putty software to enter the IP address of Raspberry Pi and login to access its terminal (by default user name is “pi” and the password is “raspberry”). Configure the VNC server in the Raspberry Pi.
- Additionally, you can also check if your Raspberry Pi is connected to Wi-Fi (keep the Wi-Fi ON) by typing the following commands in the terminal of the Raspberry Pi:-
sudo iwlist wlan0 scan | grep ESSID iwconfig
- On the desktop of PC/Laptop, use VNC viewer software to gain access to the desktop of your Raspberry Pi. (It is normal for the IP address of your Raspberry Pi to change. Use Advanced IP scanner software to again find the IP address of your Raspberry Pi.)
For exclusive insights, tips and answers, please visit Wiztaqnia Forum.
- IoT based Indoor Air Quality ENS160 Monitor - November 20, 2024
- Fritzing Check Part for Gravity ENS160 Air Quality Sensor - November 12, 2024
- Custom Fritzing part design for FunctionGeneratorKitwith XR2206 - October 10, 2024