Contributions

Contributions are appreciated and used to host this site. Thank You for your support.

Feature Products
  • Raspberry Pi with Java: Programming the Internet of Things (IoT)
    Raspberry Pi with Java: Programming the Internet of Things (IoT)
  • Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
    Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
  • Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
    Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
  • Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
    Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
  • Getting Started with Raspberry Pi
    Getting Started with Raspberry Pi
  • Raspberry Pi User Guide
    Raspberry Pi User Guide
  • PiBrella LED Add On Board
    PiBrella LED Add On Board
  • Diversitech® WS-1 - Wet Switch Flood Detector
    Diversitech® WS-1 - Wet Switch Flood Detector
  • Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
    Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
  • Floodstop Washing Machine Valve Shutoff Kit
    Floodstop Washing Machine Valve Shutoff Kit
  • Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
    Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
  • Floodstop Individual Water Appliance Additional Water Sensor XS-01
    Floodstop Individual Water Appliance Additional Water Sensor XS-01
  • Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
    Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
  • Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Metra 70-2002 Radio Wiring Harness for Saturn 00-05
    Metra 70-2002 Radio Wiring Harness for Saturn 00-05
  • Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio
    Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio
Wednesday
Aug152012

Raspberry Pi - Getting Started

The Raspberry Pi is a revolutionary step forward in bringing low cost embedded computing to the masses.  Designed as an educational learning tool and the "B" model priced at only $35 USD, the Raspberry Pi makes a great little device for DIYers and hobbyists. 

This article will provide the necessary information on the basic supplies needed and instructions on getting started with your new Raspberry Pi.   

Supplies

  • Raspberry Pi - Model B
  • SDHC Card (4 GB or more; Preferably Class 10)
  • Micro USB Cable
  • Power Supply (5 volt with at least 700mA)
  • HDMI Cable
  • USB Keyboard
  • USB Mouse
  • Ethernet Cable (optional)
  • Case / Enclosure (optional)


A shopping list with direct linked items is available via this post.

Power

To power the Raspberry Pi you will need a 5 VDC power supply with a minimum of 700 mA and micro USB connector to plug into the micros USB port on the board.  

If you have an extra Apple iPhone charger laying around, this makes a perfect power supply for the Raspberry Pi.  The Apple iPhone charger is 5VDC @ 1A (1000mA).  Using the Apple iPhone charger or similar USB charger you will still need a USB to micro USB adapter (A Male to Micro B).  I used this AmazonBasics USB Cable - 2.0 A Male to Micro B (6 Feet / 1.8 Meters)


NOTE:  
Do not attempt to use your computer's USB port to power the Raspberry Pi.

  

  

Video/Display

The Raspberry Pi includes a HDMI port to connect the device to a computer or TV monitor.  If you monitor does not accept a HDMI connection directly, then you many need a HDMI to DVI or HDMI to display port adapter/cable.  I am using this HDMI/DVI adapter cable that I picked up from Amazon:  Eforcity Black 6FT /2 Meter HDMI Male to DVI Male Cable  

Keyboard/Mouse

You can plug in just about any standard USB keyboard and mouse.  I am using a USB to PS2 adapter with an old PS2 keyboard and PS2 mouse. 

Network Connectivity

You will need a network (CAT-5) ethernet cable to connect the Raspberry Pi to you network switch/hub/router/residential gateway.

Installing OS Image

Before booting your Raspberry Pi for the first time, you will need to flash an operating system to a SD card using a Windows, Apple Mac. or other Linux computer with an SD card reader.  You can download your choice of operating system image from the main Raspberry Pi download page:
http://www.raspberrypi.org/downloads 

Or from the Raspberry Pi Wiki distributions page:
http://elinux.org/RaspberryPiBoardDistributions

The following page includes detailed instructions based on your desktop operating system for flashing the image to the SD card.
http://elinux.org/RPi_Easy_SD_Card_Setup 

Once your SD card has been flashed successfully, you are ready to insert it into the Raspberry Pi and boot it up.


