Setting up Raspberri Pi

Setting up Raspberri Pi

Requirements

To setup your Raspberry Pi you will need:

  • Raspberry Pi

  • USB Mouse/keyboard

  • HDMI Screen or monitor

  • power supply and connecting cables

  • Optional WiFi USB Dongle if not using Ethernet connectivity and not using a Pi 3 Model B or latest Pi Zero

  • Optional USB hub for Pis with only 1 USB connector (A+ and Zero)

  • SD Card 8GB or larger - recommend 8GB (and adapter to be able to write SD card in laptop)

  • Latest Raspbian image based on Debian Stretch : https://downloads.raspberrypi.org/raspbian_latest - choose the Desktop version

The OS for the Raspberry Pi is installed on an SD card, which the Pi boots from. To create the SD card you need to download the image from https://www.raspberrypi.org/downloads/. For this lab

Creating the SD card

Select the latest Raspbian image based off Debian Stretch: https://downloads.raspberrypi.org/raspbian_latest.

Note: The instructions in this course assume you are using the latest version of Raspbian based on Stretch (or previous version Jessie). They will not work on the older Wheezy based images as there were significant changes between versions. Raspbian Stretch was released August 2017, so I recommend downloading the latest image, even if you purchased a pre-flashed card.

Write the image to the SD card using the instructions for your laptop OS (this takes some time) Note that you cannot just copy the .img file to the SD card, you need to use the instructions below:

Eject the SD card from your laptop and insert into the Raspberry Pi SD slot

Booting the Raspberry Pi

The first time you boot the Raspberry Pi you will need to have a Keyboard, Mouse and screen connected to the Pi to be able to do the initial configuration. You will also need network connectivity (Ethernet or WiFi). There is a quickstart guide available if you are new to the Raspberry Pi: https://www.raspberrypi.org/help/quick-start-guide/. It is possible to startup a Raspberry Pi without keyboard, mouse an monitor if you meet certain criteria - this is discussed and demonstrated in this video : https://developer.ibm.com/tv/setting-up-your-raspberry-pi-without-a-keyboard-mouse-or-monitor/

Connect the power supply to the Raspberry Pi - you should see the boot sequence on the screen

The primary desktop is displayed when boot is complete: