Internet of Things: Setting Up Raspberry PI


While Raspberry PI is a mini-computer, it is not supplied with a built-in OS and monitor. Thus it is essential to set the system , i.e. install the OS, connect the display device.
Building an SSH client is important because Raspberry Pi is an IoT device, to facilitate the exchange of information between the Raspberry Pi and the peripheral devices.

Getting Raspberry Pi Ready

In order to set it up,you will need the following components:
  1. Raspberry Pi device
  2. Laptop
  3. Router
  4. LAN Cable or USB WiFi connector.
  5. 5 V power supply
  6. SD card (mini. 8 GB)
The following is a selection of applications that you need during the configuration process, there are a number of alternatives available, you can find them across the internet.
  1. Advance IP scanner
  2. Putty software
  3. Xming
  4. SD formatter
  5. Win32 Disk Imager
For starting Raspberry Pi with laptop screen follow the below steps:
  1. Firstly, we have to install the Operating System for the Raspberry Pi, so download the OS from the given link.
    There are a lot of OS alternatives like Rasbian, Noobs, etc. You can even install Windows 10 on it. Since installing Windows 10 is out of the scope of this chapter, you can find the steps online].
    Here, I used RASPBIAN JESSIE OS. After download completed we have to install it on the SD card. Before installing OS we format the SD card with SD formatter, so start the “SD formatter” software as in the following: 
    SD formatter
    Figure 2: SD formatter
  2. Select your SD card and click on the “Format” button.
    After a successful format, now we have to install the operating system on the SD card.
  3. Start the “Win32 Disk Imager” software. Now browse the operating system image file which you downloaded and select the SD card in a given dropdown list and click on the “Write” button.
    download and select the SD card
    Figure 3: Win32 Disk Imager
    This will start writing the image file to the SD card. This will take a couple of minutes so please wait for some time. After successful SD card writes, attach your SD card to the Raspberry PI and follow the below steps.
  4. Connect the LAN cable one end to the router and other ends to the raspberry Pi device also connect the laptop to the same router as in the following figure:
    raspberry Pi device
    Figure 4: Raspberry Pi device
  5. Now give power supply to Raspberry Pi as in the following figure:
    power supply to raspberry pi
    Figure 5: Power supply to raspberry pi
  6. Now start Advanced IP scanner and start the scan with your IP address series.
    Advance IP scanner
    Figure 6: Start Advanced IP scanner
  7. Here we connect the Raspberry Pi to the router because the router will assign an automatic IP address to all the connected devices. So we get the IP address of the Raspberry Pi from the router. Here I have an IP address (
    IP address
    Figure 7: IP address of the raspberry pi
  8. Now start the PuTTy software and enter the Host Name (IP address) as in the following image:
    Host Name
    Figure 8: Enter the Host Name
  9. Now go to the following location and mark them:
    a. Connection >> SH >> X11.
    Make a mark to “Enable X11 forwarding” as per the following image:
    Enable X11 forwarding
    Figure 9:
    Enable X11 forwarding
  10. Now click on the “Open” button this will open a window (something like CMD).
    Figure 10:
  11. If your PI is successfully started and if your IP address is valid then it will ask for the Username and password as in the following image:
    User Name: pi
    Password: raspberry
    Figure 11:
    User Name and Password
  12. If you enter valid username and password then it will show the following:
    enter valid username and password
    Figure 12: Enter username and password
  13. Now start the “Xming” software, it shows in taskbar as in the following image:
    Figure 13:
    Starts the “Xming” software
  14. Now type “lxsession” command in putty windows and hit enter. Now wait for few seconds and it will open raspberry pi windows on your desktops.
    Figure 14:
    Type “lxsession” command
    Figure 15: Raspberry pi windows
  15. Now you can start work with Raspberry Pi as in the following image:
    start you work with raspberry Pi
    Figure 16: Work with Raspberry Pi
Now you enjoy your Raspberry Pi.
That’s all for this chapter. I hope you enjoyed reading!!
Nirav Daraniya
518 4.7k 3m
Next » Raspberry Pi Demo: Traffic Lights