LINUX JOURNAL ™ Put Your Servers in the Cloud with Amazon EC2 and Ubuntu

LINUX JOURNAL ™ Put Your Servers in the Cloud with Amazon EC2 and Ubuntu

Nagios | Axigen | AlienVault | Amazon EC2 | OpenVPN | SSH LINUX JOURNAL ™ Put Your Servers in the Cloud with Amazon EC2 and Ubuntu SYSTEM ADMINISTRATION Build an Installation Toolkit Since 1994: The Original Magazine of the Linux Community SystemMARCH 2010 | ISSUE 191 | www.linuxjournal.com Nagios | Axigen | AlienVault | Amazon EC2 | OpenVPN | JavaScript | SSH | Amazon EC2 OpenVPN JavaScript Nagios | Axigen AlienVault Administration Security Information Management with AlienVault Large-Scale Sysadmin Tips Implement a Nagios-to-SMS Alerting Service PLUS: POINT/COUNTERPOINT: /opt vs. /usr/local MARCH 2010 ISSUE 191 $5.99US $5.99CAN 03 REVIEWED: Axigen Mail Server 0 09281 03102 4 Easy to confi gure. Always adjustable. NEW! FLEXIBLE SERVER Special Offer: 3 Months ® 1&1 DYNAMIC CLOUD SERVER FREE!* A virtual server environment with full root access – adjust the processor core, RAM, and/or hard disk space at any time. Prices will be refl ected accordingly. Basic Configuration: Basic Confi guration: All Confi gurations Include: $ 99 N1 AMD OpteronTM 2352 Core Processor N2000 GB Traffi c per 49. month (up to 4 cores available) NFull Root Access N1 GB RAM NWindows Server 2008 R2 Standard (up to 15 GB RAM available) Available as an add-on, additional fees apply. N100 GB Hard Disk Space NParallels Plesk Panel 9 (up to 800 GB available) N24/7 Toll-Free Support More special offers are available online. For details, visit www.1and1.com * Offer valid for a limited time only. 3 months free offer applies to basic confi guration only. 12 month minimum contract term and set up fee apply. Visit website for ® full promotional offer details. Program and pricing specifi cations and availability subject to change without notice. 1&1 and the 1&1 logo are trademarks of 1&1 Internet AG, all other trademarks are the property of their respective owners. © 2010 1&1 Internet, Inc. All rights reserved. Call 1-877-GO-1AND1 Visit us now www.1and1.com 1AND1_p01 .indd 1 1/14/10 5:39:21 PM lj191_mar2010bu:lj_template_current060704.qxt 1/14/10 11:39 AM Page 2 MARCH 2010 CONTENTS Issue 191 FEATURES SYSTEM ADMINISTRATION ON THE COVER • PUT YOUR SERVERS IN THE CLOUD WITH AMAZON EC2 AND UBUNTU, P. 72 50 54 60 66 • BUILD AN INSTALLATION TOOLKIT, P. 34 TAMING ALIENVAULT: USE SSH USING AN • SECURITY INFORMATION MANAGEMENT WITH THE BEAST THE FUTURE TO CROSS A SMS SERVER ALIENVAULT, P. 54 An introduction to OF SECURITY SUSPECT HOST TO PROVIDE • LARGE-SCALE SYSADMIN TIPS, P. 50 • IMPLEMENT A NAGIOS-TO-SMS ALERTING SERVICE, large-scale system INFORMATION SECURELY A ROBUST P. 6 6 administration. MANAGEMENT Don’t fear the ALERTING • POINT/COUNTERPOINT: /OPT VS. /USR/LOCAL, P. 76 Jason Allen OSSIM: giving Valley of the SERVICE FOR • REVIEWED: AXIGEN MAIL SERVER, P. 46 security manage- Shadow of Death. NAGIOS ment a brain. SSH through it. Cover Photo by Jason Allen with permission Texting: not just for from Fermilab. This photo was taken at Fermi Jeramiah Bowling der.hans teenagers. National Accelerator Laboratory, which is managed by Fermi Research Alliance, LLC under Management Eric Pearce and Operating Contract (DE-AC02-07CH11359) with the Department of Energy. 2 | march 2010 www.linuxjournal.com Your Applications Will Run Faster With Next Generation Microway Solutions! TriCom™X Terafl op GPU Computing s1$2$$2)NlNI"AND(#! &OR7ORKSTATIONSAND(0##LUSTERS s#ONNECT8©4ECHNOLOGY s.6)$)!4ESLA©'05WITH#ORESON/NE#HIP s«SEC,ATENCY #5$!©3$+ s3WITCHLESS3ERIAL#ONSOLE s.6)$)!1UADRO0ROFESSIONAL'RAPHICS s.ODE7ATCH©2EMOTE-ANAGEMENT s!-$&IRE3TREAM©'05 3TREAM3$+WITH"ROOK (EADERSTOFANS VOLTAGES "-#INTERFACEAND TEMPERATURES /N/FFANDRESET SERIALCONSOLESWITCH 23 $AISY CHAINCONNECTORS )NlNI"ANDOR 'IG%CONNECTOR -ELLANOX#ONNECT8 )NlNI"AND(#! NumberSmasher® ,ARGE-EMORY3CALABLE3-03ERVER s 3CALESTO4"OF6IRTUAL ™ 3HARED-EMORY FasTree X s 5PTO#05#ORES s-ELLANOX)NlNI3CALE©)64ECHNOLOGY s 53YSTEM)NCLUDES s1$2$$2)NlNI"AND3WITCHES 1UAD#ORE#05S s-ODULAR$ESIGN s 1$2«SEC"ACKPLANE s'"SEC"ANDWIDTHPER0ORT s13&0)NTERCONNECTS s)NlNI3COPE©2EAL4IME$IAGNOSTICS Call the HPC Experts at Microway to Design Your Next High-Reliability Linux Cluster or Infi niBand Fabric. 508-746-7341 Sign up for Microway’s Newsletter at www.microway.com MARCH 2010 CONTENTS Issue 191 COLUMNS 18 REUVEN M. LERNER’S AT THE FORGE Testing JavaScript 22 DAVE TAYLOR’S WORK THE SHELL Still Parsing the Twitter Stream 24 MICK BAUER’S PARANOID PENGUIN Linux VPNs with OpenVPN, Part II 30 KYLE RANKIN’S HACK AND / Linux Troubleshooting, Part I: High Load 34 DIRK ELMENDORF’S 46 AXIGEN MAIL SERVER ECONOMY SIZE GEEK Installation Toolkit 76 KYLE RANKIN AND BILL CHILDERS’ POINT/COUNTERPOINT /opt vs. /usr/local 80 DOC SEARLS’ EOF 54 ALIENVAULT 66 NAGIOS-TO-SMS A Cloud of One’s Own REVIEW Next Month: SOFTWARE DEVELOPMENT 46 AXIGEN MAIL SERVER Mitch Frazier Next month, we look into the root cause of all bugs: Software Development. So if you’ve got bugs in your Web application, don’t miss our article on the Selenium testing tool. If you’re still in the development INDEPTH stages of your Web app, read our article on jsormdb, an embedded 72 RUNNING UBUNTU 9.10 UNDER JavaScript database, and see if it can simplify your app. And, if your Web AMAZON’S ELASTIC CLOUD app is on the server side (and you need something slim), read our article on Mongoose, an embeddable Web server in C. No servers? No problem, with servers in the cloud! After you’ve digested all of that, don’t miss our review of the Android Bill Childers Linux-based Motorola DROID. Read the review then go get one, but don’t call us, we’ll call you. IN EVERY ISSUE 8 CURRENT_ISSUE.TAR.GZ 10 LETTERS 14 UPFRONT NEW PRODUCTS USPS LINUX JOURNAL (ISSN 1075-3583) (USPS 12854) is published monthly by Belltown Media, Inc., 2211 Norfolk, 40 Ste 514, Houston, TX 77098 USA. Periodicals postage paid at Houston, Texas and at additional mailing offices. 42 NEW PROJECTS Cover price is $5.99 US. Subscrip tion rate is $29.50/year in the United States, $39.50 in Canada and Mexico, $69.50 65 ADVERTISERS INDEX 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 78 MARKETPLACE sent to Bleuchip International, P.O. Box 25542, London, ON N6C 6B2 4 | march 2010 www.linuxjournal.com lj032:lj018.qxd 10/12/2009 5:45 PM Page 1 WHAT’S THE DEAL WITH THESE GUYS? Sometimes you have to ask, “What are they thinking?” Companies need to increase ROI without being taken to the cleaners by manufacturers selling servers featuring entry-level benefits with enterprise-level pricing. Aberdeen gets it. Businesses are in desperate need of Network Attached Storage servers that simply deliver the best bang for the buck. Look at these features and benefits: Dell HP Aberdeen PowerVault StorageWorks AberNAS Hot-Swap Disk Drives Hardware RAID Dual Port Gigabit Ethernet Built-in Replication Microsoft® WSS 2008 Models iSCSI Target Linux Storage System Models System Recovery Disk DAS Storage Expansion VMware® Ready Certified Independent OS Drive Out of Band RAID Management Available w/ 2TB Drives Warranty 3 Years 3 Years 5 Years Who gives you the best bang for the buck? Dell HP Aberdeen PowerVault StorageWorks AberNAS NX300 X1400 163 Intel® Xeon® Processor E5504 2GHz E5504 2GHz E5504 2GHz Memory 3GB 2GB 3GB Drive Interface SATA SATA SATA Installed Capacity 2TB 2TB 2TB Rails Included Included Included Windows Storage Server 2008 $3,419 $4,635 $2,995 Linux Storage System Not Available Not Available $2,995 Prices for the above specific configurations obtained from the respective websites on Oct. 12, 2009. Intel, Intel Logo, Intel Inside, Intel Inside Logo, Pentium, Xeon, and Xeon Inside are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. For terms and conditions, please see www.aberdeeninc.com/abpoly/abterms.htm. lj032 888-297-7409 www.aberdeeninc.com/lj032 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] News Editor Justin Ryan [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 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] 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.

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