How to setup Raspberry PI


Raspberry Pi session 2                      

How to setup Raspberry Pi

As we all know that raspberry Pi has an operating system so firstly we need to install operating system in raspberry pi. There are many software that we can install in raspberry pi like Raspbian , Linux , Windows in this tutorial we will install Raspbian software

Step to Install OS

Download Raspbian from official website of raspberry pi (

  1. Take a memory card and card reader and extract the OS in the memory card
  2. Insert the OS installed memory card in Raspberry pi
  3. Connect your Raspberry pi with LED Screen through HDMI cable
  4. Connect your Raspberry pi with LAN cable and Power cable through a Laptop
  5. Then turn on LED screen OS will be run on the screen here you can perform all computer’s activities.

How to run OS in your own laptop or Desktop

  1. Firstly download and install the putty and VNC software in your laptop
  2. Open the terminal section in the OS which is open on LED screen then type ifconfig command to configure Raspberry pi and then typevncserver to get the hostname and IP address to access the OS in your laptop
  3. After giving the vncserver command you will get hostname and IP  address you just need to note it in the notepad
  4. Then open putty in your laptop and type hostname or IP address by which you want access Raspbian  at desire location and click on the open .
  5. Then type pi’s username and password (By default username –pi , password - raspberry).
  6. Then again type will send hostname and IP address again you have note this IP address for vnc viewer
  7. Finally Open vncviewer and type IP address in search bar and again type usename and password which you used before.
  8. Your raspbian software is ready to use in your Laptop

Python programming for led blinking

  1. Go to raspberry pi menu bar and then programming section where you have python IDE visit there and paste the programming below

import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library

from time import sleep # Import the sleep function from the time module


GPIO.setwarnings(False) # Ignore warning for now

GPIO.setmode(GPIO.BOARD) # Use physical pin numbering

GPIO.setup(8, GPIO.OUT, initial=GPIO.LOW) # Set pin 8 to be an output pin and set initial value to low (off)


while True: # Run forever

GPIO.output(8, GPIO.HIGH) # Turn on

sleep(1) # Sleep for 1 second

GPIO.output(8, GPIO.LOW) # Turn off

sleep(1) # Sleep for 1 second