loading

Logout succeed

Logout succeed. See you again!

ebook img

Linux User & Developer 140 - 10 Essential Raspberry Pi Upgrades PDF

pages100 Pages
release year2014
file size38.54 MB
languageEnglish

Preview Linux User & Developer 140 - 10 Essential Raspberry Pi Upgrades

MINECRAFT CODING GUIDE 4.7GB DVD How to hack one of the greatest games ever made DISTROS & APPS www.linuxuser.co.uk L IN U X U S E R & D E V E L O P E R IS S U 4 DISTROS E 1 4 0 LIVE-BOOTING DVD RASPBERRY PI 10 ESSENTIAL UPGRADES 10 AND HOW TO USE THEM E S S E N T IA Motor control • Analog sensors • Motion sensing L R A Touchscreen • Servo control • and more… S P B E R R No more Microsoft Y P I U P G Find out how Zentyal can help you R A D E S How Tails can pSmtorasoyt a tsneeoccnuyrCtme ydoiruossteur oonr eal viPneertC wmeiathd etahe n RSS ▼ Stereo Au▲ dBioa rAommpeltifir iec r (PMreAsXs9u8r3e,0 6T)emperature & Altitude Sensor (BMP180) reader with Kivy ISSUE 140 £5.99 ISSN 2041-3270 www.lin The final part of our Kivy development series (PC▲A 9P6W8M5)/Servo Driver 9 772041 327002 40 > u x u ALSO INSIDE Wolfson Audio Program with Hack s ISSUE 135 £5.99 e r.c » Share files with Google Drive Turn your Raspberry Pi Get started with Facebook’s o » FOSS Twitter client super-test .u k » Farm Bitcoins with the Raspberry Pi into an audio powerhouse revolutionary new language today 001 CoverFinal.indd 1 13/05/2014 17:57 24/7 UK expert Dedicated to support my business UUKK ddaattaa cceennttrree 99.99% uptime guarantee Allowing businesses to do what they do best Give your business the edge with Fasthosts range of Professional Series Dedicated Servers. With 99.99% uptime guaranteed, SSD technology for faster performance, substantial storage drives and with FREE set up, there’s a server to suit all budgets and business needs. • Full remote KVM control • Up to 128GB RAM • Unlimited bandwidth • NEW cPanel and WHM FREE Dedicated Servers from: setup £39 .00 Per month ex VAT & valid at time of print 12 month minimum term contract 0808 1686 777 Call or visit fasthosts.co.uk SERVERS • WEB HOSTING • DOMAIN NAMES • EXCHANGE EMAIL Full Page.indd 1 12/05/2014 11:36 Welcome Get to issue 140 of Linux User & Developer Linux User This issue cheaper … Rob Zwetsloot studied aerospace engineering, using Python to model complex every issue simulations. This month Rob tracked s down an elusive and anonymous » Use Grive for Google Drive Page 28 dev team (interview pages 6-7). t He’s since changed his name to » Upgrade your Raspberry Pi r Neo and has taken to skulking e around alleyways wearing outdated » Program with Hack and Octave sunglasses and staring at cats. p » Create an RSS reader with Kivy Richard Smedley started using computers x long before WYSIWYG, and still e maintains that the command line, Welcome to the latest edition of Linux User & and Emacs, is the most productive Developer, the UK and America’s favourite Linux and x working environment. This issue Richard shows us how easy it is to open source magazine. u free ourselves from the clutches The Raspberry Pi is British engineering at its best of MS Small Business Server n using Zentyal (pages 34-37). and a revolution in small form factor computing that has really captured the imaginations of hackers and Li Alexander Taylor is a graduate student makers all over the world. Of course, there’s only so in Physics but saves time to master Python’s cross-platform much technology that can be packed onto a device little larger f framework, Kivy, on the side. o than a credit card. While the GPIO (General Purpose Input/ He makes Kivy screencasts and tutorials at inclem.net. The final Output) pins allow the Pi to interact with the real world, there m part of Alexander’s excellent Kivy are many limitations to what enthusiasts can do with their development series can be found on pages 42-45 this issue. Raspberry Pi and a helping of ingenuity . a Thankfully there’s a growing list of add-ons, gadgets e Sean Tracey is a creative technologist at a leading digital agency on the south and upgrades that can help make their projects come to t coast. He spends a lot of his time life. Starting on page 18 we’ve selected ten of our favourite living inside of Node.js, Python r and Arduino. For this issue Sean upgrades and show you how to integrate them into your u discovers Hack, the new language projects and gadgets. from the makers of Facebook that o promises more speed and less If you fi nd yourself spending more time at the offi ce than Y stress than PHP (pages 50-55). your workbench, all is not lost. This month we show you how Jon Masters is a Linux kernel hacker who has to dodge Google’s refusal to release an offi cial client for its been working on Linux for some popular Cloud Storage solution (pages 30-33); demonstrate 18 years, since he fi rst attended how to rid yourself of MS Small Business Server with the help university at the age of 13. Jon lives in Cambridge, Massachusetts, of Zentyal (pages 34-37); and help you keep your customers and works for a large enterprise engaged with Zurmo, the gamifi ed CRM solution (pages 38-41). Linux vendor. You can fi nd his brilliant Kernel Column on pages Russell Barnes, Editor 16-17 this month. Get in touch with the team: Gareth Halfacree is our resident news reporter and brings us the latest developments from all over the [email protected] open source world, starting on page 8. Elsewhere, Gareth reviews the Wolfson Audio Card Buy online for Raspberry Pi and a new Matrix Facebook: Twitter: mini-PC (pages 78-81). Linux User & Developer @linuxusermag Visit us online for more news, opinion, tutorials and reviews: www.linuxuser.co.uk 3Issue 140 003_LUD_140.indd 3 15/05/2014 19:17 Contents Reviews 73 TSwiottfert cwlieantr geroup test Four open source Twitter clients go Subscribe head-to-head. Which is best? & save! 28 S ave up to 50% on the shop price. US customers can subscribe via page 84 Gwibber Turpial 18 10 essential Raspberry Pi upgrades Must-have gadgets to make your next Pi project really shine Birdie Choqok 78 Wolfson Audio Card OpenSource Tutorials Could this beef up your Pi’s audio capabilities? 6 News 30 Use Google Drive with Linux T he biggest stories from the Without an offi cial app, it’s down to Grive to 80 Matrix TBS2910 open source world help you sync your fi les with Linux A quad-core mini-PC that wants to be a set-top box 16 Kernel Column 34 Free yourself from MS Small The latest on the Linux Business Server with Zentyal 82 Tails 1.0 Kernel with Jon Masters The simple way to give your offi ce network The Amnesic Incognito Live a complete Windows-compatible server System hits version 1.0 85 Books Some of the best books on 38 Manage customers with Zurmo Linux and open source Customer relationship management is important – Zurmo gamifi es the process MI 94 Letters NI- Your views on the magazine 42 Code with Kivy (pt3): Create a MA and the open source scene cross-platform RSS reader G In his fi nal tutorial, Alexander introduces a Features wider array of Kivy widgets and behaviours 06 Interview: Tails 46 Program Octave developers speak Learn Octave’s shell, its programming basics Linux User speaks to the and how to write scripts, functions and more anonymous dev team On your free disc 18 10 essential Raspberry Pi upgrades 96 Cover disc The Pi can’t do everything – Four of the latest distros try these 10 cool gadgets for you to try out 50 Learn Hack - the new on this issue’s DVD! 57 Practical Raspberry Pi PHP replacement Tails 1.0 In this month’s Raspberry Pi super-section Learn Facebook’s Hacklang OpenMandriva we learn how to get Lego to read books to Lubuntu 14.04 us, code in Minecraft and find out exactly 88 Q & A what the Compute module is all about… Mythbuntu 14.04 Your questions answered Join us online for more Linux news, opinion and reviews www.linuxuser.co.uk 4www.linuxuser.co.uk 004_LUD_140.indd 4 15/05/2014 19:17 Full Page.indd 1 13/05/2014 11:21 06 News | 14 Opinion | 94 Letters secURITY The importance of Tails With concerns over online privacy at its highest since the birth of the internet, we speak exclusively to the anonymous developers behind Tails… The last year has been a rollercoaster ride in years. But we felt that something was missing Sustainability refers to how this is a project the IT and open source community, especially to the panorama: a toolbox that would that can be relied on by its users. The team where security and privacy is concerned. The bring all the essential privacy enhancing goes on to explain the importance of usability: revelations of Edward Snowden in 2013 showed technologies together and made them ready “We believe that the best security tool is the world that governments of super nations to use and accessible to a larger public. Some of no use if people who really need it on around the world were spying on them more experiments had already been made in that the ield cannot use it. Moreover, security than they ever thought. The Heartbleed bug direction, such as Incognito, which can be tools must be hard to misuse, they should earlier this year revealed that even our trusted considered as the ancestor of Tails.” prevent you from doing critical mistakes, or open source projects can let us down. In the Tails was built with two speciic things ask you to make security decisions that you midst of this has been Tails, the distro that in mind: sustainability and usability. are not able to make.” takes privacy seriously. As our review shows starting on page 82, it also makes achieving a The best security tool is of no high level of privacy easy. “Tails started ive years ago,” the developers, use if people who really need it on an anonymous group of like-minded FOSS hackers, told us. “At that time some of us were already Tor enthusiasts and had been the ield cannot use it involved in free software communities for Importance of privacy Popular rhetoric dismissing online privacy’s importance usually centres on having ‘nothing to hide’. “...The characteristics of digital communications as well as the way that the internet is built create a very interesting challenge,” The Tails devs tell us. “It is relatively easy to spy on people on the internet, but it is also relatively easy to defeat this spying by using the right techniques. “If we look at the people who are using Tails and Tor, they come from very different backgrounds: journalists, dissident bloggers, privacy-concerned citizens, whistleblowers, business leaders, victims Review of intimate partner abuse, and even military and law enforcement agencies. on page [We] think that each one of them equally inds that online privacy is important but 82 they all have their own reasons.” nGet ready to surf privately with Tails 6www.linuxuser.co.uk 006-007_LUD140.indd 6 15/05/2014 19:18 News The latest in the Linux community OPEN SOURCE Tails has been around for a while as Anonymous previously stated, however its notoriety was elevated after the Snowden revelations: developers “What really changed is the public awareness regarding those issues,” the team told us. “It is The Tails developers do not reveal who now hard to deny that internet security has to they are to the public and their explanation do with politics and not only with technology. for doing so makes sense: The Snowden revelations also made it clear “The people behind Tails have that online privacy is an issue for everyone, and traditionally used pseudonyms to sign not only for paranoid people. That point was their work. And this can be for different still hard to make, even in the Linux world.” reasons: some of us want to remain With the release of 1.0 the team is looking anonymous, some of us simply believe ahead to the future. Coming very soon will be that our work, what we do, and how we do the 1.1 release based on Debian 7, the new it, should be enough to trust Tails, without stable. After that will be regular six-weekly the need of us using our legal names. updates: “We want to focus on limiting the “Furthermore, the masters of today’s impact of security laws, isolating critical internet, namely the marketing giants like Google, Facebook, and Yahoo, and the applications, and providing same-day security spying agencies, really want our lives to updates. Those changes will be almost invisible be more and more transparent online, and to the user, but they will make Tails more this only for their own beneit. So trying sustainable, and stronger from the inside.” to counterbalance this tendency seems Through their efforts, Tails is bringing a safe like a logical position for people developing online environment to those that need it. The nThe term ‘post-Snowden world’ is entering an operating system that defends privacy team is working hard to make sure it stays that the vocabulary due to last year’s events and anonymity online.” way – and this can only be done in open source. surrounding PRISM 006-007_LUD140.indd 7 15/05/2014 19:18 OpenSource Your source of Linux news and views www.linuxuser.co.uk Email us directly… For the latest news and views [email protected] LINUX Linux Foundation announces Core Infrastructure Initiative Signs up some big names in the hope of improving code quality In the wake of the recent Heartbleed vulnerability The Core Infrastructure Initiative is backed by ■ Jim Zemlin, the Linux in OpenSSL, which could leak memory data up millions of dollars in funding from its signifi cant Foundation’s executive director, to and include private keys to attackers, the founding members, all of whom are reliant on says the Initiative will boost Linux Foundation has now announced the Core open source software for their commercial security and code quality Infrastructure Initiative, which seeks to fund and businesses. The overall aim is to change the way support the development of critical infrastructure in which popular, infrastructure-critical projects are software in the hopes of improving code quality. ffuunnddeedd,, mmaakkiinngg tthhee sswwiittcchh ffrroomm rreeaaccttiivvee ddoonnaattiioonn In partnership with founding members Amazon, ssyysstteemmss ttoo pprrooaaccttiivvee ffuunnddiinngg.. Cisco, Dell, Facebook, Fujitsu, Google, IBM, Intel, ““MMaaiinnttaaiinniinngg tthhee hheeaalltthh ooff tthhee ccoommmmuunniittyy pprroojjeeccttss Microsoft, NetApp, Rackspace and VMware, the tthhaatt pprroodduuccee ssooffttwwaarree ccrriittiiccaall ttoo tthhee sseeccuurriittyy aanndd Core Infrastructure Initiative looks to collectively ssaaffeettyy ooff iinntteerrnneett ccoommmmeerrccee iiss iinn eevveerryyoonnee’’ss iinntteerreesstt,,”” identify open source projects that are in particular eeexxxppplllaaaiiinnneeeddd PPPrrrooofffeeessssssooorrr EEEbbbeeennn MMMooogggllleeennn ooofff CCCooollluuummmbbbiiiaaa need of assistance and provide them with funding LLaaww SScchhooooll,, ffoouunnddiinngg ddiirreeccttoorr ooff tthhee SSooffttwwaarree and expertise that will help improve the quality and FFrreeeeddoomm LLaaww CCeennttrree,, iinn ssuuppppoorrtt ooff tthhee FFoouunnddaattiioonn’’ss reliability of their code. mmoovvee.. ““TThhee LLiinnuuxx FFoouunnddaattiioonn,, aanndd tthhee ccoommppaanniieess Unsurprisingly, the fi rst project that will benefi t jjooiinniinngg tthhiiss IInniittiiaattiivvee,, aarree eennaabblliinngg tthheessee ddeeddiiccaatteedd from the programme will be OpenSSL, which is pprrooggrraammmmeerrss ttoo ccoonnttiinnuuee mmaaiinnttaaiinniinngg aanndd iimmpprroovviinngg expected to receive fellowship funding for key tthhee ffrreeee aanndd ooppeenn ssoouurrccee ssooffttwwaarree tthhaatt mmaakkeess developers as well as additional resources to help tthhee NNeett wwoorrkk ssaaffeellyy ffoorr uuss aallll.. TThhiiss iiss bbuussiinneessss aanndd with a code overhaul to include – critically in the ccoommmmuunniittyy ccoollllaabboorraattiioonn iinn tthhee ppuubblliicc iinntteerreesstt aanndd case of a security package with as gaping a hole as wwee sshhoouulldd aallll bbee ggrraatteeffuull ttoo TThhee LLiinnuuxx FFoouunnddaattiioonn Heartbleed – external reviews. ffoorr mmaakkiinngg iitt hhaappppeenn..”” “We are expanding the work we already do for FFuurrtthheerr ffuunnddiinngg ffoorr tthhee CCoorree IInnffrraassttrruuccttuurree the Linux kernel to other projects that may need IInniittiiaattiivvee iiss bbeeiinngg rreeqquueesstteedd iinn tthhee ffoorrmm ooff support,” explained Jim Zemlin, executive director ddoonnaattiioonnss ffrroomm tthhee ccoommmmuunniittyy,, wwhhiicchh wwiillll of The Linux Foundation. “Our global economy is bbee hheelldd bbyy tthhee LLiinnuuxx FFoouunnddaattiioonn.. TThhiiss built on top of many open source projects. Just as uussee ooff aa nneeuuttrraall oorrggaanniissaattiioonn,, tthhee The Linux Foundation has funded Linus Torvalds to FFoouunnddaattiioonn ccllaaiimmss,, wwiillll hheellpp ttoo be able to focus 100 per cent on Linux development, eennssuurree tthhaatt tthhee mmoosstt iimmppoorrttaanntt we will now be able to support additional developers pprroojjeeccttss aarree ffuunnddeedd aanndd ccaann and maintainers to work full-time supporting other rreettaaiinn iinnddeeppeennddeennccee tthhaatt essential open source projects. We are thankful for ccoouulldd bbee lloosstt iiff ccoorrppoorraattee these industry leaders’ commitment to ensuring ssppoonnssoorrsshhiipp wwaass uusseedd ffoorr the continued growth and reliability of critical open ffuunnddiinngg.. FFoorr mmoorree ddeettaaiillss,, source projects such as OpenSSL.” see bbiitt..llyy//11mmww22xx00ss. We are expanding the work we already do for the Linux kernel to other projects that need support 8www.linuxuser.co.uk 008-011_LUD140.indd 8 15/05/2014 19:19 News The latest in the Linux community OPEN SOURCE HARDWARE Linux calendar Google shows first Distro Recipes e n Power8 motherboard u » Carrefour Numérique de La J Villette, Paris h » France t 2 » distro-recipes.org OpenPower Foundation membership starting to pay off 1 – The second Distro Recipes, this Advertising giant Google is putting its one that prefers to build its own technologies h two-day French-language event not-inconsiderable muscle behind IBM’s rather than buy in external solutions. While the t offers a look at the development 1 and distribution process of Linux Power8 platform, showing off a custom motherboard on display was an engineering 1 distributions. server motherboard it has created using its sample, engineer Gordon MacKean – chair of membership of the OpenPower Foundation. the OpenPower Foundation – has stated that The OpenPower Foundation is a non- Google is already porting its software stack to profi t organisation that allows its member the Power8 architecture ahead of a planned USENIX Federated companies to create customised versions of full-scale implementation. e Conferences Week IBM’s Power architecture products for the fi rst n time – and Google is a founding member. That’s u » Hyatt Regency Philadelphia at J no insignifi cant thing: the company represents h Penn’s Landing, Philadelphia one of the biggest single consumers of server t » USA 0 hardware in the world. 2 » usenix.org With IBM adding support for little-endian – Running from the Tuesday to the Linux to Power8, Google has been working on h Friday, the USENIX conference engineering its own custom servers based on t week includes tutorials, sysadmin 7 the platform. The fi rst board, unveiled at the 1 training, the HotStorage, HotCloud and Feedback Computing events, Impact 2014 conference in Las Vegas, features and much more. room for a pair of Power8 central processors. The board could represent trouble for Intel, ■ Google’s Gordon MacKean has shown off which has long held a majority share of the the company’s custom IBM Power8 hardware, server market: Google is a big customer, but as it ports its software stack to the platform Enterprise End User e Summit DEVELOPMENT n u » Covene Centre Financial District, J IBM supports little-endian on Power h New York t » USA 4 IBM has confi rmed that its latest Power with full support provided for both big- and 2 » bit.ly/1hNpya4 architecture platform, Power8, will support little-endian operation. – An invitation-only event, the little-endian operation for compatibility The move represents IBM’s desire to d Enterprise End User Summit looks with mainstream Linux distributions and make the Power platform a more tempting 3r to join high-level Linux community their software ecosystems. proposition for general-purpose use, where 2 developers with Linux users from the high-performance and big The endianness of a platform is the rewriting the entire software stack to change business sectors. convention used to store data in its memory; its endianness is not feasible. big-endian stores the most signifi cant byte Initially, the Power8 platform will support a of a word in the smallest address, while little- library of 156 Linux applications – chosen as Exceptionally Hard endian systems store the least signifi cant the most popular among IBM’s customers. e byte in the smallest address. n and Soft Meeting Popular in the data centre and high- u performance computing markets, the h J » DESY Hamburg IBM Power architecture has previously t » Germany 9 been exclusively big-endian – which made 2 » ehsm.eu it incompatible with software originally – A collaborative conference developed for little-endian platforms h between open source and research such as x86 and ARM. Starting with the ■ IBM’s latest Power8 platform includes 7t communities, housed in Europe’s new Power8 architecture that will change, little-endian support for the fi rst time 2 second-largest particle physics laboratory DESY in Hamburg. 9www.linuxuser.co.uk 008-011_LUD140.indd 9 15/05/2014 19:19 OpenSource Your source of Linux news and views www.linuxuser.co.uk Email us directly… For the latest news and views [email protected] DEVELOPMENT Canonical drops Ubuntu for Android Ubuntu Touch its focus moving forward Canonical has confirmed that its Ubuntu for Android project is no longer under active development, as the company looks to push its Ubuntu Touch smartphone operating system with a range of hardware launches this year. Ubuntu for Android was announced back in February 2012 as an installable application for Android smartphones and tablets. When out and ■ Canonical has ceased development of Ubuntu for Android in favour of Ubuntu Touch about, the device would run Android as normal; when at home or in the offi ce, the device could failed to reach its lofty $30 million goal. With public view, Canonical’s Matthew Paul Thomas be connected to a monitor, keyboard and mouse several hardware partners, Ubuntu Touch is on stated that “Ubuntu for Android is no longer in and used as a fully functional desktop machine track for a launch later this year – but Ubuntu for development, so [its] page should be retired running an ARM build of Ubuntu. Android cannot hope for the same. [from the Ubuntu website].” Since its announcement, Canonical has Despite being actively promoted by the Canonical has since confi rmed that Ubuntu used the core concepts of Ubuntu for Android company as recently as January this year and for Android is no longer in active development, in Ubuntu Touch, a dedicated smartphone still represented on its website, Ubuntu for and will remain suspended until and unless operating system planned for the company’s Android is unlikely to ever see a public release. the company can fi nd a launch partner for a crowdfunded Ubuntu Edge handset until it In an internal bug report, since removed from device based on the software. OPEN SOURCE Red Hat buys Ceph creator Inktank Ceph technology to be integrated with RHEL Red Hat has announced the acquisition of ccllaassss ooppeenn ssttoorraaggee tteecchhnnoollooggiieess wwiillll ooffffeerr large-scale storage start-up Inktank, founded ccoommppeelllliinngg ccaappaabbiilliittyy aass ccuussttoommeerrss mmoovvee ttoo in 2012, in a deal worth $175 million. software-based scale-out storage systems.” The company’s Ceph technology offers ““JJooiinniinngg ffoorrcceess wwiitthh RReedd HHaatt iiss ssoommeetthhiinngg OpenStack-compatible object and block storage wwee aarree aallll vveerryy eexxcciitteedd aabboouutt,,”” aaddddeedd IInnkkttaannkk software for public and private clouds and is ffoouunnddeerr SSaaggee WWeeiill.. ““WWee bbeelliieevvee oouurr ooppeenn being positioned alongside Red Hat’s GlusterFS ssttoorraaggee tteecchhnnoollooggiieess wwiillll bbee ccrriittiiccaall iinn tthhee fi le system for large-scale storage solutions. mmaannaaggeemmeenntt ooff ddaattaa iinn tthhee ccoommiinngg eerraa ooff cclloouudd “We’re thrilled to welcome Inktank to the Red ccoommppuuttiinngg.. JJooiinniinngg RReedd HHaatt wwiillll nnoo ddoouubbtt lleeaadd Hat family. They have built an incredibly vibrant ttoo ttrreemmeennddoouuss iinnnnoovvaattiioonn tthhaatt wwiillll sseerrvvee tthhee community that will continue to be nurtured iinndduussttrryy wweellll aanndd aannsswweerr tthhee ddeemmaanndd ffoorr ooppeenn as we work together to make open the de facto ssttoorraaggee ssoolluuttiioonnss ffuullllyy iinntteeggrraatteedd wwiitthh eexxiissttiinngg choice for software-defi ned storage,” claimed and emerging data centre architectures.” Red Hat’s chief technical offi cer Brian Stevens IInnkkttaannkk’’ss eexxiissttiinngg CCeepphh ccuussttoommeerrss iinncclluuddee of the deal. “Inktank has done a brilliant job CCiissccoo,, CCEERRNN aanndd DDeeuuttsscchhee TTeelleekkoomm,, aanndd tthhee assembling a strong ecosystem around Ceph ccoommppaannyy hhaass ppaarrttnneerrsshhiippss wwiitthh DDeellll aanndd AAllccaatteell-- and we look forward to expanding on this LLuucceenntt.. IInnkkttaannkk’’ss eexxiissttiinngg LLooss AAnnggeelleess aanndd SSaann ■■ IInnkkttaannkk,, aanndd iittss CCeepphh ssttoorraaggee tteecchhnnoollooggyy,, iiss success together. The strength of these world- Francisco offi ces are expected to remain open. now wholly-owned by Linux giant Red Hat 10www.linuxuser.co.uk 008-011_LUD140.indd 10 15/05/2014 19:19

See more

The list of books you might like