SlideShare a Scribd company logo
Raspberry Pi 2
 4 USB Ports
 1 Network Port
 1 HDMI Port
 1 MiniUSB Port
 1 Gig RAM
 MicroSD Card for HD
 900 MHz Quad-Core CPU
Options
 Raspberry Pi - $35
 Raspberry Pi w/kit: $69.99 (Amazon)
 Case
 Power Supply
 WiFi Dongle
 SD Card (With NOOBS pre-loaded)
 HDMI Cable
 Raspberry Pi w/Kit & Peripherals - ≈ $125.00
 Not having to scrounge for parts - priceless
Things Not In The Kit
 Network Cable
 Wired Mouse
 Wired Keyboard
 Monitor (the good news: most modern TV’s accept HDMI
input – visibility is rarely a problem with this option.)
Things I Didn’t Realize
 You need a connected mouse to select which OS to install from NOOBS (I
opted for Raspbian)
 My Bluetooth keyboard/mouse wouldn’t work until after I installed the
Bluetooth stack - via command-line.
 I couldn’t remote in without installing xrdp and/or ssh – via command-line.
 I couldn’t configure the WiFi info without a keyboard
I now have an extra wired mouse and extra keyboard, and an extra network
cable.
Recommended Steps 1
 Order a kit with all the parts, or order parts in kit separately
– your choice.
 Round up a wired keyboard, wired mouse, and network
cable.
 If using kit, NOOBS (New Out Of Box Software) will be
pre-loaded; if not, download NOOBS for Raspberry Pi,
load onto SD Card; insert into RPi (detailed instructions
here).
Recommended Steps 2
 Connect mouse & keyboard to RPi
 Connect HDMI to monitor/TV & RPi
 Connect network cable (ideally, connect RPi directly to
your network router)
 Connect microUSB last; RPi doesn’t have an “on/off”
switch – plugging the power in is how it powers up.
NOOBS Installation
 NOOBS (New Out Of Box Software)
 Lots of great resources on YouTube – my favorite:
https://www.youtube.com/watch?v=JiTNdwD1fS0
This will walk you through the configuration steps required
to get Raspbian installed.
(Tip: when given the option to enable auto-login, do so – it’s a
time-saver when installing additional pieces)
Raspbian
 “Raspbian is a free operating system based on Debian
optimized for the Raspberry Pi hardware”
 “Debian (/ˈdɛbiən/)[1] is a Unix-like computer operating
system and a Linux distribution that is composed entirely
of free and open-source software, most of which is under
theGNU General Public License, and packaged by a group
of individuals known as the Debian Project.”
Optional: Configuring Display
 If the default resolution doesn’t fit your display, open up a command-line
terminal on your Raspberry Pi, and type:
sudo nano /boot/config.txt
 Change disable_overscan=0 to disable_overscan=1
 Change framebuffer_width and framebuffer_height to the appropriate
dimensions for your display; if “#” precedes them, remove it.
(Tip: NOOBS entered this twice into my config.txt – change the last
instance, if this happens to you)
 Save file, and reboot.
Additional Config/Installs
 WiFi: Menu=>Preferences=>WiFi Configuration
 Bluetooth (from the command-line):
sudo apt-get installbluetooth bluez-utils blueman bluez python-gobject python-gobject2
 Menu=>Preferences=>Bluetooth devices
 Find RPi IP address: ifconfig
 Remote Desktop: sudo apt-get install xrdp (connect with Remote Desktop on your Windows device)
 SSH: sudo apt-get install SSH (download Putty on your Win device to connect)
 WinSCP on your Windows device to be able to transfer files
 Node.js:
 wget http://node-arm.herokuapp.com/node_latest_armhf.deb
 sudo dpkg –I node_latest_armhf.deb
 MongoDB: A bit more complicated. Install instructions:
https://nikolayarhangelov.wordpress.com/2015/01/25/raspberry-pi-running-nodejs-and-mongodb-
on-pi/
Your First Node.js Web Server
 Open a terminal and type: nano myserver.js
 Enter the following:
