Raspberry Pi

Raspberry Pi headless set up for the first time (Flashing Raspbian OS)

In this world full of gadgets, people nowadays are moving towards more automation, and when it comes to automation raspberry pi is what comes in mind to the majority of the audience out there. So, today we are going to see “Raspberry Pi headless set up” for the first time.

We are going to cover the following:

  1. Downloading the software for the raspberry pi.
  2. Grabbing a memory card.
  3. Grabbing a card reader.
  4. Flashing the OS to memory card.

The post is going to be covered in the following steps, make sure you follow each step very carefully.

Step 1: Download the “Raspbian Stretch lite” from this URL, as show in the picture below.

Download raspbian stretch lite
Download “Raspbian Stretch lite”

Step 2: Download the “Win32 disk imager“, this will help in flashing the OS to raspberry pi.

Download raspbian stretch lite Download win32 disk imager from sourceforge
Download raspbian stretch lite Download win32 disk imager from sourceforge

Step 3: See the download progress, be patient it will take time in your case well.

Raspbian stretch lite download in progress in idm
Raspbian stretch lite download in progress in idm

Step 4: After the “Raspbian Stretch File” is downloaded, extract it using any software but in our case, we are using “WinRAR“.

Extract raspbian stretch lite
Extract “Raspbian Stretch lite” file

Step 5: After the file has been extracted, you will see something like as shown in the picture, this is our OS’s .img format file.

Note: The name of the file may be different in your case, do not panic just go fir the flow. – Raspberry Pi headless set up

Raspbian stretch lite .img file
Raspbian stretch lite .img file

Step 6: It is time to grab our memory card and set it up, we are using a “16GB – Class 4” one.

Our sandisk class 4 16GB memory card
Our sandisk class 4 16GB memory card

Step 7: Now, grab a card reader, it might look different in your case, but in our case it looks like as shown in the photo below.

Our USB 2.0 based card reader
Our USB 2.0 based card reader

Step 8: Now, insert the “memory card” into the “card reader” as shown below.

Insert the memory card in the card reader
Insert the memory card in the card reader

Step 9: Now, it is time to plug our “card reader” into the “USB port” of laptop of computer.

Plug-in the card reader in the USB port of your laptop or computer
Plug-in the card reader in the USB port of your laptop or computer

Step 10: From the image below, you can take it as a reference as it may look different in your case, but as long as you are seeing your memory card in here, you are good to go for further steps.

The memory card is being listed as USB_STICK in my computer on windows 10
The memory card is being listed as “USB_STICK” in our computer on windows 10

Step 11: Now, open the previously downloaded “Win32 disk imager” as shown in the screenshot below – Raspberry Pi headless set up.

Open the win32 disk imager
Open the “win32 disk imager”

Step 12: It is time to flash the “Raspbian Stretch lite OS” onto the connected memory card, you have to navigate through your system and attach the “.img” file as well as select the “drive letter” for your memory card and click on “write“. Look at the image below for the reference.

Select the path to the download .img file and select drive letter of card reader
Select the path to the download “.img” file and select drive letter of card reader

Step 13: At this screen, it is asking for confirmation to “overwrite” any existing data on the memory card.

Simply select “Yes

Choose yes to overwrite
Choose “Yes” to overwrite

Step 14: On this screen, the program is asking for confirmation on “formatting” the data, you should select the “Format” option – Raspberry Pi headless set up.

Select the format disk warning
Select the format disk warning

Step 15: After that, it will take some time and you will be seeing something like shown in the photo below, with a “Write Successful” message.

Disk write is successful
Disk write is successful

Step 16: After that you will see as shown below, that the memory is now divided into two partitions and the explanation of the same is written in the picture below.

After write the memory card is divided into two partitions
After write the memory card is divided into two partitions

Step 17: Now that we have completed all the steps discussed above, we have our “Raspbian Stretch lite OS” successfully installed on the memory card, it should be inserted into the “Raspberry Pi“. But make sure, first to place the memory card exactly as shown below.

Put the memory card in the position shown above
Put the “Memory Card” in the position shown above

Step 18: After the successful insertion of the “Memory Card” into the “Memory Card Slot” on “Raspberry Pi“. It must look like shown below.

Insert memory card in the raspberry pi
Insert “Memory Card” in the “Raspberry Pi”

Step 19: In order to give the power to “Raspberry Pi” we need to plug in the “Micro USB Cable“, but before that make sure you should place the cable exactly as shown below.

Put the micro usb cable as shown above
Put the “Micro USB Cable” as shown above

Step 20: After the successful insertion of “Micro USB Cable” in the “Raspberry Pi” you will be seeing “Red LED” light lighten up as shown below.

Insert the micro usb cable into the raspberry pi
Insert the “Micro USB Cable” into the “Raspberry Pi”

Step 21: Now, in order to connect to the “Raspberry Pi“, we have mainly two options:

  1. Using Ethernet Cable
  2. Using Inbuilt WI-FI or Attaching WI-FI module.

Note: In our case, we will be using the prior one, which is “Using Ethernet Cable”.

Make sure you place the Ethernet Cable properly as shown below.

Put the ethernet cable as shown above near to raspberry pi
Put the “Ethernet Cable” as shown above near to “Raspberry Pi”

Step 22: On successful insertion, the two lights “GREEN & ORANGE” should lighten up as shown below.

Insert the ethernet cable in rasperry pi and wait for both the lights to lighten up
Insert the Ethernet cable in “Raspberry Pi” and wait for both the lights to lighten up

Step 23: On this side, we can confirm that an IP Address is given to “Raspberry Pi” via the connected “Ethernet Cable” by looking at the “GREEN” light on this side of “Pi“.

When the green light is up that means an IP Address is given to raspberry pi
When the green light is up that means an “IP Address” is given to “Raspberry Pi”

Step 24: Actually, this is not a step but rather an example of “Adaptor” which can be used to power up the “Raspberry Pi“.

An example adaptor to be used with raspberry pi
An example adaptor to be used with “Raspberry Pi”

More on “Raspberry Pi”

Comment here