- •About the Author
- •Credits
- •How This Book Is Organized
- •Part I: Linux Basics
- •Part II: Installation
- •Part III: Configuration
- •Part IV: Administration
- •Part V: Maintaining the Linux System
- •How Each Chapter Is Structured
- •How to Use This Book
- •Conventions Used in This Book
- •What is Linux?
- •The origin of UNIX
- •Who started Linux?
- •Understanding Open Source
- •Understanding Closed Source
- •Understanding Artistic License
- •Is Freeware really free?
- •Is Shareware never free?
- •A comparison and contrast of licensing methods
- •The Growth of Linux
- •Linux on a Personal Computer
- •Graphical installation
- •Hardware detection
- •Graphical user interface
- •Linux limitations on the PC
- •Linux succeeds on the PC
- •Linux on workstations
- •Linux on servers
- •Summary
- •Assessment Questions
- •Scenarios
- •Answers to Chapter Questions
- •Assessment Questions
- •Scenarios
- •Linux Kernel
- •Kernel versions
- •Kernel availability
- •Linux Distributions
- •Beehive
- •BlueCat
- •Caldera OpenLinux
- •Debian
- •Corel
- •DragonLinux
- •Elfstone
- •Gentoo
- •Hard Hat Linux
- •KRUD
- •LinuxPPC
- •Mandrake
- •Phat Linux
- •Slackware
- •StormLinux
- •SuSE
- •TurboLinux
- •Yellow Dog Linux
- •Mini and Specialty Distributions
- •Astaro
- •KYZO
- •FlightLinux
- •NetMAX
- •Packages and Packaging Solutions
- •Red Hat Package Manager
- •Debian Package Management System
- •Tarball
- •Linux Resources
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Assessment Questions
- •Scenarios
- •Linux In the Real World
- •Word Processing
- •Spreadsheets and databases
- •Web browsing
- •File transfer
- •More, more, and more applications
- •The Server and DNS
- •A Linux Web server
- •Linux e-mail server
- •File servers
- •Proxy, news, and search servers
- •FTP servers
- •Firewalls
- •Determining Linux Roles and Services
- •Comparing Linux with other operating systems
- •Hardware compatibility
- •Summary
- •Assessment Questions
- •Scenarios
- •Answers to Chapter Questions
- •Assessment Questions
- •Scenarios
- •Installing Linux
- •Final Preparations for Installation
- •Verification
- •Package selection
- •Final hardware verification
- •Pre-installation partitioning planning
- •Installing Linux
- •Text or GUI installation
- •Basic setup of Linux
- •Selecting the machine type
- •Partitioning the hard disk drive
- •Installing a boot manager
- •Creating the Boot Diskette
- •Networking
- •Additional installation information
- •Accounts and passwords
- •Additional packages to install
- •GUI installation
- •Obtaining video card information
- •Configuring the X windows system
- •Selecting the windows manager or desktop environment
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Answers to Assessment Questions
- •Scenarios
- •Alternative to the GUI Installation
- •Command Line installation
- •Install the Linux system
- •Network installations of Linux
- •Review of a Linux Installation
- •Installation media
- •Initial selections
- •Installation type or class
- •Disk partitioning and formatting
- •Installing LILO
- •Network configuration
- •User accounts
- •Authentication methods
- •Package selection and installation
- •A Dual-Boot Installation of Linux
- •Linux with Microsoft Windows
- •Linux with Microsoft Windows NT and 2000
- •Linux and Solaris
- •Linux and other operating systems
- •Installing Additional Software with gzip and tar
- •Installing Additional Software with RPM
- •Removing software with RPM
- •Upgrading software with RPM
- •Query the RPM software
- •Verify the RPM software
- •Verify the package files
- •Upgrading the Kernel
- •Upgrading a Linux Kernel
- •System Log Files
- •The Final Test of the Installation
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •What is the X Window System?
- •The X Window System
- •X Client and Server communications
- •X Window Manager
- •Configuring X Window Systems
- •Custom X Window System Programs
- •Manual Configuration of the X Window System
- •Documentation
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Basic Network Services
- •TCP/IP Protocol Suite
- •Connection protocols needed
- •Other network protocols
- •Configuring Basic Network Services
- •Host name
- •IP addressing
- •DHCP
- •Netmask
- •Hardware resources
- •Routing and gateways
- •PPP, SLIP and PLIP connections
- •Server Tasks with
- •IP aliases for virtual hosts
- •Apache Web Server
- •Samba File Server
- •Home directories
- •Disk shares
- •Configuring Client Services
- •SMB/CIFS
- •NIS client configuration
- •NFS client configuration
- •Configuring Internet Services
- •Web browser
- •POP and SMTP
- •TFTP
- •SNMP
- •Remote Access
- •Rlogin
- •Telnet
- •OpenSSH
- •Documentation
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Adding Hardware
- •Memory
- •Swap
- •Adding a hard drive
- •Video and monitor
- •Printers
- •Configuration files
- •Setting environment variables
- •BASH
- •Documentation
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Basic User and Group Administration
- •What are users and groups?
- •Creating users
- •Change user information
- •Deleting users
- •Creating groups
- •Getting Around Linux
- •Navigating Linux
- •Common file and directory commands
- •Setting File and Directory Permissions
- •Mounting and Managing File Systems
- •Mount
- •Umount
- •Mounted file systems
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Multi-User Environment
- •The creation of Virtual Consoles
- •The Linux Terminal Server Project
- •Configurations for remote systems
- •Monitoring remote connections
- •Common Shell Commands
- •Basic shell scripts
- •Caution using root access
- •Navigating the GUI interface
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Linux Runlevels
- •init
- •Shutting down Linux
- •Managing Linux Services
- •Configuring Linux Printing
- •lpd daemon
- •/etc/printcap
- •Printing management
- •Using the vi Editor
- •vi operation modes
- •Editing text files
- •Using the
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Disk and File System Management
- •Repairing Partitions
- •System Automation and Scheduling
- •cron
- •Core Dumps
- •Analyzing core dumps
- •GNU Debugger
- •Managing Networking Interfaces
- •Installing System Packages and Patches
- •Compressed archive
- •Debian Package Installer
- •Slackware Package Installation
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Linux Processes
- •Core services versus non-critical services
- •Process administration
- •Process control
- •Monitoring Log Files
- •Maintaining Documentation
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Linux Security
- •Securing the Environment
- •Location
- •Environment
- •System Security
- •System/user files
- •Permissions
- •Log auditing
- •Backups
- •Linux Security Best Practices
- •Network security
- •Firewall
- •System security
- •Securing a Web server
- •Securing an FTP server
- •FTP program version
- •FTP configuration files
- •Process security
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Disaster Recovery Planning
- •Types of data
- •Frequency and Scheduling
- •Storage and media types
- •Recovering data
- •Offsite storage
- •Linux Backup Tools and Commands
- •Third party tools
- •Tape devices
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Identifying the Problem
- •Methodology and Best Practices
- •Troubleshooting Resources
- •Documentation resources
- •Internet resources
- •System Log Files
- •Tools for Log Files
- •Output to another file
- •Locating files
- •Process Configuration and Management
- •Stopping, Starting, and Restarting Processes
- •Configuration Files
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Examining the Startup Process
- •Boot process steps
- •Analyzing Boot Process Errors
- •Common Boot Problems
- •Using System Status Tools
- •File System Check
- •System Resource Commands
- •Using the System Boot Disk
- •Types of boot disks
- •Creating a boot disk
- •Creating a rescue/utility disk
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Common User Problems
- •Login problems
- •File and directory permissions
- •Printing problems
- •Mail problems
- •Software Package Problems
- •Package dependencies
- •Software and version conflicts
- •Backup and Restore Errors
- •Backup hardware
- •Backup software
- •File restore errors
- •Application Failures
- •Log files
- •Process and daemon errors
- •Web server errors
- •Telnet
- •Mail services
- •Basic Networking Troubleshooting
- •Networking connectivity
- •Network hardware problems
- •Summary
- •Assessment Questions
- •Scenarios
- •Lab Exercises
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •Mainboard Components
- •BIOS
- •System memory
- •System Resources
- •I/O addresses
- •Direct memory access
- •Laptop Considerations
- •PCMCIA
- •Linux Peripheral Configuration
- •Installing and Configuring SCSI Devices
- •SCSI definitions
- •SCSI technologies
- •SCSI cabling and termination
- •SCSI device configuration
- •Linux SCSI devices
- •ATA/IDE Devices
- •IDE drive configuration
- •Linux ATA/IDE Drive configuration
- •Linux Support for Other Devices
- •IEEE 1394 (Firewire)
- •Summary
- •Assessment Questions
- •Scenarios
- •Answers to Chapter Questions
- •Chapter Pre-test
- •Assessment Questions
- •Scenarios
- •What’s on the CD-ROM
- •System Requirements
- •Using the CD with Microsoft Windows
- •Using the CD with Linux
- •Microsoft Windows applications
- •Linux applications
- •Troubleshooting
- •Sample Exam
- •Exam Questions
- •Exam Answers
- •Taking a CompTIA Exam
- •How to register for an exam
- •What to expect at the testing center
- •Your exam results
- •If you don’t receive a passing score
- •About the Linux + Exam
- •Preparing for the Linux+ Exam
- •For More Information
- •Preamble
- •No Warranty
- •Glossary
- •Index
86 |
Part II Installation |
The uses of the various partitions is a very advanced subject. For the exam, remember which types of files are stored in which partitions, and you may be able to find the particular file fairly easily or avoid a wrong answer on the test.
The other partitions, such as /usr and /bin, are used to organize the system files and to create default mount points that are pre-configured when the system is installed. The Linux installation program will create most of the other default partitions. Custom partitions, however, are not created by the Linux installation program; these are usually used to store user data, and specialized applications. The more organized a system is, the easier it is to manage, move, update, and fix damaged files. By planning the software, hardware, and partitions, the installation of the Linux system will progress smoothly and in an organized manner.
Installing Linux
2.1 Determine appropriate method of installation based on the environment (e.g., boot disk, CD-ROM, Network (HTTP, FTP, NFS, SMB))
2.11Install and configure Xfree86 server
2.12Select Video card support (e.g., chipset, memory, support resolution(s))
2.13Select appropriate monitor manufacturer and settings (e.g., custom, vertical, horizontal, refresh)
2.14Select the appropriate window managers or desktop environment (e.g., KDE, GNOME)
At this point, all of the planning is complete and it is time to start the installation.
The installation of Linux by a network server is an excellent way to install Linux on a large number of systems that will be similarly configured.
This ability is important because it can be installed on a system that has no diskette drive or CD-ROM for a corporate environment — or other similar mass production need.
The way that you decide to install Linux may have been part of the planning, because you have several methods to choose from. First, Linux supports bootable diskettes that hold a small portion of the Linux kernel and allow the further installation of Linux. Some Linux distributions actually use only diskettes to create the Linux system — but those distributions are not commonly used today. Second, Linux also includes support for bootable CD-ROMs or DVDs, which are now more common for user and enterprise installation methods. Finally, you also have the ability to install the Linux system from an NFS or other network server. This option is usually only chosen for the enterprise environment, or by the user with a very good broadband connection.
Chapter 4 Installing Linux |
87 |
The CD-ROM installation method is the most common method that users employ to install Linux. Because Linux can be installed in as little as 15 minutes, this method imposes no time constraints on its user. The CD-based installation is usually interactive and requires that the person performing the installation make selections for the type of installation, packages to be included, and configurations of the installation. The following steps will illustrate the CD-ROM method of installation of Linux. A bootable CD can start the CD-ROM installation of Linux. After Linux has begun installing, the choices begin.
Text or GUI installation
2.2 Describe the different types of Linux installation interaction and determine which to use for a given situation (e.g., GUI, text, network)
The type of interface is the first selection in the installation process that the installer must make. Most modern Linux installations will launch to a GUI (graphical user interface) based installation by default. GUI is usually the easiest installation to follow and use; some do almost everything for you (much like a Microsoft installation), but others walk you through each step of the installation. GUI installations require some minimal hardware. GUI installations are capable of detecting most hardware, and usually have excellent tools for setting up the system; however, if the system doesn’t have enough memory, processor power, or video capability, the GUI installation is not appropriate and the text-based installation should be chosen instead.
The text installation uses a very basic command line interface, or shell, which allows the installer to easily install Linux on older and slower machines (even machines that lack a video card) by using a terminal. Other reasons that you may have for using the text installation instead of GUI include:
Text installations use minimal graphics. Therefore, it is usually faster to move from screen to screen.
Text installations can create a batch file to answer your questions for mass installations.
Mass installation and upgrades are a fact of life in the real world of big corporations and governments. Failures usually occur when the installer did not correctly identify the hardware, did not properly configure the network, or was given the wrong source files for the installation or upgrade. Therefore, always make sure to verify the hardware, network configuration, and source files, and perform a test installation at each site.
88 |
Part II Installation |
Performing mass installations used to be challenging, but programs like Kickstart from Red Hat are eliminating the difficulties. With Kickstart, an installer can set up a server to automatically respond to client requests for software downloads, which can be customized. So no matter which type of installation you need, Linux can supply it. All you have to do is select the installation method, as shown in Figure 4-1.
Figure 4-1: The Red Hat Linux welcome screen
After you have selected the method of installation, Linux will begin to detect hardware. Even though Linux hardware probing is fairly accurate, I recommend that you observe the detection of hardware before the installation program moves to the GUI, shell, or command line interface for the installation of Linux. Figure 4-2 shows the hardware detection screen.
This screen shows the detection of hardware in the machine, including the lines:
PIIX: IDE controller on PCI bus 00 dev 38
This is the PCI controller for the IDE interface based on the primary chipset in the machine. If the installation doesn’t detect the controller needed for hard drive access, however, the installation won’t be able to continue. Although this doesn’t happen very often, it is worth your while to watch the major and minor hardware detection at this stage. After basic hardware has been detected, the installation moves to the next phase — basic interface setup.
Chapter 4 Installing Linux |
89 |
Figure 4-2: The hardware detection screen
Basic setup of Linux
2.3 Select appropriate parameters for Linux installation (e.g., language, time zones, keyboard, mouse)
At this point, you need to provide some general information to the Linux installation before it can proceed. The following sections outline this information.
Language
First, the installer must select the language that the installation will proceed in. This choice sets the language for the rest of the installation. If the wrong language is selected, the installer may find that he or she won’t be able to read the options correctly to move forward or backward in the installation process. Therefore, you should use care in selecting the language, as shown in Figure 4-3.
90 |
Part II Installation |
Figure 4-3: The Red Hat language selection screen
Licensing agreement
You must accept a licensing agreement before continuing to install the Linux operating system and any additional packages included with the distribution. Read this statement completely because it may contain licensing that doesn’t meet the needs of the installation. If you do find an issue with the licensing agreement, don’t install the software — find a distribution without the hindering license or with the knowledge that the license needs to be followed.
Keyboard and mouse
After the installer has agreed to the license, the system usually presents some other simple configuration questions, which usually involve the following:
The selection of a mouse
The selection of a keyboard model
The type of installation
The level of security of the installation
The layout that is being used
The selection of special features, such as Internet buttons
Chapter 4 Installing Linux |
91 |
After these configuration questions have been answered and the features correctly selected, the installer can move on to selecting the mouse attached to the unit. Hopefully, the mouse has already been working at a minimum level. However, you select the actual type of mouse from a list that gives you the option of allowing a two-button mouse to emulate a three-button mouse. Notice the help window in Figure 4-4 that provides some basic help in selecting the correct mouse.
Figure 4-4: The Red Hat mouse configuration screen
Unlike other operating systems, Linux uses the capabilities of a three-button mouse to provide various features:
The left button is the standard button for selecting items in a windows environment
The right button is used to bring up a secondary menu in the active window
The third button is used for special features of an application or window
This usually completes the basic configuration, and the installer can continue with the installation of Linux.