No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode

No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode

You just purchased your new Raspberry pi 3 model B from Steinacoz Store and found out you will need a keyboard, Ethernet to connect to internet and monitor. That should be frustrating but don’t get frustrated, this post have everything covered.

You should know that the easiest and fastest way to setup your Raspberry Pi is to download NOOBS (new out of the box software), plug in the monitors, Ethernet and keyboard and get started.

In this post, we have to pick first pick up our operating system from Raspberry.org/downloads. Download Raspbian Stretch which should be the latest. Here is a list of things to download:

You might be wondering why PyCharm, it happens that PyChar does ship with SSH client, go to tools, you will find it there.

Insert your memory card into an adapter and format it using the SD card formatter, open Rufus and burn the Raspbien image into the SD card.

 

rufus - steinacoz
rufus – steinacoz

Since we are using windows OS, we won’t be able to access all contents of the SD card. We can only access the boot partition. So go ahead and create two files:

  • SSH
  • wpa_supplicant.conf

SSH functionalities is by default disabled so the Pi on booting looks for the SSH file and enables it, then deletes the file.

In order to connect to a wireless network in headless mode, we need to provide our wifi network credentials. On booting, the credientials will be used to connect to a network that matches the credientials. The wpa_supplicant will be moved to etc/wpa_supplicant. Input these lines into the wpa_supplicant.conf file:

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

network={
    ssid="your_real_wifi_ssid"
    scan_ssid=1
    psk="your_real_password"
    key_mgmt=WPA-PSK
}   

You can now insert the SD card into your Raspberry Pi module and boot up. If all is successful, your Pi should be connected to the wireless network.

Now that we are connected, we need to find the Pi’s IP address and this is  where our Angry IP scanner comes in. Double click on Angry IP scanner, scan for devices connected to your network. This is what mine looks like, you can clearly see my Pi’s IP address with the hostname:

 

Angry IP scanner - steinacoz
Angry IP scanner – steinacoz

 

You can also ping the Pi device inorder to ensure everything is all round:

 

ping Raspberry Pi - Steinacoz
ping Raspberry Pi – Steinacoz

 

Now, we are sure everything is fine. We can now SSH into the Pi by using Putty or PyCharm SSH client but I will like to stick with the notorious Putty:

 

putty - steinacoz
putty – steinacoz

On successful connection to the Pi through SSH, you will be required to provide security credentials in order to login into the Pi. Just use:

  • username: pi
  • Password: raspberry
putty: successful login - steinacoz
putty: successful login – steinacoz

 

That is it for this tutorial, stay tuned for the next one. You can use the command from the image below to config your Pi.

putty raspi-config - steinacoz
putty raspi-config – steinacoz

3 thoughts on “No Keyboard, Ethernet & Monitor: Setting up Raspberry Pi in headless Mode

  1. There is a typo for the filename listed for the wifi config…. wap_supplicant.conf should be wpa_supplicant.conf

  2. A better way to connect to the RPi is with mDNS, that is broadcasting dynamic DNS that works on LAN.
    It is set up by avaho in Linux distributions, and are in OS X by default. You can also install it on MS Windows if you like.

    Then you only need to connect to raspberrypi.local in ping and the ssh software.

Leave a Reply

Your email address will not be published. Required fields are marked *