KEMBAR78
Raspberry pi : how to get started | PPTX
1
Raspberry Pi -
How to get started
Dong Ho Son
POSTECH
Pohang, Korea
donghoson@postech.ac.kr
2
 What you will need
Before We Start …
source: https://www.raspberrypi.org/learning/hardware-guide
3
Install an OS
 Raspberry Pi is a fully blown computer
 Operating Systems
• Raspbian (Optimized for RPi)
• How to install Raspbian
1. Use NOOBS
2. Use NOOBS Lite
3. Download only Raspbian image file
 NOOBS
• An easy operating system installer which contains Raspbian
 OS & NOOBS download site
• https://www.raspberrypi.org/downloads/
4
Install the OS
 Raspbian will be stored in a Micro SD card
 Connect Micro SD card to SD card reader
• Micro SD card can not be connected to the PC without SD card reader
5
Install the OS
 Using NOOBS vs Downloading Raspbian Image
NOOBS
Raspbian
image
Unzip & Copy Boot the RPi
No installation
Need to set up
the partition
Source: pixabay.com/photo-773215
Unzip & Copy Install the RPi
using NOOBS
Source: pixabay.com/photo-1295373
Source: www.raspberrypi.org/learning/hardware-guide/components
6
Install the OS - Raspbian
 Download the NOOBS or the Raspbian image file
• https://www.raspberrypi.org/downloads/noobs/
• https://www.raspberrypi.org/downloads/raspbian/
7
Install the OS - Raspbian
 Unzip the file
• It includes Raspbian image file
8
Install the OS – Writing image to Micro SD card
 Need software to write the Raspbian image on to the MicroSD card
 You can download and use Win32 Disk Imager for this.
• https://sourceforge.net/projects/win32diskimager/
9
Install the OS – Writing image to SD card
 Set up Win32 Disk Imager
10
Install the OS - Writing image to SD card
 Write an image file to Micro USB
11
Plug in your Raspberry Pi
Micro SD
card
Keyboard
Mouse
HDMI
Micro USB
Power supply
source: raspberrypi.org
12
Boot your Raspberry Pi
 Booting into GUI
13
Connect your Raspberry Pi to the Internet
 Connecting via Wi-Fi
• A Raspberry Pi 3
− Built-in Wi-Fi
• An earlier version of the Raspberry Pi
− Need a Wi-Fi Dongle
• Some Wi-Fi dongles are simple plug and play devices
− Others require specific drivers, and may not be compatible
− Read the device manufacturer’s documentation
14
Connect your Raspberry Pi to the Internet
 Connecting via Ethernet
• RPi has an Ethernet port beside the USB ports
• You can connect to a network using an Ethernet cable
− A router, access point, or switch
source: raspberrypi.org
15
Korean Language setup
 In order to input commands to Raspbian, start LXTerminal application
 Make sure your device is connected to the Internet
 Download & Install Korean (Hangul) Fonts if you wish to use Korean
fonts in addition to English
• Download a package by updating and upgrading the system
• Install Korean (Hangul) fonts
$ sudo apt-get install ibus
$ sudo apt-get install ibus-hangul
$ sudo apt-get install ttf-unfonts-core
$ sudo apt-get update
$ sudo apt-get upgrade
16
Korean Language setup
 Raspberry Pi Configuration
• [Menu]  [Preference]  [Raspberry Pi Configuration]
17
Korean Language setup
 Language and country setting
• [Localisation]  [Set Locale]
18
Korean Language setup
 Timezone setting
• [Localisation]  [Set Timezone]
19
Korean Language setup
 Keyboard setting
• [Localisation]  [Set Keyboard]
20
Korean Language setup
 Let’s reboot!
• After finishing all setting up, then reboot the RPi
• Notice that the menu in English has changed to Korean
 Check the keyboard
• Toggle the language [US  Hangul]
• Click the Hangul
• Now you can toggle the language [Shift + Spacebar]
21
Headless setup
 It could be very inconvenient
