LINUX JOURNAL SYSTEM ADMINISTRATION Jquery | Squid | PXE | Freeboo | Munin | Solaris-Zones | Irrlicht APRIL 2009 ISSUE 180
Total Page:16
File Type:pdf, Size:1020Kb
jQuery Squid PXE FreeBoo Munin Solaris-Zones Irrlicht LINUX JOURNAL Run Linux and Solaris ™ on One Machine SYSTEM ADMINISTRATION Build an Unattended Network-Based OS Installer with PXE Use FreeBoo to Restore and Boot Since 1994: The Original Magazine of the Linux Community APRIL 2009 | ISSUE 180 Build a Secure Squid Web Proxy jQuery | Squid | PXE | FreeBoo | Munin Solaris-Zones Irrlicht jQuery | Squid PXE FreeBoo SYSTEM ADMINISTRATION Program 3-D Graphics with Irrlicht Monitor Anything with Munin How to Bring Back a Master Boot Record APRIL 2009 ISSUE 180 www.linuxjournal.com $5.99US $5.99CAN 04 PLUS POINT/COUNTERPOINT: Mutt vs. Thunderbird 0 09281 03102 4 APRIL 2009 CONTENTS Issue 180 SYSTEM ADMINISTRATION FEATURES 50 PXE: NOT JUST FOR SERVER NETWORKS ANYMORE! Build a Windows install server...using Linux! Bill Childers 50 56 FREEBOO: AN OPEN ARCHITECTURE FOR NETWORK DUAL BOOT Open-source network restore and boot. Cristina Barrado and Sebastian Galiano 62 MUNIN—THE RAVEN REPORTS Monitor anything, not just system parameters. Patricia Jung 56 ON THE COVER • Run Linux and Solaris on One Machine, p. 68 • Build an Unattended Network-Based OS Installer with PXE, p. 50 • Use FreeBoo to Restore and Boot, p. 56 • Build a Secure Squid Web Proxy, p. 36 • Program 3-D Graphics with Irrlicht, p. 73 • Monitor Anything with Munin, p. 62 • How to Bring Back a Master Boot Record, p. 40 • Point/Counterpoint: Mutt vs. Thunderbird, p. 77 62 2 | april 2009 www.linuxjournal.com ZT Systems delivers something different: a unique of world-class server performance and cost advantage joined with extensive flexibility in delivery and support From the small office to the mega-datacenter, ZT Systems provides dependable, energy efficient server and client solutions that maximize productivity and optimize your IT budget. An established manufacturer celebrating our 15th anniversary, ZT combines individualized attention to your requirements with the experience and scalability you demand. All ZT Systems are assembled and serviced in the USA. Choose ZT Systems and get: &XVWRP&RQILJXUDWLRQV 3URIHVVLRQDO*UDGH4XDOLW\ 3HUVRQDOL]HG$FFRXQW6HUYLFH 6XSHULRU9DOXH Systems Systems ZT Reliant SC1256i-40 ZT Systems 1105Ri-82 ZT Systems 1213Ri-84 ZT Systems 4202Ci-84 Small Business Server 1U Rack Server 1U Rack Server 4U/Tower Rack Server Entry-level Single Entry-level file/web/email Data Center / Network Convertible Tower / Rack Socket Solution Server Solution Infrastructure and Cluster SMB Solution Solution $ $ $ $ Starting at Only 749 Starting at Only 949 Starting at Only 1249 Starting at Only 1649 =76&L =75L& =75L& =7&L& ,QWHO&RUH4XDG ,QWHO;HRQ3URFHVVRU; 6LQJOH,QWHO;HRQ3URFHVVRU 6LQJOH,QWHO;HRQ3URFHVVRU 3URFHVVRU4 ( GXDOFDSDEOH ; GXDOFDSDEOH *%''50+](&& *%''50+] 8QEXIIHUHG6'5$0 [*% *%''5(&&5(* *%''5(&&5(*6'5$0 [*%'XDO5DQN 6'5$0 [*% *%6$7$(QWHUSULVH 6'5$0 [*% 7%6$7$,,0% +DUG'ULYHV 0D[ *%6$7$,,0% 7%6$7$,,0%+RWVZDS +DUG'ULYHV 0D[ +RWVZDS+DUG'ULYHV 0D[ ;'9'520'ULYH +RWVZDS+DUG'ULYHV 0D[ ;'9'520'ULYH 6OLP'9'520 2SWLRQDO ['9'520 0% 5HG+DW(QWHUSULVH )ORSS\'ULYH 5HG+DW(QWHUSULVH 7ULDO9HUVLRQ 5HG+DW(QWHUSULVH 5HG+DW(QWHUSULVH 7ULDO9HUVLRQ <HDU/LPLWHG:DUUDQW\DQG 7ULDO9HUVLRQ 7ULDO9HUVLRQ <HDU/LPLWHG:DUUDQW\DQG [7HOHSKRQHVXSSRUW <HDU/LPLWHG:DUUDQW\DQG <HDU/LPLWHG:DUUDQW\DQG [7HOHSKRQHVXSSRUW [7HOHSKRQHVXSSRUW [7HOHSKRQHVXSSRUW Scalable Custom Server Solutions - Contact Us to Learn More (866) 984-7687 [email protected] ,QWHOWKH,QWHOORJR;HRQ,QWHO&RUH;HRQ,QVLGHDQG&RUH,QVLGHDUHWUDGHPDUNVRUUHJLVWHUHGWUDGHPDUNVRI,QWHO&RUSRUDWLRQLQWKH86DQGRWKHUFRXQWULHV APRIL 2009 CONTENTS Issue 180 COLUMNS INDEPTH 10 SHAWN POWERS’ 68 SOLARIS-ZONES: LINUX IT CURRENT_ISSUE.TAR.GZ MARBLES GET A NEW BAG Fixing Starships, Transporters and Run Linux and Solaris on the Even Computers same machine. Victor Burns 22 REUVEN M. LERNER’S AT THE FORGE 73 3-D GRAPHICS Writing jQuery Plugins PROGRAMMING WITH IRRLICHT 26 MARCEL GAGNÉ’S 3-D graphics programming—not 46 NEW PROJECTS: EDITRA COOKING WITH LINUX just for geniuses anymore! Backing Up to the Clouds Mike Diehl Next Month COOL PROJECTS Here at LJ, we hardly even get excited anymore when somebody mentions a new project that uses Linux, but that’s not the case with these Cool Projects. We’ve got 32 DAVE TAYLOR’S Linux running an un-manned WORK THE SHELL submarine and rocket, and if that doesn’t get your BP up, you may More Fun with Word and IN EVERY ISSUE already be dead. Letter Counts 10 FROM THE EDITOR If it’s all too much for you, don’t MICK BAUER’S 12 LETTERS 36 worry; we’ve got articles for the PARANOID PENGUIN 16 UPFRONT weak heart types also—articles on 44 NEW PRODUCTS Building a Secure Squid Web Proxy, setting up home control and Part I 46 NEW PROJECTS home surveillance systems. Plus, 65 ADVERTISERS INDEX one on converting your old 8mm 40 KYLE RANKIN’S movies so that you can sit back HACK AND / and reminisce about the days When Disaster Strikes: Scratching when you weren’t almost dead. the Master Boot Record If you still have doubts about the 77 KYLE RANKIN AND ultimate success of Linux and open BILL CHILDER’S 44 source, don’t miss our upcoming POINT/COUNTERPOINT interview with Neuros Technology Mutt vs. Thunderbird CEO and founder Joe Born. Find out how open source concepts 80 DOC SEARLS’ transformed his company. If his EOF statements don’t convince you, Exchanging Exchange you definitely are already dead USPS LINUX JOURNAL (ISSN 1075-3583) (USPS 12854) is published monthly by Belltown Media, Inc., 2211 Norfolk, Ste 514, Houston, TX 77098 USA. Periodicals postage paid at Houston, Texas and at additional mail- ing 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 Bleuchip International, P.O. Box 25542, London, ON N6C 6B2 4 | april 2009 www.linuxjournal.com Executive Editor Jill Franklin [email protected] Senior Editor Doc Searls [email protected] Associate Editor Shawn Powers [email protected] Associate Editor Mitch Frazier [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] Hack Editor Kyle Rankin [email protected] Contributing Editors David A. Bandel • Ibrahim Haddad • Robert Love • Zack Brown • Dave Phillips • Marco Fioretti Ludovic Marcotte • Paul Barry • Paul McKenney • Dave Taylor • Dirk Elmendorf Proofreader Geri Gale Publisher Carlie Fairchild [email protected] General Manager Rebecca Cassity [email protected] Sales Manager Joseph Krack [email protected] Sales and Marketing Coordinator Tracy Manford [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 Reader Advisory Panel Brad Abram Baillio • Nick Baronian • Hari Boukis • Caleb S. Cullen • Steve Case Kalyana Krishna Chadalavada • Keir Davis • Adam M. Dutko • Michael Eager • Nick Faltys • Ken Firestone Dennis Franklin Frey • Victor Gregorio • Kristian Erik • Hermansen • Philip Jacob • Jay Kruizenga David A. Lane • Steve Marquez • Dave McAllister • Craig Oda • Rob Orsini • Jeffrey D. Parent Wayne D. Powel • Shawn Powers • Mike Roberts • Draciron Smith • Chris D. Stark • Patrick Swartz 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 Bruce Perens Bdale Garbee, Linux CTO, HP Danese Cooper, Open Source Diva, Intel Corporation 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. ® Now EtherDrive Supportinge® war VM ESX 3.5 The AFFORDABLE Network Storage Fibre Channel speeds at Ethernet prices! Is your budget shrinking while your network storage EtherDrive® SAN solutions use the open ATA-over-Ethernet needs are growing? Are you suffering from “sticker (AoE) lightweight network storage protocol. Simple. shock” induced by expensive Fibre Channel and iSCSI Easy to understand. Easy to use. AoE uses Ethernet storage area network solutions? EtherDrive® SAN to transport ATA disk commands without the burden of solutions offer Fibre Channel speeds at Ethernet prices! TCP/IP overhead, thereby enabling disk drives to become Starting at just $1,995 for a 4TB system, EtherDrive® AoE devices connected directly to an Ethernet network. is the affordable storage area network solution. With An AoE device can be a single physical disk or a logical sustained access speeds from 200MBytes/sec to over device made up of multiple disks. An EtherDrive® SAN 600MBytes/sec, EtherDrive® SAN solutions are fast. appliance is an AoE target device. From a 4TB single storage appliance to multi-PetaByte system by simply adding more storage appliances, EtherDrive® SAN solutions are scalable. From a Finally, an affordable, fast storage area network solution single storage appliance to a network of sophisticated for your VMware® ESX 3.5 installation. The EtherDrive® virtualized storage LUNs, EtherDrive® SAN solutions VMware ESX Host Bus Adapter empowers ESX with embrace virtualization.