Ultimate Linux Guide
Ultimate Linux Guide
Newbie Guide
The ultimate guide for choosing, installing and using Linux for everyday people
Table of Contents
Choosing, Installing and Using Linux has never been easier!
The Ultimate Linux Newbie Guide is the guide for the
everyday person.
This eBook version of the guide provides the main guide from
the website, as well as a few select articles.
1. Introduction
2. About The Author
3. About the Author (continued)
4. The Guide
5. Chapter 1: What is Linux
6. Chapter 2: Why Linux - What are the Bene ts?
7. Chapter 3: Choosing a Linux Distribution
8. Chapter 4: Preparing to Install Linux
9. Chapter 5: Installing Linux (Ubuntu)
10. Chapter 6: How do I use Linux?
11. Chapter 7: Using Linux Every Day
12. Other Tutorials
13. Linux Command Line Introduction
14. Is there a OneDrive client for Linux?
15. How to use Google Drive, OneDrive, Dropbox, Amazon S3 and
more in Linux
16. How to install Linux on a Macintosh and dual boot with macOS
17. How I got my job in Linux: from Newbie to Pro
Introduction
Consultancy Services
With over fteen years of experience in Linux, if you are in
need of Open Source based support or consulting services,
be it remote assistance or in-person (Wellington, New
Zealand only), then look no further than the author of this
website! exposure to Linux in both large corporate
environments such as Amazon, GE as well as small
businesses, Alistair J. Ross has been at the forefront of Linux
for most of his professional life. He loves providing creative
solutions and best of all, it's at a rate suitable to you or your
business.
Get in touch!
Alistair now operates an open source consulting
business, OpenTech, click the below link to contact OpenTech.
Linux, By De nition:
Linux (/ˈlɪnəks/ (listen) LIN-əks) is a family of free and open-source software operating
systems based on the Linux kernel, an operating system kernel rst released on
September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux
distribution (or distro for short).
-Wikipedia
The above de nition is probably not going to help you much if you don't know what an
Operating system is, and what this UNIX thing is, so let's start at the rst major point:
What is an Operating system? I promise I won't make it boring!A
Now you have the idea of what an Operating system is, let's nd out about a speci c type
of operating system called UNIX, the grandfather of Linux...
The UNIX operating system began life in 1969, in Bell Labs, a division of the American
telephone rm, AT&T. There are now many different types of UNIX, making it one of the
longest running commercial operating systems available, way longer than Microsoft
Windows or Apple MacOS.
Developed from 1993, by Sun Microsystems (acquired by Oracle), Solaris was a leader in
the commercial UNIX world until the prevalence of open source software & Linux. Solaris
still exists today, but Oracle seem less interested in the future of Solaris, and so many
organisations have, or are in the process of moving to Linux.
HP's implementation of the UNIX standard System V, called HP-UX was released in 1984
and is still being used today in many enterprise environments.
Which band of big names wouldn't be complete without big blue? Interestingly enough
the recent logo of AIX is now green.... Anyway, IBM released their take on Enterprise
Unix in 1986, dedicated for it's own IBM hardware, so that they didn't miss out on all of
this UNIX malarkey.
AIX actually represents a series of proprietary Unix operating systems. Originally
released for the IBM RT PC RISC workstation, it now supports a vast array of different
hardware platforms.
Like HP-UX, AIX is based on UNIX System V with 4.3BSD-compatible extensions.
Berkley University: NetBSD and FreeBSD. Berkely Systems Distribution (or BSD) is the
closest match to Linux in terms of a direct relationship. Apple macOS and iOS is even
built on a modi ed BSD core (kernel) called Mach. FreeBSD is a fork of BSD which is cost
zero.
Pony Up
With the exception of FreeBSD, there was (and still is) a pretty grand fee to own one of
the above versions of UNIX. Mainly large commercial organisations and universities have
traditionally used these UNIX variants, however Linux appears to be replacing traditional
UNIX on a lot of corporate systems due to it's proven track record, it's growing
reputation as a contender to UNIX, and it's low price tag, which can often be free.
UNIX is good because it is a true multi-tasking, multi-user operating system. This means
that it can do more than one thing at a time (for example, have a word processor and a
music player open and working at the same time) and it can provide all it's services to lots
of users at the same time. Modern day workplaces rely on servers to provide a central
resource of information and connectivity to users. UNIX was also the platform that many
rsts came on: The Internet, the C programming language which is the basis for most
modern computer programming languages. These were all rsts that took the other
operating systems like Windows and Mac OS a long time to catch up to.
So, Unix is pretty clever, huh? Well, yes. It is, but Unix was also traditionally a pretty
boring system that involved learning lots of commands that were tedious to learn.
Why don't we all use UNIX today if it's so good?
This is Tux, the Linux mascot. It was drawn by Larry Ewing in 1996 because Linus liked Penguins,
even though he was bitten by one in Australia!
Linux is pronounced 'Lih-nucks' not 'Ly-nucks'. Here's Linus Torvals pronouncing it!
Now, over twenty ve years on from the original post on the Internet, Linus is still
working on Linux, but it's now an effort which is collaboratively worked upon by millions
of other individuals, corporations and organisations around the world. You probably
don't know it, but Linux is everywhere today. It's on your Android mobile phone, in your
TV and nine out of ten websites run Linux on their servers (think Google, Amazon and
Facebook to name but a few), Linux might even be in your new dishwasher or fridge-
freezer!
Now, visit Chapter Two to see why using Linux instead of Microsoft Windows or MacOS
may be the best thing you ever did with your computer!
Chapter 2: Why Linux - What are the
Bene ts?
So what does Linux actually offer me then?
So, you now know that Linux is a Unix-like operating system, and you know what all that
means now. However, that doesn't really tell you why you would prefer to use Linux,
instead of Windows or Mac OS on your computer. In this chapter, we will discuss just a
few of the bene ts of Linux. Not that it really needs selling! It's free and it'll make your
computing life a whole lot better!
Linux is far more than a Unix-like operating system and is pretty unique because of its
licensing system. Enter 'Open Source':
Linux is an Open Source Operating System (oh, and it's free too!)
This means that software can be of high quality for everyone, and money can be made
out of support, distribution, training or working with open source software.
It's a revolutionary change in the way we perceive software and do business, however
huge names like IBM, HP and Intel and even non IT rms such as Boeing, Glaxo
Smithkline and thousands more are all using Open Source and Linux. Some of them are
even putting work back into it.
Security is a critical point of our modern interconnected world. Linux has your back.
There are almost unlimited ways you can customise your Linux system
If you are one of those sort of people that love to tinker with things, to make something
appear, or work in a particular way that you want it, Linux allows you to go crazy. There
literally not one element of your desktop that cannot be completely customised to a
manner that you like. For example, I nd it quickest for me to work without a Mouse. My
work laptop almost never needs me to remove my hands from the keyboard to use the
mouse. I use a window manager called i3 to make this happen, it's very bare bones and
has a tiny memory footprint so it's fast. Other users may be simply be content in changing
their desktop wallpapers, icons and themes. Whatever you want to customise, there's an
app or a tool for that!
Some of the greatest software comes from Linux and Open Source
Linux is home to some of the best new software, and best of all, most of it is free.
Installation is a snap these days just by clicking on an icon in the 'Software Center' and
installing it from a banquets worth of great apps. In Chapter 7 we have a detailed look at
some of the fantastic apps out there for Linux, but for starters, have a look at just a few of
these great titles that you may already be familiar with:
LibreOffice/OpenOffice
A fully featured Of ce suite including a Word Processor, Spreadsheet, Drawing Package, Database and
Presentation suite. Compatible with Microsoft Of ce.
Mozilla Firefox
The browser that reloaded the web - all thanks to Open Source! Most other popular web browsers (including
Google's Chrome browser) is also available for Linux.
GIMP (GNU Image Manipulation Project)
An excellent open source image editor, similar to Photoshop by Adobe. Used to edit many of the images on this
website!
Thunderbird is a very popular email client which was created for use by the Mozilla Foundation.
Games on Linux? Really!?!
Yep, you read it right! Solitaire isn't just the only game Linux does any more! Steam and SteamOS are de facto
Linux platforms now, literally thousands of the games available for Windows/Mac are available on Steam for Linux
and whats more, they are usually released around the same date as their Windows counterparts.
Drivers by default
I'm not going to say that there is plug and play availability for absolutely every device out there, but
in general, most of the devices you can get today, be they wireless adapters, webcams, graphics
cards, printers and scanners, they are very often plug and play. Downloading drivers from the
Internet when you buy a new printer on your Windows PC just seems so painful. Forget that, Linux
did!
How can this make any sense, does anyone make any money?
You might think that as Linux and the associated open source titles that go with it are free in cost
and also free 'as in speech' that this means that there is no money to be had from Linux. Indeed,
many companies originally thought that Linux was nothing more than a hobby or a geeks plaything,
but this perception has diminished over the years, and with Linux going strong since 1991, it's here
to stay. Here are a few reasons why Linux helps businesses and can generate pro t over the
traditional software business model:
Linux is one of the most popular and reliable platforms on earth today, it is this basis that has let
many companies such as Google and Amazon build from that foundation and leverage it to make
solid pro t. Every Android mobile phone or tablet uses Linux, all of Amazon's websites use Linux,
every Google search is powered by Linux and every Tweet uses Linux at the operating system
level.
Many businesses choose to purchase support contracts to obtain help with their Linux systems,
just as they would with a commercial based platform.
Companies like Intel, who invest heavily into Linux can see the return on their investment rapidly
because Linux has the exibility to allow their newest technologies such as new processors to
work straight away via the Open Code/Source model. Typically, Intel would have to wait many
months or years to see support fully phased into releases of Windows or MacOS for their latest
products.
In countries like China, up to 70% of all the computers that ship now ship with Linux on them. The
vast majority of these computers retain their installation of Linux because the Linux installation
allows the user to do what they want to do with their computer, it means no levy for the
manufacturers to pay to companies like Microsoft for copies of Windows and therefore cost
savings to the customer. This in return has shown a rise in computer purchases and sales at a
better margin of pro t.
The majority of companies use Linux for server hosting because it will out-perform its Windows
counterparts and will do it at a near zero-cost. This provides a hefty return on investment to the
company, and also in turn to their customers. This can be stacked up with other cost-saving
methods such as virtualisation, which means that you can have multiple Linux servers all running
on one physical server. This reduces costs in the server room on cooling, power and hardware. For
many companies across the globe, Linux is therefore a no-brainer.
Well paid jobs: In enterprise IT today, Linux is big. Really big. This means jobs. Hopefully this guide
may pique your interest into rstly starting to use Linux as your everyday desktop, but in time,
you might decide to get more advanced. See the following links if you need proof!
Infoworld: Why are Linux Professionals in such high demand
ZDNet: Linux and Open Source Jobs are in more demand than ever.
Finally, Over time, many companies, universities and hobbyists nd themselves naturally giving
back some things to the Linux community because it helped them with a certain task. This
continued cycle of improvement and collaboration spurs this on. You only have to look at open
source projects like Wikipedia to see that this cycle works very well. Nobody gets paid to make
Wikipedia the best source of information anywhere in the world, but yet people add to it none
the less. Linux works in the same way.
Now, visit Chapter Three to decide on which avour of Linux you want!
Or, if you need more convincing, why not take a sneaky peek at Chapter 7, where we show the
greatest in open source software and detail how Linux helps out with your life on the desktop every
day.
Chapter 3: Choosing a Linux Distribution
With so many Linux distributions, it can be hard to choose, so we help you select one that's right for
you.
As described in the rst chapter, we discovered that Linux was a avour of the UNIX
family of operating systems. This chapter talks about what types of Linux are available in
the market today. These avours are called distributions and all have their own merits
and disadvantages. We will cover the most popular distributions in this chapter.
So in summary, whatever distribution you choose you may get a better range of options
with distribution X over distribution Y. However Y may suit your speci c needs more
than X in some cases. The choice is for you to decide. As Linux is almost always free to
download, it lends itself to be evaluated until you nd just the one you are looking for.
Here you can see Virtualbox running on a mac. You can see that Ubuntu is running inside the window
to the right hand side.
'Live' distributions
Live distributions can be downloaded and 'burnt' to a USB stick or CD. Even the 'full fat'
Linux distributions like Ubuntu will offer you to select from 'Install Linux' or 'Try Linux'
when you start them up. You usually get most of the main functionality of the distribution
so you can really evaluate if the distribution is for you before you choose to install it for
real. See Chapter 5 on how to put Linux on a USB stick.
Linux may be free, but can't you also buy Linux? Why would I do
that if I can get it for free?
Buying Linux can provide bene ts that downloaded versions do not provide, such as:
Physical manuals (SuSE & Red Hat Enterprise Linux are particularly good) to help you out when
you need a 'covers-all' reference
Vendor support for a particular period of time
Distributions like Red-Hat Enterprise give corporations a guaranteed support Service Level
Response
Sometimes you may get more software than with other distributions (eg extra DVDs instead of
downloads)
Commercial software titles can be included (as it is non-free), these can include copyrighted or
patented technologies such as DVD and MP3 players, as well as commercial software like Adobe
Flash Player and so forth.
If you like distros which have a common look and feel to Windows or Mac, or perhaps just
something with a really polished, but familiar look and feel, also be sure to check out
Zorin, Solus, and Deepin. These distributions are highly customised to give experiences
unlike other distributions. For example, Solus has its own window manager called Budgie,
and it was built completely from scratch, not derived from Ubuntu or Fedora.
elementaryOS certainly brings the eye candy. It feels reminiscent of macOS.
OpenSuSE
Debian is the grandaddy Linux distro of so many offshoots, including Ubuntu. It was
originally released in September 1993. The early distinctions that Debian had over Red
Hat based systems was that it had a massive (~50,000 software package library) and
secondly that it has an auto-dependency software packaging system called apt. This
meant that rather than having to download loads of application packages individually,
you could simply tell Debian what app you wanted and it would down the rest for you
automatically. It took Red Hat etc a long time to get up to pace with this! . Traditionally
known for being further behind than some other distros in terms of having the most up to
date packages, it offsets by this by having good stability as the main packages are well
tested.
Tux tip!
Note: If a distribution is at release 10 (ie: Slackware), but another distribution is only at 4.1
(ie: Debian), this does not indicate that Debian is an old version of Linux.
Check out The DistroWatch Linux distribution popularity rank (Page Hit Ranking) for a
good idea on what's hot in the world of Linux Distributions right now, it's updated daily!
What's next?
If you think you may have found the right distribution for you and you are ready to start
preparing to install Linux on your computer, then move forward to Chapter 4
Chapter 4: Preparing to Install Linux
What sort of computer will I need for Linux?
This question has a lot of answers. The bottom line is: depending upon what you want to
do with Linux, the system requirements can range from an old Intel 386 to a state of the
art PC.
This section of the chapter will go through all the major parts of hardware attached to a
typical computer and detail what is expected to run a typical modern Linux desktop,
starting rst, with the CPU.
The brains of your computer de nes the speed which Linux will run at. Linux was
originally devised on an Intel 386 back in the early 90's, and believe it or not, it will still
work on a 386! It is worthy to note that Linux is a truly cross-platform system. A Macs
computer (PPC or Intel) can run Linux, You can even run Linux on some stranger
hardware including ARM based machines like Raspberry Pi's and more. Today's Linux
desktop is most popular on 64 bit (x64) Intel or AMD PPC (G3-G5) and AMD processors,
therefore, most of the common software is actively developed for these platforms. If you
have another platform such as a Sparc, Amiga or ARM based processor, Linux will no
doubt be different in that many software titles may not exist for that given platform, or
software is older than that of the most popular platforms, but it is still possible to run
Linux on them.
Minimum Speci cation: 2GHz Intel Pentium 4/AMD K6, ideally with a dual-core processor. It is
possible to run Linux on even more modest hardware, however the the desktop experience will
be limited.
Recommended Speci cation: Intel Core i5/AMD A10 or better.
RAM (Memory)
Most Modern day Linux distributions will require a minimum of around 2GB to use it to a
reasonable degree, but if you wish to use Linux for non-graphical based uses, such as web
page hosting, or a rewall, you can run a basic installation of Linux from almost nothing.
Some of the most basic installations will run on 8 MB (yes megabytes, not gigs!). If you're
going to be serious about Linux, and want optimal performance, then as with any
software, the more RAM you have for it, the better it runs. Ideally, if you reckon you're
going to be a fairly standard home user, 4GB RAM is a reasonable minimum. If you want
to do demanding stuff like perform movie editing, edit artwork or edit lots of audio, then
we're probably talking about 8GB+. Server users who want to serve up hundreds of
websites may want 4GB, 8GB or even more, but again, if you want to make a small server
with only a website or two and a low number of users, then you can get away with 1GB or
less.
In summary, If you have the RAM, Linux will use it, and it will be used well, thanks to the
superb memory and process management within the Linux kernel a modern-day 64-bit
version of Linux will support up to 64 TB (terabytes) of RAM.
Minimum Speci cation: 512MB-1GB
Recommended Speci cation: 4GB+
Hard Disk Drive (HDD) & Partitioning your disk for Linux
As with all things Linux, it's possible to do it in the smallest of setups. Using
distributions such as Puppy Linux, you can achieve a fully working Linux setup in a few
hundred megabytes. However, if you want to install a standard desktop installation of
any up-to date distribution, you will probably want at least 20-40GB (gigabytes) free
hard disk space. If you are going for the plunge and will convert your entire system over
to Linux, then the more the better - 100GB+ in order to store all of your stuff: Apps,
MP3s, Movies, Documents, emails etc and over time, it uses up quite a lot of drive space.
Modern Linux distributions easily support new drive technologies such as software RAID
and SATA out of the box. Enterprise grade iSCSI or bre channel disk arrays, are
supported by distributions like Ubuntu Server edition or RHEL.
SSD (Solid State Drives) have become commonplace on higher end laptops and PCs these
days and increase read and write speed signi cantly, making the whole system feel faster.
This bene t is mirrored in Linux with an SSD.
Another option is to purchase a new hard disk to install Linux on or recycle an old hard
drive if you have one spare! The reason for using a seperate disk is because you are likely
to be using another Operating System already such as Microsoft Windows or Mac OS. If
you wish to use both Linux and Windows/Mac OS (so you can see if Linux is for you), then
the easiest way to set it all up is if you have another drive to put Linux onto. You won't
have to mess around with resizing partitions and the like.
Minimum Speci cation: 5 GB (although some distributions can be smaller).
Recommended Speci cation: Minimum of 25GB, or as much as you can afford to give Linux.
(Re)-Partitioning
Typically, Windows/Mac OS will allocate 100% of your computer's hard drive to it's own
use, meaning there is no space left for Linux. If you don't want to buy a new hard drive for
Linux, then you will somehow have to re-allocate some of the unused (free) space on your
Windows/Mac OS drive for Linux. The act of slicing up the space on a hard drive into
distinct segments is called Partitioning.
Thankfully, recent versions of popular Linux distributions now make it a snap to re-
partition your disk. They work by utilising the free space that you have in your Windows
drive (say your C: Drive) and creating a partition out of some or all of that free space for
Linux. Although not necessary, you can also use something like the freely available
GParted or commercially available Acronis Disk Director (for Windows). This allows you
to split your disk into partitions as well as resize existing partitions before you even start
to install Linux. It gives you absolute control of the whole process.
Give Linux as much breathing room as you can afford to!
If you are resizing your Windows partition to accommodate the installation of Linux, try
and devote as much space to Linux as you can manage. If for example you have 100GB
unused/free space on an 500GB drive, resize your windows partition down from 500GB
to 410GB, leaving 90GB for linux and 10GB 'breathing room' spare for windows. This
way you probably won't have too much concern about free disk space in the future.
Example: You can split it any way you like, here is an example of how your hard disk would look, if
drawn as a sideways graph. This shows an example of roughly 30% Windows, 70% Linux. You would
resize the Windows partition down to the size you want, which would give you the remainder of the
disk as unallocated space. You can then use that unallocated space for Linux. Note in this example,
most of the 70% Linux space is 'EXT4', however a small amount (say 8GB) is dedicated as 'SWAP'.
SWAP is the area which if the memory lls up on your machine, it will use the disk instead. This is
useful if you only have limited RAM (Memory), however on higher RAM specs, you probably won't
need it.
The GParted tool is great for partitioning your hard drive. In this example you can see two Windows
NTFS partitions (sda1 and sda2), then two linux partitions (sda5 and sda6).
Although the process of re-partitioning and dual-booting your PC with Linux and
Windows is far easier than it used to be, to a computer novice it can still appear to be a
daunting task. Don't worry though, I've got it all covered in Chapter 5.
Any bog standard graphics adaptor will do for linux. Optimally you will want to have an
SVGA adaptor in your PC that has enough RAM to support resolutions of at least
1024x768. Graphics Accelerator cards of many types are supported by today's modern
distributions for even faster graphics. If you're looking for really good graphics
performance under Linux, the NVidia range are an excellent choice, because they are well
supported under Linux by Nvidia. ATI cards are also popular, however their driver
support for Linux does not appear to be as good as NVidia's, which seems to be an
ongoing issue with ATI. If you don't know what card you have in your machine, visit your
device manager in Windows, or System Preferences in Mac OS. Integrated graphics
chipsets such as the Intel i Series or Cirrus Logic on board chips like those found in
modest-price laptops generally work well, however if you need 3D graphics performance,
or intend on playing games, you are best using a 3D accelerated graphics card/chip from
the likes of Nvidia or ATI.
Minimum Speci cation: A standard graphics card capable of 1024x768 resolution
(pretty much all graphics cards since the mid-late 1990s).
Recommended Speci cation: 3D Accelerated Graphics card with at least 256MB
graphics RAM.
Using Wireless & Wired Network Adapters and (Broadband)
Modems with Linux
based WiFi adapters will work out of the box without any need to install a driver. WiFi
adapters that work out of the box include Broadcom, TP-Link and ASUS. For more
information on Wireless compatibility under Linux, see the Linux Wireless LAN wiki.
Some vendors have made cheaper soft-pci, mini-pci 'wintel' based adapters which are
proprietary in nature and won't work out of the box. This can usually be resolved by
loading a Windows driver inside Linux, using a tool called ndiswrapper (see this wikipedia
link for further information).
Almost every wired network adapter available should be quite happy with Linux. Modern
PCI or integrated based options such as those manufactured by Intel and Realtek range
will automatically plug and play.
Internet routers or ADSL & Cable modems are usually one of two breeds, either they
either plug into the USB port of your computer directly or they are fully blown Ethernet
routers, today these mostly contain WiFi radio as well. Thankfully, most ISPs are now
providing 'proper' Ethernet based routers which simply plug and play with Linux either
over WiFi or via an Ethernet cable. If you do have a USB modem from your ISP, consider
shelling out for a proper router as the USB modems support under Linux is somewhat hit-
or-miss and you will often nd that performance from a USB modem is less than you
would get from a router (regardless of whether you are using Windows, Linux or a Mac).
Tux tip!
If you still want to partition your hard drive before installing Linux, for example if you want
completely granular control of how you split up your disk partitions, even after you have
installed Linux, then you can use a tool like GParted to partition your disk so that you can
create some free space to put Linux onto.
If that all checks out, then you are going to need a copy of Ubuntu Desktop edition. Head
on over to their website (https://www.ubuntu.com/download/desktop). Download a free
copy of Ubuntu. When it's downloaded, you'll end up with a .iso le. This le type is what
is known as a disc image.
'Flashing' the ISO le to a USB stick
If you prefer to use a DVD-R, rather than a USB stick, then skip this section and see the
one below.
There are a few ways to put an ISO image onto a USB stick these days and it's a lot easier
than it used to be. As most of us have USB sticks lying around the house, this is now the
most common way to install a Linux distribution.
Download BalenaEtcher
The easiest way to put the ISO image you downloaded onto a USB stick is to use a free
tool called Etcher. Head over to their website (https://www.balena.io/etcher) and
download the tool.
If for whatever reason you have troubles with the BalenaEtcher tool, you can alternatively
use a tool called Rufus if you are using Windows. Read this short guide.
Flash the ISO image to your USB stick
Once you have downloaded BalenaEtcher, open the app and insert your USB stick into
your computer.
In Windows 7 or greater, it's as simple as right clicking the ISO le and selecting 'Burn disc image'
If you prefer to use a DVD rather than a USB stick then you are in luck, burning an ISO
disk image to a DVD is easy these days if you have Windows 7 or later, then simply right
click on the icon of the le you just downloaded, which will be named something
like ubuntu-18-10-desktop-amd64.iso. Once you right click the icon, you will see the
option ‘Burn disc image’. Select that option and pop a blank DVD-R or into your PC and
click burn. If you would like further instructions on this process or are using an older
Windows or other operating system, check out this easy guide at the Ubuntu web site.
Ready to install!
Note for mac users: If you are using a Mac computer, note that all of these steps will be
completely different so you should follow our guide on installing on a mac computer on
our website.
Hopefully you are now armed with a Linux DVD or USB stick that's good to go. If the
DVD was ejected from the CD player, pop it back in the drive and Restart your computer.
Most PCs will automatically try to start the computer from the CD drive or USB, so
hopefully you will be presented with a Ubuntu welcome screen after a minute or so.
Re-order it so that boot option 1 is the USB/UEFI media (in this case it's a Kingston
USB stick)
Boot option 2 is now set as the hard drive (Toshiba), Option 1 is the USB stick
Make sure you save the changes and exit
The installation process
This next part of the guide steps you through installing Ubuntu alongside Windows.
Step 2: Select Install Ubuntu
Once you've started up Ubuntu from the USB stick or CD, the rst thing you will see is an
option to Try Ubuntu or Install Ubuntu. Select your language from the left hand side and
click on Install Ubuntu.
Step 3: Keyboard and Language
Next select your keyboard layout and language. Press Continue.
I've selected 'Install Ubuntu alongside Windows 10'. I have clicked Continue.
The next screen allows you to resize your Windows Partition (ntfs) to the size you want,
freeing up enough space for Ubuntu.
Have a look at the below screenshots. You can see that by default the Ubuntu installer
has decided to give most of the space (30.6GB to Windows). It set 22.5GB to give to
Ubuntu. I decided that this was a bit miserly, so I slid the size of the Ubuntu partition to
the left, so it was equal in size to the Windows partition. Below you can see the before
and after screenshots.
Use the arrow slider mouse cursor to resize your windows partition
Once you are happy with the sizes, Press 'Install Now'.
Next, you'll be asked to con rm that you want to make the changes to the disk. Press
Continue to both.
Step 6: Location
The next few items are all fairly self explanatory. Choose with location you are in the
world so that your time zone and regional settings are appropriate to you. Once you have
selected the right one for you, press 'Continue'.
Step 7: Usernames and the Administrative (root) user
The nal step is to set up a user account and set the name of the computer.
In the below screenshot you can see that I've put my name as 'The Ultimate Linux
Newbie Guide'. Of course you would enter something like 'Jane Doe' in this eld.
The computer's name can be whatever you want it to be. When it is seen by other devices
on your home network, this the name it will be seen as.
The next item is to select a username to use to log in with, etc. Don't use your full long
name here, use something without spaces. For example 'jdoe'.
Note that Ubuntu always sets the rst user speci ed as an administrative user. This
means that as you are the rst account on the machine, you will get to do privileged tasks.
Such tasks for example; install software, update the system and deal directly with
hardware. Take this information with a little caution. If you are asked again for your
password when doing something in Ubuntu, it is asking you to escalate your own
privileges into what Linux calls the 'root' user. Root is simply the username of the
administrator in Linux. As administrator you have free reign over the system at all times.
Do not perform tasks as root unless you know what you are about to do, or unless you
have con dence in the task ahead!
A little word on passwords
At this point you'll be asked to set a password for your username. It's important that you
select a strong password, because in time to come, you may wish to open up services such
as remote access onto your machine. It's a simple step but believe it or not, still a
reasonably effective method of security, do not choose a simple word as a password.
Choose random things, like for example, your favourite colour, and your rst car, with a
few numbers (maybe your year of birth) sprinkled in the middle for good measure. Here is
a pretty strong password and could be pretty memorable to the right person:
blue77volvo!240GLS@
No, I wasn't born in 1977, my favourite colour isn't blue, but my dad did have a Volvo
240GLS! However, you get the idea. The password is still important, especially if you ever run
any server or sharing software on your machine in the
future. Having a secure password makes sense.
Once you are satis ed that you have set a name, username, password and computer
name that you are happy with, Press 'Continue'.
Finishing Up
By now, most of the software you will need will have been copied to your hard drive. Your
user account will be set up and your regional settings are all ready for you. It's time to
restart the machine. Make sure the USB stick or CD is removed from the drive when
prompted and continue onwards!
Choosing the startup option.
When you start your PC, you'll see something like the above screen. You can choose
whether you want to start up Windows or Linux (Ubuntu). Select the system you want
using the arrow keys. If you do nothing, the computer will start up with the default option
after a few seconds. You can tell the default because it's marked with an asterisk.
Welcome home!
When you start up your computer, you will likely see a boot screen (GRUB) asking you if
you wish to choose Windows or Ubuntu (that is, if you installed Ubuntu alongside
Windows). Choose Ubuntu from the list using the cursor keys (the up/down arrow keys)
and hit enter and it will start up Ubuntu.
The next screen you will see is the Ubuntu login screen. It's the screen you will see every
time you start up Ubuntu. If prompted, select the username that you created earlier (or
type it in if required), then enter your password. The system will then log you on.
The Ubuntu Desktop
The Ubuntu desktop is a friendly place, which we will cover in the chapters
six (How do I use Linux?) and seven (Using Linux Every Day). If you are used to Windows,
your 'Start' menu is the bar along the left hand side. The bottom button which looks like a
bunch of dots allows you to search your computer for Apps. Simply by start typing the
app's name (eg Firefox) or simply by looking at the list of icons for all of your apps.
Favourite Apps
You'll note that a few favourite Apps have already been 'pinned' to the bar on the left,
these include the Firefox web browser and LibreOf ce for example (LibreOf ce is a free
Microsoft Of ce compatible word, excel, powerpoint suite). You can pin your own
favourites to the left-hand side bar if you desire simply by dragging an icon from the
Applications list into the bar.
Where are all my les?
On the left-hand side bar there's a folder icon. Clicking on this will show you all the les
on your computer. In most cases, your Ubuntu machine will have been set up to see your
Windows le systems by default. Clicking on the folder icon, you'll see 'Other Locations'.
In here, you can see your Windows drive. Illustrated in the below screenshot.
The 27GB Volume is my Windows disk. Clicking on it reveals the 'C:' drive, so I can access les like
my Photos and Documents from Ubuntu.
What's next?
Now that you've seen how to install Linux, get on to chapter six, to see how to
use your Linux Desktop!
Chapter 6: How do I use Linux?
Linux: Let the fun commence!
Using Linux really is a lot easier than it used to be. When Linux rst came about, it was for
computer enthusiasts, tinkerers and geeks. Now with Linux powering everything from
Android smartphones to smart washing machines, Linux is such a big part of our life,
using it for an every day operating system really is a no brainer.
Now that you have installed the system onto your computer, it's time to have a quick
introduction to the Linux Desktop.
Depending upon your distribution, your default desktop can be a little spartan!
When you rst start up your desktop, depending upon your distribution, you may see a
fairly spartan view. With any GNOME desktop there is an empty desktop and a single bar
across the top. The bar simply shows the word 'Activities' at the left. A Clock in the
middle and a few icons at the right hand side. If you are using Ubuntu or some other more
user friendly Linux distributions, you may have some other icons on a 'dock', either on the
left hand side, or at the bottom (see the screenshot at the beginning of this page for an
example of the Ubuntu desktop GNOME experience).
Your Applications
The apps on the dock that come 'favourited' as standard in Ubuntu are the Firefox web
browser, Thunderbird email, Files (the le explorer), Rhythmbox (music player),
LibreOf ce Writer (word processor), The Ubuntu Software Centre (to install more apps
with). The nal two icons are GNOME help and a link to Amazon. Note that the apps that
come with your Linux distribution may vary from the ones listed here.
At the very bottom of your screen you'll see an icon that looks like a 3x3 grid of boxes,
this is 'Show Applications', much like the Windows 'pane' icon on your start menu brings
up your Apps. If you download/install new apps, they appear when you click on this icon.
You can add any of the apps from your applications list to your favourites on the Dock by
right clicking their icon and selecting 'Add to Favourites'.
The 'Show Applications' button at the bottom left has been clicked, revealing all of the installed
Applications on the system. Note the tab at the bottom which says 'Frequent'. This will display only
the applications which you frequently use.
If you left click on any of the icons, as you'd expect, the app is launched. If you right click
with your mouse, you will see a context menu. For example, right click on the Firefox icon
and you'll see a few options such as 'New Window'. The options available are obviously
different depending on the app, thus the name 'context menu'.
Activities
Clicking on the text at the top of the screen 'Activities' brings up a screen with a zoomed-
out look of all the applications you are presently running. It also gives you the ability to
search for other applications you can run. If you start typing an app's name into the
search bar, it will appear in the results. Simply hit return and the app will launch, which is
a quick way to launch apps.
The Activities/Apps view, showing the current running Apps as well as the Dock and the virtual
desktop view.
The image on the right shows the Activities view. The dock shows the favourites on the
left hand side. Notice that beneath the Firefox and Files icons there is a blue 'underline'
(this will be a small dot in Ubuntu). This shows that those apps are running. You'll notice
that any normal apps also appear zoomed out when you are in the Activities view. This is
kind of like Mission Control if you are used to a Mac. You'll notice that both of the
running apps, Firefox and Files are zoomed out here, placed side by side with the text
below them describing what the App is. If you click on any of these 'thumb-nailed'
(zoomed out) images of the apps and it will immediately zoom back in to that particular
app, making it very quick to switch between Apps.
Tux tip: Press your Windows key on your keyboard (cmd on a mac) and you will
automatically be taken to the Activities view so it's even faster to get there!
Getting Virtual with desktops
A theme that has now become common across Windows, Mac and GNOME is the notion
of Virtual Desktops. The bene t of having virtual desktops is that you can de-clutter your
desktop workspace. Having lots of windows open on one desktop can quickly get
distracting.
In this image you can see that there are four virtual desktops open. The third desktop is presently in
use. You can see the minesweeper game is running and is thumbnail-led in the icon of the virtual
desktop (zoomed an arrowed).
To launch a virtual desktop, enter the Activities view. On the right hand side you'll see a
drawer containing two thumbnails of a desktop; hover your mouse over the drawer, and
the drawer automatically slides out. The desktop thumbnail at the top is the current
( rst) desktop. The next one is a blank desktop. Click on it and you'll have a fresh desktop.
If you launch an app now, it will start up on this second desktop. If you want to go back to
the apps you were running on the rst desktop, simply enter the Activities view once
again, and click on the rst desktop in the drawer. Notice also that once you have apps
running in the second desktop, a third virtual desktop is created for you automatically.
Where are my les?
You'll see 'Files' listed in the dock as one of the favourites. Click on this and you'll see a
le browser much like any other you may be used to. By default, you'll be in grid
(icons) view. On the right, note there are different views that can help you organise your
les. The button with the 6 dots/dashes on it (top right) indicates that you are in grid
view. The button to the immediate left with three dashed lines indicates the detailed
view, which is what you can see in this screenshot. If you want extra details to appear by
default in the list view. Click on the button with the down arrow and click 'Visible
columns'.
On the left hand pane of the le navigator, you'll see favourite locations. You can add a
location to your bookmarks (below the favourites) simply by dragging and dropping the
folder of your choice to there.
If you have set up an online account set up with the likes of Google Drive/Microsoft
OneDrive/Nextcloud etc, you'll see any connected drives you might have. In this case, I
have my Google Drive available. Clicking on this will allow you to view the les in your
drive just as it were any normal folder (albeit a bit slower!).
Setting things up
When you rst launched GNOME, the only thing you might have really noticed was that
dark bar across the top and maybe one on the left. On the right hand side of the top bar,
there is a bunch of icons. Click on any of them and you'll see a drop down menu. It'll show
you the audio volume, your network connections (eg WiFi or Ethernet). It shows you your
username and nally, three icons (Settings, Lock Screen and Power Off/Restart). Other
items will appear here depending upon your computer and settings, but these are the
basics. Much of the items in this menu will be self explanatory, but if you aren't already on
WiFi or plugged into the network, you are going to want to do this. Click on the WiFi icon
and a drop-down list offers you to select your WiFi base station from a list, as well as
selecting other more advanced WiFi settings.
Many of these menus lead you to the gnome settings dialogue. This is always accessible
by clicking on the icon with the spanner & screwdriver. When you click this you can
change most of the pertinent settings relating to your computer, from your background
wallpaper, to power management settings. This is analogous to the Control Panel in
Microsoft Windows, or System Preferences for a Mac.
The Gnome-settings dialogue
Much of the items on the settings dialogue should be fairly self explanatory, so for the
interests of brevity I'll explain the more in-depth items only. The look and feel of the
settings dialogue differs between distributions (and versions), however most of the
actions available perform the same functions.
Noti cations
Noti cations are the pop-up messages that appear at the top of the screen when a
particular App wants to make you aware of something. Just in the way that your mobile
phone shows you an alert when someone sends you a message, for example. When apps
are installed, they automatically get added to this list (if they are apps that use
noti cations). You can choose to disable noti cations on an app-by-app basis, or switch
off noti cations entirely (Noti cation Banners - toggle to OFF). By default, noti cations
can be seen even when your screen is locked, so for example, you can see if you have a
calendar appointment coming. You can switch this behaviour off too.
When you click on a particular app in the list, you can enable and disable speci c
noti cation items depending upon the context of the noti cations the app makes. For
example, an app may make sound alerts as well as pop-up banners. You may wish to add
privacy by not showing the message content in the banner; this setting is the default. This
may be useful to switch on for emails for example, so you can see whether an email is
important to you or not, simply by seeing a preview of it in the noti cation banner. This
saves you time having to switch back and forth to Evolution for email.
Online Accounts
This item is where your digital life becomes one. It combines all of the most common
online services in one easy dialogue, so you'll want to set this up before long. When you
enter this setting, it'll be empty apart from a button saying 'Add an online account'. If you
want to add more than one account (or remove one), note the + and - icons to the bottom
left.
At the time of writing, you can add 10 different accounts. These are: Google, Facebook,
Flickr, Microsoft Live, ownCloud, Pocket, Foursquare, Microsoft Exchange
(calendar/email etc), Media Server and Other Accounts (such as standard IMAP/POP3
Email and AIM chat). Click on any of these to set them up.
Tux tip: Your connections to cloud accounts like Google and Facebook may disconnect
and you will have to re-authenticate periodically. This is to keep your accounts safe.
If you want to connect to your Google account for example, Click on the Google icon. It
will ask you to enter your email address associated with your Google account, followed
by its password. It will then ask you to give the GNOME desktop permissions to use
Google's features. Scroll to the bottom of that list of permissions and press 'Allow'. You'll
now be presented with a list of toggle items which you can use your Google account
within GNOME for. For example, Email, Calendar, Contacts, Chat, Files, Printers and
Photos. Note that if you select them, they will automatically be downloaded to your
computer.
Tux tip: At the time of writing Files are not synchronised like they are with Google Drive
on Windows or Mac. Rather you can upload and download les from your Google drive
via the Files app. If you'd like to know how to use Google Files fully, check out this
tutorial. It also shows 'full synchronisation' alternatives.
Network
In this settings dialogue you get to change the settings for your Network. This includes
your Ethernet and WiFi adapter(s), set up a proxy, add a VPN, con gure a VLAN and
bond, team or bridge a network interface. If you want to change settings for any of the
con gured networks, click on the cog icon to the bottom-right.
Backups
By default, system backups are switched off. This option unlocks a very powerful, yet
simple to use backup feature which works in a similar way to the 'Time Machine' app in
macOS. You can schedule when your backup runs (eg, weekly, daily etc), whether each
backup is kept inde nitely or not, which folders to ignore and where to store the
backups.
By default, the backups are stored in your home folder on the local disk. You'll want to
change this, so Select one of the alternative storage locations from the drop-down list.
These can be Amazon S3, Google Cloud, Rackspace Cloud or generic
FTP/SSH/WebDav/Windows Share based locations.
LibreOf ce is the de-facto Of ce suite for open source computer users. It supports
Microsoft Of ce formats (mostly), and using the applications feel just like they should do.
LibreOf ce Writer is for word processing, Calc is for spreadsheets. Impress is for
presentations. Math is for complex calculations. Whatever your of ce productivity
needs, LibreOf ce should have it covered.
GNOME also comes with an app called Documents, which allows you to view cloud based
and local copies of PDFs and other cloud format format les (eg Google
Spreadsheets/Docs).
The Rest
Chat: Talk online using Google Talk, AIM, Jabber, IRC etc, use Empathy.
BitTorrent Downloads: Transmission is your friend.
Zipped up les: Use le roller to decompress and compress le archives.
Scanning: Simple Scan will get you started.
Text Editing: Gedit edits text les easily.
Webcam: For snapping with your webcam, there is Cheese.
Weather: Yep, you guessed it, the Weather app is imaginatively titled, "Weather"!
There are hundreds of thousands of free apps just waiting to be discovered in Linux.
From CAD to Calculators, MS Visio alternatives to Vehicle maintenance apps.
To install anything, just launch the Software Center. In GNOME, its simply called
'Software', but each distribution may call it something slightly different. Ubuntu
Software, Software Center, App Store, Software Boutique; you get the idea!
For a very quick introduction to how to install software via the Software Center or via
more traditional methods, see this tutorial.
Now that you are well on your way to being a bona de Linux desktop user, have a look at
Chapter Seven, which introduces you to many more fantastic open source apps, from E-
Mail to music players, games to video editing, even how to use your Linux machine as a
TV!
Chapter 7: Using Linux Every Day
What would be the use in Linux if it didn't have great software? I'd rather put up with a
poorer Operating System than have no software, wouldn't you?
Fortunately, Linux is teeming with great software for all sorts of purposes, and most of it
is free of charge. This chapter discusses the most popular uses of a modern-day PC, and
where Linux ts in with all of this; however before we get started, I better cover the
rather ugly elephant in the room...
Ubuntu's Snapcraft store lets you install software which isn't natively made for Linux, such as the
Spotify app.
Despite of all the abilities to run software that wasn't built for Linux, it's reasonably easy
to get your favourite titles brought over to Linux if you really must keep them. However,
not investing a little time in evaluating just some of the amazing native Linux software
titles out there would be a travesty indeed, so the rest of this page is dedicated to
showing you how great Linux software is. Most of it free!
Of ce Package Software
Evolution showing its Mail view (left) and Kontact showing it's calendar view (right). Both bear
striking similarities to Microsoft Outlook.
Evolution
Rythmbox and it's little sister, GNOME Music is one of the many audio apps available for
Linux both built with the GNOME aesthetic in mind. Both are fairly similar in interface to
iTunes, it allows you to listen and organise all your music on your PC. Rythmbox is a little
more feature-rich and allows connecting your digital music player to upload/download
music to. It also connects you to Internet radio stations, Podcasts. It has in-built support
for playing, ripping and burning audio CDs.
amaroK
Amarok in action
Despite having a silly name, amaroK is a great music player for KDE users (it can also be
installed on any other desktop). Fans of iTunes will be immediately relieved to hear that it
looks very like iTunes and syncs with your iPod/iPhone awlessly.
It creates dynamic playlists too, like the party shuf e feature in iTunes, but better!
amaroK features automatic CD cover nders for each album on your PC, so you know
what the CD looks like when you play it. It also grabs the lyrics for every song you play on
demand, as well as telling you pretty much all the info you would ever want to know
about the band you are listening to, from Wikipedia. It also features a built in ID3 tag
editor to sort out those rogue MP3s with invalid entries, and features MusicBrainz to
take some of the guesswork out of it.
Sound Editing
Again, there are so many good tools out there for sound editing, it is hard to name but a
few here, but we will try to keep it to a good few!
Give Audacity a spin, for example, if you want a great multi-track audio editor. Ardour is a
professional digital audio workstation application. For the budding drummers, there's
Hydrogen, the drum machine software. Guitarix, the Virtual Guitar App and RoseGarden
which is a powerful audio, MIDI and score editing and sequencing environment for
musicians.
Ardour
VLC is an incredibly well known media viewer known for its versatility.
VLC
VLC is a Multiplatform media player (Works on Linux, Windows and Mac). VLC is now
regarded as the king of all media players on all of the platforms and is a great app, if a
little dif cult to navigate, however it offers a wonderful array of playback possibilities -
handling almost every format out there, it's very versatile, but it's real power comes from
the fact that you can serve up media from any pc and get it to appear anywhere else -
beam videos over the net, or just to another monitor in another room in your house.
Support for resampling makes bandwidth problems with Internet broadcasting less of a
problem.
MPV
MPV is a video player that has a sleek minimalist GUI and plenty of features. You can
even use it in the command line. If you are not happy with VLC, you should give MPV a
try.
Miro
(It's also an online video content player, a Hulu or Net ix of Linux, if you will)/Miro allows
you to convert any video formats you like as well as download and play almost any video.
It will work with your current music library and will synchronise content to android and
kindle formats. It will download Bittorrents and you can also buy music and apps inside
Miro.
Miro is a jack of all trades for Music, Movies, Online video, conversion and more
And don't forget...
Kodi - a full- edged media center. It can handle videos, music, pictures, podcasts and even games.
You can even record TV with it.
Banshee (an all-round media player for GNOME, similar to iTunes).
Kaffeine (KDE's answer to Banshee). NoAtun, SMPlayer, Totem
Video Editing
Believe it or not, some professional movie studios have actually made the leap to Linux,
which is a huge sign of just how good some of the software is out there. I'm not a
professional video editor as you can probably tell from a number of the videos on this site
(!) but you can see that even someone inexperienced like me can pick up the tools and get
pretty good output without much work.
Kdenlive
Shotcut
Straight forward movie editor, with support for hundreds of audio and video formats. It's
got lots of device and transport options as well as a nice looking interface.
Cinerella
Cinelarra
If you need more than the others above, then Cinerella is for you. Hue, Saturation,
Denoising, Compression, Time Stretching, Text-to-movie, batch rendering and much
more are all staples of this sophisticated video editing suite. It's been around since 1998,
so this surely means it's the grandfather of all the other video editing tools out there for
Linux!
Blender
Although Blender is not technically a movie editor it's worthy of a mention. A number of
movies have been created with this sophisticated 3D graphics and animation creator, it's
been around a long time and is still in active development.
Blender is what the pro's use in animation studios around the world. It can also do movie editing.
MythTV allows you to turn your PC into a Media Centre complete with PVR and TV options.
MythTV is open source software that turns your PC into a PVR (Personal Video
Recorder). It enables the user to pause live TV, Skip ads, use an electronic program guide,
set recordings to record whole series of a particular program, edit recording schedules,
organise and view your home photo and videocamera collections as well as listening to
music and record content from the Internet, it excels at many points, making it a cut
above the current offerings from Microsoft (Media Centre) and PowerCinema.
Also check out MythBuntu,which is an Ubuntu based pre-packaged distribution of
MythTV, making it easy to install on a PC.
If you only want to do the basics, you can record and watch live TV then you don't need to
use something as feature-laden as MythTV. Popular titles for viewing and recording TV
are tvtime and xawtv.
The Hauppage series of TV cards seems to work best with the Linux TV software as it is
the most popular range, and best supported through the video4linux driver.
The terminal can be a bit daunting at rst, however there really isn't anything to be scared of. It's
easy with a little bit of patience, and it's the true way to master an operating system.
Just as cavemen learned to develop their skills from grunting and groaning to writing
meaningful representations on the walls of caves, The computer world started off with
the keyboard and the CLI (Command Line Interface). No mice, no graphical user interface
(GUI), no icons. All text.
Tux tip!
The Terminal is where you enter command line instructions. The Terminal can also be referred to as a
console, prompt, CLI, command line or shell.
Step forward a bit to when Linux came out, around 1991. Anyone who wanted to use
their PC in a quick, ef cient manner with a Microsoft machine would use Windows 3.0 to
run their graphical programs like Aldus PageMaker or Lotus 1-2-3, but they would often
open an MS-DOS prompt. This meant they could type a few commands. They would do
that so that they could quickly rename a le or move it from one place to another. Sure,
even then users could use a graphical le explorer, select the le(s) they wanted to
rename or move and drag them to the relevant location, but a lot of people were nding
that DOS was still quicker to use if you knew the commands. If you spent a few days
learning the rudimentary commands of DOS, you could really use your PC in a quick, no
nonsense way. Coupled with the graphical usefulness of Windows, you could cut
workload down by a good deal. Even today, when using modern GUI O/S's like Windows
and Mac OS, I still nding myself going to Start going to Start>Run and typing
in cmd (Windows) or Terminal.app (mac) to access the command prompt to do something
quickly.
Over the years, the people who use the Desktop operating systems such as Mac and
Windows have mainly forgotten about the fact that the command prompt still exists, but
for systems people, the people that want to do operations in bulk, or do them quickly,
they still use it often. In Windows, Microsoft created a thing called PowerShell for this
exact reason. MacOS X brought about the bourne shell (the UNIX shell from BSD) and of
course, Linux gives us the Bash shell (the Bourne Again SHell, which is just an enhanced
edition of the bourne shell that you nd on a mac).
Once you get to grips with it, it's not scary at all. Also, if you want to have a career in
Linux, you'll nd that you will need to know around the command line.
Why do we still use the command line today?
Imagine the following scenario:
You have 300 les in a folder (call the folder 'work'), and within that folder you have 2
other folders, one called 'old' and one called 'new'. Your task is to separate the les in
work to the new and old folder. You must put the les that are older than 1 month into
old, and the les less than 1 month into new. In a graphical le manager, you would need
to right click each of the 300 les separately to nd out their creation date, and then
move each of the les one by one into their relevant folder. This operation is seriously
time-consuming.
How's about the command-line option: type in one line at the shell, and the les are
automatically sorted into each folder, determined by todays date. Sure, you would know
that you would have to type something like
'find /usr -ctime +30 -exec ls -ld {} \;' to get it to happen, but hey, it's still faster than
going through 300 les.
There are yet many other reasons that you may want to have a CLI, for example,
a User Administrator has 3 dead (crashed) programs on 3 different workstations across a
building. He has two choices: Go run around the building like a headless chicken and kill
the programs manually at each workstation, or sit at his or her desk and SSH into each
machine, using the CLI, killing each of the programs, nishing the job 20 times faster.
The joy of text
If you start to use Linux a lot, you'll start to nd it's a lot easier just to issue a direct
command instead of clicking on a bunch of different icons to do something you could do
in one command at the CLI. In fact, even Microsoft have, as of 2017 stated that they 'Love
Linux'. They've brought the Bash shell via Ubuntu to the Windows desktop, and MacOS
has has the bash shell built into it since the beginning of MacOS X. The reason for this?
Because it's where people get serious about being effective system administrators and
programmers. If you fancy a career in being a system administrator then you should read
the bottom of this article.
tar de facto Unix archiver - archives les into one le (a tar zxvf myarchive.tar.gz
.tar le). Using the 'z' ag uses compression (gzip).
rpm The Red Hat Package manager, used to install, remove, rpm -Uvh
upgrade and query RPM packages. mynewpackage.i386.rpm
If you ever need to know how to use a command, or just nd out what a command
does man (short for manual) is your friend. For example, by typing man ls, a
comprehensive guide is given on using the ls command, what it's purpose is and what it's
syntax is. For more information on using man, type man man.
There is not a better source for quick, easy to nd information on almost
every Linux command. The only times when man lets you down, is when you don't know
that a command that does a speci c purpose exists, thus, you don't know the name of the
command, so you don't know what manual page you want to ask man for. If man doesn't
t the bill, you can get by with reading the rest of The Ultimate Linux Newbie Guide and
some googling!
OneDrive for Linux. You’ve probably no doubt heard Microsoft whitter on about how
much they love Linux and Open Source recently, but what about the use of their agship
products and their associated technologies? Microsoft Of ce has arguably got to be the
most popular consumer application that Microsoft provide, and if you have used Of ce
(or Of ce365) recently, you’ll see that saving your les to your PC is no longer the default
option. In fact, in my opinion, its downright obfuscated. Instead, saving to their take of
DropBox or Google Drive; Microsoft OneDrive is the default.
If you are ‘forced’ to use Microsoft products at work, there’s a good chance that they
might be forcing you to save les into the cloud too. This is life, we can’t all be software
freedom supremes!
So, the question is rstly, have Microsoft released an of cial OneDrive client for Linux?
Put simply. No.
WebDav
There really is no great way to use OneDrive for Linux. There are plenty of ways,
however.
If you have OneDrive Personal, using DAVFS2 might be the cleanest option. You will see
it using your le manager straight away and it will act pretty much like a normal network
drive. Firstly, nd out what your HTTPS WebDAV address should be (found HERE). You
can either add an entry to your /etc/fstab (so that it is mounted on startup every time –
recommended), or you can use GNOME Nautilus/Files (or KDE Konqueror) to mount it.
WebDAV is simply an HTTP le sharing protocol. Linux has strong support for it.
If you are using fstab, here is the sort of entry that you would use:
https://cid-blablabla.users.storage.live.com/items/blablabla
/home/media/MS davfs user,noauto,file_mode=600,dir_mode=700 0 1
Make sure davfs2 is instaled on your machine before you do this obviously!
CLI based option
From the above table, clearly OneDrive Free is the leading client, supporting sync and
OneDrive for business. Obviously you can still see the les it has downloaded in your
normal le browser, however I can’t be 100% sure if this doesn’t cause any issues with le
synchronisation. I’m pretty sure it won’t, but never say never!
Installation of OneDrive free requires you install a few things rst (instructions for
Debian/Ubuntu):
sudo apt-get install libcurl4-openssl-dev curl git
sudo apt-get install libsqlite3-dev
curl -fsS https://dlang.org/install.sh | bash -s dmd
source ~/dlang/dmd-2.076.0/activate (this number will vary depending upon
the version of dmd, note the output of the dmd build command)
git clone https://github.com/skilion/onedrive.git
cd onedrive
make
sudo -s
source ~/dlang/dmd-2.076.0/activate
make install
exit
Then simply start the tool by entering the word ‘onedrive -m &’ at the prompt (note the
space after the -m – the & puts the program in the background). You’ll be given a URL to
enter into your web browser. Enter this, log into OneDrive and you’ll end up on a blank
page. Copy the URL of your browser back into the terminal, where it will be waiting for
the URL. Once you enter it, a new folder in your home folder called ‘OneDrive’ will be
made. It will start synchronising all of your OneDrive les.
Note that onedrive -m puts the tool into ‘monitor’ mode so that it can monitor for
changes. Therefore, it runs permanently. Ideally you should run this in an init script or
similar on startup, so you don’t have to run it from the terminal every time you start up
your PC.
GUI (Graphical) Native options
On testing GNOME3’s latest ability to use OneDrive, I’d say its a bit of a joke. Read only
le access is almost near useless. Konqueror should be able to accept your OneDrive
token and start working like a normal le share – please post a comment if you get it
working! However, if you are not a KDE user, like me, then this is a moot point!
SPFileZilla is also an option, but it doesn’t support sync and its pretty ugly, considering
you are really just using a Windows client! There is always the web browser with the
OneDrive website, but again this is simple upload/download, no sync option.
Due to its maturity as a protocol and support under Linux, you can also choose to use
WebDAV, but only if you are using OneDrive Personal.
Overall, however despite it being natively a CLI option, OneDrive FREE is the most
feature rich, and once in monitor mode. Also, don’t forget that you can see all the les in
your preferred GUI based le browser, such as Nautilus/GNOME Files etc. Have a look at
the screenshot on the following page:
Screenshot Using OneDrive FREE on Linux, demonstrating the sync capability and use
use in GNOME Files
How to use Google Drive, OneDrive,
Dropbox, Amazon S3 and more in Linux
Google Drive hasn’t been supported on Linux of cially, well, ever….
It’s been possible to use it in the past using third party apps like inSync or the more
basic Gdrive. However since version 3.18, the GNOME desktop has inbuilt support for
Google Drive ‘ les’.
We will also be covering a third party tool called RCloneBrowser which supports
OneDrive and Dropbox as well as Google Drive, so you can choose whether you’d like to
use the new ‘native’ inbuilt support for Google Drive, or use a third party tool. The choice
is yours, vive la Linux freedom!
Once you have entered your Gmail address/username and password, you will be
prompted to give Ubuntu / GNOME permission to use your Google account. Scroll to the
bottom of that dialogue and press ‘Allow’.
A few moments later, you will see the original ‘Online Accounts’ box, however you’ll see it
now has your Google account in there. You can see that one of the options is ‘Files’. By
default this option is selected as ‘On’.
Finally, if you open the File Manager (Nautilus), you’ll see a new entry (most likely below
‘Trash). It should have your Google account username. Click on that and you’ll start to see
your les (this may take quite some considerable time!).
Other Alternatives
overDrive is a $5 paid application with a 14 day trial. It works very much like the Google Drive
client for Windows/Mac.
inSync (which I have used with great success), is a graphical (and console based) $30 Google Drive
client. It also a two week trial.
Dropbox has native support within the GNOME Online Accounts dialogue.
ownCloud / nextCloud is a great open source alternative to other cloud storage systems. It can be
run from home or a server online.
For those of you interested in console only based offerings, you can check out:
GDrive2 by Paul Rasmussen supports basic syncing. It only syncs one way at the time and works
more like rsync than e.g. dropbox.
Drive is an unof cial tool written by a Google developer. It doesn’t sync, you must manually tell it
to push or pull updates.
How to install Linux on a Macintosh and
dual boot with macOS
Got one of those shiny Mac laptops, but Linux has you realising
computer freedom is best?
This is the definitive guide!
UPDATED FEBRUARY 2019
Using a Macintosh is (mainly) a delight. The hardware is solid, fast, and beautiful, but over
time, macOS has become dumbed down and in some places, downright silly. I long since
realised that I could do exactly what I wanted to do with my macbook using Linux, rather
than being encumbered by having to follow the 'Apple' way of doing things. I never looked
back. Here's the de nitive guide to installing Linux on a Mac.
DISCLAIMER: This is an advanced tutorial which sometimes works at the command line
and can cause irreparable damage to your data. If you do proceed, make sure you have
backed everything up with TimeMachine or such like tools. The Ultimate Linux Newbie
Guide cannot be held responsible for any damage caused as a result of following this
tutorial.
This tutorial has been tested on a late 2013 Macbook Pro Retina 15", however it should
work with any EFI based Mac (more on that in a bit). The EFI based Macintosh started
around 2008 (you can check the list of the Apple EFI systems here). This should include
Macbook Pros, Macbook Air, iMac and probably Mac Pro's...
Update: Apple's new P2 'Secure boot' chip
Next, unless you haven't already downloaded the Linux distribution of your choice, it's
time to go grab it. You'll nd that you'll download a .iso le, which we will need to 'burn'
onto a USB stick. Make sure you have a 4GB or bigger USB stick that you don't care about
deleting ready for use.
For this particular tutorial, we are using Ubuntu, however most other Linux
distributions should work. Using more hard-ass systems like Arch or Slackware, or even
Debian, this will be more challenging. This guide is challenging enough, so do what you
will, but I recommend you stick to the easier distros to begin with like Ubuntu or Linux
Mint.
Make sure you download the x64 version of the distribution you choose, if there is an EFI
boot version, choose that also.
Using Etcher to 'burn' your ISO image to a USB stick.
There is now a snazzy tool called Etcher (you can download it for free
from balena.io/etcher. This would now be my choice for downloading and burning a Linux
distribution download to a USB stick because it's literally as easy as popping in your USB
stick and pressing go!
Now that you've got your ISO le downloaded, and you've
downloaded BalenaEtcher, Fire up Etcher, and follow these steps:
Click 'Select Image'. Select the Linux ISO le that you just downloaded.
Insert your USB stick that you want to put the Linux distribution onto (note it will be completely
wiped).
Click 'Select Drive'. In many cases, this might not even be necessary (Etcher is clever enough to
see the USB stick and select it for you).
Click Flash!
Etcher in action - a super quick and easy tool to put your Linux ISOs onto a USB stick.
Yep, that's it! If there is any reason why you can't get this to work, then you can follow the
'old fashioned' way of doing it over on this short guide.
Step 2: Partitioning your Macintosh hard drive
This step chops your disk up the way you want it - some space for macOS, some space for
Linux. This is called 'Partitioning'. Make sure that you delete as much junk from your mac
before you start, that way you can give as much space as you can to Linux.
To modify your partition table in macOS simply look in your Utilities folder, you'll nd
Apple's Disk Utility. If you like, quickly scan your hard drive for errors, just to make sure
it's all sweet before we get down to business. Repair any errors you may nd.
Once you are ready, you will see a list of internal drives on the left hand side. Your Disk
Utility may look different if you are using an older version of macOS, but it still offers the
ability to resize a volume.
If you are using a recent version of MacOS, you'll nd that macOS now uses a notion of
disk containers. To see everything that's going on, you'll need to click the icon to the top
left, it should show you 'Show Only Volumes' or 'Show All devices'. Select Show All
Devices. The screenshot below shows this action.
Select 'Show All Devices' from the top left menu in Disk Utility.
On the hard drive that your macOS partition exists on, click on the top drive, not any
subsequent partitions listed below it. Click on the 'partition' button (it looks like a pie
chart in modern versions of the utility).
In newer versions of macOS, they prefer you to use these 'container volumes'. That's ne
for macOS, but you want a partition to put Linux on. If you see the above dialogue box
appear, make sure you click 'Partition'.
Next, you'll see the partition pie chart. You will see you can move the slider around the
pie to resize your partition(s). Pull the size slider back for the Mac OS partition to release
the free space on the disk. Make a blank partition until you have enough space for your
new Linux system. Make it as much space as you are willing to, I gave my Linux partition
100 GB.
It's essential that you choose to format the partition as MS-DOS (FAT) format. I gave it
the name 'Linux' so that it's easy to tell what it is. Once you've done that, click Apply.
Click the Partition button.
You'll see the box to the left. Apply the changes by clicking the Partition button and let
the resize operation complete. If you have an SSD, this should be relatively quick (a few
minutes). For older hard drives, this is going to take some time!
Hold down the alt/option key whilst starting up your mac and you'll see this screen.
Shortly after, you'll see the Ubuntu installer start up. Follow through the steps as usual.
You'll get to a screen that says 'Updates and other software'. Make sure you tick the box
that says Install third-party software for graphics and Wi-Fi.
Make sure to select a normal installation, and tick the box 'Install third-party software'.
The next step, and arguably the most important step in the entire process is about
installing Linux on the partitions you previously con gured in the Disk Utility. You'll see a
dialogue saying 'Installation type'. Make sure that you choose the option 'Something else'.
If you select the other options, these will delete your installation of macOS and make you
have a bad day (TM).
You can see the two fat32 partitions created with the Apple Disk Utility. In my case sda3 (8.7GB) and
sda4 (99.8 GB).
You'll probably see three FAT32 partitions. One of them will be near the start of the disk
and won't resemble the capacity of the partitions you created. This is the EFI boot
partition. It's tiny (209.7 MB). Make sure you leave this partition well and truly alone,
otherwise you'll possibly not be able to boot your mac!
If you didn't create a swap partition, don't worry, you can still do so by locating the empty
partition you made and create 2 partitions out of it. Simply make a big partition and a
small partition (roughly 8-16 GB in size). The big partition should be the remainder of the
free space. The big partition should be ext4 in type, and should be formatted with the
mount point of "/". The small partition should be formatted as swap.
It's time to set up the partitions to use Linux. To do that, I selected my rst (smaller)
partition, the one that's 8.7GB. I'm going to use that as the Swap partition. Select that
partition by clicking on the entry for it in the list of partitions. In my case, that's
/dev/sda3. It must be of type fat32.
Once you click on it, click the button that says 'Change'. A dialogue saying 'Edit partition'
will appear. Leave the size as it is, but click on the drop down which will probably say 'do
not use'. Select 'swap area' from this list. Press OK.
Next, you want to allocate the large partition to be the main Linux partition (it's called /).
Click on the large partition created in Disk Utility (in my case, /dev/sda4). It also has a
type of fat32.
Clicking the 'Change' button will bring up the now familiar Edit Partition dialogue box.
Again, leave the size as is, and from the 'Use as' drop-down, select ext4.
Click on 'Format this partition' if it isn't already ticked. By default, the mount point will be
/ - leave that as is. Click OK.
If you've done everything right, you'll now have two partitions. One which is small, of
type swap and the other, the larger of the two, will be formatted as Linux ext4. These
partitions will lie in amongst the other 'unknown' partitions (these are your macOS
partitions).
This is what my setup looked like before pressing the Install Now button.
Once you are happy, click the Install Now button. You'll see a dialogue box asking you to
con rm the changes are to be written to disk. This is your last chance before Ubuntu goes
off and does it's thing to your disk. Again, I can't stress how important it is that you've
taken that Time Machine backup with your mac before you do this. Anyway, I'm sure
you've backed everything up... right? :) So click on 'Continue' and let the good times roll!
Everything else should be pretty standard as per the normal Ubuntu installation.
Once the install has nished, the installer will tell you to remove the installation medium.
Remove the USB stick and it enter to restart the computer. Once you hear the tell-tale
Apple chime, hold down the alt/option key. Once again, you'll see your MacOS hard drive,
as well as the newly installed Linux system. It'll probably be called 'EFI Boot'. Make sure
you select that.
That's it! With any luck, Ubuntu should start up in a few moments and you're able to use
your snazzy mac hardware with a better operating system! However, you may note that
you probably won't have a few things that work out of the box. Most of these will be be
covered off on the next step.
You’ll see a list of probably 70 or so lines relating to the rmware that works with ACPI
(Advanced Con guration and Power Interface). Most of these are doing their thing quite
happily, but you’ll nd one (or maybe even two) of them that has a number like gpe16 has
a large number beside it. It’ll look like this:
/sys/firmware/acpi/interrupts/gpe16: 225420 STS enabled unmasked
When you think you’ve found it, you can simply disable it, but rst, just back up the le,
just in case you make the wrong change. Note I am using gpe16 as that’s the one I found
the problem with, yours is probably different:
cp /sys/firmware/acpi/interrupts/gpe16 /root/gpe16.backup
echo "disable" > /sys/firmware/acpi/interrupts/gpe16
If after a few seconds (say 30-60), the CPU fans stop whirring, and system monitor/top
starts showing normal usage statistics, then you know it's the right one. If it isn’t the right
one simply echo “enable”, rather than disable.
To make the change permanent, do the following tasks, again at the terminal, changing
the value ’16’ to the value you used:
# crontab -e
# touch /etc/pm/sleep.d/30_disable_gpe16
# chmod +x /etc/pm/sleep.d/30_disable_gpe16
# vim /etc/pm/sleep.d/30_disable_gpe16
#!/bin/bash
case "$1" in
thawresume)
echo disable > /sys/firmware/acpi/interrupts/gpe16 2>/dev/null
;;
*)
;;
esac
exit $?
The long string of stuff is that big long alphanumeric string of text highlighted in the red
box, you want to use copy and paste it to make sure you don't make a mistake!
The conversion took ages for me, however your mileage may vary, depending upon how
much data is on your drive, and how fast your drive is. If you type diskutil cs list again,
you'll see how much % of the conversion has been accomplished. Don't reboot your
machine until that's over and done with, but after then, you can safely mount your OS X
partition with full read/write access.
First, make sure that you have hfsprogs installed. Example installation command:
sudo apt-get install hfsprogs
or
sudo mount -t hfsplus -o remount,force,rw /dev/sdXY /mount/point
If you want it to mount each time you start up your tux-i ed Macintosh, you'll need to
add the entry to the fstab (sudo vi /etc/fstab):
/dev/sdXY /media/mntpoint hfsplus force,rw,gid=1000,umask=0002 0
0
Where your user gid is 1000 (use the id command to nd out your gid)
FaceTime HD Camera:
You’ll need the FaceTime HD module for your kernel. It’s a bit of a pain in the butt to get
going, but it does go once you’ve set it up. Full documentation is
here: https://github.com/patjak/bcwc_pcie/wiki/Get-Started#get-started-on-ubuntu
Here are the steps I followed to get everything working on Ubuntu. You need to be
running a fairly recent version of Ubuntu (16.04 onwards should be ne), so 18.10 will be
no worries. You’ll need to run all the following commands from the Terminal.
$ indicates running the command as a normal user
$ indicates running the command as a normal user
# indicates as root (use the sudo command), eg: $sudo apt-get install …
Install the dependencies : # apt-get install linux-headers-`uname -r` git kmod
libssl-dev checkinstall curl xzcat cpio
(Note that xzcat is called xz-utils on Ubuntu 18.10).
Extract and install the rmware le:
$ git clone https://github.com/patjak/bcwc_pcie.git
$ cd bcwc_pcie/firmware
make
sudo make install
And save.
Make it executable: sudo chmod a+x /lib/systemd/system-
sleep/99facetimehd or sudo chmod a+x /usr/lib/systemd/system-
sleep/99facetimehd
Making sure when you update your system your facetimehd driver updates
too
When you perform a system update in Ubuntu, it often updates the Kernel too. When
you update the kernel, the modules need to be upgraded to work with that Kernel
version. As you’ve build a custom module, you’ll need to ensure that the module is up to
date too. Here’s how to do that:
You will need to verify dkms.conf that the module name facetimehd and version
number 0.1 are correct and either update the dkms.conf or adjust the instructions
where -m and -v are used.
Install needed packages: # apt install debhelper dkms
Remove old package if installed: # dpkg -r bcwc-pcie
Make a directory to work from: # mkdir /usr/src/facetimehd-0.1
Change into the git repo dir: $ cd bcwc_pcie
Copy les over: # cp -r * /usr/src/facetimehd-0.1/
Change into that dir: # cd /usr/src/facetimehd-0.1/
Remove any previous debs and backups: # rm backup-*tgz bcwc-pcie_*deb
Clear out previous compile: # make clean
Register the new module with DKMS: # dkms add -m facetimehd -v 0.1
Build the module: # dkms build -m facetimehd -v 0.1
Build a Debian source package: # dkms mkdsc -m facetimehd -v 0.1 --source-only
Build a Debian binary package: # dkms mkdeb -m facetimehd -v 0.1 --source-only
Copy deb locally: # cp /var/lib/dkms/facetimehd/0.1/deb/facetimehd-
dkms_0.1_all.deb /root/
Get rid of the local build les: # rm -r /var/lib/dkms/facetimehd/
Install the new deb package: # dpkg -i /root/facetimehd-dkms_0.1_all.deb
If you have any trouble, please read this guide on making a DKMS
package:http://www.xkyle.com/building-linux-packages-for-kernel-drivers/
Problems booting Linux? Fix it by installing the EFI boot manager and
disabling SIP protection.
Hopefully the following section won't bug most of you any more. With recent versions of
most Linux distros supporting EFI, this shouldn't be an issue. However, if you are having
issues getting your distro to boot, then read on.
EFI stands for Extensible Firmware Interface and is now pretty much commonplace in
Macs and PCs across the industry. It replaced the trusty old BIOS system that PCs had
used since the 1980s. Installing Linux on a BIOS based machine was trivial, but now with
Apple's take on EFI on their customised hardware, it can be a little challenging. No
worries, this is the Ultimate Linux Newbie Guide. We got this!
Download rEFInd
Now, if you take a look around the rEFInd website, you'll see it looks like the guy that
wrote it believes in punishing everyone that wants to use it. It took us about 20 minutes
just to nd the frigging download link! So the ULNG has taken the time to go through all
the pertinent steps to make it shit tons easier for you!
The version of rEFInd that we used is 0.10.0, and we used the zip archive version. Once
you download the binary, you are going to need to start the rest of your work from the
Terminal, so open up the Terminal from the Utilities folder on your Macintosh and head
over to your Downloads folder where you saved rEFInd to.
If the zip archive is not already unzipped, unzip it using the unzip command and head into
the newly created re nd-bin-0.11.0 folder:
$unzip refind-bin-0.11.0.zip
$cd refind-bin-0.11.0
For the next step, take a note of the full directory where you downloaded the re nd tool
into. For example /Users/bob/Downloads/re nd-bin-0.11.0 (you can also type pwd at the
command prompt to tell you which present working directory you are in).
Installing rEFInd by working around SIP
Before we can properly install rEFInd, we will need to take care of a pesky thing that
Apple put into their hardware called SIP (System Integrity Protection). There are a
couple of ways to do this, but I found the easiest way to do so is to pop your system into
recovery mode and issue a command from the terminal there. There is a bit more
information on this process over here.
To enter recovery mode on your Macintosh, shut your machine down completely. Give
the machine around 30 seconds and then switch back on. Now quickly hold down the
Command and R key at the same time until at least you hear the Apple 'chime' sound.
Shortly you will enter recovery mode. I recommend plugging in an Ethernet cable to do
this, however it is possible to do with WiFi.
Once you are in the Recovery tool, enter the Utilities menu up on the top bar, and click on
Terminal.
Issue the following command:
csrutil disable
NOTE: Using macOS from Sierra onwards, the csrutil tool may have been removed. If
csrutil is unavailable for whatever reason, don't despair, simply go into the directory that
you downloaded re nd into and run re nd-install. Earlier, you noted down this folder, so
just cd to it, for example:
$cd /Users/bob/Downloads/refind-bin-0.11.0/
(if you are prompted for a password, note that this is your own mac password).
NB: if you have issues and nd that rEFInd doesn't operate properly, you can also try the -
-alldrivers ag (but use this with extreme caution!) $sudo ./refind-install --
alldrivers
Once REFind is all installed, reboot the mac and you should be good to go. All going well,
you should be seeing the rEFInd menu. Use the cursor key to select your Linux
installation and hit that return key. Fingers crossed, your system will start up without
much of a hitch!
If you don't see the rEFInd menu on startup, try starting up your mac whilst holding down
the Command key (or if that doesn't work, the alt/option key).
---YOU PROBABLY NO LONGER NEED THE BELOW INFORMATION!---
The next bit of text was necessary for versions of rEFInd before 0.10.0. This guide has
been updated for version 0.11.0, and so you shouldn't need to do any of this. Isn't that
great?! However, if things don't work the way you expect, then you can do this whilst still
in the recovery tool, and in the re nd folder.
Now it's time to edit the EFI con g le, but you will need to mount that hidden EFI
partition rst. Thankfully, rEFInd has a little tool you can use to mount the partition:
$sudo mountesp
Edit /Volumes/ESP/EFI/re nd/re nd.conf. Like me, you may nd the re nd.conf le is in
/Volumes/ESP/EFI/BOOT, instead of a folder called re nd.
$sudo nano /Volumes/ESP/EFI/refind/refind.conf (or use vi like
me, if you are that way inclined. Just not emacs!).
fs0: map -r
Save the le and quit your editor. That's pretty much it for the rEFInd bit. That is the
hardest part over and done with. If you want to be sure it worked, you should power off
your machine and power on again. If you see a grey screen with the rEFInd logo, then it
has worked. You should be able to chose the Mac OS X logo and hit return to start up OS
X again.
Note if you are not using xorg, you'll need to make the appropriate changes here. Maybe
best to stick with xorg for now!
On newer macs, they use AMD graphics rather than NVidia. They also have their own set
of unique problems in some cases. As I don't have a mac with AMD graphics, you'll need
to do a little more googling on that.
Your Macbook Pro Retina display is also known outside the Apple world as an HiDPI
display (high resolution graphics). Using the nvidia driver ensures that the maximum
resolution of your display is achieved, however if you are used to seeing things extra
small (therefore more screen real-estate, you can enable HiDPI scaling for GNOME via
the following Terminal command and log out and log back into GNOME:
gsettings set org.gnome.desktop.interface scaling-factor 1
Setting it to a value of 2 returns the display to how it was before. You can also edit this
setting within the dconf editor (GUI application)
If you are using another window manager such as KDE or are having issues with other
apps not playing nicely, have a look at the ArchWiki for hints on HiDPI.
Okay, that about wraps it up for this ditty, I hope it has worked for you. If it hasn't, or you
have some feedback to offer, we would love to hear it!
How I got my job in Linux: from Newbie to
Pro
In this commentary article I go into the journey I took from 2001 when I started out using
Linux properly and the present day. If you think that you too would like to get into Linux
as a career or become less of a novice and more of a power user, then read on, this article
is for you. Even if you want to enter into other inter-related careers that depend heavily
on Linux, for example DevOps, Cloud and Security, my twenty years experience in Linux
might have some pearls of wisdom that you may nd helpful.
I was peeved, because I'd spent my own money on building a computer and buying
Microsoft Windows to put on it. Money that I really needed to pay the rent and put food
in my belly. I also felt sorry for all the people that I'd end up re-installing Windows on
their PC to x their problem. I knew that most of them would probably be back in the
store six or so months later with the same complaint.
Almost by accident, I found Linux. I was in the magazine section of the PC shop I worked
in one day in late 1999. I saw a magazine called 'Linux Answers'. On the cover was a copy
of Red Hat Linux 6.0. Before long, I had done the unthinkable: I had deleted Windows in a
rage of fury because it had completely crashed and wouldn't start up. All of my MP3s,
photos and documents, all but gone save for a few backups on CDs I had lying around.
Back in those days I had no idea that I would have been able to salvage those les with
Linux; I just blithely reformatted my hard disk and went cold-turkey, believing everything
that the magazine said, I forced myself into the abyss of the unknown! These were
exciting times!
I remember the blue text-mode installer, the glare of the many lines of text ying by when
the machine started up for the rst time. It looked really un-user friendly. Eventually, the
screen ipped into what I'd later know to be called 'runlevel 5' and I could see a graphical
login screen. Little did I know it, but that ashing cursor was the beginning to a whole
new world of computing for me.
The login screen in Red Hat 6.0. Look at those 'lovely' non-scaled fonts :)
The Red Hat Linux 6.0 desktop certainly lacked the nesse of modern-day Linux. And yes, that is
Netscape Navigator! In later versions of Red Hat, it eventually turned into Mozilla.
For the most part, the journey I undertook was without issue. I remember having some
hardware issues with my 3D graphics card, which I managed to x after a good deal of
twiddling. I already knew my way about computers and I still messed up a good number
of times, but it was fun. I could tinker with literally anything; like a car enthusiast under
the hood of their car, you could tweak anything to make it work just the way you wanted
it to. The performance and reliability far outperformed that of its Microsoft counterpart.
I was hooked.
Me, circa 2001, a carefree and Linux daft 19 year old! That's probably Red Hat 6.0 running in the
background. These were the early days of me writing the Ultimate Linux Newbie Guide
Not everyone's cup of tea...
As I say, I was a computer kid. I had started my 'real' computer days in 1990, with MS-
DOS 3.2. I grew up with un-user friendly commands that you'd type in. No mouse, no
graphical 'Windows' like thing to use. But I wanted to play my games, so I had to learn to
use MS-DOS! Despite computers being substantially harder to use in 1999 than they are
today, whilst I was ready for Linux in 1999, most of the average computer users were not.
Being fully responsible for the rst time, whilst using the platform I loved gave me immense
satisfaction.
Before long, I had found a job in a town a few miles away from my home city of Edinburgh,
just by talking to the people at the 'LUG'. They were really helpful at building connections
and helping me nd work. I went to work for an Internet Service Provider in the early
2000s was crazy fun but also pretty wild sometimes. We'd make servers out of any old
hardware we could. I cut my teeth compiling Slackware Linux kernels and make Apache
1.0 web servers. We hosted thousands of websites and before I knew it, I'd outgrown my
role in terms of skills and interest. I was well on my way to being a knowledgeable Linux
admin.
The next job came along quickly. They wanted me as a consultant. I'd zoom around in my
car from client to client, xing up their computers and putting Linux on them whenever I
could. I learned I could make backup servers, routers, rewalls, web servers, you name it;
I was ripping out proprietary software at clients left right and centre, giving them
software freedom with Linux. We charged the same rate for proprietary solutions as we
did for open source Linux based ones. The trick was, because we didn't have any software
costs to cover, and only a little more time to learn the solutions, the pro t margin was far
higher than when we had to deal with software licensing costs. The customers were
happier too, because they had more reliable solutions. Win win.
I realised I wanted more money than these initial roles were paying, and I knew that the
bigger companies were paying 'the big bucks' for Linux people by 2002. I realised that no
matter how good I became at Linux, if I didn't get myself a university degree, I'd probably
not get a highly paid job. I quit work and went back to school. These days, I'd reckon that
a University degree isn't necessary, if you can demonstrate capability. I'm a hiring
manager these days and all I want to see is if you can walk the walk. Personally, I make a
test server with a random scenario. The interviewee will SSH into the server and try to
complete the scenario. If they can do that and they have the right personality, they are as
good as hired!
I underwent other training over the years, Cisco Networking, Red Hat Cloud
technologies, LPI and so forth, however I feel that nothing beats experience and interest.
If you've got your own lab at home and you play with it regularly, this is the best way to
learn. Break things and break them again until you make it work! For me, these were the
days when I learned the most. I learned about the inner-workings of the Internet and
networking: DNS, DHCP, TCP/IP, Firewalling and Routing etc. I did this by setting up open
source, Linux based services such as the BIND DNS server, DHCPd and using various
other tools like ipchains (now iptables).
I got familiar with the nuances of the kernel and how the more lesser known aspects of a
Linux system worked. I started up a 'shells' system for people to log into and play with
Linux online. They would SSH into my server and they had their own account to play with.
I'd leave emails for my users and we all had a great time. This was well before bitcoin
mining etc took over. If I hosted shells these days, the server would be hacked in a
second!
Having worked in a web hosting/ISP company some time back, I decided to set up a small
web hosting business of myself on the side. Linux was now turning a small buck for me.
Finally, I'd also found Debian Linux around this time. Back then on Red Hat systems (pre
YUM), you had to download packages manually and they would often have tens or more
'dependencies'. It was a huge pain in he ass installing software. I went to Debian and I
found APT. It solved all my pains by automatically resolving dependencies. I never looked
back.
Ubuntu
OrangeHRM saved the company lots of money and satis ed all their requirements.
After I left Amazon, I went to work for a mobile software rm and became a CIO for that
company. Some of us already used Linux. For those that didn't, in admin jobs or HR
positions, I gradually showed them that they could get what they want without the price
tag and without the nastiness of proprietary solutions. I vividly remember sitting down
with the HR manager one day and asking him for his requirements for the new HR
platform they wanted. They were all about ready to spend hundreds of thousands of
pounds on an expensive system. I quickly looked into open source offerings and found
that OrangeHRM, a completely free open source HR system t their needs exactly. They
asked "but what do we do if we need technical support?". There was a one thousand
pound annual support contract if they wanted. The software worked, they got updates
every year at no cost other than the internal IT team's time, and they saved hundreds of
thousands of pounds.
Later, I spent time with the COO about their need to move off the simple email system
they had and go to a groupware solution that gave them proper calendaring functionality.
They wanted to go to Microsoft Exchange. I countered that with Zimbra. Money talked,
the solution worked, and in the end the company conceded that there was no bene t in
using Exchange over Zimbra. Strike two for Open Source!
Zimbra is a fully-featured open source based Exchange Server replacement. Although it's better
than Exchange!
Ubuntu on the Desktop at work
Finally, I went around the developer teams and asked them if they wanted to evaluate
using Ubuntu on their desktops. To my delight, many of them decided that it was better
than their Windows tools and made the swap.
Although Ubuntu has had it's up and downs (remember 2010's Unity desktop?), it is still
more or less the distribution of choice for so many people; novices and nerds alike.
Fortunately my investment in choosing Ubuntu for the ULNG had paid off. I made video
howtos and wrote lots of original tutorials over the years and today, The Ultimate Linux
Newbie Guide still remains one of the most popular guides on the net for introducing
people to Linux. If you know someone who want a new lease of life from an ageing or
slow computer, or if you just want to get the most out a computer then please share this
site with everyone you can in the hope that they can get into a new world of computer
freedom!
In 2008-09, the nancial crisis hit the UK and by 2010 things weren't looking so great in
the UK. So I decided to sell the house, car and all my possessions and do something a bit
crazy. Without ever having been there, or without even having a job to go to, I emigrated
to New Zealand. Since then I've worked in a few roles. One as an Infrastructure Manager
in a University, one as a National Services Manager in an IT company and most
importantly, working for two companies who embraced open source and sell their
solutions closely around the open source ecosystem. All of my roles since 2001 have
involved Linux in some way or another, even in a management capacity, I would be
building solutions for customers or staff to help them get the most from their IT needs.
I have linked some of the above points to articles on the Ultimate Linux Newbie Guide to
get you the basics on what each of those things are.
Don't forget that whilst having lots of relevant tech skills is really important, so too is
your ability to write a decent cover letter and CV. Relax into an interview and let your
personality shine through more than your skills. They can test your skills if they want to.
As I mentioned earlier, going to my local Linux Users group really helped. It gave me the
con dence to meet people and ask for help when I was young and inexperienced. It gave
me links to people who were looking to hire. Remember that networking takes time
though. You are building relationships and trust, you can't build that in a day. Make
friends, listen to others and ask for help when the time is right.
Ultimately it doesn't matter what you end up doing for a rst job. If your role involves
using open source software, you are going to nd yourself far more useful (and happier in
your role), if you get invested in Linux. And when I say invested, I mean be passionate. If
you just want to do this for the dollars, then I suggest that you should become a
salesperson instead. My lifelong desire to evangelise Linux and open source, my drive to
learn new things, tinker and pass on my knowledge to others has driven me to where I
am. Working with Linux is exciting. Everyone that works in my team today always hates it
when I give them some work to do that involves working on Windows. Many of them
came from a background of working with Windows to begin with, they just found that
working in an environment that promotes an ecosystem of openness and 'paying it
forward' really works.
A big part of the culture in my team is centred around the meritocracy of open source.
Everyone helps everyone else out and of course everyone has fun whilst we do it.
So there you have it. That's why I got into Linux, and that's why I still am in it. It continues
to challenge me, it continues to pay for a comfortable lifestyle and most importantly, it
still allows me to enjoy a positive working life.
I wish you all the very best on you road to success!