Linux Journal | June 2011 | Issue

Linux Journal | June 2011 | Issue

Backbone.js | Gumstix | DNSSEC | Buildroot | Tiny Core ™ TIME-SAVING COMMAND-LINE TRICKS INSTALL THE CYANOGENMOD ANDROID DISTRO ON YOUR PHONE TRY SUPER-LIGHTWEIGHT Since 1994: The Original Magazine of the Linux Community TINY CORE LINUX EMBEDDED LINUX INTERVIEW WITH HEXAPOD DEVELOPER MATT BUNTING + DEBUG EMBEDDED LINUX PLATFORMS WITH PYTHON AND GDB APPLYING SPEECH I/O IN EMBEDDED APPLICATIONS JUNE 2011 | ISSUE 206 www.linuxjournal.com $5.99US $5.99CAN Getting Started Authenticate 06 with Buildroot Users with OAuth 0 09281 03102 4 More TFLOPS, Fewer WATTS Microway delivers the fastest and greenest floating point throughput in history 2.5 TFLOPS Enhanced GPU Computing with Tesla Fermi 480 Core NVIDIA® Tesla™ Fermi GPUs deliver 1.2 TFLOP single precision & 600 GFLOP double precision performance! New Tesla C2050 adds 3GB ECC protected memory New Tesla C2070 adds 6GB ECC protected memory Tesla Pre-Configured Clusters with S2070 4 GPU servers WhisperStation - PSC with up to 4 Fermi GPUs OctoPuter™ with up to 8 Fermi GPUs and 144GB memory New Processors 12 Core AMD Opterons with quad channel DDR3 memory 8 Core Intel Xeons with quad channel DDR3 memory Superior bandwidth with faster, wider CPU memory busses Increased efficiency for memory-bound floating point algorithms Configure your next Cluster today! 10 TFLOPS 5 TFLOPS www.microway.com/quickquote 508-746-7341 FasTree™ QDR InfiniBand Switches and HCAs 45 TFLOPS 36 Port, 40 Gb/s, Low Cost Fabrics Compact, Scalable, Modular Architecture Ideal for Building Expandable Clusters and Fabrics MPI Link-Checker™ and InfiniScope™ Network Diagnostics FasTree 864 GB/sec Achieve the Optimal Fabric Design for your Specific Bi-sectional Bandwidth MPI Application with ProSim™ Fabric Simulator Now you can observe the real time communication coherency of your algorithms. Use this information to evaluate whether your codes have the potential to suffer from congestion. Feeding observed data into our IB fabric queuing-theory simulator lets you examine latency and bi-sectional bandwidth tradeoffs in fabric topologies. GSA Schedule Contract Number: GS-35F-0431N pC2_Microway.indd 1 7/15/10 9:20:43 AM Learn Drupal & jQuery FROM THE COMFORT OF YOUR LIVING ROOM The Lullabot Learning Series includes everything you need to become a Drupal & jQuery expert from the comfort of your living room! The videos are available in both DVD format and high-defi nition video download. Purchase the videos at http://store.lullabot.com JUNE 2011 CONTENTS Issue 206 FEATURES 40 46 52 58 ON THE COVER Hexapod—a Debugging Breaking Speech I/O • Time-Saving Command-Line Tricks, p. 32 Linux-Powered Embedded Free the for Embedded • Install the CyanogenMod Android Distro on Your Cell Phone, p. 64 Spider Robot Linux Platforms Gumstix DSP Applications • Try Super-Lightweight Tiny Core with GDB Linux, p. 67 Interview with Setting the Speech I/O • Interview with Hexapod Developer Matt Bunting, and Python Gumstix Overo works! See how Matt Bunting, p. 40 the hexapod Fire ablaze with to apply it in • Debug Embedded Linux Platforms with GDB provides robot developer. the DSP. your next Python and GDB, p. 46 support for embedded • Applying Speech I/O in Embedded scripting debug- Anton Borisov James McColl application Applications, p. 58 ging actions • Getting Started with Buildroot, p. 72 project. using a Python • Authenticate Users with OAuth, p. 76 interpreter. Rick Rogers Tom Parkin 2 | june 2011 www.linuxjournal.com 10 Gig On Board Blazing Fast, Embedded 10Gb Ethernet 10G Rackmount Servers in the iX-Neutron server line feature the Intel® Xeon® Processor 5600/5500 Series, and come with 10GbE networking integrated onto the motherboard. This eliminates the need to purchase an additional expansion card, and leaves the existing PCI-E slots available for other expansion devices, such as RAID controllers, video cards, and SAS controllers. For more information on the iX-1204-10G, or to request a quote, visit: http://www.iXsystems.com/neutron 30% cost savings/port over equivalent Dual- Port 10 GB PCI Express add-on card solution KEY FEATURES: IPMI NIC . Supports Dual 64-Bit Six-Core, Quad- Core or Dual-Core, Intel® Xeon® Processor 5600/5500 Series GigE NICS . 1U Form Factor with 4 Hot-Swap SAS/ 10GbE NICS SATA 3.5” Drive Bays . Intel® 5520 chipset with QuickPath Interconnect (QPI) . Up to 192GB DDR3 1333/1066/800 SDRAM ECC Registered Memory (18 DIMM Slots) . 2 (x8) PCI-E 2.0 slots + 1 (x4) PCI-E 2.0 (in x8 slot -Low-Profile - 5.5” depth) . Dual Port Intel® 82599EB 10 Gigabit SFP+ - Dual Port Intel® 82576 Gigabit Ethernet Controller . Matrox G200eW Graphics . Remote Management - IPMI 2.0 + IP-KVM with Dedicated LAN . Slim DVD 10Gb Ethernet . 700W/750W Redundant AC-DC 93%+ Adapters High-Efficiency Power Supply Call iXsystems toll free or visit our website today! 1-855-GREP-4-IX | www.iXsystems.com Intel, the Intel logo, Xeon, and Xeon Inside are trademarks or registered trademarks of Intel Corporation in the U.S. and/or other countries. JUNE 2011 CONTENTS Issue 206 COLUMNS 18 Reuven M. Lerner’s At the Forge Backbone.js 24 Dave Taylor’s Work the Shell More Fun with Days and Dates 26 Mick Bauer’s Paranoid Penguin DNS Cache Poisoning, Part II: DNSSEC Validation 32 Kyle Rankin’s Hack and / Lightning Hacks—the Command Next Door 80 Doc Searls’ EOF 37 NUT—NUTRITION SOFTWARE Whatever Sinks Your Boat INDEPTH 64 CyanogenMod 7.0—Gingerbread in the House What happens when you mix powerful, Linux-powered cell phones with an active Open Source community? Shawn Powers 67 Tiny Core Linux An intro to this very small, run-in-memory distro. Joey Bernard Roll Your Own Embedded Linux System 72 64 CYANOGENMOD 7.0 67 TINY CORE LINUX with Buildroot Embedded Linux, the easy way. Alexander Sirotkin 76 A Primer to the OAuth Protocol OAuth is a simple way to authenticate users. Adrian Hannah IN EVERY ISSUE 8 Current_Issue.tar.gz 10 Letters 14 UPFRONT 34 New Products 36 New Projects 65 Advertisers Index 79 Marketplace 72 BUILDROOT USPS LINUX JOURNAL (ISSN 1075-3583) (USPS 12854) is published monthly by Belltown Media, Inc., 2121 Sage Road, Ste. 310, Houston, TX 77056 USA. Periodicals postage paid at Houston, Texas and at additional mailing offices. Cover price is $5.99 US. Sub scrip tion rate is $29.50/year in the United States, $39.50 in Canada and Mexico, $69.50 elsewhere. POSTMASTER: Please send address changes to Linux Journal, PO Box 16476, North Hollywood, CA 91615. Subscriptions start with the next issue. Canada Post: Publications Mail Agreement #41549519. Canada Returns to be sent to Pitney Bowes, P.O. Box 25542, London, ON N6C 6B2 4 | june 2011 www.linuxjournal.com Executive Editor Jill Franklin [email protected] Senior Editor Doc Searls [email protected] Associate Editor Shawn Powers [email protected] Art Director Garrick Antikajian [email protected] Products Editor James Gray [email protected] Editor Emeritus Don Marti [email protected] Technical Editor Michael Baxter [email protected] Senior Columnist Reuven Lerner [email protected] Security Editor Mick Bauer [email protected] Hack Editor Kyle Rankin [email protected] Virtual Editor Bill Childers [email protected] Contributing Editors Ibrahim Haddad • Robert Love • Zack Brown • Dave Phillips • Marco Fioretti • Ludovic Marcotte Paul Barry • Paul McKenney • Dave Taylor • Dirk Elmendorf • Justin Ryan Proofreader Geri Gale Publisher Carlie Fairchild [email protected] General Manager Rebecca Cassity [email protected] Senior Sales Manager Joseph Krack [email protected] Associate Publisher Mark Irgang [email protected] Webmistress Katherine Druckman [email protected] Accountant Candy Beauchamp [email protected] Linux Journal is published by, and is a registered trade name of, Belltown Media, Inc. PO Box 980985, Houston, TX 77098 USA Editorial Advisory Panel Brad Abram Baillio • Nick Baronian • Hari Boukis • Steve Case Kalyana Krishna Chadalavada • Brian Conner • Caleb S. Cullen • Keir Davis Michael Eager • Nick Faltys • Dennis Franklin Frey • Alicia Gibb Victor Gregorio • Philip Jacob • Jay Kruizenga • David A. Lane Steve Marquez • Dave McAllister • Carson McDonald • Craig Oda Jeffrey D. Parent • Charnell Pugsley • Thomas Quinlan • Mike Roberts Kristin Shoemaker • Chris D. Stark • Patrick Swartz • James Walker Advertising E-MAIL: [email protected] URL: www.linuxjournal.com/advertising PHONE: +1 713-344-1956 ext. 2 Subscriptions E-MAIL: [email protected] URL: www.linuxjournal.com/subscribe PHONE: +1 818-487-2089 FAX: +1 818-487-4550 TOLL-FREE: 1-888-66-LINUX MAIL: PO Box 16476, North Hollywood, CA 91615-9911 USA Please allow 4–6 weeks for processing address changes and orders PRINTED IN USA LINUX is a registered trademark of Linus Torvalds. The newly updated LINUX JOURNAL ARCHIVE is here! ALL 200 ISSUES! The archive includes all 200 issues of Linux Journal, from the premiere issue in March 1994 through December 2010. In easy-to-use HTML format, the fully searchable, space-saving archive offers immediate access to an essential resource for the Linux enthusiast: Linux Journal. www.LinuxJournalStore.com Current_Issue.tar.gz The Bottle Labeled “Drink Me” SHAWN POWERS et’s face it, the Linux install base is shrinking. limited to autonomous spider robots, I fear our No, of course I don’t mean numbers, I mean readers might try to do just that. If you do, please L the actual size of the devices onto which don’t send me one for review. Linux is installed. Just like with Alice’s trip down the We’ve got other Linux distributions designed rabbit hole, we’re seeing our favorite OS embedded for embedded systems this month, one of which on smaller and smaller hardware. This month, we is CyanogenMod 7.0. I had the opportunity to talk about some of those places and teach you how interview Steve Kondik from the CyanogenMod to make a “Drink Me” bottle for your own projects.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    84 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us