• If you need to connect monitor every time you use the RPi
• Often, you may not have an extra HDMI cable or keyboard
 It would be very convenient
• If you can access the RPi without its own monitor or keyboard
 Headless Raspberry Pi
• Use VNC (Virtual Network Computing) software for remote (headless) login
• VNC server/client software needed
22
Headless setup – Working PC
 Download VNC (Working PC)
• http://www.realvnc.com/download/
23
Headless setup – Working PC
 Install VNC
• Select VNC viewer, not VNC server
24
Headless setup – Raspberry Pi
 Check IP address (Ethernet)
$ ifconfig
25
Headless setup – Raspberry Pi
 Accessing the Raspberry Pi remotely
1. Creating a new screen every time
2. Sharing one screen
 When creating a new screen every time for each user
 Run VNC server on the Raspberry Pi
$ sudo apt-get install tightvncserver Install VNC (Raspberry Pi)
$ vncserver :1
26
Headless setup – Working PC
 Access the Raspberry Pi via VNC viewer
27
Headless setup – Working PC
28
Headless setup – Raspberry Pi
 Install VNC server
1. Creating a new screen every time
2. Sharing one screen
 When sharing the one screen
 Run VNC server on the Raspberry Pi
$ sudo apt-get install x11vnc Install VNC (Raspberry Pi)
$ x11vnc
29
Headless setup – Working PC
 Access the Raspberry Pi via VNC viewer
30
Headless setup
 Now you can access the RPi without an extra monitor and keyboard
31
Summary
 Explained the hardware requirements for getting started
 Explained major parts of Raspberry Pi 3 Model B
 Explained two methods for installing Raspbian operating system on the
Raspberry Pi
 Explain the concept of “headless setup” and how to achieve it using
VNC server and client
 In the following lecture, I will explain how to program Raspberry Pi

