Linux & Open Source Annual

Linux & Open Source Annual

Volume 3

We have crammed as much as possible from the last year into this annual, from the most exciting tutorials to improve your systems and solve issues to programming with Python. This is a treasure trove of Linux and open source knowledge, from building your own Linux PC and virtualising your system to terminal tricks for supercharging your system. Featuring: Build your own Linux PC - Tailor a PC to your exact requirements. Ultimate rescue kit - 10 ways to fix you PC with our ultimate rescue kit. Enhance your system - Get more out of your Linux system with these improvements. Harness FOSS - Make the most of open source software and distros.

United Kingdom
Future Publishing Ltd



Arch Linux Arch Linux is a lightweight and flexible Linux distro that targets more advanced users. Whereas an everyday distribution such as Ubuntu looks to install a broad set of applications from the off to support a range of different use cases, Arch takes a different approach – a minimal system base is installed, which the user can then tailor for their own purpose. Arch is very much aimed at users comfortable with shell usage – in most cases GUI configuration is not provided, configuration instead being managed by directly editing text files. While most distros have regular release cycles, Arch uses a ‘rolling release’ model as it looks to stay on the bleeding edge, negating the need for periodic ‘major release upgrades’. Arch’s repositories will typically always contain the latest stable…

configure a lamp stack

Paul O’Brien is a professional crossplatform software developer, with extensive experience of deploying and maintaining Linux systems. Android, built on top of Linux, is also one of Paul’s specialist topics. Resources Ubuntu ubuntu.com Apache apache.org MySQL mysql.com PHP secure.php.net Let’s Encrypt letsencrypt.org certbot-auto github.com/certbot/certbot Cloudflare cloudflare.com phpMyAdmin phpmyadmin.net Webmin webmin.com Webmin Authentic Theme github.com/qooob/authentic-theme MySQL tuner mysqltuner.pl Apache2 tuner apache2buddy.pl Percona percona.com Statistics show that Linux powers around 67 per cent of all web servers, despite having much lower penetration on the desktop. There are lots of reasons for this – for hobbyists the OS is free, for corporations it’s powerful yet lightweight (particularly compared to Windows servers) and there is a vast range of software that’s ready to deploy on the OS. The most common use case for Linux web servers is a LAMP stack – meaning Linux (OS), Apache (web server), MySQL (database) and PHP (scripting language). With just these four elements installed, it’s easy to…


Red Hat Enterprise Linux Choosing a Linux distribution for enterprise is less about features and more about support. Linux is already a powerhouse in the enterprise server market and has a steadily growing footprint on the desktop, but an operating system powering your business has to be utterly dependable in all kinds of scenarios – few firms in the Linux space are better placed to deliver that reassurance than Red Hat. Products from the company are used by over 90 per cent of Fortune 500 companies. The Red Hat Enterprise Linux (RHEL) life-cycle is quite different to other distros – version 7 was first released in 2014 while 7.4 (also known as 7 update 4) was released in August 2017. Minor version updates are typically released every 18 to 36 months, with…

clone computers over the network

Mayank Sharma is an expert tech journalist specialising in Linux and open source and a former contributing editor of Linux.com. Resources FOG http://bit.ly/FogCloning FOG Wiki http://wiki.fogproject.org Deploy FOG inside a virtual machine http://bit.ly/FogVirtualBox You are about to call it day, smiling to yourself that you still have time to make it to dinner. But just before you log off, the boss asks you to provision five computers on the second and third floors for the interns joining tomorrow. As you drag yourself up the stairs, you nervously twiddle the phone anticipating the unpleasant conversation during the call you are about to make. The life of a system administrator isn’t easy. Managing a network full of computers can sap the energy out of any admin, irrespective of the size of your realm. That’s where the FOG project comes in and helps…

share partitions between multiple distributions and oses

01 Choose an approach Running multiple distros from one disk may put a squeeze on storage, so sharing a single data store between the different distros can really help. But which approach is right for you? To take advantage of sharing profile scripts, configs and such, consider sharing your home directory. If you only want to share documents, just use an extra data partition. 02 Set up the partition The easiest way to re-partition your disk is to use a live-boot distro with GParted included. Sizing down the free space in your last partition will be the quickest way to gain room, but it may also be a good opportunity to shrink all your partitions (including Windows) to make space for both the new area and any additional distros. You'll also need to…

shell scripting tips

Jason Cannon started his career as a Unix and Linux system engineer in 1999. Since then he’s used his skills at such companies as Xerox, UPS, Hewlett-Packard and Amazon. When shell scripting, it’s handy to perform an action on a list of items. We can do this using a for loop: ITEM_1 … ITEM_N is a space-separated list of items. The commands between do and done are executed for each item. The first item in the list is assigned to the variable, then the code block is executed. The next list item is then assigned to the variable and the commands are executed again, and so on until we reach the end of the list. Here’s an example script which shows how a for loop works. To run this, save it as,…