Beginning Raspberry Pi

Slides:



Advertisements
Similar presentations
Presented by W1BAW Bruce Wattendorf. What is a Raspberry PI A $35 computer with out a monitor, keyboard, mouse but they all can be added.
Advertisements

Introduction to Raspberry Pi
By: Lloyd Albin 9/28/2012. We are not talking about a Raspberry Pie.
Raspberry Pi Surrey Amateur Radio Club November 12, 2014 AN INTRODUCTION TO THIS NON-EDIBLE DELIGHT.
Building your own Chartplotter with AIS, Radar, & Autopilot
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
Remote Accessing Your Home Computer Using VNC and a Dynamic DNS Name.
An illustrated introduction to building a computer using a Raspberry Pi 2. A Raspberry Pi, that is! Images from Microsoft clipart.
RaspberryPi Ira Goldstein Siena College. What is a Raspberry Pi? University of Cambridge’s Computer Laboratory – Decline in skill level – Designed for.
SINGLE BOARD COMPUTERS -KEVIN JOSE. WHY DO WE USE THEM? Good performance at low price GPIO capability to interact with the outside world Small form factor,
Iridis-pi : a low-cost, compact demonstration cluster 윤 준 기윤 준 기.
Pi In The Sky Chris Stubbs. What’s in the HAB kit Balloon (keep this safe) Parachute PITS kit Raspberry Pi Model A (for flight) + SD + Camera Raspberry.
Juan Miguel Valverde Martínez.  What is a Home Media Center?  Raspberry Pi  Idea  Interface  Potential.
Raspberry Pi.
Using the Weizmann Cluster Nov Overview Weizmann Cluster Connection Basics Getting a Desktop View Working on cluster machines GPU For many more.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Embedded Software Design Week I Class Introduction Course Coverage Hardware Platforms * Some of this slides are inspired/copied from Dr. Mark Brehob’s.
Rasberry pi 2 model B. Selve computeren i rasberry pi’en.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Introducing the Raspberry Pi Nauru ICT Department April 2016.
Farhin Al Masud What is Raspberry PI? o Low cost, credit card sized computer o SOC (System on a chip) o Founded by Raspberry PI foundation.
Raspberry PI 2 Installation & Demo App By Wayne Keadle.
University of Wisconsin-Whitewater. What is a Raspberry Pi?  Low cost, ARM based computer the size of a credit card  Uses SD card for persistent storage.
An introduction to the Raspberry Pi. What is a Raspberry Pi?  University of Cambridge’s Computer Laboratory  Decline in skill level  Designed for education.
Get Started with Raspberry Pi- Single Board Computer.
SAURABH GINGADE 12311A0480. The Raspberry Pi is a credit-card sized computer.
RaspberryPi.
Introduction to Python with Raspberry Pi
Engineering Innovation Center
Building Raspberry Pi Controllers with Python
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
Workshop on Raspberry Pi 3
Computer System Laboratory
Ira Goldstein Siena College
Computer System Laboratory
RASPBERRY PI WORKSHOP.
Implementation of Embedded OS
IoT 101 with Raspberry Pi and Azure
Computer System Laboratory
Computer and Information Technology for HKCEE
Chapter A - The Raspberry Pi Computer
ECE 544: Middlebox lab Abhigyan Sharma.
Running your own web server
Installation and Configuration
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
Lecture 6 Uli Raich UCC semester 2017/2018
Raspberry Pi in Headless Operation
Alþingi's Digital Signage System
Tutorial : Raspberry Pi
Engineering Innovation Center
Raspberry Pi Pi 2 Model B.
PRESENTED BY Bitware Technologies
An introduction to the Raspberry Pi
Raspberry Pi. Introduction to Raspberry Pi Python Electronics Linux Outline.
Internet-of-Things (IoT)
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
What we learn during Program
What is a Raspberry Pi? The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard.
Raspberry Pi – VNC Server Connection
Odroid XU4.
Remote Computing Services Cloud connection Distributed system
The “FREE” WiFi by Chandan.
bitcurator-access-webtools Quick Start Guide
Introduction to Python with Raspberry Pi
Introduction to Single Board Computer
Emphasis: Get it working and do stuff!
Raspberry Pi Hardware By: Mike Kwiatkowski.
Setting up a Webcam on a Raspberry Pi
Edge TPU Coral Dev Board: A tutorial
Presentation transcript:

Beginning Raspberry Pi

Contents Raspberry Pi Installing Raspbian Connecting to Raspbian Configuring Raspbian Update Raspbian VNC Installing apache web server + PHP