NOTE:  If you are planning on running Java-based applications and want to run using the Oracle JRE, then you should use the "Debian ARM 2012-04-19 (Squeeze)" distribution at this time instead of the newer "2012-08-07 (raspbian/wheezy)" distribution.  The newer distribution supports hardware floating point, but is incompatible with the Oracle JRE at this time. 

Booting & Initial Configuration

On inital boot, depending on the image you load, the Raspberry Pi may reboot one or more times while setting itself up.  Once complete a login prompt should be provided allowing you to enter credentials to access the console.  The login credentials vary depending on which distribution you have loaded, but the default credentials for Raspbian and Debian distributions are username "pi" and password "raspberry".

If you are using the Raspbian "Wheezy" image, the raspi-config configuration utility should load on the first boot and allow you to select your local configuration options.

If you are using the Debian "Squeeze" image, you will need to run the following commands to configure the system your your locale, keyboard and timezone.

sudo dpkg-reconfigure locales
sudo dpkg-reconfigure keyboard-configuration
sudo dpkg-reconfigure tzdata 

For information on other distributions, please see this page:  http://elinux.org/RaspberryPiBoardDistributions

Starting X (GUI)

Run the following command from the console to start the graphical user interface.

startx

Now you are up and running .. have fun with your Raspberry Pi! 

* Raspberry Pi is a trademark of the Raspberry Pi foundation.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (4)

Mr. Savage,

I am new to pi but I am not new to programming. My experience with programming is with industrial automation so everything pi is foreign to me. I use a lot of visual basic and C for our graphical interface systems and am very comfortable with programming programmable logic controllers (PLC). I have always been intrigued with java and have wanted to learn to program using java for a long time.

Unfortunately, I am losing interest because I spend more time fighting with systems that are new to me. I do not know what platform to use for java programming and I am not familiar with Linux.

Thanks for all of the information and work that you have done with the raspberry pi. I have spent a lot of time configuring, downloading, testing and pulling hair out trying to get my pi to work with java. I have even been able to run a test program created using the eclipse platform that runs on the pi. I have been using your projects as a guide.

I have not been programming in java long enough to have a preference for platforms. Do you have an image that is tested and ready to go for a beginner java programmer? Do you have any preferences for java programming platforms such as eclipse? I plan on using the raspberry pi as my programming terminal so a functional image with some getting started with java projects would be greatly appreciated.

January 15, 2013 | Unregistered CommenterChris O.

Hi Chris,

Sorry for the delayed response, I have been very busy with other projects and work related stuff. As for a predefined image, I guess the answer is "no". I use the RPi images provided at http://www.raspberrypi.org/downloads and then just install a Java SDK on top of the basic image. (http://www.savagehomeautomation.com/raspi-jdk7 or http://www.savagehomeautomation.com/raspi-jdk8).

As for IDE preferences, I use primarily Eclipse. I use Eclipse because its what we have standardized on at my work. I do hear great things about IntelliJ however. I use Eclipse installed on a Windows desktop computer or my OSX laptop to do development work and then transfer any Java programs to be tested to the Raspberry Pi. (I automate most of this using Maven) I don't run Eclipse directly on the Pi because I think the performance would be undesirable. Eclipse can be a bit heavy .. even for my desktop PC.

Thanks, Robert

February 9, 2013 | Registered CommenterRobert Savage

I would like to use an old Ps/2 keyboard and mouse with the Rasberry PI. Can the following adapters work?

1. Gear Head CA2150 Dual PS/2 to USB Adaptor
2. Sabrent USB to 2-Port PS/2 Splitter Cable Connector

Thank you for your advice and assistance

March 20, 2013 | Unregistered Commentersal

Nice one keep it up.

March 3, 2017 | Unregistered Commentersabrent usb driver

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« Raspberry Pi - Enabling SSH for Remote Access | Main | Bypass Factory Amp/Crossover in 2002 Chevy Tahoe »