Linux Journal | June 2017 | Issue
Total Page:16
File Type:pdf, Size:1020Kb
™ Update Your Ticketing System from the Command Line Cool Project: Set Up YouTube Live Streams Since 1994: The Original Magazine of the Linux Community JUNE 2017 | ISSUE 278 Test Security with an http://www.linuxjournal.com Internal EOF: Open Source Comes Phishing of Age Campaign + Build Your WATCH: ISSUE Own Cluster: OVERVIEW Installation V LJ278-June2017.indd 1 5/17/17 12:28 PM NEW! Harnessing NEW! DevOps for the Power the Rest of Us of the Cloud Author: Practical books with SUSE John S. Tonello Author: Sponsor: Petros Koutoupis Puppet for the most technical Sponsor: people on the planet. SUSE An Memory: Past, Architect’s Present and Guide: Future—and Linux for the Tools to GEEK GUIDES Enterprise IT Optimize It Author: Author: Sol Lederman Petros Koutoupis Sponsor: Sponsor: SUSE Intel Cloud-Scale Why Innovative Automation App Developers with Puppet Love High-Speed Author: OSDBMS John S. Tonello Author: Sponsor: Ted Schmidt Puppet Sponsor: IBM Download books for free with a Tame the SUSE simple one-time registration. Docker Life Enterprise Cycle with Storage 4 SUSE http://geekguide.linuxjournal.com Author: Author: Ted Schmidt John S. Tonello Sponsor: Sponsor: SUSE SUSE LJ278-June2017.indd 2 5/17/17 12:28 PM NEW! Harnessing NEW! DevOps for the Power the Rest of Us of the Cloud Author: Practical books with SUSE John S. Tonello Author: Sponsor: Petros Koutoupis Puppet for the most technical Sponsor: people on the planet. SUSE An Memory: Past, Architect’s Present and Guide: Future—and Linux for the Tools to GEEK GUIDES Enterprise IT Optimize It Author: Author: Sol Lederman Petros Koutoupis Sponsor: Sponsor: SUSE Intel Cloud-Scale Why Innovative Automation App Developers with Puppet Love High-Speed Author: OSDBMS John S. Tonello Author: Sponsor: Ted Schmidt Puppet Sponsor: IBM Download books for free with a Tame the SUSE simple one-time registration. Docker Life Enterprise Cycle with Storage 4 SUSE http://geekguide.linuxjournal.com Author: Author: Ted Schmidt John S. Tonello Sponsor: Sponsor: SUSE SUSE LJ278-June2017.indd 3 5/17/17 12:28 PM JUNE 2017 CONTENTS ISSUE 278 FEATURES 74 BYOC: Build 96 Testing the Your Own Waters: How Cluster, Part II— to Perform Installation Internal Phishing Install Linux on an arbitrarily Campaigns large number for computers Are your users the weakest with a push of a button. link in your anti-phishing Nathan R. Vance, strategies? Try Gophish Michael L. Poublon and !nd out. and William F. Polik Jeramiah Bowling Cover Image: © Can Stock Photo / bloomua 4 | June 2017 | http://www.linuxjournal.com LJ278-June2017.indd 4 5/17/17 12:28 PM CONTENTS COLUMNS 30 Reuven M. Lerner’s At the Forge Learning Data Science 36 Dave Taylor’s Work the Shell Analyzing Song Lyrics 20 42 Kyle Rankin’s Hack and / Update Tickets from the Command Line 52 Shawn Powers’ The Open-Source Classroom 52 Live Stream Your Pets with Linux and YouTube! 116 Doc Searls’ EOF Open Source Comes of Age IN EVERY ISSUE 8 Current_Issue.tar.gz 96 10 UPFRONT ON THE COVER 28 Editors’ Choice UÊ/iÃÌÊ-iVÕÀÌÞÊÜÌ Ê>ÊÌiÀ>Ê* à }Ê >«>}]Ê«°ÊÈ UÊ Õ`Ê9ÕÀÊ"ÜÊ ÕÃÌiÀ\ÊÃÌ>>Ì]Ê«°ÊÇ{ UÊ1«`>ÌiÊ9ÕÀÊ/ViÌ}Ê-ÞÃÌiÊvÀÊÌ iÊ >`Êi]Ê«°Ê{Ó 66 New Products UÊ Ê*ÀiVÌ\Ê-iÌÊ1«Ê9Õ/ÕLiÊÛiÊ-ÌÀi>Ã]Ê«°ÊxÓ 121 Advertisers Index UÊ "\Ê"«iÊ-ÕÀViÊ iÃÊvÊ}i]Ê«°Ê££È 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. 5 | June 2017 | http://www.linuxjournal.com LJ278-June2017.indd 5 5/17/17 12:28 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. LJ278-June2017.indd 6 5/17/17 12:29 PM Manage data expansion You with SUSE Enterprise cannot Storage. SUSE Enterprise Storage, the leading open source storage solution, is highly keep up scalable and resilient, enabling high-end functionality at a fraction of with data the cost. explosion. suse.com/storage Data LJ278-June2017.indd 7 5/17/17 12:29 PM Current_Issue.tar.gz The Care and Maintenance SHAWN POWERS of Penguins Shawn Powers is the Associate Editor for Linux Journal. He’s LOVE CLASSIC 6OLKSWAGEN "EETLES )N FACT ) OWN also the Gadget Guy more than one. (It only makes sense to have one for LinuxJournal.com, and he has an I convertible and one sedan!) One of the best things interesting collection ABOUT OWNING CLASSIC 6OLKSWAGENS IS THAT FIXING AND of vintage Garfield maintaining them is really simple. Kyle Rankin would coffee mugs. Don’t let his silly hairdo AGREE WITH ME ON THAT BECAUSE HES ALSO A 6OLKSWAGEN fool you, he’s a FAN ALTHOUGH HIS 67 OF CHOICE IS A 'HIA .EVERTHELESS pretty ordinary guy WHEN IT COMES TO MAINTENANCE THOSE OLD REAR ENGINE and can be reached via email at vehicles are simple and fun. Linux is a bit like that. [email protected]. It’s not the sort of OS everyone uses; there are many Or, swing by the friendly people online willing to help you fix things, #linuxjournal IRC channel on and everyone who sees you use it will be jealous! Freenode.net. This month, Reuven M. Lerner starts things off by talking about Data Science. Technology and computers have become such an integral part of our V lives, that data itself has become invaluable. Reuven explains what Data Science is all about, how it affects our world and provides many resources to help you VIDEO: Shawn learn more about it. Powers runs Dave Taylor follows up with a nifty article on through extracting information about song lyrics using the latest issue. scripts. In true Dave Taylor fashion, he teaches how to pull data from an online source and analyze the 8 | June 2017 | http://www.linuxjournal.com LJ278-June2017.indd 8 5/17/17 12:29 PM Current_Issue.tar.gz DATA WHILE HAVING FUN ALONG THE WAY %VEN IF YOURE NOT INTERESTED IN STATISTICAL INFORMATION ABOUT S ARTISTS LYRICS YOULL WANT TO READ HIS column this issue for the scripting tricks. Kyle Rankin talks about the Jira ticketing system again this month, but rather than learning about the system itself, Kyle describes how to interact with the system via the command line. A GUI is nice, but if you’re trying to update tickets while you’re knee deep in terminal windows, it’s nice to make a change without opening a web browser. I go the opposite way in my column this month and explain how I stream my bird feeder cam to YouTube in order to provide a live stream that doesn’t stress my bandwidth. I’ve talked about most of the tools separately, but in this article, I explain how to automate the live stream. 7E PICK UP WHERE WE LEFT OFF LAST MONTH WITH .ATHAN 2 6ANCE -ICHAEL , 0OUBLON AND 7ILLIAM & 0OLIK TEACHING HOW TO CREATE your own computer cluster. Their last article covered setting up the hardware, and this month, they describe how to automate the installation process for individual nodes. Making the process fully AUTOMATED REQUIRES A BIT OF WORK UP FRONT BUT THE AUTHORS WALK through the process here step by step. Last but not least, Jeremiah Bowling has a fascinating article on phishing your own users. No, he doesn’t teach you how to steal your USERS CREDIT CARD NUMBERS BUT RATHER HE EXPLAINS HOW TO USE THE OPEN SOURCE 'OPHISH PACKAGE TO TEST YOUR USERS /BVIOUSLY THE PROCESS must be coupled with education in order for it to work, but coming up with phishing scenarios that are both safe and effective for testing is hard! I didn’t know such a thing existed, but sure enough, it does, and Jeremiah explains how to use it. 7E ALSO HAVE NEW PRODUCT ANNOUNCEMENTS TECH TIPS COOL APPS and all the usual things you’ve come to expect in every issue of Linux Journal. So whether you’re a fan of maintaining your Linux machines or just want to try the latest and greatest toys, we’ve got you covered. This is a fun issue, and we hope you enjoy it as much as we enjoyed putting it together!Q RETURN TO CONTENTS 9 | June 2017 | http://www.linuxjournal.com LJ278-June2017.indd 9 5/17/17 12:29 PM UPFRONT UPFRONT NEWS + FUN PREVIOUS NEXT V V Current_Issue.tar.gz Editors’ Choice diff -u 7 >̽ÃÊ iÜÊÊÊ iÀiÊ iÛi«iÌ Some PCI devices include their own RAM, and Logan Gunthorpe WANTED TO MAKE IT AVAILABLE TO THE SYSTEM AS GENERAL PURPOSE memory.