Difference between revisions of "Exploring The Raspberry Pi (USIU)"

From Raspberry Pi Min-Grant project
Jump to: navigation, search
(Created page with "====== Pre-Lab Exercise 1:  Installing OS on Raspberry PI ====== The RPI will not boot up without an SD Card that is properly formatted to contain a suitable boot loader...")
 
Line 87: Line 87:
 
###Static configuration
 
###Static configuration
  
====== Pre-Lab Exercise 3:  Installing Applications on PI ======
+
====== Pre-Lab Exercise 3:  Setting up SSH (Secure Shell) to remote into the PI ======
 +
 
 +
====== Pre-Lab Exercise 4:  Installing Applications on PI ======
  
 
#– Updating System
 
#– Updating System

Revision as of 22:45, 27 July 2015

Pre-Lab Exercise 1:  Installing OS on Raspberry PI

The RPI will not boot up without an SD Card that is properly formatted to contain a suitable boot loader and operating system.

The distribution we have chosen to run in this lab and subsequent labs is called Raspbian.

We will use NOOBS operating system installer to install Raspbian

  1. Using a computer with an SD card reader, visit the raspberry pi official downloads page.
    RTENOTITLE

http://raspberry.kenet.or.ke/images/5/59/Noobs1.png

https://www.raspberrypi.org/downloads/

  1. Click on the download ZIP button under ‘NOOBS (offline and network install)’, and select a folder to save it to.
  2. Extract the files from the zip.
  3. Click on the download ZIP button under ‘NOOBS (offline and network install)’, and select a folder to save it to.
  4. Extract the files from the zip.
Preparing SD card on Linux/Windows Platforms
  1. Preparing SD card on Linux/Windows Platforms

On windows format your SD card before copying the NOOBS files onto it.

  1. You will need a 4GB or larger card. You will need a 4GB or larger card. NOOBS holds the various distros and support files for the “recovery” process. Basically, the installer lives on the card
  2. Go to the SD Association’s website and download SD Formatter 4.0 for Windows
    (https://www.sdcard.org/downloads/formatter_4/)
  3. Follow the instructions to install the software.
  4. Insert your SD card into the computer or SD card reader and make a note of the drive letter allocated to it.
  5. In SD Formatter software, select the drive letter for your SD card and format it.

Copy and Paste the NOOBS files

  1. Once your SD card has been formatted, copy all the files in the extracted NOOBS folder and paste them onto the SD card drive.
  2. When this process has finished, safely remove the SD card and insert it into your Raspberry Pi.

 

  1.  Format the SD card on the Linux Platform

On linux the following assumes you have root/administrator privileges

  1. First we need to download the ISO from the downloads page
    (https://www.raspberrypi.org/downloads/)
    Select an OS either Raspbian, UBUNTU mate or Snappy UBUNTU core
  2. Find the device, assuming your system is different to mine. The easiest way is to run the following:

#fdisk -l

(This command lists all the mounted and unmounted devices on your computer.)

  1. Once you have identified your device and the partition enter the following command that will format the SDcard

#dd if=/downloads/raspbian.img of/=sdb bs=512 conv=noerror,sync

  1. When this process has finished, safely remove the SD card and insert it into your Raspberry Pi and boot it.
Installing OS

Noobs installer First boot

  1. Plug in your keyboard, mouse and monitor cables.
  2. Now plug in the USB power cable to your Pi.
  3. Your Raspberry Pi will boot, and a window will appear with a list of different operating systems that you can install. We recommend that you use Raspbian – tick the box next to Raspbian and click on Install.
    RTENOTITLE

http://raspberry.kenet.or.ke/images/0/05/Noobsinstall2.png

  1. Raspbian will then run through its installation process. Note this can take a while.
  2. When the install process has completed, the Raspberry Pi configuration menu (raspi-config) will load. Here you are able to set the time and date for your region and enable a Raspberry Pi camera board, or even create users. You can exit this menu by using Tab on your keyboard to move to Finish.

Logging in with Default username and password

The OS will boot to command line where you will need to enter the default username and password

  • The default login for Raspbian OS
    Username: pi with the
    Password: raspberry

Loading the graphical user interface

To load the graphical user interface type
#startx

Pre-Lab Exercise 2:Connecting Pi to the Internet
  1. WiFi Configuration
  2. Using the command line
    1. LAN Configuration
      1. DHCP Configuration
      2. Static configuration
Pre-Lab Exercise 3:  Setting up SSH (Secure Shell) to remote into the PI
Pre-Lab Exercise 4:  Installing Applications on PI
  1. – Updating System
    1. Installing the Python Package Manager(PIP)
    2. Installing GPIO Library
  2. In-Lab Exercises
    1. In-Lab Exercise 1: Realizing a AND gate
      1. Wire up the circuit
      2.   Edit the Program
    2. In-Lab Exercise 2: Realizing a OR gate
    3. In-Lab Exercise 3: Realizing a NOT gate