Raspberry pi : how to get started

  • 1.
    1 Raspberry Pi - Howto get started Dong Ho Son POSTECH Pohang, Korea donghoson@postech.ac.kr
  • 2.
    2  What youwill need Before We Start … source: https://www.raspberrypi.org/learning/hardware-guide
  • 3.
    3 Install an OS Raspberry Pi is a fully blown computer  Operating Systems • Raspbian (Optimized for RPi) • How to install Raspbian 1. Use NOOBS 2. Use NOOBS Lite 3. Download only Raspbian image file  NOOBS • An easy operating system installer which contains Raspbian  OS & NOOBS download site • https://www.raspberrypi.org/downloads/
  • 4.
    4 Install the OS Raspbian will be stored in a Micro SD card  Connect Micro SD card to SD card reader • Micro SD card can not be connected to the PC without SD card reader
  • 5.
    5 Install the OS Using NOOBS vs Downloading Raspbian Image NOOBS Raspbian image Unzip & Copy Boot the RPi No installation Need to set up the partition Source: pixabay.com/photo-773215 Unzip & Copy Install the RPi using NOOBS Source: pixabay.com/photo-1295373 Source: www.raspberrypi.org/learning/hardware-guide/components
  • 6.
    6 Install the OS- Raspbian  Download the NOOBS or the Raspbian image file • https://www.raspberrypi.org/downloads/noobs/ • https://www.raspberrypi.org/downloads/raspbian/
  • 7.
    7 Install the OS- Raspbian  Unzip the file • It includes Raspbian image file
  • 8.
    8 Install the OS– Writing image to Micro SD card  Need software to write the Raspbian image on to the MicroSD card  You can download and use Win32 Disk Imager for this. • https://sourceforge.net/projects/win32diskimager/
  • 9.
    9 Install the OS– Writing image to SD card  Set up Win32 Disk Imager
  • 10.
    10 Install the OS- Writing image to SD card  Write an image file to Micro USB
  • 11.
    11 Plug in yourRaspberry Pi Micro SD card Keyboard Mouse HDMI Micro USB Power supply source: raspberrypi.org
  • 12.
    12 Boot your RaspberryPi  Booting into GUI
  • 13.
    13 Connect your RaspberryPi to the Internet  Connecting via Wi-Fi • A Raspberry Pi 3 − Built-in Wi-Fi • An earlier version of the Raspberry Pi − Need a Wi-Fi Dongle • Some Wi-Fi dongles are simple plug and play devices − Others require specific drivers, and may not be compatible − Read the device manufacturer’s documentation
  • 14.
    14 Connect your RaspberryPi to the Internet  Connecting via Ethernet • RPi has an Ethernet port beside the USB ports • You can connect to a network using an Ethernet cable − A router, access point, or switch source: raspberrypi.org
  • 15.
    15 Korean Language setup In order to input commands to Raspbian, start LXTerminal application  Make sure your device is connected to the Internet  Download & Install Korean (Hangul) Fonts if you wish to use Korean fonts in addition to English • Download a package by updating and upgrading the system • Install Korean (Hangul) fonts $ sudo apt-get install ibus $ sudo apt-get install ibus-hangul $ sudo apt-get install ttf-unfonts-core $ sudo apt-get update $ sudo apt-get upgrade
  • 16.
    16 Korean Language setup Raspberry Pi Configuration • [Menu]  [Preference]  [Raspberry Pi Configuration]
  • 17.
    17 Korean Language setup Language and country setting • [Localisation]  [Set Locale]
  • 18.
    18 Korean Language setup Timezone setting • [Localisation]  [Set Timezone]
  • 19.
    19 Korean Language setup Keyboard setting • [Localisation]  [Set Keyboard]
  • 20.
    20 Korean Language setup Let’s reboot! • After finishing all setting up, then reboot the RPi • Notice that the menu in English has changed to Korean  Check the keyboard • Toggle the language [US  Hangul] • Click the Hangul • Now you can toggle the language [Shift + Spacebar]
  • 21.
    21 Headless setup  Itcould be very inconvenient • If you need to connect monitor every time you use the RPi • Often, you may not have an extra HDMI cable or keyboard  It would be very convenient • If you can access the RPi without its own monitor or keyboard  Headless Raspberry Pi • Use VNC (Virtual Network Computing) software for remote (headless) login • VNC server/client software needed
  • 22.
    22 Headless setup –Working PC  Download VNC (Working PC) • http://www.realvnc.com/download/
  • 23.
    23 Headless setup –Working PC  Install VNC • Select VNC viewer, not VNC server
  • 24.
    24 Headless setup –Raspberry Pi  Check IP address (Ethernet) $ ifconfig
  • 25.
    25 Headless setup –Raspberry Pi  Accessing the Raspberry Pi remotely 1. Creating a new screen every time 2. Sharing one screen  When creating a new screen every time for each user  Run VNC server on the Raspberry Pi $ sudo apt-get install tightvncserver Install VNC (Raspberry Pi) $ vncserver :1
  • 26.
    26 Headless setup –Working PC  Access the Raspberry Pi via VNC viewer
  • 27.
  • 28.
    28 Headless setup –Raspberry Pi  Install VNC server 1. Creating a new screen every time 2. Sharing one screen  When sharing the one screen  Run VNC server on the Raspberry Pi $ sudo apt-get install x11vnc Install VNC (Raspberry Pi) $ x11vnc
  • 29.
    29 Headless setup –Working PC  Access the Raspberry Pi via VNC viewer
  • 30.
    30 Headless setup  Nowyou can access the RPi without an extra monitor and keyboard
  • 31.
    31 Summary  Explained thehardware requirements for getting started  Explained major parts of Raspberry Pi 3 Model B  Explained two methods for installing Raspbian operating system on the Raspberry Pi  Explain the concept of “headless setup” and how to achieve it using VNC server and client  In the following lecture, I will explain how to program Raspberry Pi