U|Xahbeigy03102ozxv!
Total Page:16
File Type:pdf, Size:1020Kb
U|xaHBEIGy03102ozXv!:, LINUX JOURNAL EMBEDDED Prototype | User-Mode Linux | NSLU2 | Pixel | Ajax Timelines | Backup | MySQL | Qtopia | Nano-X | Pico E12 JANUARY 2007 ISSUE 153 Today, Carlo restored a failed router in Miami, rebooted a Linux server in Tokyo, and remembered someone’s very special day. With Avocent centralized management solutions, the world can finally revolve around you. Avocent puts secure access and control right at your fingertips – from multi-platform servers to network routers, your local data center to branch offices. Our “agentless” out-of-band solution manages your physical and virtual connections (KVM, serial, integrated power, embedded service processors, IPMI and SoL) from a single console. You have guaranteed access to your critical hardware even when in-band methods fail. Let others roll crash carts to troubleshoot – with Avocent, trouble becomes a thing of the past, so you can focus on the present. Visit www.avocent.com/special to download Data Center Control: Guidelines to Achieve Centralized Management white paper. Avocent, the Avocent logo and The Power of Being There are registered trademarks of Avocent Corporation. All other trademarks or company names are trademarks or registered trademarks of their respective companies. Copyright © 2006 Avocent Corporation. JANUARY 2007 CONTENTS Issue 153 FEATURES 52 SMP AND EMBEDDED REAL-TIME 66 HOW TO PORT LINUX WHEN THE What happens when multicore CPUs penetrate embedded systems? HARDWARE TURNS SOFT Paul McKenney Soul of the Pico machines. David Lynch 58 CHOOSING A GUI LIBRARY FOR YOUR EMBEDDED DEVICE ON THE COVER GUI design with QTopia and Nano-X. • LJ Interviews Martin Mickos of MySQL, p. 72 Martin Hansen • Real-Time Multiprocessing and Embedded Systems, p. 52 • New Tech Tips Column with Gnull and Voyd, p. 18 62 THE HAL PROJECT • A Linux Laptop Where Everything Works?, p. 48 It’s hacking, but is it art? • Linux on Pico E12, p. 66 Pascal Charest, Michael Lenczner and Guillaume Marceau • Qtopia Vs. Nano-X, p. 58 COVER PHOTO COURTESY R CUBED TECHNOLOGIES 2 | january 2007 www.linuxjournal.com The Industry Leader for Server Appliances Custom server appliances or off the shelf reference platforms, built with your image and software starting under $1,000. From design to deployment, we handle it all. Delivering an appliance requires the right partner. MBX Systems need to touch the hardware. Engineering. Design. Deployment. is the right partner. We understand that by putting your name on We handle it all, so you can focus on what’s important to you. our hardware, you’re puttingyour reputation in our hands. We Your software. Your sales. Your success. take that seriously. We provide the services you need to support your customers. Better than the competition. You never even Visit us at www.mbx.com or call 1-800-681-0016 today. www.mbx.com 1-800-681-0016 © 2006 MBX Systems, 1101 Brown Street Wauconda, IL. 60084. All trademarks used herein are the property of their respective trademark holders. Industry Leader V2.indd 1 6/6/2006 4:58:26 PM JANUARY 2007 CONTENTS Issue 153 COLUMNS REVIEW 18 TECH TIPS WITH 48 HAVE LAPTOP WILL GNULL AND VOYD TRAVEL—THE LS1250 LAPTOP FROM R CUBED TECHNOLOGIES 22 REUVEN M. LERNER’S James Gray AT THE FORGE Prototype INDEPTH 30 MARCEL GAGNÉ’S 72 AN INTERVIEW WITH COOKING WITH LINUX MARTEN MICKOS It’s about Time! Marten Mickos chats about the success of MySQL. Glyn Moody 76 CREATING A LULU BOOK COVER WITH PIXEL Pixel makes a LyX book pixel perfect. 72 MARTEN MICKOS OF MYSQL Donald Emmack 34 DAVE TAYLOR’S 80 AN AUTOMATED RELIABLE WORK THE SHELL BACKUP SOLUTION How Do People Find You on Google? Next Month A super backup solution on the cheap. Andrew De Ponte 36 MICK BAUER’S PARANOID PENGUIN MIGRATION Running Network Services under Next month we give you tips, User-Mode Linux, Part III instructions and advice on migrating from Windows to Linux and on how 40 JON “MADDOG” HALL’S to make it easier for both operating BEACHHEAD systems to coexist. We’ll show you how to manage and use NTFS Ode to Joy partitions from within Linux, how to get to your Linux filesystems from 42 DOC SEARLS’ within Windows and how to get off LINUX FOR SUITS the hardware upgrade merry-go- Embedded at the Edge 84 AJAX TIMELINES AND THE round with Win4Lin Virtual Server. SEMANTIC WEB Of course, we have much more. Our 96 NICHOLAS PETRELEY’S Should we create a timeline on how we interview with Christof Wittig and /VAR/OPINION implement Timeline? Jerry Fiddler about db4o paints a The GPLv2 vs. GPLv3 Debate Ben Martin picture of a unique blend of company and open source. We’ll show you how STLdb4 makes C++ program- 94 CONTROLLING SPAM WITH ming with the Berkeley DB a IN EVERY ISSUE SPAMASSASSIN breeze and how to use libferris Assassinate spam with extreme prejudice. to create virtual documents. 12 LETTERS Colin McGregor 16 UPFRONT 54 NEW PRODUCTS USPS LINUX JOURNAL (ISSN 1075-3583) is published monthly by SSC Media Corp., 1752 NW Market Street #200, Seattle, WA 98107. 81 ADVERTISERS INDEX Periodicals postage paid at Seattle, Washington and at additional mailing offices. Cover price is $5 US. Subscription rate is $25/year in the United States, $32 in Canada and Mexico, $62 elsewhere. POSTMASTER: Please send address changes to Linux Journal, PO Box 980985, Houston, TX 77098. Subscriptions start with the next issue. 4 | january 2007 www.linuxjournal.com Gemini 2U – Ultra Dense Series Up to 40% Less Power Consumption Up to 40% Less Heat 2 Systems in One Two fully independent systems in a 2U Built on open standards, the Gemini 2U elegantly accommodates two discrete motherboards in a 25" chassis uniquely designed for easy Ability to run two discrete operating systems in one box access from the rear. Up to 8 CPU cores (forward compatible to 16) Gemini 2U represents the realization of intoxicating power and superior environmental specifications, with up to 40% less power consumption, Up to 12 hot-swappable SATA, SCSI, or SAS hard drives 40% less heat and 30% less noise. Remarkably, it all fits nicely into any RAID 0, 1, 5, 6, 10, 50 available on both systems standard rack. Front to back, Gemini 2U is both powerful and efficient. Opteron™ or Xeon™ multi-core processors At Open Source Systems we understand you need practical, customizable, and affordable solutions that are easy to manage and maintain. Up to 64GB memory per motherboard For more information and to request your evaluation unit today, visit us One available PCI-X or PCI-E slot per motherboard at www.OpenSourceSystems.com, or call direct at 866.664.7867. Patent Pending ©2006 Open Source Systems, Inc. All Rights Reserved. AMD and AMD Opteron are trademarks or registered trademarks of Advanced Micro Devices, Inc. Other company products, names, and logos may be trademarks or service marks of others. Editor in Chief Nick Petreley, [email protected] Executive Editor Jill Franklin [email protected] Senior Editor Doc Searls [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] Chef Français Marcel Gagné [email protected] Security Editor Mick Bauer [email protected] Contributing Editors David A. Bandel • Greg Kroah-Hartman • Ibrahim Haddad • Robert Love • Zack Brown • Dave Phillips • Marco Fioretti • Ludovic Marcotte • Paul Barry • Paul McKenney Proofreader Geri Gale VP of Sales and Marketing Carlie Fairchild [email protected] Marketing Manager Rebecca Cassity [email protected] International Market Analyst James Gray [email protected] Sales Coordinator Lana Newlander [email protected] Regional Advertising Sales NORTHERN USA: Joseph Krack, +1-713-344-1956 x118 SOUTHERN USA: Laura Whiteman, +1-713-344-1956 x119 Advertising Inquiries [email protected] Publisher Phil Hughes [email protected] Accountant Candy Beauchamp [email protected] Linux Journal is published by, and is a registered trade name of, SSC Media Corp. PO Box 980985, Houston, TX 77098 USA Editorial Advisory Board Daniel Frye, Director, IBM Linux Technology Center Jon “maddog” Hall, President, Linux International Lawrence Lessig, Professor of Law, Stanford University Ransom Love, Director of Strategic Relationships, Family and Church History Department, Church of Jesus Christ of Latter-day Saints Sam Ockman, CEO, Penguin Computing Bruce Perens Bdale Garbee, Linux CTO, HP Danese Cooper, Open Source Diva, Intel Corporation Subscriptions E-MAIL: [email protected] URL: www.linuxjournal.com PHONE: +1 713-589-3503 FAX: +1 713-589-2677 TOLL-FREE: 1-888-66-LINUX MAIL: PO Box 980985, Houston, TX 77098 USA Please allow 4–6 weeks for processing address changes and orders PRINTED IN USA USPS LINUX JOURNAL (ISSN 1075-3583) is published monthly by SSC Media Corp., 1752 NW Market Street #200, Seattle, WA 98107. Periodicals postage paid at Seattle, Washington and at additional mailing offices. Cover price is $5 US. Subscription rate is $25/year in the United States, $32 in Canada and Mexico, $62 elsewhere. POSTMASTER: Please send address changes to Linux Journal, PO Box 980985, Houston, TX 77098. Subscriptions start with the next issue. LINUX is a registered trademark of Linus Torvalds. letters I Love Your Opinions set in the BIOS. I haven’t noticed any race conditions Nick, I love [your columns] and all your articles. Up with any given kernel, but one kernel will make the until you came along, I thought I was the only Linux RAID card /dev/sda, and another kernel will make it jinx. I’ve had very few easy install/upgrades of Linux. /dev/sdb. I discovered how to control which it sees first My latest, Kubuntu5, installs fine, although with Ubuntu by changing a script in the initrd image.