Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Raspberry Pi & PHP

Raspberry Pi & PHP

Presented at the Singapore PHP User Group Meetup on 29 July 2014.

http://www.youtube.com/watch?v=6DtbJvIBByc&list=UUwAxATPUOm4X_EY-SzILnFg

Michael Cheng

July 29, 2014
Tweet

More Decks by Michael Cheng

Other Decks in Programming

Transcript

  1. Raspberry Pi & PHP
    Baby steps into Internet of Things

    View Slide

  2. Getting Started
    1. Get a Raspberry Pi (http://12geeks.com)
    2. Get a USB keyboard, HDMI cable for your monitor,
    SD Card (> Class 4), ethernet cable / WIFI dongle.

    View Slide

  3. Getting Started
    3. Download NOOB (http://www.raspberrypi.org/
    downloads/)
    4. Format SD card & copy NOOB to SD card.
    5. Connect & boot up.

    View Slide

  4. After OS Bootup
    • Run: sudo raspi-config
    • Keyboard & locale
    • Open SSH access

    View Slide

  5. After OS Bootup
    • Update Aptitude: sudo aptitude update
    • Install Apache & PHP: 

    sudo apt-get install apache2 php5

    View Slide

  6. View Slide

  7. View Slide

  8. 8

    View Slide

  9. 9

    View Slide

  10. 10

    View Slide

  11. Raspberry Pi
    Raspberry Pi
    Arduino
    IPv4
    Door

    Lock
    AWS Server
    Apache
    Public IPv4
    http://somedoorurl.com
    NAT

    View Slide