Refer to the following steps:
- Download the Raspbian Lite OS from Raspberry Pi's website at https://www.raspberrypi.org/downloads/raspbian/.
- 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.
- 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.
- 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.
- 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:
-
- PuTTY: http://www.putty.org/
- IP Scanner: https://www.advanced-ip-scanner.com/
- 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
- 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
- On first attempt to connect, a warning will appear; just click on Yes, since we are connecting to our own Pi:
Figure 2.14
- 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
- Upon successful login, the following screen will appear:
Figure 2.16
Now, you are good to go further and explore.