Home > Articles > Certification > Other IT

Installing Red Hat Linux 8

Bill Ball shows how to prepare and research your install, choose a strategy on how Red Hat will use your computer's hard drive, decide how to boot Red Hat, and then how to complete the Red Hat installation. You'll get a step-by-step walk through of a sample installation, and then you learn how to log in to Red Hat and shut down or reboot the system.
This chapter is from the book

This chapter is from the book

In This Chapter

  • Choosing How to Install Red Hat Linux

  • Step-by-Step Installation

  • Login and Shutdown

  • Reference

In this chapter, you learn how to do a basic installation of Red Hat Linux. You'll see how to boot and then install Red Hat installer using the CD-ROMs included with this book. The chapter first shows how to prepare and research your install, choose a strategy on how Red Hat will use your computer's hard drive, decide how to boot Red Hat, and then how to complete the Red Hat installation. You'll get a step-by-step walk through of a sample installation, and then you learn how to log in to Red Hat and shut down or reboot the system.

Preparing for the Installation

Part of the process of installing Red Hat (or any operating system for that matter) is to first research how well the new operating system will fit into an existing hardware environment, or if new hardware will be required to host the operating system. The following sections provide some basic points to consider when installing Red Hat.

You start by researching and documenting your hardware. This information can prove helpful later on during the installation.

Research Your Hardware Specifications

You should first have a basic understanding of your system's hardware, such as the type of mouse, keyboard, or monitor, the amount of installed system memory, and the size of the hard drive. You need to know the storage capacity of your hard drive in order to choose a partitioning scheme, for example. Knowing the difference between a PS/2 and USB mouse will ensure proper pointer configuration. Such information will help make the installation fast, efficient, and as trouble-free as possible.

Use the checklist shown in Table 2.2 in Chapter 2, "Preparing to Install Red Hat Linux," to inventory or at least record some basic features of your system. Some items you'll need to know include the amount of installed memory, size of your hard drive, type of mouse, capabilities of the display monitor (such as maximum resolution), and number of installed network interfaces (if any).

Choose an Installation Type

You should also know what type of installation you plan to do beforehand (such as a workstation, server, firewall, gateway, router, development system, and so on). The type of install, or rather, the purpose of your intended install will dictate the type and amount of software installed (and also influence hard drive storage requirements).

For convenience, the Red Hat Linux installer offers a personal desktop, workstation, and server installation. Each type will install a set of preselected software libraries and packages. If you are installing Red Hat on a notebook PC, you can use the laptop install offered as well. Use a custom installation to select individual software packages. See Chapter 2 for details and hardware requirements for these installs.

Although you can support nearly any operation (such as a development workstation or server) by installing all the software included with this book's CD-ROMs, this approach is generally not a good idea unless you're testing new hardware or using Red Hat at home. The reason for this is that installing extraneous software not relevant to support specific operations in a business or production environment can introduce a security risk. For example, it would be unwise to have compilers and software development tools installed on an e-commerce Web server because successful intruders can simply upload and build malicious software with relative ease.

Choose Software Installation Options

Most new users with standalone Red Hat Linux computers will install all the software included with Red Hat Linux and depend on Red Hat's RPM technology to sort out and handle software dependencies (see Chapter 8, "Managing Software and System Resources" for more details about using RPM). Although Red Hat is very stable and robust (read, doesn't crash), crafting an efficient, stable, and working system can sometimes require consideration about the type of software to use given your existing hardware. For example, don't expect to run a fully loaded multimedia workstation if you plan to use Red Hat on an early Pentium-based PC. However, that same PC can easily support email, print, or FTP server operations, and even perform light duty as an intranet documentation Web server.

Planning Partition Strategies

Part of planning a custom system involves implementing a partitioning strategy based on how you plan to use Red Hat and, as previously mentioned, the capabilities of your existing hardware. For example, if you plan to host thousands of graphic images or audio files, how much storage will you need? If you plan to back up this collection, will you use a tape drive, or will you simply copy the files to another hard drive?

If you are planning an installation for a corporate or enterprise-level environment, you must also consider future expansion or evolution of the system. You will want to craft a flexible system that can evolve with your business and its system needs.

Knowing how software is allocated on your hard drive for Linux involves knowing how Red Hat Linux organizes its file system, or layout of directories on storage media. This knowledge will help you make the most out of hard drive space; and in some instances, such as planning to have user directories mounted via NFS or other means, it can help head off data loss, increase security, and accommodate future needs. Create a great system, and you'll be the hero of information services.