var http = require('http');
var server = http.createServer(function (request, response){
response.writeHead(200, {‘Content-Type’: ‘text/plain’});
response.end(‘Hello from nodejs running on Rasbian!n’); });
server.listen(‘8080’);
console.log(‘Server running at http://127.0.0.1:8080/’);
 Press CTL-X to exit and Y to save the app.js file.
 Launch the node app by opening a terminal and executing:
node myserver.js
 View the running node app by opening a browser and navigating to http://localhost:8080
or http://127.0.0.1:8080
 To stop the server, press CTL-C in terminal window.
Benefits of Raspberry Pi As A Dev Environment
 Less expensive than a desktop or laptop computer
 Different OS options available (Windows 10 for Raspberry Pi is also
available)
 Easier to switch out environments (just swap SD cards)
 Large and enthusiastic user support base
 Expandable – you can add temperature sensors, cameras, or other
hardware additions (adafruit.com)

More Related Content

What's hot

Introduction To The Beagleboard
Introduction To The BeagleboardIntroduction To The Beagleboard
Introduction To The Beagleboard
NeHal VeRma
 
IPv6: A Digital Game Changer
IPv6: A Digital Game ChangerIPv6: A Digital Game Changer
IPv6: A Digital Game Changer
CARLOS RALLI-UCENDO
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
Eueung Mulyana
 
Raspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issuesRaspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issues
yeokm1
 
Beagle bone black by Boddukuri venkata saiteja
Beagle bone black  by Boddukuri venkata saitejaBeagle bone black  by Boddukuri venkata saiteja
Beagle bone black by Boddukuri venkata saiteja
Sai Charan
 
Ps4 xbox one-wii u comparison
Ps4 xbox one-wii u comparisonPs4 xbox one-wii u comparison
Ps4 xbox one-wii u comparisonJordanianmc
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
Mandeesh Singh
 
Workshop Raspberry Pi NAS with Windows Share
Workshop Raspberry Pi NAS with Windows ShareWorkshop Raspberry Pi NAS with Windows Share
Workshop Raspberry Pi NAS with Windows Share
Michael Plate
 
BeagleBone Black Using Python
BeagleBone Black Using PythonBeagleBone Black Using Python
BeagleBone Black Using Python
Sai Viswanath
 
Debian & the BeagleBone Black
Debian & the BeagleBone BlackDebian & the BeagleBone Black
Debian & the BeagleBone Black
Raju Vindane
 
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone BlackTaking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Drew Fustini
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreBenjamin Moore
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
Mandeesh Singh
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry Pi
Shahed Mehbub
 
Exploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonExploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with Python
Shahed Mehbub
 
Hands On Embedded Linux with BeagleBone Black
Hands On Embedded Linux with BeagleBone BlackHands On Embedded Linux with BeagleBone Black
Hands On Embedded Linux with BeagleBone Black
Daniele Costarella
 

What's hot (20)

Introduction To The Beagleboard
Introduction To The BeagleboardIntroduction To The Beagleboard
Introduction To The Beagleboard
 
IPv6: A Digital Game Changer
IPv6: A Digital Game ChangerIPv6: A Digital Game Changer
IPv6: A Digital Game Changer
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
 
Spec00359
Spec00359Spec00359
Spec00359
 
Raspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issuesRaspberry Pi 3 + UART/Bluetooth issues
Raspberry Pi 3 + UART/Bluetooth issues
 
Beagle bone black by Boddukuri venkata saiteja
Beagle bone black  by Boddukuri venkata saitejaBeagle bone black  by Boddukuri venkata saiteja
Beagle bone black by Boddukuri venkata saiteja
 
Ps4 xbox one-wii u comparison
Ps4 xbox one-wii u comparisonPs4 xbox one-wii u comparison
Ps4 xbox one-wii u comparison
 
Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)
 
Workshop Raspberry Pi NAS with Windows Share
Workshop Raspberry Pi NAS with Windows ShareWorkshop Raspberry Pi NAS with Windows Share
Workshop Raspberry Pi NAS with Windows Share
 
BeagleBone Black Using Python
BeagleBone Black Using PythonBeagleBone Black Using Python
BeagleBone Black Using Python
 
Debian & the BeagleBone Black
Debian & the BeagleBone BlackDebian & the BeagleBone Black
Debian & the BeagleBone Black
 
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone BlackTaking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
 
Feature satip4
Feature satip4Feature satip4
Feature satip4
 
Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014Raspberry Pi Free Session - 20_09_2014
Raspberry Pi Free Session - 20_09_2014
 
66_pfSenseTutorial
66_pfSenseTutorial66_pfSenseTutorial
66_pfSenseTutorial
 
Up and running with Raspberry Pi
Up and running with Raspberry PiUp and running with Raspberry Pi
Up and running with Raspberry Pi
 
Exploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonExploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with Python
 
Hands On Embedded Linux with BeagleBone Black
Hands On Embedded Linux with BeagleBone BlackHands On Embedded Linux with BeagleBone Black
Hands On Embedded Linux with BeagleBone Black
 
BeagleBone Workshop
BeagleBone WorkshopBeagleBone Workshop
BeagleBone Workshop
 

Similar to Configuring Raspberry Pi as a Dev Environment

Raspberry pi : how to get started
Raspberry pi : how to get startedRaspberry pi : how to get started
Raspberry pi : how to get started
동호 손
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
RANAALIMAJEEDRAJPUT
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi
Mohamed Ali May
 
