LINUX JOURNAL (ISSN 1075-3583) Is Published Monthly by Belltown Media, Inc., PO Box 980985, Houston, TX 77098 USA
Total Page:16
File Type:pdf, Size:1020Kb
™ HOW-TO: INTERROGATE YOUR LINUX SYSTEM’S HARDWARE Since 1994: The Original Magazine of the Linux Community DECEMBER 2015 | ISSUE 260 | www.linuxjournal.com INTERVIEW WITH LinuxQuestions.org Founder JEREMY GARCIA AN INDEPTH LOOK AT + SECURE Can We Save Wireless from CODING Regulators? PRACTICES Build a Better BirdCam WATCH: ISSUE Add Two-Factor OVERVIEW Authentication to SSH V LJ260-December2015.indd 1 11/19/15 11:07 AM Improve Finding Your Business Way: Mapping Processes with Your Network Practical books an Enterprise to Improve Job Scheduler Manageability for the most technical Author: Author: Mike Diehl Bill Childers Sponsor: Sponsor: people on the planet. Skybot InterMapper DIY Combating Commerce Site Infrastructure Sprawl Author: Reuven M. Lerner Author: GEEK GUIDES Sponsor: GeoTrust Bill Childers Sponsor: Puppet Labs Get in the Take Control Fast Lane of Growing with NVMe Redis NoSQL Author: Server Clusters Mike Diehl Author: Sponsor: Reuven M. Lerner Silicon Mechanics Sponsor: IBM & Intel Download books for free with a Linux in Apache Web simple one-time registration. the Time Servers and of Malware SSL Encryption Author: Author: http://geekguide.linuxjournal.com Federico Kereki Reuven M. Lerner Sponsor: Sponsor: GeoTrust Bit9 + Carbon Black LJ260-December2015.indd 2 11/19/15 11:07 AM Improve Finding Your Business Way: Mapping Processes with Your Network Practical books an Enterprise to Improve Job Scheduler Manageability for the most technical Author: Author: Mike Diehl Bill Childers Sponsor: Sponsor: people on the planet. Skybot InterMapper DIY Combating Commerce Site Infrastructure Sprawl Author: Reuven M. Lerner Author: GEEK GUIDES Sponsor: GeoTrust Bill Childers Sponsor: Puppet Labs Get in the Take Control Fast Lane of Growing with NVMe Redis NoSQL Author: Server Clusters Mike Diehl Author: Sponsor: Reuven M. Lerner Silicon Mechanics Sponsor: IBM & Intel Download books for free with a Linux in Apache Web simple one-time registration. the Time Servers and of Malware SSL Encryption Author: Author: http://geekguide.linuxjournal.com Federico Kereki Reuven M. Lerner Sponsor: Sponsor: GeoTrust Bit9 + Carbon Black LJ260-December2015.indd 3 11/19/15 11:07 AM DECEMBER 2015 CONTENTS ISSUE 260 FEATURES 54 What’s in the Box? 78 LinuxQuestions.org: Interrogate Your Linux Not Your Average Machine’s Hardware Linux Forum An in-depth look at several tools Need to raise your Linux IQ? you can use for hardware detection. Visit LQ (LinuxQuestions.org). Federico Kereki Brian Conner 4 / DECEMBER 2015 / WWW.LINUXJOURNAL.COM LJ260-December2015.indd 4 11/19/15 11:07 AM COLUMNS 24 Dave Taylor’s Work the Shell Analyzing Comma-Separated Values (CSV) Files 30 Kyle Rankin’s Hack and / Two Factors Are Better Than One 16 34 Shawn Powers’ The Open-Source Classroom BirdCam, Round Three 42 Susan Sons’ Under the Sink Chain of Custody 90 Doc Searls’ EOF Can We Save Wireless from Regulators? IN EVERY ISSUE 34 8 Current_Issue.tar.gz 10 UPFRONT 22 Editors’ Choice 50 New Products 95 Advertisers Index ON THE COVER 0U[LY]PL^^P[O3PU\_8\LZ[PVUZVYN-V\UKLY1LYLT`.HYJPHW /V^;V!0U[LYYVNH[L@V\Y3PU\_:`Z[LT»Z/HYK^HYLW (U0UKLW[O3VVRH[:LJ\YL*VKPUN7YHJ[PJLZW (KK;^V-HJ[VY(\[OLU[PJH[PVU[V::/W *HU>L:H]L>PYLSLZZMYVT9LN\SH[VYZ&W )\PSKH)L[[LY)PYK*HTW 54 LINUX JOURNAL (ISSN 1075-3583) is published monthly by Belltown Media, Inc., PO Box 980985, Houston, TX 77098 USA. Subscription rate is $29.50/year. Subscriptions start with the next issue. WWW.LINUXJOURNAL.COM / DECEMBER 2015 / 5 LJ260-December2015.indd 5 11/19/15 2:05 PM 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 lj@greenfly.net Virtual Editor Bill Childers [email protected] Contributing Editors )BRAHIM (ADDAD s 2OBERT ,OVE s :ACK "ROWN s $AVE 0HILLIPS s -ARCO &IORETTI s ,UDOVIC -ARCOTTE 0AUL "ARRY s 0AUL -C+ENNEY s $AVE 4AYLOR s $IRK %LMENDORF s *USTIN 2YAN s !DAM -ONSEN President Carlie Fairchild [email protected] Publisher Mark Irgang [email protected] Associate Publisher John Grogan [email protected] Director of Digital Experience 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 Nick Baronian Kalyana Krishna Chadalavada "RIAN #ONNER s +EIR $AVIS -ICHAEL %AGER s 6ICTOR 'REGORIO $AVID ! ,ANE s 3TEVE -ARQUEZ $AVE -C!LLISTER s 4HOMAS 1UINLAN #HRIS $ 3TARK s 0ATRICK 3WARTZ Advertising % -!),: [email protected] URL: www.linuxjournal.com/advertising 0(/.% EXT Subscriptions % -!),: [email protected] URL: www.linuxjournal.com/subscribe MAIL: PO Box 980985, Houston, TX 77098 USA LINUX is a registered trademark of Linus Torvalds. LJ260-December2015.indd 6 11/19/15 11:07 AM Where every interaction matters. break down your innovation barriers power your business to its full potential When you’re presented with new opportunities, you want to focus on turning them into successes, not whether your IT solution can support them. Peer 1 Hosting powers your business with our wholly owned FastFiber NetworkTM, solutions that are secure, scalable, and customized for your business. Unsurpassed performance and reliability help build your business foundation to be rock-solid, ready for high growth, and deliver the fast user experience your customers expect. Want more on cloud? Call: 844.855.6655 | go.peer1.com/linux | Vew Cloud Webinar: Public and Private Cloud | Managed Hosting | Dedicated Hosting | Colocation LJ260-December2015.indd 7 11/19/15 11:07 AM Current_Issue.tar.gz You’ve Got SHAWN POWERS Questions? We’ve Got Jeremy Garcia! nyone who’s active in the to know the history of LinuxQuestions, Linux community knows that find out more about the man behind A while we love open source it, or even what the future holds, you and we swear by the kernel, the real should check out the interview. Jeremy power of Linux is the people making is as cool as you’d expect him to be! up the community. Whether it’s folks We also have our regular gang of using Linux in a server room, people columnists, starting with Dave Taylor, contributing code or documentation who teaches us how to do his taxes. to a project in their spare time, or More specifically, he shows us how to even geeks putting Linux stickers on analyze CSV files from the command their laptops, Linux is about people. line. Proprietary file formats are This month, Brian Conner has a great frustrating to work with, but thanks interview with Jeremy Garcia, the to the simplicity and standard-ness founder of LinuxQuestions.org. If of CSV, Dave proves it can be an there’s a better example of a healthy awesome format for folks who like and interactive Linux community, you’ll their calculating to be done in a script. be hard pressed to find it. If you want Kyle Rankin delves back into the world of green text on a black V VIDEO: background (I’m assuming there, but Shawn Powers runs I have no doubt I’m correct) when he through the latest issue. demonstrates how to set up two-factor 8 / DECEMBER 2015 / WWW.LINUXJOURNAL.COM LJ260-December2015.indd 8 11/19/15 11:08 AM CURRENT_ISSUE.TAR.GZ authentication for SSH connections. developers and/or package maintainers In the past, he’s described how to need to be diligent in order to avoid set up SSH keys with passphrases to compromising security when offering increase security, but it’s also possible custom applications. If that sounds to create true two-factor auth using confusing, be sure to read the first Google Authentication. If you want installment of Susan’s, Under the Sink to make your server more secure than column. Welcome to the family, Susan! passwords alone can manage, you Federico Kereki is back this month won’t want to miss his column. as well, this time showing how to I actually head back to my backyard pry as much information out of your this month and discuss some of the Linux system as possible. When it upgrades and changes to BirdCam. You comes to hardware, Linux supports might remember my articles outlining just about everything under the sun. how I created a pseudo-streaming Thanks to a handful of tools, you can Webcam experience pointing at the learn about the specific hardware on bird feeders outside my office window. your system and use that information Since we recently moved, I took the to troubleshoot those rare occasions opportunity to make some changes, when things don’t work as planned. and they were interesting enough that This is a fun issue of Linux Journal, I thought I might share with the class. with a big focus on who we are as Whether you have a BirdCam, BabyCam a community. We include all the or just use the code to improve your bits and pieces you expect from an own weekend project, this column issue of Linux Journal, and if you’re should teach some new tricks. interested in being an active part of We also introduce a new columnist the Linux community, you couldn’t this month, and she’s already a perfect pick a better issue to read. We hope fit in our Linux Journal family. You you enjoy the December 2015 issue MAY REMEMBER HER 'UEST %/& COLUMN of Linux Journal as much as we’ve from a year or so ago called “Girls enjoyed putting it together!Q and Software”.