To plan the best partitioning scheme, research and know the answers to these questions:

  • How much disk space does your system require?

  • Do you expect your disk space needs to grow significantly in the future?

  • Will the system boot just Red Hat Linux, or do you need a dual-boot system?

  • How much data will require backup, and what backup system will work best? (See Chapter 11, "Backing Up, Restoring, and Recovery," for more information on backing up your Red Hat Linux system.)

CD-ROM Installation Jumpstart

To install Red Hat Linux from the CDs included with this book, you must have at least a Pentium-class CPU, 650MB hard drive, and 64MB RAM. You'll need at least 128MB to install using Red Hat's graphical installer. A 10GB hard drive can host the entire Red Hat distribution, leaving a little more than 5GB free for other data.

To begin the installation, set your PC's BIOS to boot from CD-ROM. Next, insert the first CD-ROM and boot your computer. Press Enter at the first screen and follow through the subsequent dialogs to install.

Remember or write down your system's root password. Also, even if you thoroughly test configuration of a graphical desktop during installation, choose to have Red Hat boot to a text-based login (see the section "Step-by-Step Installation" later on). You can start a graphical session after you finish the install, reboot, and log in. You can always set Red Hat to boot to a graphical login later (see Chapter 6, "The X Window System," to see how).

If you have a floppy drive, create a boot disk during the install (see the "Step-by-Step Installation" section in this chapter). Finally, finish the install, remove the CD-ROM from your computer, and reboot. Then log in and enjoy Red Hat Linux!

Choosing a Boot Loader

You will need to decide how to boot your Red Hat Linux system. For example, you can boot Red Hat from a hard drive or floppy disk using the default boot loader, the Grand Unified Boot loader (known as GRUB), or the Linux Loader (known as LILO).

LILO is a small boot loader usually installed in the Master Boot Record (MBR) of an IDE hard drive, the root Linux partition, or on a floppy disk. This loader (like others) can be used to pass essential kernel arguments to the Linux kernel for use during the boot process. Some arguments might include special disk geometry settings or specifying additional network interfaces. You can use other boot loaders, such as GRUB, to support special operations, such as booting from read-only memory (ROM) or flashed memory chips containing boot-loading code. Some, but not all, PC hardware BIOS supports booting via a network through Universal Serial Bus (USB) removable media or from a floppy disk.

The GRUB loader works with all BSD UNIX variants and many proprietary operating systems. This utility also supports menuing, command lines, installed RAM detection, and diskless and remote network booting.

On the other hand, LILO has a much longer Linux history and might be more familiar to long-time Linux users. Both bootloaders offer password protection, but LILO's password protection must be configured following installation.

NOTE

Red Hat's mkbootdisk command can be used to create floppy and CD-ROM boot media while using Linux. To do so, use the Linux kernel release number (returned by using the uname -r command) and a specified device. For example, to create a boot floppy, use the command like this:

# mkbootdisk --device /dev/fd0 ´uname -r´

To create a CD-ROM boot image image (which must then be burned onto a CDR or CDRW blank), use the command with its -iso option like this:

# mkbootdisk --iso --device boot_cd.img ´uname -r´ 

Red Hat Linux can also be booted from a DOS session using the LOADLIN program, a DOS PATH to the Linux kernel, and the location of Linux kernel, such as

LOADLIN c:\KERNEL\VMLINUZ root=/dev/hda2 ro

In this example, the kernel named VMLINUZ is loaded, and the second primary partition of the first IDE hard drive is specified at the root (\) partition of the Red Hat Linux system.

If you find that LOADLIN fails to boot Linux and complains about a large kernel size, you can either try using make bzimage to build a smaller kernel or rebuild a kernel that relies less on built-in features and more on loadable modules. See Chapter 24, "Kernel and Module Management," for more information.

When choosing a commercial boot loader, weigh its capabilities and options. A good boot loader will support multiple operating systems, the ability to boot different Linux kernels (in order to change the characteristics of a system or easily accommodate new hardware), password protection, custom boot displays, and sane defaults.

If you run into trouble after installing Red Hat Linux, make sure to read the documentation for your boot loader to acquire any diagnostic information. Most boot loaders will report on any problems, and the solution might be commonly fixed. Your best bet is to use GRUB because it is the default boot loader for Red Hat.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020