Raspberry Pi a series of credit card–sized single-board computers developed in the UK by the Raspberry Pi Foundation promoting the teaching of basic computer science Raspberry Pi 3 Spec. Broadcom BCM2837 SoC CPU: 1.2GHz quad-core ARM Cortex-A53 1GB RAM GPU: 400MHz VideoCore IV 4 USB ports, 40 GPIO pins, HDMI, Ethernet, 3.5mm audio jack, Micro SD slot

Comparison of RPi Series Source: http://hackaday.com/2016/02/28/introducing-the-raspberry-pi-3/

Raspberry Pi - OSes Raspbian – based on Debian Ubuntu mate Snappy Ubuntu core Windows 10 IoT core OSMC – Open source media center OpenELEC Risc OS

Installing Raspbian Download the Image of raspbian https://www.raspberrypi.org/downloads/raspbian/ Writing the Image to the SD card (micro SD card) In Windows Win32DiskImager http://sourceforge.net/projects/win32diskimager/ * If your SD card is not formatted correctly, use SDFormatter https://www.sdcard.org/downloads/formatter_4/ From https://www.raspberrypi.org/documentation/installation/installing-images/README.md

Installing Raspbian Partition of the SD card boot: files required to boot the raspbian Free! You can extend the Raspbian’s partition to this area, or use it for other purposes. Raspbian image

Enable UART (Serial) Open boot/config.txt and Add the following to enable serial comm. enable_uart = 1 Open boot/cmdline.txt and remove ‘quiet’ directive to display boot messages

Connecting to Raspbian Recommended Tools (for Windows) Notepad++ (with Hack font (optional)) for Editor https://notepad-plus-plus.org/ http://sourcefoundry.org/hack/ Putty.exe for SSH client http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html TightVNC Viewer for VNC client http://www.tightvnc.com/ Installation guide: https://www.raspberrypi.org/documentation/remote- access/vnc/windows.md Insert the SD card to Raspberry Pi 2/3/zero

Connecting to Raspbian Connecting Raspberry pi to PC through USB2Serial Cable(Adafruit 954) https://www.adafruit.com/products/954 Cable connection USB to Serial cable device driver (PL2303) https://www.adafruit.com/images/product-files/954/PL2303_Prolific_DriverInstaller_v1_12_0.zip Raspberry pi 2’s GPIO USB2serial cable GND GND (black) TXD0 RXD (white) RXD0 TXD (green) 5V0 VCC (red) - optional (power from serial) More information - http://elinux.org/RPi_Serial_Connection

Connecting to Raspbian

Connecting to Raspbian Check the PORT number of the cable in device management Use putty.exe to connect the Raspberry pi via COM port

Connecting to Raspbian putty Connection type: Serial Serial Line: COM? Speed: 115200

Connecting to Raspbian ID: pi Password: raspberry

Configuring Raspbian Raspi-config Expand Filesystem $ sudo raspi-config Expand Filesystem Use all of the SD card for Raspbian Check the size of the partition using ‘df’ command sudo? Run program with super user’s privileges.

Configuring Raspbian Wireless configuration $ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf $ sudo reboot ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="hswlan" scan_ssid=1 key_mgmt=WPA-EAP identity="학번/사번" password="비밀번호" }

Configuring Raspbian ifconfig wlan0 netstat -nr

Update Raspbian $ sudo apt-get update $ sudo apt-get upgrade To update the local package index with the latest changes made in the repositories (/etc/apt/sources.list) $ sudo apt-get upgrade Upgrade all installed packages

VNC (Virtual Network Computing) Graphical desktop sharing system that allows you to remotely control the desktop interface Install the TightVNC package $ sudo apt-get install tightvncserver Rrun TightVNC Server $ tightvncserver will prompt you to enter password Run VNC server $ vncserver :1 -geometry 1024x768 -depth 24 From https://www.raspberrypi.org/documentation/remote-access/vnc/

VNC (Virtual Network Computing) Connecting VNC Run TightVNC Viewer in your PC (windows)

VNC (Virtual Network Computing) Listening port 80 (HTTP) only allowed in Our Site. But, normal pi user cannot listen 80 port. We need to forward other port to 80 port. $ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 5901 This forward 80 to 5901 Run VNC server $ vncserver :1 -geometry 1024x768 -depth 24 vncserver will listen at port 5901 if you want to delete the forwarding in the iptable: $ sudo iptables -t nat -D PREROUTING -p tcp --dport 80 -j REDIRECT --to 5901

VNC (Virtual Network Computing) Connect to the port 80 of the raspberry pi Remote Host: 223.194.131.30::80

VNC (Virtual Network Computing)

Installing Web Server $ sudo apt-get install apache2 /var/www/html/index.html $ sudo nano /var/www/html/index.html Modify the HTML

Installing PHP $ sudo apt-get install php5 libapache2-mod-php5 $ sudo nano /var/www/html/index.php <?php echo “Hello world”; phpinfo(); ?>

Q&A