Raspberry Pi introduction
Raspberry Pi introductionRaspberry Pi introduction
Raspberry Pi introduction
Lotfi Messaoudi
 
Home security with Raspberry Pi
Home security with Raspberry PiHome security with Raspberry Pi
Home security with Raspberry Pi
Bogusz Jelinski
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
Mandeesh Singh
 
RaspberryPi + IoT - Lab to switch on and off a light bulb
RaspberryPi + IoT - Lab to switch on and off a light bulbRaspberryPi + IoT - Lab to switch on and off a light bulb
RaspberryPi + IoT - Lab to switch on and off a light bulb
Jeff Prestes
 
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Enablex io
 
Redteaming HID attacks
Redteaming HID attacksRedteaming HID attacks
Redteaming HID attacks
Juan Espin
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
Cliff Samuels Jr.
 
Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi
Daniele Albrizio
 
Building your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry PiBuilding your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry Pi
Jeff Prestes
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
Pradip Bhandari
 
Polstra 44con2012
Polstra 44con2012Polstra 44con2012
Polstra 44con2012
Philip Polstra
 
Hacking and Forensics on the Go - 44CON 2012
Hacking and Forensics on the Go - 44CON 2012Hacking and Forensics on the Go - 44CON 2012
Hacking and Forensics on the Go - 44CON 2012
44CON
 
Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry Pi
LloydMoore
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
HusainBhaldar21
 
How to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 stepsHow to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 steps
Arvind Arasu
 
Node-RED and getting started on the Internet of Things
Node-RED and getting started on the Internet of ThingsNode-RED and getting started on the Internet of Things
Node-RED and getting started on the Internet of ThingsBoris Adryan
 

Similar to Configuring Raspberry Pi as a Dev Environment (20)

Raspberry pi : how to get started
Raspberry pi : how to get startedRaspberry pi : how to get started
Raspberry pi : how to get started
 
Raspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software SetupRaspberry pi Board Hardware & Software Setup
Raspberry pi Board Hardware & Software Setup
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi
 
Raspberry Pi introduction
Raspberry Pi introductionRaspberry Pi introduction
Raspberry Pi introduction
 
Home security with Raspberry Pi
Home security with Raspberry PiHome security with Raspberry Pi
Home security with Raspberry Pi
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspberry-Pi
Raspberry-PiRaspberry-Pi
Raspberry-Pi
 
RaspberryPi + IoT - Lab to switch on and off a light bulb
RaspberryPi + IoT - Lab to switch on and off a light bulbRaspberryPi + IoT - Lab to switch on and off a light bulb
RaspberryPi + IoT - Lab to switch on and off a light bulb
 
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
 
Redteaming HID attacks
Redteaming HID attacksRedteaming HID attacks
Redteaming HID attacks
 
Tac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PITac Presentation October 72014- Raspberry PI
Tac Presentation October 72014- Raspberry PI
 
Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi Rete di casa e raspberry pi - Home network and Raspberry Pi
Rete di casa e raspberry pi - Home network and Raspberry Pi
 
Building your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry PiBuilding your own RC Car with Raspberry Pi
Building your own RC Car with Raspberry Pi
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
 
Polstra 44con2012
Polstra 44con2012Polstra 44con2012
Polstra 44con2012
 
Hacking and Forensics on the Go - 44CON 2012
Hacking and Forensics on the Go - 44CON 2012Hacking and Forensics on the Go - 44CON 2012
Hacking and Forensics on the Go - 44CON 2012
 
Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry Pi
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
How to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 stepsHow to connect raspberry pi to laptop display: 4 steps
How to connect raspberry pi to laptop display: 4 steps
 
Node-RED and getting started on the Internet of Things
Node-RED and getting started on the Internet of ThingsNode-RED and getting started on the Internet of Things
Node-RED and getting started on the Internet of Things
 

Recently uploaded

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
aozcue
 
web-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jerweb-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jer
freshgammer09
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Peter Gallagher
 
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
PinkySharma900491
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
andreassenrolf537
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
aozcue
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
peuce
 

Recently uploaded (7)

一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证如何办理
 
