Skip to content

Hassel free control access of fresh, out of the box Raspberry Pi

Powered headless Raspberry Pi having on board Wi-Fi capability
Table of Contents
    Powered headless Raspberry Pi having on board Wi-Fi capability
    Source: “2020-06-27_05-13-16” by Steve Rainwater – Under Creative Commons license

    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:-

    1. 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.
    2. 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. )
    3. 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
      }
    4. 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:-

    1. 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.
    2. On the desktop of PC/Laptop, install Advanced IP scanner software to find the IP address of your Raspberry Pi.Advanced IP Scanner finds the IP address of your Raspberry Pi
    3. 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.
    4. 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
    5. 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.

    Noor Fatimah I.H
    🍪⚙️
    ® 2024 Wiztaqnia | All Rights Reserved Wiztaqnia