Professional Documents
Culture Documents
uk
8 PAGE
SPECIAL
Android
Install
Raspberry Pi
on your
Adapteva’s founder
introduces us to the
30 +
pages
$99 Supercomputer of expert
advice
Ultimate office
suite revealed!
ALSO INSIDE
» GNOME 3.6: our verdict
» Create a network of RasPis
The best open source » What happened to GNU Hurd?
alternatives to MS Office » Improve workflow with login scripts
Master Emacs 20 pages of reviews PyCon 2012 ISSUEISSN
1202041-3270 £5.99
20 >
Take control with the Swiss Definitive opinion on Catch up with the
Army chainsaw of FOSS devices, distros and apps hottest events 9 772041 327002
WorldMags.net
WorldMags.net
WorldMags.net
Welcome
to issue 120 of Linux User & Developer Get
Linux User
Gareth Halfacree has been breaking, fixing,
This issue
Your team of Linux experts…
www.linuxuser.co.uk
3 Issue 120
WorldMags.net
WorldMags.net
Contents
22
Reviews
Install Android on
62 Samsung Galaxy
Note 10.1
The Note migrates to the tablet
64 Synology DS213air
Synology’s latest small and
Open up a world of new home office NAS box
apps and projects in
just a few easy steps 66 Archos 101XS
Archos adds keys to its
latest tablet
68 GNOME 3.6
GNOME moves further down
OpenSource Tutorials
the path of simplification
Join us online for more Linux news, opinion and reviews www.linuxuser.co.uk
4 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Get MORE with a
Dedicated Server
from Webfusion
*Limit of one Raspberry Pi per customer. Quoted prices are correct as of the date of publication. All prices are exclusive of VAT and are subject to change. Terms and conditions apply.
WorldMags.net
WorldMags.net
HARDWARE
Google &
Samsung
launch ARM
Chromebook
Entry-level Linux-based laptop takes
■ The Samsung-
manufactured Chromebook
uses an Exynos V ARM-
based processor and runs
aim at the mass market the Linux-based Chrome OS
Samsung has announced another entry in and the integrated 11.6-inch 1366x768 display. is not
its Chromebook partnership with Google, Storage is handled by an eMMC 16GB solid- provided
making the move away from x86-based state storage device – helping the Chromebook to the public
Intel processors with an ARM-based ultra- hit a headline-grabbing sub-10-second boot under an open
compact device aimed at buyers on a budget – time – while 2GB of DDR3 memory is included source licence.
or, as Google itself would have it, a “computer as standard. Much of the code,
for everyone.” A switch to an ARM processor more however, is: Chrome
Based on Samsung’s existing Chromebook commonly found inside smartphones provides OS itself is based on the open
platform – a cut-price family of low-power the Chromebook with impressive battery life, source Chromium OS, while the embedded
laptops which use Google’s Chrome OS, based with around six hours easily available during Chrome browser is available as the open source
on the open source Chromium Linux cloud- web-connected usage. More importantly, the Chromium project.
powered operating system – the new Samsung use of web apps in Chrome OS – which are For consumers, the cut-price Chromebook
Chromebook replaces the typical lightweight rendered through an embedded version of could well be an entry point into Linux as a day-
x86 Intel chip with a dual-core Exynos V ARM- Google’s Chrome web browser – avoids any to-day operating system. For those who know
based processor, a quad-core version of which compatibility issues with legacy apps that their way around a shell already, the presence
can be found in Samsung’s flagship Galaxy S III normally accompany a shift in architecture. of a development mode – accessed by holding
Android smartphone. The specifications aside, Google’s positioning Esc, Refresh and Power then pressing Ctrl+D
Running at 1.7GHz, the chip includes a of the device as a computer for everyone is at the boot screen – provides a way to boot from
quad-core ARM Mali-T604 graphics processor interesting indeed. As well as selling the system external devices, replace the operating system
which handles both the HDMI through the Google Play marketplace alongside and turn the Chromebook into a low-cost ARM-
display connector its Nexus 7 Android tablets, the company based laptop running almost any Linux-based
has organised high-street placement for the operating system.
Chromebook in major chains throughout the Google, meanwhile, is positioning the
world – and just in time for Christmas. Samsung Chromebook as the answer to
In other words, a major brand Windows users’ prayers. “There’s no need to
is attempting to put Linux worry about security updates and maintenance
on the laps of millions – and is easy; all you need to do is charge the battery,”
where Google leads, others boasted Google’s Sundar Pichal, senior vice
are likely to follow. president of the company’s Chrome division at
Detractors of the the launch. “It just works.”
Chromebook project often Without a Linux kernel at the new machine’s
point out that it’s not a truly heart, it’s unlikely Pichal would have been able
open platform: like Android, to make such a declaration.
Google develops Chrome OS The new Samsung Chromebook is available
privately and often through Google Play, Currys and PC World,
includes code which priced at £229.
6 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
News
The latest in the Linux community
OPEN SOURCE
OPEN SOURCE
29 Nov 2012
Shuttleworth blames critics for new secretive strategy » www.littlegreenrobot.co.uk
Android Magazine, your best and
Canonical founder Mark Shuttleworth has not been detailed. Those who are interested can only print source for everything
announced that selected aspects of Ubuntu apply for access, however, with Shuttleworth Android, is coming out today. Check
13.04, codenamed ‘Raring Ringtail,’ are to claiming that Canonical is “happy to engage with out what’s in store over on page 60.
be developed in secret so as not to attract contributing community members that have
criticism from the community. established credibility in Ubuntu.” CloudStack
Going against the open source ethos of “The skunkworks approach has its Collaboration
transparent development, some new features
to be launched with Ubuntu 13.04 will be kept
detractors,” Shuttleworth admitted in a
statement to the community. “We’ve tried it both
Conference
ways and, in the end, figured out that critics
» The Venetian, Las Vegas, Nevada
under wraps at Canonical’s HQ until the OS is
7 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
OpenSource Your source of Linux news and views
Contact us…
Register and post your comments… Email us directly…
www.linuxuser.co.uk/forum/ linuxuser@imagine-publishing.co.uk
INDUSTRY
8 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
News
The latest in the Linux community
OPEN SOURCE
PUBLISHING
Grab Linux PUBLISHING
User digitally at
greatdigitalmags.com
All About Space ■ All About Space
All About Space, the most exciting shows you how to
In case you missed it, Linux User magazine is space magazine ever, is out now! get stargazing
available to read on any digital format thanks Imagine Publishing’s All About Space supernovas, work. There are also excellent
to the excellent digital editions super-site, magazine is available in print and digital articles on tracking hazardous asteroids, the
www.greatdigitalmags.com. The site formats right now. Packed full of cosmic first moonwalk, NASA’s first space station, the
brings together Linux User’s offerings content, All About Space delves into the groundbreaking Cassini mission and much
on Zinio and Newsstand, allowing you to wonders of space exploration, astronomy more. All About Space also makes astronomy
enjoy your favourite mag on your Mac, PC, and space science every month, providing in- accessible to everyone with a host of stargazing
iPad, Android and a host of other devices. depth knowledge from a team of experts on articles explaining how to buy a telescope and
There are some incredible subscription an amazing array of topics. The magazine is what to look for in the night sky.
incentives up for grabs too, not just for Linux unlike anything else out there and will appeal to All About Space is available online at the
User but for all Imagine Publishing titles. seasoned space fans and new explorers alike, Imagine eShop (www.imagineshop.co.uk)
To find these amazing deals, head over to with a regular dose of amazing articles, exclusive and in all good newsagents and supermarkets
www.greatdigitalmags.com, where you interviews and jaw-dropping images. right now. You can also download the digital
can find links to back issues, subscriptions Inside you’ll find some mind-blowing articles version for iPhone, iPad and Android from
and more, across almost every platform. It’s and features explaining the amazing universe www.greatdigitalmagazines.com. Visit the
all available in just one place, and there are around us. The latest issue reveals how some of magazine’s website at www.spaceanswers.com
massive savings to be had! the biggest explosions in the universe, namely to get your online space fix.
PUBLISHING
WorldMags.net
WorldMags.net
OpenSource Your source of Linux news and views
Contact us…
Register and post your comments… Email us directly…
www.linuxuser.co.uk/forum/ linuxuser@imagine-publishing.co.uk
OPEN SOURCE
OPEN SOURCE
Donate to Canonical
and steer Ubuntu
Users can now tell Canonical
what parts of Ubuntu need
work, for a price
Ubuntu is a free operating system, free as in
speech and as in beer, and Canonical is keen
to reinforce this Richard Stallman ethos as it
announces a new way for users to optionally
contribute to Canonical before they download
the desktop version of Ubuntu. This comes in
the form of real money donations.
It’s not just a fixed donation – there are
eight categories that people can selectively
give money to. This will let Canonical know
which parts of Ubuntu people want improved.
Categories include Unity, performance ■ A screen Ubuntu users may have to get used to
optimisation, hardware support, phone and
tablet versions, support of different Ubuntu the donation page shows up before you can Now that Ubuntu 12.10 is out and more
flavours, and a general tip to Canonical. You download the ISO, and has a recommended people will be downloading the distro, it will be
don’t have to give to each category, though, $2 donation to each category already filled in interesting to see what contributions are made,
and donations start at $1 per category. by default. There’s a link at the bottom of the and what they go towards. You can see the
Obviously you don’t have to make any page to skip it entirely and go straight to the page by selecting Ubuntu Desktop (and then a
contributions if you don’t want to – although download page. version) at: www.ubuntu.com/download.
10 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
1&1 DOMAINS
SECURE YOUR DOMAIN AND SAVE!
0
largest web hosts and a leading domain registrar.
* Offers apply to first year of registration. Second year and subsequent years will be charged at the regular price. Visit www.1and1.co.uk for full offer details, terms and conditions. Prices exclude VAT.
WorldMags.net
WorldMags.net
OpenSource Your source of Linux news and views
Jon Masters
Jon Masters summarises the latest goings-on in
the Linux kernel community, including a look at the
features being merged for the upcoming 3.7 release
Jon Masters is a washing machines and automotive control and
Linux kernel hacker who entertainment systems. In this context, there
has been working on are many different levels of ARM processor,
Linux for almost 17 years, from the more deeply embedded simpler cores
since he first attended
university at the age of 13. without the ability to run a full OS, to higher-
Jon lives in Cambridge, end multiprocessor cores running Linux on
Massachusetts, and works Android smartphones.
for a large enterprise Linux
vendor. He publishes ARM is known for its focus on low energy, as
a daily Linux kernel well as the licensed nature of the architecture.
mailing list summary at ARM doesn’t make processors – it licenses its
kernelpodcast.org
designs for use by the many others who do make
Linus Torvalds announced the release of processors. Linux has run on suitable 32-bit
the 3.6 kernel, saying that while the release ARM-based systems for well over a decade,
did not contain earth-shattering new and in recent years has gained popularity
architectures or file systems, it did overall as the foundation upon which most Android
represent “solid progress”. We summarised devices are built. And over the last few years,
some of the new features that landed in Linux organisations such as Linaro have helped to
3.6 last issue. With the release of 3.6 came drive the development of Linux support for
the traditional opening of the merge window ARM by bringing together a wider community
for 3.7. This is the period of time during which of companies and ecosystem players involved.
Linus is willing to pull potentially disruptive Over the past few years, a new opportunity has
patches (changes) into the kernel. This typically emerged to take advantage of the low-energy
lasts for two weeks and is followed by a period DNA that drives ARM by using these processors
of stabilisation, and multiple RC (release in server-class systems.
candidate) kernels are made available for Servers can be 32-bit based, but many
testing. Linus gave a heads-up that he would workloads require 64-bit support. That’s where
be travelling for much of the merge window, but the new AArch64 ARM architecture comes in.
that didn’t seem to pose much of a problem. It brings many new features to ARM, not least
Features pulled in during the merge window of which is 64-bit addressing. The new support
included a brand new architecture (AArch64, within the Linux kernel, contained within
also known as ARMv8 or ‘arm64’ in the kernel arch/arm64 (renamed after community debate
community). This is the latest architecture around the original ‘aarch64’ choice of directory)
revision from ARM, the company that powers enables the core architecture features but does
about 90 per cent of all cellphones and has had not yet have support for any real processors.
its designs shipped in billions of processors Those will come later. The initial support was
so far this year alone. ARM has traditionally merged after several months of review on
been an ‘embedded’ architecture. The billions the Linux Kernel Mailing List by upstream
of ARM-powered processors in use worldwide maintainers such as Arnd Bergmann, who is
are typically found within gadgets, such as responsible for many of the de facto standards
this author’s ‘fitbit’ personal step counter, or in required of new architecture code added to Linux.
12 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Opinion
The kernel column – Jon Masters
open source
13 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
OpenSource Your source of Linux news and views
Throwing away
an iPad
Apple’s latest product launch was
met with disdain from many of its
customers. But why, wonders Simon
■ The mini wasn’t the only new iPad launched
Watching the live reactions to an Apple But where did this craving come from? What
announcement rarely tends to expose you to new feature does the fourth-generation iPad
some of the more considered thoughts on a possess that the third didn’t, that people can’t
product launch. Yet the response to Apple’s possibly live without? Within minutes of the
unveiling on 23 October of a pair of new iPad announcement, eBay was no doubt filling up
products was a testament to just how warped with pretty much brand spanking new iPads,
the technology business has become. as the disposal culture of modern technology
Appreciating it’s traditional to bash Apple at continues to take hold.
every opportunity, I find myself admiring the firm That in itself is a burgeoning problem. Firms
in some ways. Granted, its closed gate approach like Apple like to lock us out of upgrading
to computing is something that continually products, and even the likes of HTC is now
needs fighting, but its marriage of software and making phones where you’re not even allowed to
hardware remains pretty much unparalleled change the battery yourself (when did we start
over the past decade or so. to accept this insanity as the norm, I continue
Simon Brew is a technology At Apple’s event in October, though, it sprung to wonder). The ramification of this, longer term,
writer and editor,
working across the a surprise. It had widely been expected that the is that more and more people will just throw
Linux, Windows and firm would showcase the iPad mini, and that’s something away after a year, in order to get the
Mac OS X platforms
exactly what it did. But then it had something latest model. People will change their phone just
else up its sleeve: a fourth generation of the because it’s less hassle than sending it off to get
iPad. This was just over half a year after it had a new battery put in. That’s madness, isn’t it?
launched the third generation of the iPad to What Apple’s announcement showed is that
similar fanfare. And people were not happy. you don’t actually need to add that much for
To paraphrase what, at one stage, was people to instantly decide to spend another
appearing to be something of a consensus, £500 or so on another piece of technology, just
the feeling seemed to be ‘but I only bought one to keep up with the proverbial Joneses. Wouldn’t
The Android
of those half a year ago, and now they’ve gone it be refreshing, though, if a firm such as Apple,
and changed’. that has so blazed the trail for persuading
fightback? So let’s think about that for a second.
What Apple has successfully propagated is a
people to replace their technology on an annual
basis, actually made a stand to say enough is
In the smartphone sector, Android continues feeling among its customers and many in the enough. It’ll never happen, but just how long
to lead the way over Apple and its iOS-based
technology world that you absolutely have to can the world at large support a culture where
products. In tablets, its success has been
less significant, but might there now be signs
have the latest and greatest. Notwithstanding intricate technologies are so disposable?
that Android-based competitors are making the fact that the original iPad is still doing the Looking at the reaction to the aforementioned
inroads? Certainly products like the Nexus 7 job that it was designed for perfectly well, Apple launch, it’s going to have to do so for a
and – to a lesser extent – the Kindle Fire help. there appears to be abject horror in places at great deal longer, sadly…
But there’s a long way to go to topple Apple the thought that people will have to upgrade a
and its all-conquering (so far) iPad. product that was only new on the shelves earlier
in the year.
14 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Opinion
The free software column
open source
15 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Get on board with Python
Get on board
with Python
From medieval Coventry, via the
classroom, to Africa, and even
operetta and the high seas,
PyConUK represents the best of
the Python community
Despite masterpieces of medieval and 20th Century
architecture, and a fascinating industrial heritage,
Coventry isn’t everyone’s ideal long weekend getaway. That
changed for the last four days of September, when the city
hosted PyConUK – the annual gathering of the country’s
enthusiastic and growing Python community – for the
second time.
Regular readers will know that, while LUD maintains
an even-handed approach to open source languages and
technologies, we find ourselves reporting a lot of cool Python
projects, and it’s increasingly the language of choice for
everything from education and banking to research and big
data. Many programming languages have a strong community
around their use, but Pythonistas seem to have a sense of
belonging – as if they’ve somehow, in finding Python, come
home – that is normally reserved for Lisp programmers, and all
without the smugness occasionally seen in the latter group.
This is a confident community, and one not without a sense
of humour – as you would expect from a language named in
honour of the surreal Monty Python show. Music and fun
were on offer at PyConUK, alongside some serious hacking,
■ Last year’s PyConUK Blitz theme very cool projects and some productive coding in worthy
reappeared as the PyCon poster causes. Let’s start with the cool tech.
16 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Get on board with Python
The PyConUK 2012 conference
FEATURE
Slice of Pi
Python is the official programming language of the Raspberry
Pi, and Alex Bradbury – the lead Linux software developer at
“We get to introduce free &
the Raspberry Pi Foundation – gave the story so far, and the
challenges ahead. The Raspberry Pi was created as a low-
open source to a wider
cost educational tool, but hackers have taken it to their heart,
even running breweries and data centres with it. community of children
The community has contributed many improvements
to the core stack, such as dynamic overclock, and great
software like the 3D Penguins Puzzle game. There’s
and older people”
Alex Bradbury, Raspberry Pi Foundation
much more to be done and Bradbury was frank about
the limitations of the current software while optimistic Intelligent approach
about future developments, the possibilities of more edu- ‘Big A, little i’ was a well-illustrated talk by
specific software releases and the potential for the Pi in the games programmer Tendayi Mawushe, pleading
developing world. the case for more use of AI algorithms by developers.
Shoaib Sufi of the Software Sustainability Institute spoke Software provides a better user experience when programs
of his mission to promote “better software engineering and display awareness of their context, and with good use of
management for better research outcomes”. As “software examples like the familiar farmer/fox/goose/corn puzzle
is everywhere,” and all-pervasive in science, Sufi demands (represented as states and transitions) and moving blocks
“better software [to produce] better research.” ■ Python is the official
games, Mawushe demonstrated making a program give
programming language
answers about its own behaviour by tracing method calls.
of the Raspberry Pi
Various heuristics were examined, giving attendees ideas of
Catch up how to bring some AI goodness to their own code.
Videos of most of the PyConUK 2012 sessions, with Dealing with a more mundane annoyance, Vladimir
synchronised slides, are up on the PyConUK website, Keleshev introduced docopt, to “build beautiful command-
thanks to the dedicated filming by Birmingham LUG’s
line interfaces”. Replacing the current opaque systems with
Tim Williams:
a mere 384 lines of code, docopt works from simple rules
http://autoview.autotrain.org/course/view.php?id=15
Get involved with creating resources for the next to allow the program to take the POSIX standard of usage
generation of coders at the Python Edu Google Group: pattern and turn it into your UI.
http://goo.gl/BXBLu As well as the Python reference implementation,
docopt has been implemented in Ruby, CoffeeScript/
CC: @tdobson
■ Coders and teachers learnt from each other in a rewarding education sprint
17 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Get on board with Python
JavaScript, PHP and Bash, with ports to Lua and a C Sarah Mount gave an eloquent summary of the problems of
code generator on their way. parallelism and concurrency in Python, and the case for using
With so many competing talks on the three tracks, Communicating Sequential Processes (CSP). This is an area
we’re grateful to the PyConUK organisers for making many of of many competing philosophies, and it was good to hear a
the talks available as online videos (see ‘Catch up’, page 17). knowledgeable opinion put so clearly.
Those who could only make the weekend missed some Plenty of space was given for lightning talks over the
informative sessions on the opening Friday, including the two main days, with ‘Lightning Talk Man’ Harald Massa’s
TiddlyWeb architecture – originally created as an open Gesamtkunstwerk of anecdotes to fill each gap as speakers
source, reference implementation of an HTTP API for server- changed laptops and PowerBook VGA dongles. In these five-
side storage of TiddlyWiki tiddlers, the revolutionary one- minute sessions, delegates learned about mixing dynamic
page app giving a reusable nonlinear personal web notebook. and static typing; errors and complexity in finding musical
temperaments; prescons, an effective presentation console
Follow the rabbit for Python demonstrations; using Python for digital forensics;
Starting with the Alan Perlis quote, “The best book about and easy roll-outs of your own cloud.
programming for the layperson is Alice in Wonderland. But
that’s because the best book about anything for the layperson Ask the duck
is Alice in Wonderland”, programmer and philosopher David Further highlights included typing to yourself – an IRC for
Miller entertained while drawing lessons from the book. one to log your thoughts with timestamps, and even put
them into version control – in a talk that introduced rubber
duck debugging (if you can explain the problem to a rubber
duck, then you’re on the path to understanding: try it!);
n Farmer, grain, goose, fox the AI way – represented as states and transitions n Miss P: bringing Python into the classroom
18 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Get on board with Python
The PyConUK 2012 conference
feature
CC: @ntoll
Evidence for Development
Using Python to deliver effective, evidence-based overseas aid
Much overseas aid is spent inappropriately Evidence for Development sprint aimed to
– at best wasteful, at worst undermining extract something meaningful from it.
local markets and farmers’ self-sufficiency. “We’re using the technology to apply
Evidence for Development aims to see household economy methodology”, Petty told
that aid gets to where it’s really needed, by us. This takes a sophisticated view of how
backing evidence-based decisions with an people can meet their food energy needs,
understanding of local economics “to build rather than measuring money income alone.
capacity in organisations and institutions School attendance, lack of access to start-up
in Africa”, Celia Petty, the project founder, capital and many other factors are measured
told Linux User & Developer. “The World to see what help people need to achieving
Bank data is problematic”, so the PyConUK their own economic self-sufficiency.
“PyConUK seems to the community and the PSF could go together, with more
local and regional activity. There’s certainly a lot of UK Python
n Doctor Korovic’s
Flying Atomic Squid –
Daniel Pope’s Pygame
tell-how and friendly page 18) to core developers – with £100 early-bird tickets and
a budget hotel price offering astonishing value. Combined
community”
with this were beginner and intermediate tutorial days, and
Tim Golden sprints that welcomed all levels of ability. There was even a
non-Python track, touring around Coventry’s heritage, for non-
along with a Django-based P2P food market from Transition coding partners and offspring.
Cambridge, SustainableSouk.com, which encourages good-
quality local food by allowing anyone to sell or swap what Future-facing
they produce. Despite all this, and despite the speaker list containing some
‘Writing Code for Fun and Profit’ presented the joys of the “side talented and interesting female programmers, a look around
project”, in this case luzme.com which offers price comparisons the venue showed more than 90 per cent of attendees were
for eBooks. In further pursuit of fun, Nicholas Tollervey and male – a continuing problem in IT generally, but particularly
Ben Croston (whose day job is Python-automated brewing!) in the free software community. PyConUK, ever ambitious,
performed a tuba duet of the Sousa march well-known as the is addressing this problem at source, with direct outreach to
theme tune to Monty Python’s Flying Circus. schools to increase the numbers going into programming, both
The link between musicianship and coding is a well-known generally and to Python.
one, but the opening Sunday lightning talk of an energetic The teachers who attended were taken through introductory
hip-hop rap, screened Pythonically, was a real surprise. More Python programming, then paired with Python programmers
conventional, but no less delightful, was the PyConUK song for a development sprint for educational resources. Other
– to the G&S tune used in Tom Lehrer’s Elements song, with education sessions included a session on Turtle, the Python
words (Python keywords in fact) by Tollervey and Stephen version of Logo, and some surprisingly sophisticated uses
Hawkes, who came up with the Victorian theme of this year’s – such as Sierpinski triangles and Lissajous figures – with
publicity materials. very few lines of code. As well as giving the best introduction
to functions that we’ve heard – “We teach the computer a
Quo vadis? new word” – discussion ranged over taking Turtle into the
Saturday had ended with the keynote ‘Remaking the PSF: The physical world with Lego Mindstorms, to a planned Arduino/
next ten years of Python’ by the Python Software Foundation’s Raspberry Pi DIY oscilloscope.
Van Lindberg, covering the challenges for the language John Pinner, Zeth and the rest of the organisational team
community and the role of the PSF. As Python has become the were a tireless, friendly and helpful presence throughout the
glue language of the movie-making industry, is replacing Perl in event. Having organised UK PyCons since 2007, and a past
bio-informatics, is beginning to dominate the financial space, EuroPython, the organisers are not resting on their laurels –
and is finally supplanting Java in the educational world, does it next year an additional event is planned around sprints aboard
really matter that it has lost its cool or “underdog edge”? a ship from Plymouth to Santander and back. If you
Lindberg praised the uniqueness of the Python community, want to get involved with both a great community and
combining “kindness and professionalism”, and outlined where a fantastic language, all we can say is get on board!
19 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
OW
R RY
N
DEUR
OR H
SUBSCRIPTION VOUCHER
■
✔ YES I would like to subscribe to Linux User & Developer
YOUR DETAILS
Title First name
Surname
Address
Postcode Country
Telephone number
Mobile number
Email address
Please complete your email address to receive news and special offers from us
Name and full postal address of your Bank or Building Society Originator’s Identification Number
FANTASTIC
To: The Manager Bank/Building Society
5 0 1 8 8 4
Address
Reference Number
SUBSCRIBER
Postcode Instructions to your Bank or Building Society
Please pay Imagine Publishing Limited Direct Debits from the account detailed in this
instruction subject to the safeguards assured by the Direct Debit guarantee. I understand
Name(s) of account holder(s) that this instruction may remain with Imagine Publishing Limited and, if so, details will be
passed on electronically to my Bank/Building Society
Signature(s)
OFFER
Branch sort code
Date
Banks and Building Societies may not accept Direct Debit instructions for some types of account A6 instruction form
WorldMags.net
3 5
WorldMags.net
ISSUES OF
LINUX USER
FOR JUST
Readers in
the US see
page 83 for
exclusive
offer
WorldMags.net
WorldMags.net
Androidon your
Install
Raspberry Pi
Android ports are
now available for
Raspberry Pi, opening
up a whole new world of
possibilities. Here’s how
to get started…
Advisor
Rob Zwetsloot models
complex systems and
is a web developer
proficient in Python,
Django and PHP. He
loves to experiment
with computing
22 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Install Android on your Raspberry Pi
Projects for smart TV, home automation and an in-car computer
FEATURE
While one of the main reasons for the creation of the There are three types of projects we’re going to cover over
Raspberry Pi was to offer a cheap way for people to get the next few pages: a smart TV, a home automation remote
into programming and using Linux, there are plenty of and an in-car computer. While such distros like XBian and
people who see it being used as a replacement for other OpenELEC exist for media centres and home theatre PCs
forms of computing tasks. With the Pi being so small, the using the Raspberry Pi, the XBMC apps do not have the
concept of using it for purposes where space is a premium same kind of range as Android. With apps going outside the
is definitely not too far-fetched. Its form factor, weight and concept of plain media watching, and even the inclusion
low power requirements make it ideal for use in a number of Android games, there’s a lot more you can do with an
of situations; however, the software may not always be Android-run smart TV.
the best for the task. Where Linux may be lacking, though, For home automation, there are very mature X10 and
Android is there to cover it. Z-Wave remote control apps available on Android that are
Android ports to Raspberry Pi have been in the works for optimised for the kind of interface you’d want to use for a
a little while now, but they’ve only just been made a usable remote control, unlike the mainly mouse-focused tweaking
reality thanks to the recent open-sourcing of the VideoCore tools used on Linux distros. Finally, with in-car computers,
GPU driver code. This allows for full hardware acceleration the touch-screen optimisations and grid array for apps
of Android, something that was previously having to be done allow for easy navigation to music, podcast and other
purely by the CPU. media apps, as well as plenty of fantastic GPS and satellite
Android can offer a very different experience and navigation applications native to Android.
interface than a standard Linux distribution, without having
to obtain custom distros so it’s optimised for a particular
use. This means you can experiment with the sort of Meet Razdroid
applications you’d want to use Android for without carrying The team makes the first project to
around multiple SD cards in lieu of wiping them every time. get Android on your Pi
Thanks to an ever growing development community, Before the release of the VideoCore
Google recently announced that there had been 25 billion drivers, some community members
Android app downloads by the end of September, five decided they wanted to have a go
billion up from the number at the end of July, from its at porting Android to Raspberry Pi,
675,000-strong selection. With this rate of expansion, there creating Razdroid. Based mainly on
are always a number of apps for pretty much anything you’d CyanogenMod, the project got far enough to have a couple
want an Android device to do. With access to this range of of working ports, only limited by the lack of hardware
possibilities on the Raspberry Pi, you can create a system acceleration. Since then, the Raspberry Pi Foundation
that has the advantages of using a mobile, user-friendly has created its own ports, and eventually released the
OS, with the price of the Pi. And the addition of more I/O VideoCore driver to make ports of Android and other
ports from the Pi can make it fit in better than your standard software a lot smoother.
Android smartphone.
23 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Install Android on your Raspberry Pi
You can put Android on your Raspberry Pi If you’re feeling a little more adventurous, you
right now by visiting the Razdroid site at can compile the images from source instead.
www.razdroid.net. There are currently a couple You’ll be able to make changes, updates and
of images, based around both CyanogenMod 7.2 additions as well, if you want to improve the
and 9, with different performance capabilities build. The steps on this page will guide you
and app compatibility. The images can be put on through a basic build of CyanogenMod 7.2,
an SD card using the same method as you would based on Android 2.3, for the Raspberry Pi, using
a Linux distro image, and will run from boot the same files as the Razdroid image to get
without any extra setup needed. it working.
01 Install libraries
You’ll need to get the necessary
libraries for the build to work:
$ sudo apt-get install git-core
gnupg flex bison gperf build-
essential zip curl libc6-dev
libncurses5-dev:i386 x11proto-core-
dev libx11-dev:i386 libreadline6-
dev:i386 libgl1-mesa-glx:i386
libgl1-mesa-dev g++-multilib mingw32
openjdk-6-jdk tofrodos python-
markdown libxml2-utils xsltproc
zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-
gnu/mesa/libGL.so.1 /usr/lib/i386-
linux-gnu/libGL.so
■ Using a standard dd operation, you can get your Raspberry Pi running Android
Eben Upton
very specific goals in mind for the finished product. Thanks
to the way it met these goals, it has blown up as the darling
speaks
of hobbyists and other tech enthusiasts for all manner of
projects. To further understand the relationship between
the original goals and this new concept of putting Android
on the Raspberry Pi, we spoke to the co-creator of the
The co-founder of the Raspberry Pi himself, Eben Upton.
Raspberry Pi Foundation Upton told us that there had never really been any plans
Without Eben Upton, the Raspberry Pi originally for Android to be supported by the Raspberry
would not have been possible. Coming Pi. However, developments in recent times had changed
from a background of computing and the view of the Foundation: “A significant minority of our
teaching, Upton is currently a technical customers want to see it, so that makes it important to us.”
director at Broadcom and is responsible When the Foundation originally announced it was
for the overall software and hardware working on Android compatibility, it already had a working
architecture on the Raspberry Pi. prototype. “This implementation uses a different kernel
and VideoCore binary image from the one available on
GitHub,” explained Upton, “which is why we’ve been
keeping quiet about it so far.” This was in late July, and it
took the Foundation a further three months to finally get
the VideoCore drivers open-sourced. Upton told us shortly
before its release why it had been delayed so long: “The
CC: Jim Killock
24 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Install Android on your Raspberry Pi
Projects for smart TV, home automation and an in-car computer
FEATURE
04 Device tree
After the sync has finished, create a
new directory and download the device tree for
your build:
$ mkdir -p ~/android_pi/device/rpi
02 Working directory
We need to download the source to
a folder that we can make executable. First
$ cd ~/android_pi/device/rpi/
$ git clone https://github.com/
Mathijsz/device_rpi.git
create the directory: $ mv device_rpi rpi
$ mkdir ~/bin
Then add it to your path:
$ PATH=~/bin:$PATH 05 Initial setup
Before we do the actual build, we need
to run a little script to properly prepare the
And finally, download and chmod:
source code:
$ curl https://dl-ssl.google.com/dl/
$ cd ~/gingerbread_pi/device/rpi/rpi
googlesource/git-repo/repo > ~/bin/
$ ./initial_setup.sh
repo
$ cd ~/gingerbread_pi
$ chmod a+x ~/bin/repo
This will automatically make the changes.
03 Build environment
Now we’ll make a directory for the
build environment and initialise it for the repo
sync. First:
06
$ mkdir ~/android_pi The build
Then move to it and initialise: We’re now ready to build our Razdroid
$ cd ~/android_pi image. Make sure to do following to start
$ repo init -u git://github. the build:
com/CyanogenMod/android.git -b $ source build/envsetup.sh
gingerbread $ lunch
And finally sync: $ make -j4
$ repo sync -j16 Be aware that this may take a while.
Now the source code has been released, via the ARM ■ The Play Store will
Userland on GitHub, and marks the first time a full ARM- initially be missing
from any ports
based, multimedia SoC has received vendor-provided open-
sourced drivers, and Broadcom is the first company to open
up its mobile GPU drivers in this way. With it, people can get
down to finishing Android ports and starting new ones.
Android is well known as being used on touch-screen
interfaces, but earlier devices included keyboards
and trackballs. While this has gone out of vogue for
smartphones and other handheld devices, for testing out
your Android-powered Pi it would be useful to have this
option. Is it available now, though?
“I’m not aware of any significant challenges in this area.” Finally, one of the main reasons to use Android would be
Upton told us when we asked about traditional inputs. “We to access the huge array of apps. We asked Upton about the
■ The concept
expect most people would use Android with a mouse and issue with Google Play – those into the Android scene of the Raspberry
keyboard, and this seems to be a well-supported option might know that CyanogenMod had to remove this Pi is a spiritual
from ICS (Android 4.0) onward.” from the standard build for legal reasons. Upton successor to the
So with this native mouse and keyboard support, told us there were currently no plans to obtain BBC Micro
you’re going to be able to find a lot more applications for a a licence for the store; however, Android
Raspberry Pi running Android than you could do with even allows you install the APK files
an Android smartphone. On top of that, you will likely get without the store, and these are
the same kind of performance as a Linux distro according usually very easy to obtain.
to Upton: “I would expect them to be very close in terms
of performance. There may be more UI acceleration in
Android, though, which we hope to bring into Linux.”
25 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Install Android on your Raspberry Pi
Smart TV
configured for easy access to all the installed
software, and using home replacement apps
such as Launcher Pro will allow you to increase
Use your Raspberry Pi to the number of on-screen apps if the stock
make any TV ‘smart’ launcher displays too few for you.
This usage for Android has not gone
Smart TV is a very recent and popular buzzword unnoticed by other people, with a few
for a more advanced media PC running inside companies already on board. Recently, a high-
your TV, which add a whole host of different apps profile Kickstarter project was successfully
as well as being able to stream your content funded, called Pocket TV by Infinitec, which
from around a network. Android itself does not while definitely not the first Android-powered
need any specific apps or skinning to turn it into smart TV device, is notable for running off a USB
a functional smart TV – the display is already stick. Like the Pocket TV, the Raspberry Pi is
capable of running 1080p video without an issue.
The benefits of Android even go beyond the TV,
as Ahmad Zahran, founder of Infinitec, explains:
“[You] get access to all your information,
■ The Raspberry games, TV streaming channels, work
SAFE VESA documents and your entire digital life. You’ll
Mount add-on have all the benefits that you get from carrying
attaches the your smartphone but with the ability to display
Pi to most it on a much bigger screen. Imagine walking
flat-screen TVs
into a meeting and doing a presentation
without a laptop.”
As well as having access to simple
information apps such as the Weather and
Stocks, you can also use Android widgets to
add a news feed or social network streams, and
you can even connect to streaming websites
like Netflix or the BBC iPlayer, as well as
browsing the web.
Once you’ve got your Raspberry Pi set up as an
Android smart TV, you may be wondering where
to put it. Well luckily, there are a few cases out
there that support VESA mounts, the standard
used to attach flat-screen TVs to brackets and
walls. The Raspberry SAFE case by Solarbotics
is just the tool to tuck it out the way.
Game on! to buy and rent games and play them anywhere, thanks to
all the legwork being done in the cloud. Using the OnLive
Android app, you can access these games from your
Why not turn your smart TV into a Android-powered Raspberry Pi and play them directly
games console? on your television without the need for a bulky PC in your
If the buzz around the Ouya is anything to go by, a lot of living room. And it also works out much cheaper than the
people are interested in how to turn Android into a games official OnLive console.
console. With a Raspberry Pi running Android, you’re
already part way there. While you could use a mouse and
keyboard for some games, others will probably work better
with a joypad, and this is where the MOGA controller comes
in. It connects via Bluetooth to Android and is able to ■ The MOGA
control a number of Android games. can also
cradle Android
Get OnLive phones, hence
If Android games don’t really do it for you, how about full- the square
blown PC games? The OnLive streaming service allows you shape
26 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Install Android on your Raspberry Pi
Projects for smart TV, home automation and an in-car computer
FEATURE
Home
There’s also a problem with running on open
source operating systems. We spoke to an open
automation
source home automator, Conrad Vassallo, about
the problems he faced even getting it started:
“I did some research on systems that provided
There’s no need for costly home automation and concluded that Z-Wave
official controllers was the best option for me… soon I could control
the lights in my living room with the touch of
Using home automation can be fairly simple. a button on a remote control. However, this
There are a number of different standards used was not enough: I wanted to have the system
for achieving it, such as powerline-based X10, or controlled by timed events and so the quest
the RF-controlled Z-Wave products. These are for a Z-Wave computer interface was on. First I
usually controlled by very expensive remotes and bought a ControlThink USB stick, which did work
wall screens, vastly increasing the price over the fine for my needs; however, my home server runs looking up information, such as recipes via the
hardware you’d need in the first place. on CentOS and the ControlThink USB stick was Epicurious app, or using it to stream music from
only supported under Windows. So I had to run your file server while you cook.
the system on a virtual machine, which was not
the best option on an Intel Atom PC.” Home automation controller
Luckily he was able to get a setup running using Using your Android-powered Pi to control the
code from the Open Z-Wave project, creating house is fairly simple once you have it up and
his own controller out of it – you can obtain the running. However, you can make it completely
source code from here: code.google.com/p/ customisable using software like Open Z-Wave
open-zwave-controller/source/checkout. to set up timed events and remote access using
The benefit of running these Z-Wave systems your Raspberry Pi as the controller.
is that you can control them using Android apps. “When I got my first Raspberry Pi, I thought
A Raspberry Pi and a small screen to connect it to it would make the project more interesting
cost a lot less than the officially made products to have a dedicated appliance to control my
and generally work better for the purpose, as you lights,” explained Conrad Vassallo, who already
can always use the extra Android apps on the had a fully working solution. “So the next step
device anyway, whether it’s mounted on a wall or was to install SSH, Apache, PHP and MySQL
a small box on your coffee table. and my code on the Raspberry Pi. Now my
system was consuming very little power and
Kitchen computer performed flawless!”
The size of a Raspberry Pi allows it to fit in a lot of The system created by Conrad also supports
spaces – add a touch screen and it takes up very Android input. “The Raspberry Pi is an excellent
little room. Putting it in a discreet location like piece of hardware to ‘embed’ systems into. First,
■ Conrad Vassallo has tried a few solutions for the corner of a kitchen worktop gives you instant it is very small, silent, green and provides the
home automation, including some using the Pi access to the internet and your home network for services offered by larger, more expensive PCs.”
27 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Install Android on your Raspberry Pi
28 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Install Android on your Raspberry Pi
Projects for smart TV, home automation and an in-car computer
FEATURE
Contribute to Razdroid
Here’s some ways you can help port Android
As Eben Upton said, the Raspberry Pi is about content
creation, and what better way to do this than by getting
in on a project and helping out with the Android port?
Razdroid’s Viktor Warg tells us that the drivers are a
good start, but they need a little more: “We’ve analysed
the libraries and figured out that we need to implement
our own userland gralloc-module, and none of us have
even the slightest idea on where to start on that.”
The best place to start is to visit the Razdroid wiki,
www.razdroid.net,, and check on the current progress.
There’s also an IRC channel, #razdroid on Freenode,
where the developers regularly talk about their current
work, and the entire project is maintained on GitHub.
Of course you can always start your own project,
either by using the official Android source from the
AOSP, modding CyanogenMod, or forking Razdroid.
Happy hacking!
29 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Monitoring your server with tmux
You can monitor the Using ‘tail -f’, you can monitor
processes using up memory log files like /var/log/syslog
on your system with ‘top’
You can monitor the processes You can use ‘watch’ to periodically
using up CPU cycles on your run informational programs that
system with ‘top’ don’t have their own refresh option
30 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Monitoring your server with tmux
Use the terminal multiplexer to view and manage monitoring tools
TUTORIal
01
This may vary for other versions of top, so always
Getting tmux
check your version’s man page. You might also
Tmux originated as part of the
want to change the refresh rate by entering ‘d’ and
OpenBSD system. It should be available in most
setting the number seconds between each display.
distributions. For example, you can get it in
07
Ubuntu with ‘sudo apt-get install tmux’. If you Navigating windows
need the latest and greatest features, you can Now that you have multiple windows, you
download the source code from SourceForge. need to be able to navigate between them. The
simplest way is to use the shortcut navigation keys.
02 Building tmux
The build system uses the usual
‘./configure; make; make install’ steps to build
To move to a specific window, you can use ‘C-b’ and
then the window number. Remember that window
numbering starts at 0. If you simply want to move
n Checking CPU usage with top
tmux. The reason you may want to build your to the next or previous window, use ‘C-b n’ or ‘C-b p’.
own is that many distributions are behind one or
more versions on the software provided by their
respective repositories.
04 Starting top – CPU sorted
One of the things you will be interested
in monitoring is which processes are using up
the most CPU cycles on your server. A good tool
for this is ‘top’. The default when you first start
it is to sort processes based on CPU usage, so
that is fine.
03 Starting tmux
Starting tmux is as simple as typing
‘tmux’ and hitting Enter. Your console will clear
you have multiple programs running in the same
window. To split the current pane horizontally,
use ‘C-b %’ to get two panes, left and right. If
for a split second, and then you will be presented
you wish to split the current pane vertically, you
with a Bash prompt again, along with a status
would use ‘C-b "’.
bar located at the bottom of your screen. This
status bar will contain information about your
current tmux session.
31 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Monitoring your server with tmux
13 Disconnecting tmux
The next powerful feature of tmux is the
ability to take your session and detach it from the
console that you are currently using. To do this,
you can use the shortcut key ‘C-b d’. This puts
tmux into the background, allowing you to logout
of the server if you wish. The great thing is this
also works if your connection simply dies, too.
09 Navigating panes
Once you end up with multiple panes, you
11 Following dmesg
Kernel messages can be followed by
using the program dmesg. The problem is that
n Reconnecting to currently
running tmux session
14
need to be able to navigate them. To move to the it doesn’t do automatic refreshing. You can Reconnecting tmux
next pane in the current window, you would use the accomplish this with ‘watch -n 3 “dmesg | tail Now that you have a tmux session set up
shortcut ‘C-b o’. -n 15” ’, where the 3 is the number of seconds that is monitoring all of the parts of your server
You can also rearrange panes within a window. between refreshes, and the 15 is the number of that you are interested in, you may want to check
To swap the current pane with the previous pane, lines to display. in on it. You can log into your server and simply
use the ‘C-b {’ keyboard shortcut. To do so with the reattach to the existing tmux session with ‘tmux
next pane, use ‘C-b }’. attach-session’.
10 Using tail
Now that you have tmux essentials
under your belt, it’s time to add some systems 15 Byobu
There is an alternative program
monitoring. You’ll want to monitor system logs, available called Byobu. This program is
and you can do so in multiple panes, giving you an actually a wrapper around both tmux and
overall view. For example, navigate to an empty screen. It provides a prettier interface to
pane and enter tmux, including a more detailed, two-line
tail -f /var/log/syslog status bar at the bottom of the screen.
n Monitoring network connections
in order to get a continually updating view of This improved status bar will give you more
system messages.
12 Network statistics
The next area you will want to monitor is
networking. One utility you can use is netstat. To
information, like battery level, CPU frequency
and temperature, and even whether there
are updates available for your system. These
see all of the current connections on your server, extras are all configurable, and there is even
you can use ‘netstat -at | grep -v LISTEN’. This is the option of creating a custom notification.
non-refreshing, so again you will likely want to You should consider checking Byobu out as a
pass it to watch in order to get an updating output. ‘tmux+’ option for your monitoring setup.
32 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Monitoring your server with tmux
Use the terminal multiplexer to view and manage monitoring tools
TUTORIal
20 Naming windows
Naming windows is done through the
option ‘-n NAME’. This is important as it makes
managing the windows easier. This name gets
used to label the window, and it also gets used
when you target a window with some particular
command through the ‘-t TARGET’ option.
16 Naming windows
Once you have your monitoring windows 18 Creating windows
To create a new window, you need to add n Creating panes with split-window
21
set up, you will likely want to name them so that the line ‘new-window’ to the configuration file.
Creating panes
they are easier to manage. You can do so with When you create this new window, you can give
To create a pane, you will need to know
the ‘C-b ,’ shortcut. This will rename the current it a target of a current window whose index is
which window you want to do so in. You can use
window, and this new name will appear in the list where your new window will be inserted.
the ‘split-window’ command, with either the ‘-h’
at the bottom of the screen.
option for horizontal splitting or ‘-v’ for vertical
splitting. Panes are identified through their
0-based index in the current window.
17 Configuration files
All of the commands you have used so
far to create your monitoring session manually
19 Starting top
Another important option to the ‘new-
window’ command is a shell command to
23 Loading a configuration file
After all of this work, you should have
a configuration file that will load your entire
can be done automatically through the use of a execute upon launching the new window. This is monitoring session. To do so, you can save it
configuration file. Each of the shortcuts has an where you would place the command to start up to the default filename ‘~/.tmux.conf’, or you
equivalent long command which can be used in ‘top’ within your new window. can save it to another filename and load it with
the configuration file. ‘tmux -f filename’.
33 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Create and manage boot scripts and startup applications
The differences
in update-rc.d
over chkconfig
are explained
Learn how to use Create scripts to start up Automate your boot time by
chkconfig in Red applications using graphical launching browsers, music and
Hat-based distros tools or custom scripts scripts the way you want to
34 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Create & manage boot scripts & startup applications
Customise which programs and services start up at boot time
TUTORIal
01 Understanding rc.d
Debian and Debian-based distros use
the tool update-rc.d to manage init scripts, and
05 About chkconfig
Used by Fedora, openSUSE and other
non-Debian distros, chkconfig is a different
And off:
$ chkconfig --levels 016 {service} off
it’s very simple compared to chkconfig of Fedora tool that manages init scripts, although it works You can also reset them to default with:
and other Red Hat-based distributions. Simply somewhat similarly to update-rc.d. Chkconfig $ chkconfig{service} res
knowing the location of a script or the name of a uses the same concepts of run levels, but they
service means you can add it to boot. are different per machine.
06 Chkconfig service
To add a service using chkconfig using
default values, input the following:
08 Chkconfig remove
You can have a service removed from
boot time and chkconfig’s list by using the
$ chkconfig --add {service}
07
levels, from 0 to 6, but not all are the same. All You can also specify the service name after ‘--list’
Chkconfig run levels
Debian distros use the following classifications: and get details on only that.
You can specify what levels you want to
0 ..............................................................................Halt
use with the following commands for run:
1......................................................Single User Mode
$ chkconfig --levels 2345 {service} on
2-5 ......... Multi User Mode with Display Manager
6.........................................................................Reboot
Default adds services to start at run levels 2
through 5, and to stop at 0, 1 and 6.
04 Advanced update
As well as being able to add services
to boot using update-rc.d, we can also remove
them with:
$ update-rc.d {service} remove
We can also specify which levels the service
should run at:
$ update-rc.d {service} start 45
stop 01236
35 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Create and manage boot scripts and startup applications
10 Startup applications
For applications and programs to launch
after login, we need to use tools included with
12 GNOME startup browser
Let’s simply add Firefox to the list of
startup programs. Enter gnome-session-
hidden folder /.config in the home directory. You
can open it up in a text editor to see the syntax
that the gnome-session-properties uses, and
the desktop environments to let us achieve this. properties and click on ‘Add’ to bring up the Add edit it from there or create your own.
GNOME, KDE, LXDE and Xfce all use different Program window. Name and comment on it how
methods; however, Unity and Cinnamon are the you wish, but make sure you add the correct
same as GNOME because they’re based on it. command to the relevant field – in the case of
Firefox, it launches merely with ‘firefox’.
11 GNOME startup
GNOME uses the gnome-session-
properties tool to add applications to startup.
Exec =
Hidden = false
NoDisplay = false
You can access it by typing ‘gnome-session- X-GNOME-Autostart-enabled = true
properties’ into the terminal, or by pressing Name = Play Music
Alt+F2 to do the same thing. It’s a simple Comment = Play Music
graphical utility that lets you add, remove, edit Rhythmbox needs to be started, then controlled
and disable startup programs. with rhythmbox-client. Our code will look
something like this:
$ rhythmbox-client --play-uri={file
location}
You can also add an external media stream
14 GNOME autostart
The scripts for the startup programs are
kept in the autostart folder, which is usually in the
instead of a file location. It will begin to play from
all music, so you’ll be able to shuffle through all
your music.
The scripts
for the startup
programs are kept
in the autostart
folder
36 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Create & manage boot scripts & startup applications
Customise which programs and services start up at boot time
TUTORIal
22 LXDE autostart
LXDE does not have a simple graphical
tool to help you create startup rules – but it does
use the same .desktop files that we’ve been
16 KDE startup
The KDE autostart tool is found in System
Settings>Startup and Shutdown. You can use this
Actions = NewWindow;
Categories =
more simply:
[Desktop Entry]
Type = Application
to add and manage init scripts as well as startup Comment = Exec =
programs. To start, click the ‘Add Program’ Exec = Make sure to use ‘chmod +x’ on the file before
button. You can manually search for the program, GenericName = rebooting.
or enter its package name. Back to the Firefox Name =
example, you can just put ‘firefox’. Path =
StartupNotify = true
Terminal = false
TerminalOptions =
Type = Application
X-KDE-SubstituteUID = false
X-MultipleArgs = false
23 Cross startup
As the .desktop files are similar across
the major desktop environments, if you create
a script in one, it will work in others. They may
not always work between specific desktops,
though, so you’ll have to make sure all the
relevant information is included. KDE also has
an option in the graphical interface that makes
the script only work in KDE, however.
24 The end
Now you know how to have services and
20 Xfce startup
Xfce uses a very similar tool to the
applications run on startup at a system level or
after being logged in. There’s a lot more you can do
37 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Make an open source to-do list with Emacs
track your to-do list when you’re on the go Android apps. When the kids let
him have some time, that is
38 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Make an open source to-do list with Emacs
Use Emacs and org-toodledo to create a portable to-do list
TUTORIAL
01 Get Emacs
The first step is to get Emacs installed on
your system. Since Emacs has been around for so
some items to your ‘.emacs’ file. If you installed
from source, you will want to add ‘(require
'org-install)’. Otherwise, you will want to add
long, it has been ported to almost every system in ‘(require 'org)’. You will also want to add lines to
existence. On Linux, it should be available in any
07
tell Emacs to use org-mode when opening files
Setting deadlines
distribution you use. This is not usually the latest that end in ‘.org’.
Some tasks have to be done by some
version. If you want the latest functionality, you
time. You can get org-mode to set and track
may want to download the source code.
deadlines with the keyboard shortcut ‘C-c C-d’. You
can use shortcuts like ‘tue’ for the next Tuesday, or
you can enter the full data and time for a task.
03 Initial setup
In order to use the most basic
org-mode functions, you will need to add
The states are broken into those states for active
tasks (like TODO) and those for inactive tasks
(like DONE).
39 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Make an open source to-do list with Emacs
09 Setting priorities
Priorities can be set by using the keyboard
shortcut ‘C-c ,’. Or, you can add them manually by
12 Looking at your agenda
There are several built-in agenda
functions available. The default agenda view is
iOS and Android, called MobileOrg. This app
can synchronise with your org files via Dropbox,
WebDAV or an SD card.
typing ‘[#A]’ or ‘[#B]’ or ‘[#C]’, where A is the highest compiled using the shortcut ‘C-c a a’. This will
priority level and C is the lowest. give you a list for the week. If you want a list of
all of your to-dos, use ‘C-c a t’. This agenda is
15 Setting up Toodledo
While it is fully functional, some people
10 Estimating effort
Part of planning is estimating how long
each of your tasks will take. You can set this by
interactive, allowing you to edit the tasks involved.
You can also create your own agenda views,
do not like the workflow MobileOrg uses on your
mobile device. There are many different apps
available which provide different layouts and
tailored to your workflow.
setting the effort property with the keyboard workflows. Most of these apps synchronise
shortcut ‘C-c C-x e’. This effort can be used in
several different functions, including ones you 13 Planning your day
Now that you are able to set deadlines,
schedule tasks and view your agendas, you can
with various web apps. One popular web app
is Toodledo, and there are several mobile apps
may write yourself. giving you access to your tasks. If you wish to use
plan out your day’s work and actually get some this, you will need to synchronise org-mode with
things done now. This is the real reason for all task Toodledo. The first step is to go and sign up and
management systems. get your Toodledo account. Once you do, you can
get Emacs configured.
40 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Make an open source to-do list with Emacs
Use Emacs and org-toodledo to create a portable to-do list
TUTORIAL
management systems
other function or trigger.
16 19
Getting org-toodledo Setting task states There are different time properties,
The project org-toodledo is hosted Task states need to be synchronised both in Toodledo and org-mode. This means
on GitHub, where you can download zip files between Toodledo and your org-mode setup. You that there needs to be some form of mapping.
or grab a copy of the Git repository. Once you will want to be sure that your org file has all of the The org-mode deadline maps to the duedate
download it, you need to add the directory to task states from Toodledo. These can be set by and duetime in Toodledo, while the scheduled
the Emacs search path with ‘(push “/path/to/ including the line value in org-mode maps to the startdate and
org-toodledo” load-path)’. You will also want #+SEQ_TODO: TODO(t) DELEGATED(g) starttime in Toodledo.
to add the variables ‘org-toodledo-userid’ and SOMEDAY(s) WAITING(w) | DONE(d)
‘org-toodledo-password’ to allow access to your
Toodledo account.
CANCELLED(c) REFERENCE(r)
somewhere in your org file. 22 Getting rid of old tasks
You can’t cheat and delete tasks from
your org file. If you do so, then they will reappear
17 Patching Emacs
Depending on your version of Emacs,
you may need to patch some of the functions
during the next sync. You need to mark them
as done and then synchronise with Toodledo in
order to propagate the change. Once that has
in the url-http file. If you installed from source, happened, you can archive the done tasks with
simply apply the patches before compiling and the shortcut ‘C-c C-x C-s’.
installing. If you install from your distribution, you
will only have compiled elisp files. You will need to
download the source files for your version from
the Emacs site, patch the file url_http.el, then
copy it over to the installed location.
23 Mobile apps
Now that you’re synchronising to
Toodledo, you can go to your respective app
store and find an app that matches your style
of working on your mobile device. Our personal
choice is DGT, but there are many more to
chose from.
24 Where to now?
This article only covered the most basic
functions available in org-mode. Emacs is
essentially a full running LISP machine, so you
can always change the functionality to match
your own personal workflow. Check out the links
and see what else you can do.
41 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature The Hurd: the true kernel of the GNU operating system
The
Hurd
What happened
to the true kernel
of the GNU OS?
Work began on the the Hurd, the true A slightly large closet
Richard Stallman had announced his intention
kernel of the GNU operating system, in to write a complete UNIX-like operating system
to be known as GNU, ‘GNU’s Not Unix!’, in
May 1991, but it has yet to materialise September 1983. The years between 1983 and
the inception of the Hurd were spent writing
as a production-ready kernel. Richard the operating system and tools that made the
development of a kernel possible, the editors
Hillesley tells the story… and compilers, Bash, Make, Autoconf, Emacs,
GCC, sed, gawk and the command-line tools.
Although the GNU operating system was first place. But it wasn’t just the rise of Linux, or the GNU paid for itself through the sale of the
conceived in 1983 and the Free Software choice of the Mach microkernel that slowed the software. In the early days of the Hurd the
Foundation (FSF) had first declared an progress of the Hurd. FSF employed developers, before “any kind of
interest in using the Mach microkernel as The design of the Hurd was an attempt data over voice or particularly high bandwidth
the core of the GNU operating system kernel to embody the spirit and promise of the free connection was commonplace – so that
as far back as 1987, the sources of the Mach software movement in code. As one anonymous hacking was over modem connected to text
microkernel – developed at Carnegie Mellon hacker employee of the FSF back in the early days terminal. Mostly we hacked in a shared office
University (CMU) – weren’t released under of the Hurd project, put it: “The sentiment around which, if you saw it, you’d think ‘Wow, that’s
a suitable licence until 1991, by which time the design was, I think it fair to say, somewhat a slightly large closet.’ We were, at that time,
Linus Torvalds had begun his project to write giddy. The free software movement was (and is) guests of MIT.”
a UNIX-like kernel for the IBM 386. all about freeing users from subjugation to those Linus Torvalds had announced the arrival of
If the Linux kernel hadn’t been written when it who provide software. The Hurd’s microkernel “a (free) operating system (just a hobby, won’t
was, licensed under the GPLv2 and surrounded architecture and the structure of the daemons be big and professional like GNU) for 386(486)
by components of the GNU operating system, would securely free users from subjugation to AT clones” on comp.os.minix just a few short
or Linux hadn’t captured the moment and the system administrators – each user could securely months after work began on the Hurd. Torvalds’
imagination of developers, the energy that invoke a set of daemons to create the operating choice of a monolithic kernel was not the choice
gathered around Linux might have gone to the environment he or she wished, no special of the purists, but provided the quickest route to
Hurd and the world might have been a different permissions required.” a working kernel.
42 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
The Hurd: the true kernel of the GNU operating system
The original GNU UNIX-like kernel was supplanted by Linux but is still under development
FEATURE
The appeal of the Linux kernel to the hackers, Linux was dependent on GCC and the
hobbyists and academics who swarmed to help GNU tools, and its profile began to grow as
in its development was that it was free software, distributions emerged, and the FSF began to
available under GPLv2, and ran on the kind of see Linux as an acceptable, if sub-optimal
hardware they had at home. The momentum and temporary, substitute for the kernel at
was with Linux and the community grew the heart of the GNU operating system. As
surprisingly fast. The community made GNU/ Stallman was quick to point out: “There is no
Linux what it was, and while work continued operating system called Linux. The OS called
on GNU Hurd, it was at a slower pace. The Linux is GNU. Linux is a program – a kernel. A
community wasn’t coming its way. kernel is one part of an OS, the lowest-level
program in the OS that keeps track of other
An idealistic philosophy programs running, and apportions memory and
From a user perspective, the Hurd was going processor time among them.”
to be a long time coming, and the Linux He insisted that the GNU operating system
developers had slotted Linux into the space with Linux at its heart should be known as
that was meant to be occupied by the Hurd GNU/Linux so that “people understand that
at the heart of the GNU operating system. the system exists because of an idealistic
Stallman was initially sceptical. Early versions philosophy. Call it Linux and it defeats the
of Linux were exclusive to the IBM 386, and philosophy. It’s a very serious problem. Linux
according to Stallman: “We heard that Linux is not the system. Linux is one piece of it… The
was not at all portable (this may not be true idealistic vision of the GNU project is the reason
today, but that’s what we heard then). And we we have this system.”
heard that Linux was architecturally on a par Work continued on the Hurd but it became
with the UNIX kernel; our work was leading to obvious that the FSF had chosen a difficult route
something much more powerful.” in its search for perfection. The microkernel
Its original name was Alix – named after the woman who was
my sweetheart at the time. She, a UNIX system administrator,
had pointed out how her name would fit a common naming pattern for
UNIX system versions; as a joke, she told her friends, ‘Someone should
name a kernel after me.’ I said nothing, but decided to surprise her with
a kernel named Alix.”
It did not stay that way. Michael (now Thomas) Bushnell, the main
developer of the kernel, preferred the name Hurd, and redefined
Alix to refer to a certain part of the kernel – the part that would trap
system calls and handle them by sending messages to Hurd servers.”
Later, Alix and I broke up, and she changed her name;
independently, the Hurd design was changed so that the C
library would send messages directly to servers, and this made the Alix
component disappear from the design.”
Bushnell chose the name Hurd, partly because the Hurd suggested a
herd of GNU, and partly because the Hurd was a recursive acronym for
‘Hird of Unix-Replacing Daemons’ and a Hird was a ‘Hurd of Interfaces
Representing Depth’. As Bushnell put it “We have here, to my knowledge,
■ Richard Stallman announced his intention to write the first software to be named by a pair of mutually recursive acronyms.”
a complete UNIX-like operating system to be known
Thomas Bushnell is still a Debian developer and a Gregorian friar.
as GNU, ‘GNU’s Not Unix!’, in September 1983
43 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature The Hurd: the true kernel of the GNU operating system
AT THE
BLEEDING EDGE
Unlike the Linux kernel, which
is monolithic, the Hurd uses a
microkernel, and functionality is
moved out of kernel space and
into userland. The microkernel sits
between the hardware and most
of the activities that are normally
assumed by a monolithic kernel.
Thomas Bushnell, one of the
primary architects of the Hurd
in its earlier days, summarised
the theory in his paper ‘Towards
a New Strategy of OS design’,
written in 1996. “The GNU Hurd,”
he wrote, “is designed to make the
area of system code as limited as
possible. Programs are required
to communicate only with a few
■ A microkernel puts system processes into userland. “Programs are required to
essential parts of the kernel; the communicate only with a few essential parts of the kernel…”
rest of the system is replaceable
dynamically. Users can use the services of arbitrary users.” “It was well understood back daemons rather than syscalls
whatever parts of the remainder In practice, this means that users then,” an anonymous GNU being handled by a monolithic
of the system they want, and do not defer to the superuser employee remembered, “and kernel). Rashid’s work [at
can easily add components for activities like mounting a even a point of discussion in Carnegie Mellon] had suggested
themselves for other users to file system or loading a device academia, that a microkernel that this problem was not so
take advantage of. No mutual driver, which was the case architecture posed some difficult terribly significant after all. And
trust need exist in advance with Linux until recent years, problems for performance so, at least to me, it felt like the
for users to use each other’s since when Linux has begun to (related mostly to a greater GNU project was not only doing
services, nor does the system accumulate microkernel-like number of context switches this shoestring-budget freedom-
become vulnerable by trusting features of its own. as messages pass between fighting hacking, but also leading
44 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
The Hurd: the true kernel of the GNU operating system
The original GNU UNIX-like kernel was supplanted by Linux but is still under development
feature
work. Originally, it was even on hardware support, but can be usefully run in a
envisioned that the window virtual box and is worth a try.
system would be Lisp based. Where once the FSF paid developers to work
“One early change to the on GNU projects, most are now volunteers or
original GNU vision occurred employees of companies paid to work on projects
when it became clear that like GCC. Much of the focus went out of the Hurd
X11 worked pretty well and because Linux does the job, and there was no
n The Massachusetts Institute of Technology
was here to stay and would be burning need for another kernel, but the principle
free software. As a practical and the promise have lingered on, and there may
matter: just use that.” yet be scope for a return to the original vision of
the GNU Hurd.
45 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
THE ULTIMATE DESIGN MAG
FOR THE WEB PROFESSIONAL
OUT !
202
Inside every issue
Cutting-edge practical tutorials
NOW sale in
On and
WHSmithNoble
Profiles with the world’s best agencies Barnes &
• Simple Grid
• Ne WordPress the
• 5 w Idea XM me
• 18 0 hi-res L tem
plate
• 15• Slap Electr lens fla
0 das oske re im
Inspirational trends and site showcases
• T b Desig
m age
We
inu h de tch br s
uto ner
te c ush
s o o fon
ria © Ima
es
l fil gine
fv t
ot
ut
or
ial
Pu
s
bli
sh
ing
201
2
www.greatdigitalmags.com
WorldMags.net
Also available at all
good newsagents
WorldMags.net
The only Linux magazine for open source developers
100% FOSS focused » Features » Tutorials » Sample code
Build extensions
for GNOME Shell
Add new features and functionality
to your GNOME desktop
Supercomputing
for the masses
We talk to Andreas Olofsson,
founder and CEO of Adapteva,
about Parallella
Page 48
Build a network
of Raspberry Pis
Bring many RasPis
together with centralised
storage and authentication
Page 56
47 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Supercomputing for the masses
and chief executive of Adapteva, semiconductor giant Analog Devices for nearly
a decade designing highly parallel digital
create a $99 many-core pocket-sized Olofsson would leave Analog Devices in 2008
– bringing a few of his colleagues along with
19.05mm
■ Adapteva’s latest Epiphany-IV ■ Andreas Olofsson, founder and chief
processor packs 64 800MHz RISC executive of Adapteva, wants to bring
cores into a tiny, low-power package supercomputing to everyone
48 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Supercomputing for the masses
The $99 pocket-sized supercomputer is on its way
FEATURE
“A processor architecture is only do all the camera interface and everything like
that, all the high-level application, and then we
49 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Feature Supercomputing for the masses
■ Olofsson has a
plan for turning
the high-price
prototype into a
■ The prototype Parallella board – which pocket-size and
uses an external Epiphany daughterboard pocket-friendly
– already runs Ubuntu Linux product
50 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Supercomputing for the masses
The $99 pocket-sized supercomputer is on its way
FEATURE
Raspberry Pi”
51 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Build extensions for the GNOME desktop environment
52 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Build extensions for the GNOME desktop environment
How to create a volume control extender GNOME Shell extension
TUTORIAL
05
with future versions of GNOME 3, sometimes
Examining Hello World
compatibility may break. The same goes for
Our Hello World extension demonstrates
earlier versions as well. ■ Hello World extension in action
some very important functions of Shell extensions,
03
To get started, you will also need to install the
Running the newly such as putting an icon on the panel, responding to
following packages:
created extension a click event and displaying a message.
gnome-shell-extensions: Installing this official
The extension we have just created is not just Before we go about building our own
package will make sure that your system is ready
a stub, but actually a working Hello World extension, let’s look in more detail at how this
for GNOME Shell extensions.
example. Let’s run it. To do this you will need basic extension works.
gnome-tweak-tool: The GNOME Tweak Tool
to restart the GNOME Shell. Press Alt+F2, extension.js starts with the following import
allows the adjustment of several advanced
then type ‘r’ in the console and hit Enter. You statements:
GNOME options that can’t be configured
will notice a small gears icon appearing on the extension.js
in GNOME-control-center. While it is not
panel. Clicking on it will flash ‘Hello World’ on const St = imports.gi.St;
mandatory for development, it comes in very
the centre of the screen. const Main = imports.ui.main;
handy for managing GNOME extensions.
You can also enable a Shell extension using const Tweener = imports.ui.tweener;
On Ubuntu (12.10) systems, you can install
the GNOME Tweak Tool: The top-level import ‘gi’ stands for GObject-
these packages as follows…
$ gnome-tweak-tool introspection. It is a middleware layer between C
Add the GNOME 3 repository :
Go to Shell Extensions. You will see that our libraries (using GObject) and language bindings;
$ sudo add-apt-repository newly created extension ‘LUD Volume Control in this case it is JavaScript. Its main purpose
ppa:gnome3-team/gnome3 Extender’ is listed there. Turn it ON to load it. is to collect and extend the API metadata for
Run the following command to install
GObject-based libraries.
GNOME 3 and all the required packages:
The other top-level import, ‘ui’, refers to user
$ sudo apt-get install gnome-tweak-
interface components. In this case we are using
tool gnome-shell-extensions
main and tweener. Tweener is a class used to
For other distributions, please consult your
create tweenings and other transitions using
distro’s documentation.
ActionScript.
02 Creating extension LUD Volume Let’s take a look at the init function now
■ GNOME Tweak Tool with LUD Volume (explanations are added in the form of
Control Extender
Control Extender turned on comments):
GNOME Shell comes with a tool called
04
gnome-shell-extension-tool. This tool can be Inside a GNOME Shell extension extension.js
used to create extensions. Let’s start off by Let’s look what is inside the extension. function init() {
using this command: metadata.json : This file holds the metadata for We are creating a simple container with one actor.
$ gnome-shell-extension-tool the extension. It contains information such as button = new St.Bin({ style_class:
--create-extension the compatible shell-version the extension will ‘panel-button’,
You will be asked for some basic information work with, UUID, name and the description of reactive: true,
about the extension: the extension. can_focus: true,
Name: LUD Volume Control Extender metada.json
Description: LUD example to demonstrate {
53 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Build extensions for the GNOME desktop environment
07
x_fill: true, @code excerpt: extension.js Building the UI
y_fill: false, // in this function we are removing Instead of designing our own volume
track_hover: true }); the actor text from the stage control, we will be relying on the one provided
Setting up the icon for the container: function _hideHello() { by GNOME Shell. We will be using the same icon
let icon = new St.Icon({ icon_name: Main.uiGroup.remove_actor(text); and for the most part we will also keep all its
‘system-run-symbolic’, text = null; existing functionality.
style_class: ‘system-status-icon’ } extension.js
}); // The following functions are Building a pop-up menu for the Extended
button.set_child(icon); called when you enable or disable Volume Control:
Setting up the event handler for button- the extension. AdvPopupSwitchMenuItem.prototype = {
press event: function enable() { __proto__: PopupMenu.
button.connect(‘button-press-event’, Main.panel._rightBox.insert_ PopupSwitchMenuItem.prototype,
_showHello); child_at_index(button, 0); _init: function(text, active,
} } gicon, params) {
Now, let’s look at the event handler: function disable() { PopupMenu.PopupSwitchMenuItem.
extension.js Main.panel._rightBox.remove_ prototype._init.call(
function _showHello() { child(button); this,
if (!text) { } “ “ + text + “ “,
//St.Label is a widget for As mentioned before, the style active,
displaying text. Note that the style helloworld-label is defined in the params
assigned to it ‘helloworld-label’ separate CSS file called stylesheet. );
//is defined in the stylesheet.css css . This is your typical CSS style this._icon = new St.Icon({
file. sheet and reuse your existing web gicon: gicon,
text = new St.Label({ style_ skills in this CSS. style_class: “adv-volume-icon”
class: ‘helloworld-label’, text: @code:stylesheet.css });
“Hello, world!” }); .helloworld-label { Here we are rebuilding the switch:
//Here we are adding the actor text font-size: 36px; this.removeActor(this._statusBin);
to the stage. Items on the stage are font-weight: bold; this.removeActor(this.label)
called actors. color: #ffffff; The following container contains the various UI
Main.uiGroup.add_ background-color: elements for the new volume control:
actor(text); rgba(10,10,10,0.7); let labelBox = new
} border-radius: 5px; St.BoxLayout({vertical: false});
text.opacity = 255; padding: .5em; labelBox.add(this._icon,
// Here we are calculating the } {expand: false, x_fill: false, x_
position to display the text.
let monitor = Main. Building LUD Volume align: St.Align.START});
labelBox.add(this.label,
layoutManager.primaryMonitor;
text.set_position(Math.
Control Extender {expand: false, x_fill: false, x_
align: St.Align.START});
floor(monitor.width / 2 - text.width
/ 2),
Math.floor(monitor.height /
06 Setting up libraries
Now that we are acquainted with the
basics of GNOME extensions, it’s time to build
labelBox.add(this._statusBin,
{expand: true, x_fill: true, x_
align: St.Align.END});
2 - text.height / 2)); our LUD Volume Control Extender. this.addActor(labelBox, {span:
//Here we are defining the animation Let’s start with the libraries we will be using: -1, expand: true });
which will be used while displaying extension.js }
the text Clutter is a popular GNOME UI toolkit: }
//Note that we are calling function const Clutter = imports.gi.Clutter;
_hideHello at the end of the
animation.
In the following statement we are importing
GNOME Volume Control library: 08 Setting up the Volume Control
Mixer and Sound Streams
In this step we will setting up the new Volume
Tweener.addTween(text, const Gvc = imports.gi.Gvc;
Standard GNOME Widgets: Control Mixer and Sound Streams.
{ opacity: 0,
const St = imports.gi.St; extension.js
time: 2,
Provide support for pop-up menus: Set up the mixer and audio output controls:
transition: ‘easeOutQuad’,
onComplete: _hideHello }); const PopupMenu = imports. AdvMixer.prototype = {
} ui.popupMenu; _init: function(mixer) {
54 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Build extensions for the GNOME desktop environment
How to create a volume control extender GNOME Shell extension
TUTORIAL
this._mixer = mixer; You will notice that there is now a small arrow
this._control = mixer._control; after Volume which, when clicked, allows you to Top GNOME Shell
this._separator = new PopupMenu. switch to various audio output devices (if available). productivity extensions
You now have the ability to see which If you are taking a hit on your productivity
PopupSeparatorMenuItem();
applications are using the sound output, and you because of how GNOME 3 works, don’t worry.
this._items = {};
get the volume controls for each of them. You Here’s a list of the top extensions which will
this._outputs = {};
can also mute individual applications using the make your life much easier with GNOME 3…
this._outputMenu = new PopupMenu.
ON/OFF toggle. Official GNOME Shell Extensions: Most
PopupSubMenuMenuItem(_(“Volume”));
of the powerful productivity enhancement
this._mixer.menu.
extensions are part of the official gnome-
addMenuItem(this._separator, 1);
shell-extensions package. In Debian-based
this._streamAddedId = this._
distributions you can install it using the
control.connect(
command ‘sudo apt-get install gnome-shell-
“stream-added”,
extensions’. These extensions are installed in
Lang.bind(this, this._streamAdded)
/usr/share/gnome-shell/extensions.
);
this._streamRemovedId = this._ The most useful ones are:
control.connect( AlternateTab: AlternateTab is a replacement
“stream-removed”, for Alt-Tab that allows you to cycle between
Lang.bind(this, this._streamRemoved) windows, and does not group by application.
); ■ Default volume control Applications Menu: It provides a good old
this._defaultSinkChangedId = GNOME 2.x-style application launcher.
this._control.connect( Dock: This provides an additional (and
“default-sink-changed”, permanent) dock for GNOME, which displays
Lang.bind(this, this._ favourite and running applications.
defaultSinkChanged)
Removable Drive Menu: This one provides a
);
status menu for accessing and unmounting
You can find the rest of the code for step 8 at
removable drives.
www.linuxuser.co.uk/tutorials/tutorialfiles.
09
Places: Adds a system status menu for
Enable and disable extension
quickly navigating to places in the system.
methods
In the ‘enable’ function we are creating a new Workspace Indicator: This extension allows
instance of AdvMixer, putting it in the panel you to experience the multiple desktops
where the volume control is present. the good old way. It puts an indicator on the
extension.js panel indicating which workspace you are in,
function enable() { and gives you the possibility of switching to
if (Main.panel.statusArea[‘volume’] ■ LUD Volume Control Extender in action another one.
&& !advMixer) { Changing GNOME Jump Lists: This extension puts the most
advMixer = new AdvMixer(Main.panel. As you can see, with the LUD Volume Control recent of favourite documents within direct
statusArea[“volume”]); Extender we have made a significant change reach of the application itself: just right-click
} in the existing GNOME Shell volume control. on a launcher to view files and launch them in
} It almost feels like it is not an extension, but the application.
function disable() { something which is actually built into the Find more GNOME Shell extensions at:
if (advMixer) { GNOME system. That is the beauty of GNOME https://extensions.gnome.org/
advMixer.destroy(); Shell extensions, and they exist for a very good
advMixer = null; reason. When GNOME 3 was released, a lot of
} people hated the way it worked but still liked the
} elegance and simplicity that it offered. So they
10 LUD Volume Control Extender wanted a way to make changes to the GNOME
in action Shell while keeping the overall experience intact.
After making the changes, press Alt+F2, then GNOME Shell extensions provided that way.
type ‘r’ in the console and hit Enter to restart
GNOME Shell. This will reload the extension with
Credit where credit’s due:
The LUD Volume Controller Extender ■ Applications Menu extensions in action
the latest changes.
uses the code from Harry Karvonen’s
You will notice that there are no new icons this
AdvancedVolumeMixer project located at
time. Click on the Volume icon and you will notice
http://repo.or.cz/w/AdvancedVolumeMixer.git
some subtle differences.
55 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Building a network of Raspberry Pis
The Network
Information Services An external storage
and Network File device connected
System server to the server to
providing centralised periodically back
authentication and file up each user’s files
storage to the clients
A network switch
connecting each
device to the network
Building a network
of Raspberry Pis
Learn how to set up a network of Raspberry Pis
with centralised authentication and file storage
Advisor In this tutorial, we’ll learn to set up a Network
Information Services server on a Raspberry Pi
writing that to two SD cards. Note that we’ll be
making a master SD card for the clients which can
Liam Fraser is the creator that centralises some of the configuration of then be written to the rest of the SD cards, so only
of the RaspberryPi Tutorials
YouTube series and volunteers as Linux systems. This includes user accounts. This write the image to two of them.
a Linux server administrator for means that we can set up users on the Raspberry The instructions for flashing an image to an
the Raspberry Pi Foundation Pi server and have them available on each SD card can be found at www.linuxuser.co.uk/
client Raspberry Pi. This arrangement would tutorials/how-to-set-up-raspberry-pi/. You will
Resources be useful in a classroom situation where there
were a number of Raspberry Pis shared between
only need to go up to the step where you write
the image to the SD card. Note that you will have
At least 2 Raspberry Pis classes. Each child would have a username and to adapt the instructions slightly for using the
with appropriate peripherals password, and they would have access to all latest Raspbian image rather than the Debian
(Note that the server Raspberry Pi will of their files from any Raspberry Pi once they one. The image that we used was 2012-09-18-
only need a power and Ethernet cable have logged in. One big advantage of this is that wheezy-raspbian.zip.
connected once configured)
each user’s files can be backed up from a single We are going to assume that you are plugging
SD card place. We’ll also be giving some examples of the Raspberry Pis into an existing network
Computer software that could be used in a classroom on the with DHCP, a protocol for handing out network
Network switch Raspberry Pi. settings to devices that connect to said network.
We’ll be using the latest Raspbian image as the This way, they can get access to the internet for
Ethernet cable operating system for both our Raspberry Pi server installing packages and other useful things such
Storage device and Raspberry Pi clients, so we’ll need to start by as teaching resources.
56 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Building a network of Raspberry Pis
Create a Pi network with centralised authentication and file storage
TUTORIAL
02 Fire up your Linux computer HWaddr xx:xx:xx:xx:xx:xx Network Information Services. Accept any
Now that we have enabled SSH on the inet addr:172.17.173.249 extra packages that may be required. You will
server Raspberry Pi, we can configure it remotely Bcast:172.17.173.255 now be taken to the package configuration
using SSH as long as your Linux computer is on the Mask:255.255.255.0 screen for NIS. It will start by asking you to
same network (if not, connect it now). We might pi@raspberrypi ~ $ ip route show enter an NIS domain. This can be anything you
as well make sure that SSH works now for when default via 172.17.173.1 dev eth0 like, but we’re calling ours raspberrypi. Once
a monitor is no longer needed. During the boot 172.17.173.0/24 dev eth0 you have set that, NIS will continue to install
process of Raspbian, a message will be displayed proto kernel scope link src and then the NIS services will attempt to start.
with the current IP address of the Pi. Open up a 172.17.173.249 This will take a few minutes and fail, so don’t
terminal on your Linux computer and type ‘ssh pi@ worry when that happens. We need to do more
[your Pi’s IP address]’. Type ‘yes’ when asked if you
04 Restart the server Pi configuration before it will work.
08
want to connect and then enter the new password Restart the server Pi so that the
Configuring NIS
that you set. You are now logged into your server Pi. networking changes we just made can take
We need to do a few things before our
place. Log back in using SSH and the new IP
03 Setting up a static IP address NIS server will work. The first thing we need to
address that you chose.
We highly recommend assigning a do is open up /etc/default/nis with nano as we
05
static IP to your server Raspberry Pi because do in the usual way. Make sure you prefix the
Installing the required packages
you, and more importantly the client Raspberry nano command with sudo because we need root
for an NFS server
Pis, will always know where to find it on the privileges to edit each of these files. You need to
NFS stands for Network File System, and is what
network. We’ll need to find out a couple of change the line
we’ll use to share each user’s home directory.
things about your current network setup before NISSERVER=false
Run the command
setting a static IP. You can use the commands to
sudo apt-get update
‘ifconfig eth0’ and ‘ip route show’ to do this. NISSERVER=master
to update the package lists on the device,
We’ve included the important output from our and also change the line
followed by
commands below so that you can see what to NISCLIENT=true
sudo apt-get install nfs-kernel-
do with each value. Now that we have found out to
server nfs-common rpcbind
things about your network, such as your current NISCLIENT=false
to install the packages required for an NFS
IP address, the network mask and so on, we can Save the changes and then exit nano. We then
server. You’ll probably get a message like ‘[warn]
set up a static IP address. need to edit
Not starting NFS kernel daemon: no exports....
Use the command (warning)’. This is just telling us that the NFS
sudo nano /etc/network/interfaces server hasn’t started because we haven’t set it
to edit the networking configuration file. Use the up to share (export) any directories yet.
57 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Tutorial Building a network of Raspberry Pis
/var/yp/Makefile
and change the line
and then press Ctrl + D followed by Enter. We can
now start the NIS server using the command
13 Mounting the server’s home
directory
It’s now time to mount the server’s home directory
ALL = passwd group hosts rpc sudo /etc/init.d/nis start as our own. We want to do this at every boot,
services netid protocols netgrp so we’ll put an entry in /etc/fstab to make it
to
ALL = passwd shadow group hosts rpc
services netid protocols netgrp
10 Adding a new user
All users are added on the NIS server. You
can use the command ‘sudo adduser [username]’
permanent. Open /etc/fstab in nano and add a
line in the following format to the end of the file:
[server ip]:/home /home nfs defaults
The password file on Linux contains a list of to do this, and then fill in the extra information 0 0
users and various information about them such required interactively. The NIS databases are You can now save the changes and use the
as their home directory and the User & Group updated automatically after adding a new user. command ‘sudo mount -a’ to mount each entry in
IDs. We need to add the shadow file to the list We now need to add the new user to some groups the /etc/fstab file, therefore mounting the servers
because that file stores the password hashes for so they can do things like play audio and so on. home directory as the clients. If you run ‘ls /home’
each user. We also need to change the line You can do this with the command ‘sudo usermod you’ll see the home directory of the test user we
MINGID=1000 to MINGID=0 -a -G audio,video,plugdev,games,users,netdev, created before and also the pi user on the server.
because we’ll be adding our NIS users to system input [username]’. We have now made more pi@raspberrypi /home $ cat /etc/
groups such as audio so that they can play changes to the user and will have to rebuild the fstab
sound. The next step is to change the server’s NIS database manually using: proc /proc proc
hostname by editing the /etc/hostname file. cd /var/yp defaults 0 0
We’re going to change our hostname from sudo make /dev/mmcblk0p1 /boot vfat
raspberrypi to nismaster. We then need to You can use the command ‘sudo passwd defaults 0 2
change /etc/hosts to complete the hostname [username]’ on the NIS server as the pi user to /dev/mmcblk0p2 / ext4
change, as well as add an extra line. We need change the password of a user. You will have to defaults,noatime 0 1
to do this because servers running NIS are rebuild the database again after doing this. # a swapfile is not a swap
added by name rather than their IP address. partition, so no using swapon|off
You’ll see this shortly. Plus, we should be able to
differentiate the NIS server from all of the other
Raspberry Pis anyway. Change the line
11 Preparing the client
We’re pretty much done with the NIS
server for now, so it’s time to start working
from here on, use dphys-swapfile
swap[on|off] for that
172.17.173.249:/home /home nfs
127.0.1.1 raspberrypi on a client image. Connect up the second defaults 0 0
to Raspberry Pi and insert the SD card with the pi@raspberrypi /home $ ls /home
127.0.1.1 [your new hostname] fresh Raspbian image on. Raspi-config will pi testuser1
You’ll also need to add a new line for the IP show as it did when we configured the server.
address of the NIS server in the form: The only option you need to use is the one to
[IP address] [hostname].[NIS domain]
[hostname]
expand_rootfs and then select ‘Finish’. Select
‘Yes’ to reboot now. 14 Becoming an NIS client
You need to open up /etc/yp.conf in nano
(remember to use sudo) and add the lines:
58 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Building a network of Raspberry Pis
Create a Pi network with centralised authentication and file storage
TUTORIAL
20 That’s it!
We now have a central authentication
and file storage area that gets backed up, as
well as a master image for the client Raspberry
Pis filled with useful software. Enjoy!
59 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
ON 100% Android
»Apps
SALE »Tutorials
»Hacking
The new issue »Reviews
on sale from
1 November
Hardware
62 Samsung Galaxy
Note 10.1
The Note migrates to the tablet
form factor in fine style
64 Synology DS213air
Synology’s latest small and
home office network-attached
storage box
66 Archos 101XS
Archos adds keys to its
latest tablet
80 Fractal Design
Define R4
Possibly the perfect home
“It’s possible to server case
Synology DS213air
Avoid at all costs
76 CAINE 3.0
We rate the latest build of this
penetration-testing distro
78 Ubuntu 12.10
We score Canonical on Ubuntu’s
new (and controversial) features
61 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Samsung Galaxy Note 10.1
tablet
Samsung Galaxy
Note 10.1£389.99
The Note is not just a pocket-sized offering – the range
now has a ten-inch version. It’s rather stunning too…
Technical specs
Operating system Android 4.0
Processor 1.4GHz quad-core
Memory 2GB RAM
Storage 16GB internal
Dimensions 257.8 x 175.3 x 8.9mm
Weight 580g
Display size 10.1-inch
Display resolution 1280 x 800 pixels
Expansion slot microSD
Samsung’s Galaxy Note proved such a surprise The stylus sits in a housing on the chassis and you can use
Pros Cons
The stylus is Lower resolution hit that the company has not only produced a it all of the time. Tapping icons with its nib has the same effect
improved; the than we’d like; follow-up handset but also a spin-off in the as patting them with a fingertip, and you can sweep with the
tablet is super- stylus will
powerful; great turn some off; form of a full-sized tablet. As a Note it does stylus too – for example, on the unlock screen.
specification with proprietary include a pen for scribbling on the screen, but Not all apps support the stylus, though. A sidebar showing
lots of memory connectors
other than that, it is not really a companion those that do appears when you extract the pen. The list is
device to its smaller ‘phablet’ brother. While that is unique, the small: S Note, S Planner, Crayon Physics, PS Touch and Polaris
Note 10.1 has plenty of competition, not least from Samsung Office. These variously let you make notes, manage your diary,
itself with the similarly specced (and much cheaper) Galaxy play a physics-based game, draw and edit images and create
Tab 2. Has the company gone crazy by splitting its own market Office files. There’s handwriting recognition in the Notes app.
in this way, or is it ensuring that it has devices for every need? You’ll find other pen-supporting apps for download, too.
Well, that rather depends on whether the Galaxy Note meets It’s all very similar to the Galaxy Note II, except that it runs a
a need. We aren’t so sure about that. For all the goodness of slightly older version of the software, including the Ice Cream
the pen-based input, it is still limited – and we aren’t sure we’d Sandwich operating system rather than Jelly Bean.
actually use it a great deal after the initial excitement. Others There are a couple of other goodies on board. You can split-
will disagree, we’re sure. screen some apps, viewing two at the same time. But the
62 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Samsung Galaxy Note 10.1
Large-screen Android tablet with stylus
REVIEW
63 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Synology DS213air
The Wi-Fi
capabilities of
the DS213air are
fully integrated,
with a front-facing The Synology logo
status LED and no doubles as an air
antenna in sight intake vent, but
fails to muffle the
sound of internal
hard drives
The front-mounted
power button
provides a safe
shutdown if held
for four seconds Sturdy rubber feet
keep the DS213air
stable, but there’s
no option to lay the
unit on its side
STORAGE
Synology DS213air£250
Synology’s latest small and home office Synology has forgotten the components. Its plastic chassis
– which is secured by two screws in the rear – slides apart to
network-attached storage box packs reveal the hard drive bays, and it’s immediately clear why the
box is so light: aside from a single motherboard and the SATA II
Wi-Fi capabilities, but is that enough to backplane, there is barely anything to the DS213air’s internals.
Hidden in the packaging is one of the reasons for such
justify the high-end price tag? a spartan interior: unlike Synology’s larger NAS units, the
DS213air has a laptop-style external power supply, which
terminates in a DC plug rather than accepting an IEC mains
power input. It’s a disappointment, as the black power brick
Built around the same dual-bay chassis as spoils the DS213air’s clean white aesthetics, but at least it’s
Pros Cons the existing DS213, the DS213air NAS unit compact and includes a generous length of cable.
Compact, The thin plastic
lightweight and casing fails to upgrades its predecessor with 802.11b/g/n Setting up the DS213air is as easy as screwing the drives
with a near-silent mute sound from
fan, plus the the hard drives;
wireless networking. While this is limited to into place – both 3.5” and 2.5” hard drives are supported, with
built-in Wi-Fi is external PSU is 2.4GHz only, it certainly helps to expand the the device accepting up to 4GB drives – using the provided
extremely versatile disappointing
device’s capabilities. screws, sliding the plastic casing back together and then
The compact dimensions of the device are placing two final screws in the rear. Connect the external
impressive enough, but it’s the weight that is most surprising: power brick to the DS213air and a mains socket, hit the power
pick up the DS213air and you’d be forgiven for thinking button and you’re off.
64 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Synology DS213air
Network-attached storage with Wi-Fi
REVIEW
Technical specs
Operating system Synology DiskStation Manager 4.1
(proprietary Linux-based OS)
Processor Intel Atom 1.6GHz
Memory 256MB DDR3 (not upgradeable)
Dimensions 165 x 100 x 225.5mm
Weight 940g (excluding drives)
Drive Bays 2x SATA II (non-hotswap)
Wired networking 1x Gigabit Ethernet
Wireless networking 802.11b/g/n Wi-Fi (2.4GHz only)
Expansion 2x USB 3.0
The large fan spins near-
silently – a claimed 19dBA –
but provides excellent airflow
through the case Also
USB 3.0 ports provide high-
consider
speed access to external drives,
next to a Gigabit Ethernet port
65 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Archos 101 XS
There’s no back-facing
camera, but a small
front-facing one sits on the
screen bezel and is good
enough for video chat
TABLET
66 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Archos 101 XS
Android tablet with keyboard
REVIEW
Technical specs
Operating system Android 4.0
Processor 1.5MHz dual-core
Memory 1GB RAM
Storage 16GB internal
Dimensions 273 x 170 x 8mm (tablet)
273 x 170 x 5mm (coverboard)
Weight 600g (200g coverboard)
Display size 10.1-inch
Display resolution 1280 x 800 pixels
Expansion slot microSD
foldout stand. The overall effect is that the tablet sits at There’s a microSD card slot on one of the short edges too,
a good viewing angle and feels fairly sturdy. When not in making it really easy to double – and more – the built-in 16GB
use, more magnets around the coverboard’s edge hold it of storage quickly and affordably.
onto the tablet, thereby protecting the screen. We found The screen is good, but by no means the best. The 10.1”
that it slipped out of alignment fairly easily, though, so you display with its 1280x800 pixel resolution is the same as we’ve
will still probably need a separate carrying case for better seen on the 7-inch Nexus 7, and it can be beaten in a tablet its
Also
travel protection.
The keys are quite small, but relatively comfortable to use.
own size, but we found it an amply comfortable experience.
Archos has not left its media-friendly roots behind consider
The minimal amount of travel for the keys means it never completely. Of course, the Archos 101 XS handles movies and
threatens to completely replace your laptop in the way a sound efficiently, and the music and video apps have been
Transformer does. There are plenty of Android-specific keys tweaked to include a carousel of album covers and movie
such as Menu, Home, and recent apps, as well as dedicated thumbnails for you to sweep through. A wide range of video
keys for media playback, Bluetooth and Wi-Fi toggles, not to formats are supported too.
mention screen brightness and audio volume.
The keyboard has been well thought out and mixes Samsung Galaxy
in really well with the screen, providing for a satisfying In all, then, a decent Note 10.1
experience all-round. package at a fair price. The design puts a different spin £389.99
Reviewed over pages 62-63
Archos has been clever enough not only to build in Android 4 on a concept we’ve seen before and the performance this very issue, the new
but also to promise an upgrade to Android 4.1 before the is acceptable if not groundbreaking. Users after a 10.1” Note is an impressive
offering. With a stylus instead
calendar year is out. Behind the screen you’ll find a dual-core tablet to function as a real laptop alternative will still of a physical keyboard, the
1.5GHz processor supported by 1GB of RAM. There are far be better off looking at the various Asus models, but choice between them comes
down to which you’d likely
quicker devices around, but what’s on offer is more than good those seeking a to enhance a traditional tablet with use more.
enough for the kinds of tasks you’ll be doing. a physical keyboard for more casual use should be www.samsung.co.uk
It is good to see HDMI output here, albeit in mini socket more than happy.
format and Archos doesn’t bundle an adaptor. The micro-USB Sandra Vogel
port features USB Host, so you could attach external More
peripherals – again, you will need to provide your own information
adaptor, though. www.archos.com
67 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review GNOME 3.6
n Putting a lot of
necessary functions
into the activities
overlay slows down
your workflow
desktop environment The release of GNOME 3 was just over 18 months ago, and
it’s been an interesting time to say the least for the desktop
GNOME 3.6
environment and its users. With complaints centring
around usability and the abandoning of the traditional
desktop metaphor, the GNOME project says it’s taking this
user feedback to heart, returning oft requested features
such as the power button on the user bar in the brand
new GNOME 3.6.
The latest version of the GNOME Shell There are things that GNOME 3 does do well, though – and
3.6 carries on this tradition. Keyboard navigation is pretty great,
is here. Has it addressed the concerns allowing you to press whatever your equivalent of a Windows
key is and search for documents and applications. This is very
of users, or gone farther down the path responsive – and if you know what you’re looking for, you can
access apps faster than before. Notifications have always
of simplification? been good as well, and there have been a few updates to allow
for multiple events, easier dismissal of boxes, and they only
show up important notifications when doing something full-
screen. We even quite like the dynamic workspace, creating
new virtual desktops as you start using another.
Pros Cons Unfortunately, there is still so much fundamentally wrong
Keyboard navigation ...only it’s for
is still great, and it desktops, with with GNOME, and 3.6 seems to have gone even further out of
will probably be mostly mouse users.
very good with a GNOME seems to go its way to interrupt or generally slow down workflow. The main
touch-screen device out of its way to slow problem that has been plaguing GNOME 3 since its inception
or tablet… down your workflow
is navigating with a mouse – everything requires too many
68 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
GNOME 3.6
Latest version of desktop environment
Review
n The GNOME web browser has no available space to drag it off full-screen
69 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Office suite group test
group test
LibreOffice
It’s been a great year for LibreOffice, with formulas for inclusion in a document. These
two major releases both vastly improving the are presented on a front-end, but you can go
office suite over a period of a few months. straight to each application as you wish. n LibreOffice has a handy
Going from strength to strength and, thanks the The layout of each app is basically a greatest launch manager
community, fixing countless bugs left over from hits from other popular office suites, and a
the original code (it was forked from OpenOffice
in 2010), LibreOffice is one of the shining
handful of community-requested features
to go with it. The entire interface is heavily
scores
examples of open source software done right. customisable, including creating your own Installation & support
10
Now on version 3.6, it has never been better, with formatting menus and bars, and even the Huge community backing
added PDF capabilities, improved spreadsheet individual programs themselves have a lot of means it’s readily available
formulas and even little things like a word count customisation to help tweak them to your usage. in many forms
bar in the Writer word processor. Compatibility-wise, LibreOffice is one of the
The popularity of LibreOffice is such that best. Able to open and save to just about any
Ease of use
8
you probably don’t even need to install it. kind of relevant file type, its compatibility is ever
Most distros have it available as standard, or increasing over each version. Most notably, in No improvements over the
at least a link to install the full suite from the our tests, spreadsheets that didn’t work so well standard office suite layouts, but
apps menu. Otherwise it’s in all major repos with the other competitors were just fine in Calc. it does that well
and there are plenty of options available on There’s very little we can fault with
the website other than compiling from source, LibreOffice. Its great to use, nowhere near as
Compatibility
9
for people who find that a bit daunting. As well buggy as it used to be, and each successive
Near perfect, with constant
as the standard word processor, spreadsheet update makes some noticeable improvement.
improvements bringing it
and presentation apps, LibreOffice also comes In the future we also have Google Docs-style
ever closer
with Base for databases, Draw for diagrams, collaboration coming, and ports to Android after
and Math for creating properly formatted that. LibreOffice is truly a masterpiece.
9
Features
The most feature-packed
office suite available
9
Overall
We love LibreOffice. While
there was always lingering
doubts about the quality
of OpenOffice compared
to proprietary office
n CSV updates suites, LibreOffice is of a
have been professional quality
added to
allow custom
More information
www.libreoffice.org
imports
70 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Office suite group test
Four of the best open source office suites go head to head
Review
Apache
OpenOffice
The tale of the fall of OpenOffice is quite
well known by now. While it was still called
OpenOffice.org, some of its developers start
The Document Foundation due to concerns of
Oracle meddling negatively; they eventually
release LibreOffice and it quickly overtakes
OpenOffice. This surge in popularity was due
to a number of reasons, but actually tackling
the extensive list of bugs from OpenOffice
contributed to it. Since then, Apache has
n The quick launch window
acquired the OpenOffice code and is now
was original in OpenOffice
developing it itself. That’s not to say OpenOffice is particularly bad
OpenOffice is now in version 3.4, one above the – while it definitely wasn’t perfect, it was certainly
final Oracle release, and 16 months after 3.3 was very competent, and the compatibility with other scores
originally released. This first version of Apache office suites and file formats was pretty great for
OpenOffice is a step towards a version 4.0; everything but the most complex spreadsheets. Installation & support
4
however, there has been very little in the way of This remains roughly the same, albeit with a bit Gone from most package
bug fixes and updates to the code beyond making more language support, a handful of major bug managers, and slow to
it compliant with the Apache licence. fixes, and general performance increases. update. You’ll need to remove
That pretty much makes it a non-starter. The Again though, it’s just not enough. When the LibreOffice for it as well
code was bloated and old when The Document exact same code has been overhauled in the
Foundation started with it, and the progress same time it took Apache to even release its
Ease of use
8
it has made in the past two years has been first stable version, it’s a big problem. There’s
absolutely phenomenal, squashing numerous absolutely no reason why you’d want to use One of the strong suits of the
bugs and fixing or adding countless features. OpenOffice over LibreOffice if you have the original: OpenOffice is still
The release of AOO 3.4 was far behind the state choice, at least at this stage. While the future recognisable and easy to use
of LibreOffice at the time, and while there were may hold a brighter future for OpenOffice once
improvements over the Oracle-released beta, the older Lotus suite is integrated into it for 4.0, at Compatibility
7
using it after LibreOffice is like a step back. present it’s still in the shadow of its successor. It will open most document
formats you can throw at it,
but not always correctly
8
Features
It has a full suite of applications
that will definitely help you out,
whether you’re in a pinch or not
6
Overall
OpenOffice’s hand-off
to Apache has not paid
dividends for the ageing
software yet, and in the
face of LibreOffice it looks
especially worse off
More information
www.openoffice.org
n OpenOffice still has great compatibility
71 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Office suite group test
5
Otherwise, the rest of the software covers Much of the same can be said for Gnumeric,
While some of it does come
most of the bases. However, application to although it is relatively a lot more feature rich
by default with GNOME, the
application, each individual element is not up to than AbiWord is. However, we did experience
rest cannot be installed as one
the same quality as its rivals. problems with it importing some spreadsheets
GNOME Office package
For example, AbiWord is fairly competent. It that the others were able to handle fine, making
contains basic formatting and table options, it possibly the weakest spreadsheet software
Ease of use
8
you can open just about any kind of document for compatibility in this group test.
file type, save the result to even more formats It’s clear that this GNOME Office group of Generally simple and easy to
and it’s generally easy to use and nicely laid out. programs is not really meant to fully replace a use, copying the standard office
Unfortunately, that’s about it. Features-wise, full office suite, but at least it lets you get by until software layouts
everything is shown up front, and there’s no you do install one. As some of it comes with a lot
customisation for the menu bars or much of the of distros that run GNOME and GNOME forks, it’s Compatibility
software at all. While it’s a lot more advanced at least good for that. Depending on which part,
it can be quite bad or
quite good
5
4
Features
The basics, if that, and no
proper presentation software
5
Overall
The GNOME office
packages are good for
holiday checklists, but
for anything approaching
serious office work you’ll
be stuck
More information
www.gnome.org
n Compatibility in Gnumeric is inconsistent
72 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Office suite group test
Four of the best open source office suites go head to head
Review
Calligra
Suite
The Calligra Suite was originally based on the
same code as KOffice, albeit at a much earlier
point in its development. While it shares some
similarities with KDE’s original office suite, they
both went down different paths and when
KOffice development came to halt a couple of
years ago, Calligra Suite became the de facto KDE
office software package.
Calligra is readily available in a lot of package
managers, especially for distros that support n Words has an interesting interface that
KDE. Unlike LibreOffice and OpenOffice, it works well with widescreen displays
doesn’t particularly conflict with anything, portrait page can easily fit on the side while all the
meaning you can at the least have it among other formatting flanks it. You can see more of the page, scores
office software if you prefer specific features. and that little touch adds a fair bit. Sadly, for a
What you get with your install is Words, the word spreadsheet, this has the opposite effect. As you
Installation & support
8
processor; Stage for presentations; Sheets for can’t change the orientation, the more complex
Available as one package
spreadsheets; Flow for diagrams; and Kexi, a the spreadsheet, the less you’ll be able to see.
in most repos, and is
visual database creator. Still, there is a lot of customisability in the
supported by KDE
Calligra’s layout is very different from the Calligra suite, enabling you to edit the contents
classical office software setup. Instead of menu of the menus and some of the basic workings and
bars and formatting at the top of the window, defaults for each individual app. The compatibility
Ease of use
6
everything is put down the right-hand side, which is a bit odd, though – while it will open almost any
Depends entirely on the
has its pros and cons. For starters, the slightly file we could throw at it, it only has very limited
application, but generally
different layout will probably slow folks down ways to actually save files, sticking to open
it’s just different
who are used to doing a lot of mousing for their document formats and nothing else.
workflow. However, for word processing, it’s Overall, Calligra is very inconsistent. While its
actually a lot more efficient in terms of screen word processor may be one of the best in terms of
Compatibility
2
real estate. The original layout was the best way layout, the lack of compatibility across the suite
Opens a lot of files; has some
to orient it for the 4:3 screens of old, but with and its fixed perspective mean it falls behind
problems with spreadsheets,
widescreen and 16:10 monitors the norm now, a LibreOffice in almost every other way.
though, along with limited
saving capabilities
6
Features
A decent set of features, but
nothing that stands out from
the competition
6
Overall
Calligra is definitely not
terrible, but it lacks a lot of
features and compatibility
to truly make it competitive
with something like
LibreOffice
More information
www.calligra.org
n Calligra can open plenty of file types, but save to very few
73 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Office suite group test
10 4 5 8
Installation If it’s not already Gone from some Available in repos, Available in repos
& support installed, it’s no repos, cannot install but not as one as one package,
problem to get alongside LibreOffice coherent product files on website
8 8 8 6
Ease of use Same layout as most The classic layout is Like other GNOME The unique interface
office suites, nothing still there, and just as apps, they’re all is great for Words,
confusing easy to use simple and easy to use but not for the rest
9 8 4
Features
6
Constantly Good and feature-full It only really helps A decent set of
improving, and has applications that are you if you have no programs will just
the most in this test more than stopgaps other choice about let you do
what you need
A fantastic software Apache has done very It’s fine if you have to Calligra needs to
suite that covers little to fix OpenOffice, use it, but upgrading is mature much more
every need very well while LibreOffice has otherwise essential before it can be
74 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Perfect products for
Linux professionals…
Essential guides to mastering open source software
and operating systems from Imagine Publishing.
£6
Back issues From £4
with code
10%
TUX
OFF
all orders until
24 December!
Bookazines DVDs
£19.99
now from
£4.99
Web Design: From Desktop
to Dotcom eMag Vol. 1
Linux & Open Source Genius A visual guide to Flash,
The Cloud Computing Book
Dreamweaver and Photoshop.
Packed with tutorials and guides to help Guide Vol. 3
Including 256 pages of
you make the most of cloud computing, This book will walk you through
walkthroughs on one disc!
you can learn how to share files, store everything you need to know to become
£4.99
documents, send images, play games, a Linux master. With tutorials for Ubuntu,
read books, watch movies and much more. Android, SUSE and more.
£12.99 £14.99
Order online
@imagineshopuk
/imagineshopuk
DISTRO
CAINE 3.0
CAINE is a well-known specialised Linux distribution focusing
on penetration testing. With its latest 3.0 release, it updates
itself to the Ubuntu 12.04 base and adds a host of new tools
CAINE (Computer Aided INvestigative general-purpose tools. When you have installed CAINE 3.0,
Pros Cons Environment, but also named after MATE’s menu contains many applications that you would
Offers a lot of tools Some functionality
and scripts to help is still rough, suchCSI: Miami ’s head of crime lab Horatio Caine) find in any regular desktop distribution. This is a good move,
you with a forensic as booting from
investigation, also USB, and CAINE has is a hyperspecialised Linux distro. As its full because in many other specialised distributions we found
usable as a general- some peculiarities name implies, it’s aimed at digital forensic ourselves limited if we wanted them to use for daily tasks.
purpose distribution to watch out for
practitioners. The latest edition is CAINE You would then have to install many regular applications
3.0 (codename Quasar), based on Ubuntu first, or constantly switch from the specialised distribution
12.04 and Linux kernel 3.2 but with the GNOME 2 fork, MATE, to a general-purpose distribution. In contrast, you can use
instead of Unity as its desktop environment. Unfortunately, CAINE perfectly as your regular desktop distribution, and
the 1.3GB live DVD image isn’t a hybrid image and it doesn’t on top of that, all the specialised tools are available in the
work out of the box with UNetbootin either. Writing the ISO Forensic Tools menu.
to a USB stick and making it bootable is possible, but needs However, CAINE is much more than just Ubuntu
some fiddling. The installer, though, will be familiar to Ubuntu with some forensic tools added. A regular desktop
users, as it’s Canonical’s easy-to-use Ubiquity. distribution isn’t suitable for forensic purposes, because
An interesting difference between CAINE and many other it automatically mounts available drives as read/write. In
specialised distributions is that it also ships with a lot of a forensic investigation of a computer this is obviously a
76 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
CAINE 3.0
Linux distro for digital forensics
REVIEW
■ PhotoRec is a
tried and tested
tool to recover
deleted files
77 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Ubuntu 12.10 Quantal Quetzal
Ubuntu 12.10
its way into 12.04, there wasn’t a whole lot else other than the
standard package updates. So now it’s back to a standard
cycle Ubuntu, we’re interested to see what Canonical has up
its sleeve this time.
We had to wait a long time to see the changes as well – we
Quantal
initially went through the distro upgrade process from an up-
to-date Ubuntu 12.04.1 64-bit, and the process took literally
hours to complete. While we were fine with the package
updates taking a while to download – that’s just par for the
Quetzal
course – the fact it then took several hours to apply them on
both machines we did it on was shocking. It’s especially odd
since the actual fresh install of the system took a leisurely
half an hour. We don’t recall previous distro upgrades on
Pros Ubuntu ever taking this long.
Lots of software,
a huge amount
Once we were finally in, we found Ubuntu to be much the
same. The LDM has been updated to look a little sharper,
The release of Ubuntu
of choice, and
generally easy to
use for any level of
and now has the peculiar function of wanting you to press a
separate ‘Confirm’ button when selecting a different desktop
rolls around yet again. Has
Linux user
environment. Unfortunately, if you happen to have a handful
of DEs installed, this confirmation button gets hidden down
Canonical listened to concerns Cons
The best part of
Unity, the search
below the screen on lower-resolution displays, leaving you
stuck with the default one until you change your display
of the users, or continued to results, polluted
by Amazon unless
you find the hidden
manager, or trim the list.
The basic set of applications are pretty much the same as
forge its own path? off switch
usual: you have Firefox, the LibreOffice suite, Thunderbird
78 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Ubuntu 12.10 Quantal Quetzal
Major new release of the popular distro
Review
79 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Fractal Design Define R4
Technical specs
Motherboards ATX, Micro ATX and Mini ITX
Dimensions 232 x 464 x 523mm
Weight 12.3kg
case Colours Black (Pearl Black), White (Arctic
Fractal Design
White), Grey (Titanium Grey)
Expansion slots 7x normal, 1x vertical
HDD slots 8x standard, 2x SSD only
Define R4 £90.99
This stunning Scandinavian case is put through its paces to
find out if it can handle the server room as well as the office
Fractal Design is well known for the quality and you know you’ve pressed it, two USB 2.0, two USB 3.0, and
Pros Cons craftsmanship of its computer cases, with the audio ports for your headset and microphone. The extra
Big on space and Only some very
customisability, minor issues, like previous Define R3 being a fantastic all-round USB 3.0 port is very useful, although the case does not come
it also looks no USB 3.0 to 2.0
fantastic and is adaptor, and case
box. The new Define R4 sounds like an overall with a converter in case your motherboard does not have
very quiet to boot screws can be lost update to the R3 on paper, with an extra built- 3.0 compatibility.
in USB 3.0 slot, the ability to mount SSD cards The legs enable the Define R4 to stand slightly higher at
behind the motherboard, and a few more surprises up its the front, and the door to the front of the case is held in place
sleeve on top of that. magnetically so that there are no extra push clips or buttons
First of all, yet again the case is beautifully designed. required to open it. Both sides are held in place by two screws
The matt black of the Pearl Black case is stealthy and non- designed for hand tightening, which hold in the panels in
reflective, and the minimalist front panel is very efficient firmly enough yet allow for a screwdriver to get them
and in line with the rest of the case. This front panel includes clamped in if necessary. The only issue we have with these
the power switch and reset, both with a satisfying click so screws is that they aren’t overall connected to the panels
80 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Fractal Design Define R4
Stylish, flexible computer enclosure
Review
81 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Review Ubuntu GNOME Shell Remix
distro
GNOME Shell
Remix
Still running on 12.04, this version of Ubuntu seeks
Pros
It’s based on the LTS
release of Ubuntu,
Cons
While the GNOME
Shell is a little
82 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Opinion
Subscribe Subscribe today & start saving Too posh to push?
Non-USA readers see page 20
OPEN SOURCE
*Terms and conditions: This is a US subscription offer, please don’t forget to quote USA when ordering. You will actually be charged £80 sterling for an annual subscription. This is equivalent
to $128 at the time of writing, although the exchange rate may vary. Four free issues refers to the newsstand price of $14.50 for 13 issues being $188.50, compared with $128 for a subscription.
Your subscription will start from the next available issue. This offer expires 28 February 2013.
83 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Win one of 5
Raspberry Pi’s
Take part in our readers’ survey at:
www.linuxuser.co.uk/survey
What’s your
favourite part of
the magazine?
Which Linux
distro do you use?
WorldMags.net
WorldMags.net
Book Reviews
Latest Linux books revealed
REVIEWS
COMING SOON
The best Linux books heading to a
Practical Common Lisp
bookshelf near you… A most practical Lisp tutorial
Another month, another paperback re-release from Apress
R in a Nutshell, 2nd Edition
of an ancient book. Well, seven years is an eon in internet
Author: Joseph Adler
time, it’s true, but Common Lisp is a mature language, and
Publisher: O’Reilly
fortunately hasn’t gone through any seismic shifts since
ISBN: 978-1449312084
Siebel first published his classic guide.
Price: £38.50
See the first word of the title? This is a practical tutorial
A quick and practical in Lisp programming. From Hello World, the author jumps
guide: you’ll learn how straight into a simple database project for cataloguing CDs, a
to write R functions and precursor to a streaming MP3 server and intro to server-side
use R packages to help web programming in later chapters.
you prepare, visualise In between functions, variables and macros are covered
and analyse data. Author Joseph Adler in the lead-up to a practical chapter on building a unit test
illustrates each process with a wealth framework. This pattern continues: groups of topics are taught,
of examples from medicine, business then used in practical projects to reinforce learning, and give
and sports. Author: Peter Siebel experience of using Lisp in real-world tasks. With so many
Publisher: Apress Lisp programming books being weighty references, or smug
NumPy Cookbook ISBN: 978-1430242901 polemics against other, ‘lesser’ languages, Practical Common
Author: Ivan Idris Price: £47.99 Lisp still stands out from the crowd.
Publisher: Packt
ISBN: 978-1849518925
Price: £44.98 Ubuntu Made Easy: Managing Humans
This will teach you to A Project-Based Biting and Humorous
write readable, efficient
Introduction to Linux Tales of a Software
and fast code that is as Newbie-friendly Engineering Manager
close to the language of Ubuntu starter with The human, and
mathematics as possible
history airbrush humorous, face
with the cutting-edge Authors: Rickford Grant, of managing
open source NumPy Phil Bull programmers
software library. You Publisher: No Starch Author: Michael Lopp
will also learn about plotting with ISBN: 978-1593274252 Publisher: Apress
Matplotlib and the related SciPy project Price: £27.49 ISBN: 978-1430243144
through examples. Price: £19.99
Start at chapter two and this is a most
Building Web Applications comprehensive guide to the Ubuntu Is this book for engineers who find themselves
with Erlang desktop, covering office tasks, multimedia, managers, or those who have to deal with (and
games, customisation, hardware, security, are frustrated by) managers, or is it a book which
Working with REST and Web
networking, indeed almost nothing useful is helps you run teams of creative people? It’s all of
Sockets on Yaws
missed out. those, and more.
Author: Zachary Kessin
But chapter one? Oh dear. Oh dear, oh dear. The author’s direct, humorous and occasionally
Publisher: O’Reilly
Several pages of GNU/Linux history, but a busy sweary prose holds a whirlwind polemic – which
ISBN: 978-1449309961
airbrush has removed all traces of the GNU won’t be to everyone’s taste – on how to manage
Price: £15.50
project and the Free Software Foundation. as a manager, how to manage other managers,
If you are an experienced This, despite a strong sense of community, and how to really get the best from a team of
web developer who knows reflected in a later chapter covering bug software engineers. Along the way Lopp deals
basic Erlang, you’ll learn reporting, community help and getting with meetings, performance reviews, saying no,
how to work with REST, involved with Ubuntu. meetings, disasters, hiring, meetings, problem
dynamic content, web The authors certainly know their Ubuntu. If colleagues and… meetings.
sockets and concurrency you want a guide to just about everything you A collection of blog posts, but each sharp and
through several examples. can do on Canonical’s unstoppable distro, from thoughtful, this is Dilbert for optimists – the
In the process, you’ll see a newbie, GUI point-of-view (yet with a great skewering, observational humour is the same,
first-hand that Erlang is newbie-friendly intro to the command line, but in place of resigned despair we have positive
ideal for building business- too), and can get past the sins of omission of action points to take back to your dysfunctional
critical services. the first chapter, you won’t find a clearer guide. organisation, to start making it less dysfunctional.
85 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Contact us...
Web: www.linuxuser.co.uk
Email: linuxuser@imagine-publishing.co.uk
Contact us @linuxusermag
Questions Become a fan on
Linux User & Developer
& answers
Your questions
answered
ASK THE EXPERTS
This month your questions
were answered by…
Send us your questions and we’ll do our best to answer them!
n The fstab may look daunting to beginners, but it’s very straightforward
86 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Questions & answers
All your technical problems solved
Q/A
Brian Manapul
the other, it can be confusing to folks such as distros on VirtualBox after an upgrade to
yourself who are having trouble finding out how Ubuntu 12.10. The internet connection pass- There are a number of
to connect networked storage for the first time. through has not always been working, and I’m methods you could use to
First of all, we’ve noticed that you’re trying to at a loss as to how to fix this. I’ve tried switching get this done, but first make
access it with an IP address that is for internet- between the different network interfaces in the sure the names of the files
based connections. You’ll need to find the IP settings, but to no avail. are fairly uniform (file.iso.1,
address of the hard drive on your local network, Is there a way to fix this? It seems to be working file.iso.2 etc). You can use the concatenate
which on home hardware will usually start with fine on a fresh install on another machine I use. tool in Linux to try to put the file together
192.168 (eg 192.168.0.25). Once you know that, Thanks, with a command like:
we can tell you that apparently these hard $ cat file.iso.i >> file.iso
drives use an ext4 file system, the same used Luke Flynn That should join all the parts together
by modern Linux distros. To mount it, assuming into one ISO. If it doesn’t like that so much,
Public is the folder you want to mount, it would The quick and simple answer is, which it sometimes doesn’t depending on
be something like this in the terminal: you probably need to upgrade the software used to split it up, you can
$ mount //192.168.0.25/Public /home/ VirtualBox. There seems to be a also try using lxsplit. This tool can split and
user/Share small bug where it won’t properly merge files and ISOs; to merge files back
You can place it anywhere, but make sure to update the software to the 4.2 together, you can use:
create the folder first. series after a distro upgrade, so you can either $ lxsplit -j file.iso.1
If that doesn’t work, you’ll need to install build it from source or just uninstall it and grab And it will find the rest of the parts
Samba – you can find it in the Software Centre, the DEB files from the VirtualBox website. Your to join back together. Finally, if you’re
or by installing smbfs in the terminal. The mount files, settings and previous virtual machines still having problems, then there is a
would then be should be kept, although you will have to re- graphical tool called HJSplit. It will guide
$ mount -t smbfs //192.168.0.25/Public download the extensions file. you through the process of putting them
/home/user/Share Happy testing. together again.
n The older
VirtualBox n HJSplit is a popular and cross-
is in the platform file splitter
Ubuntu repos
87 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Contact us @linuxusermag
Questions Become a fan on
Linux User & Developer
& answers
Using your Live DVD Reinstall queries
I’m planning to reinstall my Ubuntu OS – if it’s
conveniently, if you set up Chromium sync, you
can have your browser, settings, cookies, apps
etc all saved to your Google Account to then be
relevant, I’m running Ubuntu 12.04 on a Dell restored to any of your Chrome or Chromium
STEP 1: Set the BIOS or boot menu
Once you’ve inserted your Linux User DVD into Inspiron E1505 laptop, 2GB RAM, 40GB internal instances of your choosing.
your drive, reboot your computer and press the hard drive. I’m going to erase the partition Linux Otherwise, not only can you export the
Delete key to enter the BIOS to ensure your DVD is on and reinstall it on my external hard drive as bookmarks from Chromium in the bookmarks
drive is set to boot before your hard drive. Check I’m running out of room. manager, the actual settings files from
your PC help files if Delete doesn’t work.
I know how to reinstall Linux itself, of course, Chromium can be found in your home directory.
but is there any way to make a list (or better yet, If you look under .config/chromium/, all the
a GRUB code file) of all my installed packages, so files will be there, and the bookmarks are
that I can easily reinstall them afterwards? I was under the Defaults directory.
going to simply look at Synaptic and write down As for saving your applications, there is
which ones are installed, then go through and a fairly simple way of doing this. Before you
manually install them all after Linux installs, but uninstall your system, use dpkg to make a list
that’s going to take a while. Please note, I am not of your packages like so:
a Linux newbie but I am a bit of a GRUB newbie! $ dpkg --get-selections >
Any help appreciated! selections.txt
Also, would you know also what the file is Make sure to save this file. Once you’ve
that contains my bookmarks for the Chromium installed the new version of Ubuntu, you can
browser? I’d like to grab and save that too. use this list to add the selections to the new
dpkg:
STEP 2: Reboot into the disc menu Nate Shepard $ dpkg --get-selections <
When your computer reboots, you should be
met with the Linux User DVD selection screen.
selections.txt
Should your computer boot to your desktop Well, the easiest thing about this And finally:
as usual, ensure the DVD drive is configured is saving and restoring your $ apt-get dselect-upgrade
correctly and repeat step 1. Chromium bookmarks, and there This should install all the packages back
are a number of ways that you onto your system.
can do this. Firstly, and most
88 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Questions & answers
All your technical problems solved
Q/A
Login font
As a bit of a typography nerd, I’ve been wanting
to change the font on the login screen for my
system, a Slackware install. I decided to write
a little script to get this to work, and came up
with this:
if [ $TERM = linux ]
then
setfont ter-v16n
fi
I know that ter-v16n is supposed to be the
Terminus font; however, it doesn’t seem to be
working. Where are the font files located in
Slackware? Because I will either add it here, or
just choose another font.
Al Phillipson
Ant O’Ryan
89 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
WorldMags.net
WorldMags.net
WorldMags.net
WorldMags.net
Sponsorship opportunity
Hosting listings
Bring attention to your brand by sponsoring this
section. Contact Nick Marrow on +44(0)1202 586419
NETWORK BACKUP
PERMANENT KVM
1GBPS INTERNET
PRIVATE SUBNET
HARDWARE RAID
CONTRACT TERM
Whether you’re a hosting firm or
a happy customer who wants a
CONNECTION
CPU CORES /
DISK SPACE
favourite provider listed, drop us
MINIMUM
COST PER
PACKAGE
STORAGE
NUMBER
SPEED
linuxuser@imagine-publishing.co.uk
2x 6 (24 HT) x
Server XXL 24i Hardware
0844 335 1211 £299.99 NO 2.4GHz (2.9 Turbo 4,000GB n/a ✓ ✗ n/a Optional ✗ FREE
(Linux/Managed) RAID 5
Core)
✓ - full
Daily (www.daily.co.uk) Linux VPS Pro 0845 466 2100 £29.99 1 month 2.27 Intel Quad Core 60GB 100Mbps ✓ ✓ ✗ ✗* ✗ ✗**
backup
✓ - full
Daily (www.daily.co.uk) Linux VPS Max 0845 466 2100 £59.99 1 month 2.27 Intel Quad Core 100GB 100Mbps ✓ ✓ ✗ ✗* ✗ ✗**
backup
✓ - full
Daily (www.daily.co.uk) Windows VPS Pro 0845 466 2100 £34.99 1 month 2.27 Intel Quad Core 60GB 100Mbps ✓ ✓ ✗ ✗* ✗ ✗**
backup
✓ - full
Daily (www.daily.co.uk) Windows VPS Max 0845 466 2100 £64.99 1 month 2.27 Intel Quad Core 100GB 100Mbps ✓ ✓ ✗ ✗* ✗ ✗**
backup
Daily (www.daily.co.uk) VPS Pro Hyper-V 0845 466 2100 £44.99 1 month 2.27 Intel Quad Core 60GB 100Mbps ✓ ✓ ✗ ✗* ✓ - 1GB ✗ ✗**
Daily (www.daily.co.uk) VPS Max Hyper-V 0845 466 2100 £74.99 1 month 2.27 Intel Quad Core 100GB 100Mbps ✓ ✓ ✗ ✗* ✓ - 1GB ✗ ✗**
Daily (www.daily.co.uk) VPS Ultra Hyper-V 0845 466 2100 £139.99 1 month 2.27 Intel Quad Core 200GB 100Mbps ✓ ✓ ✗ ✗* ✓ - 1GB ✗ ✗**
12 Quad Core
Entry-Level 0800 0470481 £79.99 250GB 10Mbps ✗ ✓ ✓ 100% ✓ ✓ ✓
months 2.40GHz
12 Quad Core
Mid-range 0800 0470481 £119.99 2x 250GB 100Mbps ✓ ✓ ✓ 100% ✓ ✓ ✓
months 2.40GHz
O = Option
92 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Get your listing highlighted! contact Nick
nick.marrow@imagine-publishing.co.uk
+44(0)1202586419 Hosting listings
ListingS
* Excluding planned maintenance, we regularly hit 99.9% uptime on the VPS platform **Hardware and network are monitored 24/7; however, support hours are the following: Monday to Friday 8.00 am to 7.30 pm, Weekends (inc. Bank Holidays) 10.00 am to 3:00 pm
Phone support
Shopping cart
Email support
Service Level
Cost per year
Web control
Virus filter
Agreement
bandwidth
Web space
accounts
Database
Firewall
Monthly
support
Package
number
Phone
panel
POP3
Name and URL
Donhost (www.donhost.co.uk) Reseller Unix 0845 226 5566 £399.99 Unlimited Unlimited Unlimited ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
Donhost (www.donhost.co.uk) Reseller Windows 0845 226 5566 £499.99 Unlimited Unlimited Unlimited ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
Donhost (www.donhost.co.uk) Enterprise 0845 226 5566 £89.99 1GB 2GB 250 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
Donhost (www.donhost.co.uk) Commerce 0845 226 5566 £179.99 2GB 5GB 500 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
Donhost (www.donhost.co.uk) Designer 0845 226 5566 £119.99 1GB 2GB 250 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
Donhost (www.donhost.co.uk) Developer 0845 226 5566 £259.99 2GB 5GB 500 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
WebFusion (www.webfusion.co.uk) Fusion Professional 0845 130 1602 £107.40 5GB 50GB 1,000 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
WebFusion (www.webfusion.co.uk) Fusion Business 0845 130 1602 £179.40 10GB 150GB 1,500 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
WebFusion (www.webfusion.co.uk) Fusion Developer 0845 130 1602 £227.40 20GB 300GB 5,000 ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
WebFusion (www.webfusion.co.uk) Fusion Reseller 0845 130 1602 £329.99 Unlimited Unlimited Unlimited ✓ ✗ ✓ ✓ ✓ ✓ ✓ ✗
Eco Web Hosting (www.ecowebhosting.co.uk) Starter N/A £29.99 200MB 2GB Unlimited ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Eco Web Hosting (www.ecowebhosting.co.uk) Standard N/A £54.99 1GB 10GB Unlimited ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Eco Web Hosting (www.ecowebhosting.co.uk) Advanced N/A £119.99 20GB 24GB Unlimited ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
Eco Web Hosting (www.ecowebhosting.co.uk) Reseller Unlimited N/A £199.99 Unlimited Unlimited Unlimited ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
NameHog (www.namehog.net) Email Only 0845 612 0330 £11.75 25MB 1GB 5 ✗ ✗ ✓ ✓ ✓ ✓ ✓ ✓
NameHog (www.namehog.net) Standard Package 0845 612 0330 £35.25 100MB 4.5GB 10 ✗ ✗ ✓ ✓ ✓ ✓ ✓ ✓
NameHog (www.namehog.net) Professional Package 0845 612 0330 £58.75 250MB 8GB 25 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
NameHog (www.namehog.net) Expert Package 0845 612 0330 £105.75 500MB 15GB 75 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
TwentyHost (www.twentyhost.co.uk) Business5S 0845 641 0776 £70 500MB 7,500MB 100 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
TwentyHost (www.twentyhost.co.uk) Advanced5S 0845 641 0776 £110 1,000MB 15,000MB 200 ✓ ✓ ✓ ✓ ✓ ✓ ✓ ✓
1&1 Starter (Linux) 0844 335 1211 £29.88 5GB Unlimited 1,000 ✓ ✗ ✓ ✓ ✓ ✓ ✗ ✗
1&1 Standard (Linux) 0844 335 1211 £59.88 50GB Unlimited 3,000 ✓ ✓ ✓ ✓ ✓ ✓ ✗ ✗
1&1 Standard (Win.) 0844 335 1211 £71.88 50GB Unlimited 3,000 ✓ ✗ ✓ ✓ ✓ ✓ ✗ ✗
1&1 Unlimited (Linux) 0844 335 1211 £83.88 Unlimited Unlimited 5,000 ✓ ✓ ✓ ✓ ✓ ✓ ✗ ✗
1&1 Unlimited (Win.) 0844 335 1211 £107.88 Unlimited Unlimited 5,000 ✓ ✗ ✓ ✓ ✓ ✓ ✗ ✗
1&1 Business (Linux) 0844 335 1211 £119.88 Unlimited Unlimited Unlimited ✓ ✓ ✓ ✓ ✓ ✓ ✗ ✗
1&1 Internet Ltd
1&1 Business (Win.) 0844 335 1211 £155.88 Unlimited Unlimited Unlimited
www.1and1.co.uk ✓ ✗ ✓ ✓ ✓ ✓ ✗ ✗
93 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Your view Your source of Linux news and views
Contact us…
Register and post your comments… Email us directly…
www.linuxuser.co.uk/forum/ linuxuser@imagine-publishing.co.uk
Letters
distros should follow. If someone is to work on a
free-for-all product for everyone and that product
is to be done professionally, we should be able to
easily contribute to helping them make their ends
Your opinions about the magazine, meet and reward them for what they do.
It doesn’t have to be either ‘work for free’ or
Linux and open source ‘insist on getting paid for every copy’. Still, I think it
could be done in a better way. For instance, there
could be a text box where users could type in
what they want to contribute to.
Daniel Blake
G M
D
THREAD BARE S
U
F
No more Ubuntu surprises
Our super-review of Ubuntu last issue was our biggest ever, and
when we posted it online we expected to see plenty of debate
over the quality of the distro in the comments. Surprisingly
though, it seems nobody gets riled up over Ubuntu any more.
Join in with the conversation at http://bit.ly/QSQdov F
G S
John said: M
I’ve been playing with 12.10 and the first thing I did was remove D
the shopping lens. Unity is a totally pointless user interface for
desktops. It takes too many steps to start a program. U
NickN said:
Geoff said: Meh. Sticking with Mint until someone suggests a good reason
I’d like to offer Ubuntu a massive thank-you for such a fabulous not to.
OS and providing a route to equally fab free software. I’m also
delighted that there’s another Ubuntu long-term release. However, I Thomas said:
have an even bigger thank-you to those Ubuntu-based distros and for I like Debian, but after a few hours trying to get my laptop to
my personal favourite, Mint. Mainly for replacing that awful Unity front- suspend or hibernate, an 18-minute Ubuntu install solved
end and giving us MATE and Cinnamon, which I’m happy to work with. everything. I use GNOME Classic, which I had to install after that.
On my Dell XPS, fan noise and other power features also all work in
JohnB said: Ubuntu, unlike Debian. I am going to be installing this in my classroom
Well, after trying Windows 8, at least I can find the shutdown as well, and will see how Unity is for middle school students.
button! Actually, compared to Win 8, Unity is much more intuitive
to use (IMHO, of course). I found I was able to find my way around Unity Tom O’Connell said:
much faster and I’ve been a Windows user exclusively since the early I switched to Ubuntu GNOME 8.10-11.10, tried 12.04, tnen went to
Nineties. Of course, Mint with Cinnamon is even easier to navigate and Mint 13 MATE with Ubuntu Software [Centre] and Ubuntu Tweak. I
to find the apps I need to use as well as the settings. see no reason to return to Ubuntu.
94 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
Your view
Canonical contributions, Ubuntu 12.10, Arch/Gentoo
LETTERS
WorldMags.net
WorldMags.net
www.GreatDigitalMags.com
To buy more Imagine digital editions and for the
latest issues and best offers, please go to
WorldMags.net
WorldMags.net
Next issue What’s coming up… Look out
for issue 121
on sale 20 Dec THE MAGAZINE FOR
THE GNU GENERATION
Want it sooner?
Subscribe Imagine Publishing Ltd
Richmond House, 33 Richmond Hill
Magazine team
Editor Russell Barnes
russell.barnes@imagine-publishing.co.uk
☎ 01202 586272
Editor in Chief Dave Harfield
Staff Writer Rob Zwetsloot
Designer Steve Mathews
Head of Publishing Aaron Asadi
Head of Design Ross Andrews
Contributors
Phil King, Simon Brew, Jon Masters, Richard Smedley, Richard Hillesley,
Joey Bernard, Koen Vervloesem, Kunal Deo, Liam Fraser, Gareth Halfacree
& Sandra Vogel
Advertising
Digital or printed media packs are available on request.
Head of Sales Hang Deretz
☎ 01202 586442
hang.deretz@imagine-publishing.co.uk
Account Manager Nick Marrow
☎ 01202 586419
nick.marrow@imagine-publishing.co.uk
Cover disc
Head of Digital Mat Toor
Digital Products Co-ordinator Steven Litton
ludxtrahelp@imagine-publishing.co.uk
International
Linux User & Developer is available for licensing.
JEL
BEALNY
Contact the International department to learn more.
Head of International Licensing Cathy Blackman
☎ +44 (0) 1202 586401
SPEC licensing@imagine-publishing.co.uk
IAL Subscriptions
Head of Subscriptions Lucy Nash
Rory MacDonald reports We test VIA’s sub-£50 board Willenhall, West Midlands, WV13 3XT
Distributed in the UK & Eire by Seymour Distribution, 2 East
back from OSHUG with to see how it fares Poultry Avenue, London, EC1A 9PT.
☎ 0207 429 4000
news of mankind’s demise Distributed in Australia by Gordon & Gotch, Equinox Centre,
10
18 Rodborough Road, Frenchs Forest, NSW 2086.
☎ + 61 2 9972 8800
speed
☎ 0203 148 8105
Disclaimer
>> The making of KDE The publisher cannot accept responsibility for any unsolicited material
up Linux
lost or damaged in the post. All text and layout is the copyright of
>> FTP client super-test Imagine Publishing Ltd. Nothing in this magazine may be reproduced
in whole or part without the written permission of the publisher.
Tips and techniques to >> 20+ pages of reviews All copyrights are recognised and used specifically for the purpose
of criticism and review. Although the magazine has endeavoured
revitalise a tired desktop availability may change. This magazine is fully independent and
not affiliated in any way with the companies mentioned herein.
98 www.linuxuser.co.uk
WorldMags.net
WorldMags.net
WorldMags.net
WorldMags.net
WorldMags.net