web-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jerweb-tech-lab-manual-final-abhas.pdf. Jer
web-tech-lab-manual-final-abhas.pdf. Jer
 
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
Building a Raspberry Pi Robot with Dot NET 8, Blazor and SignalR - Slides Onl...
 
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
MATHEMATICS BRIDGE COURSE (TEN DAYS PLANNER) (FOR CLASS XI STUDENTS GOING TO ...
 
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
欧洲杯冠军-欧洲杯冠军网站-欧洲杯冠军|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
一比一原版(UCSB毕业证)圣塔芭芭拉社区大学毕业证如何办理
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证如何办理
 

Configuring Raspberry Pi as a Dev Environment

  • 1.
  • 2. Raspberry Pi 2  4 USB Ports  1 Network Port  1 HDMI Port  1 MiniUSB Port  1 Gig RAM  MicroSD Card for HD  900 MHz Quad-Core CPU
  • 3. Options  Raspberry Pi - $35  Raspberry Pi w/kit: $69.99 (Amazon)  Case  Power Supply  WiFi Dongle  SD Card (With NOOBS pre-loaded)  HDMI Cable  Raspberry Pi w/Kit & Peripherals - ≈ $125.00  Not having to scrounge for parts - priceless
  • 4. Things Not In The Kit  Network Cable  Wired Mouse  Wired Keyboard  Monitor (the good news: most modern TV’s accept HDMI input – visibility is rarely a problem with this option.)
  • 5. Things I Didn’t Realize  You need a connected mouse to select which OS to install from NOOBS (I opted for Raspbian)  My Bluetooth keyboard/mouse wouldn’t work until after I installed the Bluetooth stack - via command-line.  I couldn’t remote in without installing xrdp and/or ssh – via command-line.  I couldn’t configure the WiFi info without a keyboard I now have an extra wired mouse and extra keyboard, and an extra network cable.
  • 6. Recommended Steps 1  Order a kit with all the parts, or order parts in kit separately – your choice.  Round up a wired keyboard, wired mouse, and network cable.  If using kit, NOOBS (New Out Of Box Software) will be pre-loaded; if not, download NOOBS for Raspberry Pi, load onto SD Card; insert into RPi (detailed instructions here).
  • 7. Recommended Steps 2  Connect mouse & keyboard to RPi  Connect HDMI to monitor/TV & RPi  Connect network cable (ideally, connect RPi directly to your network router)  Connect microUSB last; RPi doesn’t have an “on/off” switch – plugging the power in is how it powers up.
  • 8. NOOBS Installation  NOOBS (New Out Of Box Software)  Lots of great resources on YouTube – my favorite: https://www.youtube.com/watch?v=JiTNdwD1fS0 This will walk you through the configuration steps required to get Raspbian installed. (Tip: when given the option to enable auto-login, do so – it’s a time-saver when installing additional pieces)
  • 9. Raspbian  “Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware”  “Debian (/ˈdɛbiən/)[1] is a Unix-like computer operating system and a Linux distribution that is composed entirely of free and open-source software, most of which is under theGNU General Public License, and packaged by a group of individuals known as the Debian Project.”
  • 10. Optional: Configuring Display  If the default resolution doesn’t fit your display, open up a command-line terminal on your Raspberry Pi, and type: sudo nano /boot/config.txt  Change disable_overscan=0 to disable_overscan=1  Change framebuffer_width and framebuffer_height to the appropriate dimensions for your display; if “#” precedes them, remove it. (Tip: NOOBS entered this twice into my config.txt – change the last instance, if this happens to you)  Save file, and reboot.
  • 11. Additional Config/Installs  WiFi: Menu=>Preferences=>WiFi Configuration  Bluetooth (from the command-line): sudo apt-get installbluetooth bluez-utils blueman bluez python-gobject python-gobject2  Menu=>Preferences=>Bluetooth devices  Find RPi IP address: ifconfig  Remote Desktop: sudo apt-get install xrdp (connect with Remote Desktop on your Windows device)  SSH: sudo apt-get install SSH (download Putty on your Win device to connect)  WinSCP on your Windows device to be able to transfer files  Node.js:  wget http://node-arm.herokuapp.com/node_latest_armhf.deb  sudo dpkg –I node_latest_armhf.deb  MongoDB: A bit more complicated. Install instructions: https://nikolayarhangelov.wordpress.com/2015/01/25/raspberry-pi-running-nodejs-and-mongodb- on-pi/
  • 12. Your First Node.js Web Server  Open a terminal and type: nano myserver.js  Enter the following: var http = require('http'); var server = http.createServer(function (request, response){ response.writeHead(200, {‘Content-Type’: ‘text/plain’}); response.end(‘Hello from nodejs running on Rasbian!n’); }); server.listen(‘8080’); console.log(‘Server running at http://127.0.0.1:8080/’);  Press CTL-X to exit and Y to save the app.js file.  Launch the node app by opening a terminal and executing: node myserver.js  View the running node app by opening a browser and navigating to http://localhost:8080 or http://127.0.0.1:8080  To stop the server, press CTL-C in terminal window.
  • 13. Benefits of Raspberry Pi As A Dev Environment  Less expensive than a desktop or laptop computer  Different OS options available (Windows 10 for Raspberry Pi is also available)  Easier to switch out environments (just swap SD cards)  Large and enthusiastic user support base  Expandable – you can add temperature sensors, cameras, or other hardware additions (adafruit.com)