Setting up headless Raspberry Pi

Refer to the following steps:

  1. Download the Raspbian Lite OS from Raspberry Pi's website at https://www.raspberrypi.org/downloads/raspbian/.
  2. Once we have the OS image downloaded, we write it to the SD card using a laptop/desktop. Follow the instructions given at: https://www.raspberrypi.org/documentation/installation/installing-images/README.md for the OS of your laptop/desktop.
  3. To enable SSH on Raspberry Pi, create an empty file with the name ssh without any extension. Place this file in the root partition of the SD card.
  1. Take out the SD card and insert it into Raspberry Pi. Connect your Ethernet cable from the router to Pi to provide an internet connection and power it up.
  2. To connect to Pi using SSH, we need tools such as PuTTY and Advanced IP Scanner. Download and install both the tools from the following links:
  1. Open up the Advanced IP scanner and click on the Scan button in the top-left corner of the window. A list of all the devices connected to the network appears with their IP addresses. Note down the IP address of Raspberry Pi:
Figure 2.12
  1. Use the IP address of Pi from the previous step to connect using PuTTY; open PuTTY by executing putty.exe. Enter the IP address as the hostname and click on Open:
Figure 2.13
  1. On first attempt to connect, a warning will appear; just click on Yes, since we are connecting to our own Pi:
Figure 2.14
  1. On successful connection, a Terminal window will pop up as shown in the following screenshot. If logging in for the first time, enter pi as the username and raspberry as the password:
Figure 2.15
  1. Upon successful login, the following screen will appear:
Figure 2.16

Now, you are good to go further and explore.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.238.70