Setting up a Raspberry Pi headless

If you have a raspberry Pi and you do not use a monitor or keyboard to run your Pi. This situation known as headless. So here is a facility to enable wireless networking and SSH when creating a image. So in this tutorial we learn how to do setup headless raspberry Pi.

 

First we flash an image on SD card. We can use Raspbian OS by https://www.raspberrypi.org/downloads/raspbian/

Now you need Etcher for flash image on SD card. you can download this software by https://etcher.io.

Setting up wireless networking

You will need to define a wpa_supplicant.conf file for your particular wireless network. Put this file in the boot folder, and when the Pi first boots, it will copy that file into the correct location in the Linux root file system and use those settings to start up wireless networking.

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

network={
    ssid="NETWORK-NAME"
    psk="NETWORK-PASSWORD"
}

Enabling SSH

SSH can be enabled by placing a file called ssh in to the boot folder. This flags the Pi to enable the SSH system on the next boot.

How To find IP address of Raspberry Pi

Now you need IP address of Raspberry Pi for ssh connection. you need to install a android app in your mobile Ping tool. from Play store. Ping tools provides you ip address that devices connected with your mobile wifi hotspot.

Second alternative method – You can setup Static IP address for Raspbeery Pi.

Harshvardhan Mishra

i am an IoT Enthusiast and Part Time Tech Blogger.

3 thoughts on “Setting up a Raspberry Pi headless

Leave a Reply

%d bloggers like this: