IN THIS APPENDIX
Getting Linux distributions
Creating a bootable CD or DVD
Unless you bought a computer with Linux preinstalled or had someone install it for you, you need to find a way to get a Linux distribution and then either install or run it live on your computer. Fortunately, Linux distributions are widely available and come in a variety of forms.
In this appendix, you learn how to:
To use this book effectively, you should have a Linux distribution in front of you to work on. It's important to be able to experience Linux as you read. So try the examples and do the exercises.
Linux distributions are most commonly available from the websites of the organizations that produce them. The following sections describe websites associated with Linux distributions that offer ISO images you can download.
NOTE
An ISO is a disk image that is formatted in the ISO 9660 file system format, a format that is commonly used with CD and DVD images. Because this is a well-known format, it is readable by Windows, Mac, and Linux systems.
An ISO image can be burned to a CD or DVD medium, depending on the size of the image. An ISO image in your file system can be mounted on a Linux system in loopback mode, so you can view or copy its contents.
When an ISO image contains a Linux Live CD or installation image, the images are bootable. This means that instead of starting up an operating system, such as Windows or Linux, from the computer's hard disk, you can tell your computer to boot from the CD or DVD instead. This enables you to run a totally different operating system than is installed on your hard disk without changing or damaging the data on that disk.
You can download Fedora from the https://getfedora.org site. That page contains links to download images for installing Fedora Workstation, Server, and Cloud flavors.
NOTE
I recommend downloading the Fedora Workstation Live Image to work along with this book because most of the book works with that distribution. You can run it live without committing to overwriting your computer's hard disk until you feel comfortable enough to install it permanently.
To test the examples in this book, I used Fedora 21, 32-bit or the 64-bit Fedora Workstation Image. If you have a 64-bit ISO, you must use a 64-bit machine. If you have a 32-bit ISO, it works on 32-bit or 64-bit machines.
Later versions of Fedora that come with a GNOME desktop should work as well. Here's a link to the exact ISO used for the Fedora 21 Workstation: http://download.fedoraproject.org/pub/fedora/linux/releases/21/Workstation/x86_64/iso/Fedora-Live-Workstation-x86_64-2l-5.iso. Keep in mind that the latest Fedora Workstation ISO image does not fit on a CD, so you must burn it to DVD. See the descriptions of CD/DVD burning tools available for Windows, Mac OS X, and Linux later in this appendix.
Figure A.1 shows an example of the Get Fedora page.
Today, the default download is an ISO image of a 64-bit PC-type Fedora Workstation (GNOME) Live DVD. You can boot this image on your computer, and if you choose, you can permanently install it to your computer's hard disk. To download this image, do the following:
If you need more information about what to do with the downloaded image, there are links to help you on the Fedora page that appears. At the time of this writing, there are links to “burn the image to a blank DVD disc,” “write the image to a USB flash drive,” “find common tips” for booting the media, and read the “complete Installation Guide.”
FIGURE A.1
Download Fedora ISO images from the Get Fedora page.
You have other choices for downloading ISOs from Fedora. From the bottom of the Get Fedora page, you can download specially configured Fedora ISO images called spins (https://spins.fedoraproject.org). Here are some special types of Fedora spins that might interest you:
These special spins can be fun, but to work along with most of the book I recommend the standard Workstation ISO image. After you have downloaded the ISO image, proceed to the description later in this chapter of how to burn that image to CD or DVD.
Many large corporations, government agencies, and universities use Red Hat Enterprise Linux to run their mission-critical applications. While most of the procedures in this book will run well on Fedora, there are many references to how things are done differently in Red Hat Enterprise Linux because, when you go to get a job as a Linux system administrator, you will, in most cases, be working with Red Hat Enterprise Linux systems.
Although the source code for Red Hat Enterprise Linux is freely available, the ISOs containing the packages you install (often referred to as the binaries) are available only to those who have accounts on the Red Hat customer portal (https://access.redhat.com) or through evaluation copies.
If you don't have an account, you can try signing up for a 30-day trial. If either you or your company has an account with Red Hat, you can download the ISOs you need. Go to the following site and follow the instructions to download a Red Hat Enterprise Linux server ISO or sign up to get an evaluation copy:
https://access.redhat.com/downloads
Red Hat does not offer live versions of Red Hat Enterprise Linux. Instead, you can download installation DVDs that you can install as described in Chapter 9 of this book.
NOTE
If you are unable to obtain a Red Hat Enterprise Linux installation DVD, you can get a similar experience using the CentOS installation DVD. CentOS is not exactly the same as RHEL. However, if you download the CentOS installation DVD for CentOS 7 from links on the CentOS site (http://www.centos.org/download/), the installation procedure is similar to the one described for Red Hat Enterprise Linux in Chapter 9.
Many people new to Linux begin by downloading and installing Ubuntu. Ubuntu has a huge fan base and many active contributors. If you have problems with Ubuntu, there are large, active forums where many people are willing to help you overcome problems.
If you already have an Ubuntu system installed, you can follow along with most of this book. You can get Ubuntu with a GNOME desktop, and its default dash shell is similar to bash (or you can switch to bash in Ubuntu to match the shell examples in this book). Although most of the examples of this book focus on Fedora and RHEL, I have added many more references to Ubuntu through out the book in this edition.
To get Ubuntu, you can download a Live ISO image or installation medium from the Download Ubuntu page: http://www.ubuntu.com/download/ubuntu/downloaddesktop.
Figure A.2 shows an example of the Download Ubuntu Desktop page.
FIGURE A.2
Download Ubuntu Live CD ISO images, or choose an alternative download.
As with Fedora, the easiest way to download Ubuntu is to select the 64-bit Ubuntu Live CD, download it, and burn it. Here's how to do that from the Download Ubuntu page:
After the download is complete, burn the ISO image to a DVD using procedures described in the “Creating Linux CDs and DVDs” section.
Other types of Ubuntu installation media are also available. To find other Ubuntu media, go to the Alternative Downloads page (http://www.ubuntu.com/download/alternative-downloads). From this site, you can get media that contains a variety of desktop and server installs.
After you have downloaded a Linux CD or DVD image, you can use several tools to create bootable CDs or DVDs for either installing or just running Linux live from those media. Before you begin, you must have the following:
The following sections describe how to burn bootable CDs and DVDs from Windows, Mac OS X, and Linux systems.
If you have downloaded your Linux ISO image to a Windows system, you can burn that image to CD or DVD in different ways. Here are some examples:
Like Windows, Mac OS X has CD/DVD burning software built into the operating system. To burn an ISO image to disk on a Mac OS X system, follow these steps:
Linux has both graphical and command-line tools for burning CD and DVD images to physical media. Examples in this section show how to use K3b from the desktop or cdrecord (or wodim) to burn ISO images to CD or DVD. If they are not installed, you can install either one as follows:
# yum install k3b # yum install wodim
Here's how to create bootable Linux CDs from a running Linux system (such as Fedora) using K3b. K3b comes with the KDE desktop but runs on the GNOME desktop as well.
Burn Image to burn a CD or DVD ISO Image. You are asked to choose an image file.FIGURE A.3
Use K3b to burn your Linux CDs or DVDs.
Now you're ready to begin installing (or booting) the Linux distribution you just burned.
If you have no GUI, or you don't mind working from the shell, you can use the cdrecord command to burn the ISOs. With a blank CD inserted and the ISO image you want to burn in the current directory, you can use the following simple command line for burning a CD image to CD using cdrecord:
# cdrecord -v whatever.iso
See the cdrecord man page (man cdrecord) for other options available with the cdrecord command.
Instead of burning ISO images to a CD or DVD, you can put your Linux system on a USB drive. USB drives offer the advantage of being writable as well as readable, so you can save your content between sessions. Most modern computers can boot from a USB drive, although you may have to interrupt the boot process to tell the BIOS to boot from USB instead of hard drive or CD/DVD drive.
You can find procedures for putting Fedora and Ubuntu on a USB drive in the following locations:
Visit the Linux Bible website
To find links to various Linux distributions and other useful content related to Linux, go to the Linux Bible, Ninth Edition website: http://www.wiley.com/go/linuxbible9.