Raspberry Pi

34
Raspberry Pi Les 1: Zaterdag 22 februari 2014 Wim Peeters ([email protected])

description

Les 1: Zaterdag 22 februari 2014 Wim Peeters ([email protected]). Raspberry Pi. Programma. Installatie Basis Linux en de commando's Pi als eenvoudig Linux servertje Raspberry PI als mediaspeler Aansturen en uitlezen motoren en LEDs Raspberry PI als fm zender. Vandaag. - PowerPoint PPT Presentation

Transcript of Raspberry Pi

Page 1: Raspberry Pi

Raspberry Pi

Les 1: Zaterdag 22 februari 2014

Wim Peeters

([email protected])

Page 2: Raspberry Pi

Raspberry-Pi

Page 3: Raspberry Pi

Raspberry-Pi 3

Programma

Installatie

Basis Linux en de commando's

Pi als eenvoudig Linux servertje

Raspberry PI als mediaspeler

Aansturen en uitlezen motoren en LEDs

Raspberry PI als fm zender

Page 4: Raspberry Pi

Raspberry-Pi 4

Vandaag

Beschrijving van de Pi Installatie Herhaling basis LINUX commandos

Page 5: Raspberry Pi

Raspberry-Pi 5

Wat zit er in de Pi?

SoC: Broadcom BCM2835 CPU: 700 MHz ARM1176JZF-S core GPU: Broadcom VideoCore IV @ 250 MHz

System on a Chip (SoC) ARM (Acorn Risc Machine)

ARM11

512MB SDRAM SD kaart: 2GB of meer (wij 4GB)

Page 6: Raspberry Pi

Raspberry-Pi 6

Wat zit er in de Pi?

2 x USB 2.0 (480Mbit/s) Audio: via HDMI of Audio Jack Beeld

Composit Video (RCA: RGB TV) HDMI (--> DVI werkt)

Pasieve HDMI naar VGA werkt niet (DSI flat panel Displays)

RJ45 Ethernet: 10/100Mbit/s

Page 7: Raspberry Pi

Raspberry-Pi 7

Page 8: Raspberry Pi

Raspberry-Pi 8

Voeding

Voeding voor de Pi Model B: 5V met 700mA tot 1A

Opgepast voor je PC poort! Beter externe voeding met micro USB

Page 9: Raspberry Pi

Raspberry-Pi 9

GPIO: connector P1

Page 10: Raspberry Pi

Raspberry-Pi 10

GPIO

3,3V Hoog/laag → 1/0

Opgepast: niet beschermd Kortsluiting → stuk Spanning opzetten → stuk

Page 11: Raspberry Pi

Raspberry-Pi 11

Besturingssyteem

NOOBS: New Out of Box Software http://www.raspberrypi.org/downloads

Raspian Debian wheezy, optimised for the Raspberry

Pi Pidora

Fedora Remix optimized for the Raspberry Pi

RaspBMC XBMC media center distribution for Raspberry Pi

Page 12: Raspberry Pi

Raspberry-Pi 12

NOOBS: New Out of Box Software

SD-card Windows Apple Linux

http://www.raspberrypi.org/wp-content/uploads/2012/04/quick-start-guide-v2_1.pdf

Page 13: Raspberry Pi

Raspberry-Pi 13

Voorbeeld: Apple

Formateer de 4GB SD kaart https://www.sdcard.org/downloads/formatter

_4/eula_mac/

Page 14: Raspberry Pi

Raspberry-Pi 14

NOOBS image: 1.38GB

Page 15: Raspberry Pi

Raspberry-Pi 15

Boot

Page 16: Raspberry Pi

Raspberry-Pi 16

Raspian: 780MB

Debian wheezy Versie 7 van Debian, mei 2013 optimised for the Raspberry Pi

http://www.raspbian.org/ Of direct van de NOOBS

Page 17: Raspberry Pi

Raspberry-Pi 17

Page 18: Raspberry Pi

Raspberry-Pi 18

Netwerk adres zoeken

Commando: ifconfig ifconfig -a ifconfig eth0

Tweede IP-adres op zelfde interface sudo ifconfig eth0:1 192.168.66.1

Page 19: Raspberry Pi

Raspberry-Pi 19

Inloggen over het netwerk: SSH

SSH secure shell: Ge-encrypteerd kanaal over het netwerk ssh user@system Of ssh –l user system Of ssh –l user IP-adress

Is op Linux en Apple standaard aanwezig, maar je moet de service opzetten

Page 20: Raspberry Pi

Raspberry-Pi 20

Vanuit een Apple Terminal: Ssh pi@IP-address

Page 21: Raspberry Pi

Raspberry-Pi 21

Vanuit een Linux Terminal: ssh pi@IP-address

Page 22: Raspberry Pi

Raspberry-Pi 22

Voorbeeld vanuit Windows: Puttyhttp://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

SSH client op windows

Vrij beschikbaar

Page 23: Raspberry Pi

Raspberry-Pi 23

Page 24: Raspberry Pi

Raspberry-Pi 24

Page 25: Raspberry Pi

Raspberry-Pi 25

Secure copy over het netwerk: scp

Gebruikt het SSH protocol om een copy te maken over een versleuteld kanaal.

scp user@host:van_path naar_path B.v:

scp wim@pi:/home/wim/lijst . scp [email protected]:/home/wim/lijst .

Page 26: Raspberry Pi

Raspberry-Pi 26

SCP vanuit windows: winscphttp://winscp.net/eng/docs/lang:nl

Page 27: Raspberry Pi

Raspberry-Pi 27

Key controle

Steeds dezelfde fingerprint

Page 28: Raspberry Pi

Raspberry-Pi 28

Page 29: Raspberry Pi

Raspberry-Pi 29

Administrator/root rechten

sudo <commando> Sudo -s

Geeft een root shell

Page 30: Raspberry Pi

Raspberry-Pi 30

<tab> <tab>

Page 31: Raspberry Pi

Raspberry-Pi 31

Man man

Manual pages (handleiding) Raadplegen met commando: man man man

Toont de manual voor manman bash

Geeft de manual van bash

Page 32: Raspberry Pi

Raspberry-Pi 32

Apropos what?

Page 33: Raspberry Pi

Raspberry-Pi 33

Software installeren: APT

sudo apt-get update “app store connection update”

sudo apt-get upgrade Upgraden naar de laatste versies

sudo apt-get install <Packet> Installeren van “Packet”

apt-cache search <patroon>

Page 34: Raspberry Pi

Raspberry-Pi 34