- •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
Chapter 2 Linux Kernel and Distributions |
29 |
In this chapter, you will learn more about the Linux kernel, including information on how you can use kernel versions to determine the status, features, and reliability of the kernel. This chapter also includes a listing of Linux resources, and I dis-
cuss an easy way to use these resources. In fact, I show you how to use Linux resources in order to learn how to install, modify, and use packages and applications. Packages and applications are usually distributed as a vendor distribution, so I will discuss these distributions and also list some of the most popular ones. After this chapter, you should have a better understanding of these important Linux concepts, and you should be able to identify the kernel version, Linux resources, packages, applications, and distributions — and how they are used to create a software package that you may want to use.
Linux Kernel
The kernel is the core of the operating system and provides the ability for software to access the hardware systems. Because the Linux kernel is used to access hardware, the kernel is often updated. These updates to the kernel are used to provide or improve support for newer technologies, such as SCSI controllers, Ultra ATA, USB, IEEE-1394, video cards, and other devices that are not properly supported by the previous kernel. The Linux kernel uses modules to add support for new devices and improve support for existing devices.
The use of modules prevents the entire Linux kernel from requiring constant replacement because the administrator can simply update the module to improve or provide support for the desired device. Modules, however, have limits, and you may have many reasons to update and recompile the entire kernel — to achieve, for example, better stability, performance, and improved support for all hardware. Keeping track of kernel changes can be a challenge, but by using a simple numbering system, Linux users can identify their current kernel version.
Kernel versions
1.9 Identify how the Linux kernel version numbering works
The kernel versions are used to determine the status, feature set, and reliability of the kernel. This kernel version numbering system ensures the availability and easy identification of each kernel. This system is summarized in the following list (Table 2-1 lists major kernel versions, including basic information about each version):
Major number: This is the leftmost number, and it reflects a major change in the kernel.
Minor number: This is the middle number and reflects the stability of a particular kernel. Even numbers indicate a stable release, and odd numbers indicate a developmental release.
30 Part I Linux Basics
Revision number: This is the last number and indicates the version of the overall release. For example, 2.4.4 is the fourth subversion of the 2.4.0 kernel.
Linux kernel version numbering is used often and is an important subject. You don’t have to memorize every detail about each Linux kernel, but you should understand the revision numbers and the purpose of updating the kernel.
Table 2-1
Linux Kernel Versions
Kernel |
Date |
Size |
Status |
Subversions |
||
|
|
|
|
|
|
|
0.01 |
17 |
September 1991 |
63,263 |
Stable |
2 |
|
|
|
|
|
|
|
|
0.10 |
3 |
December 1991 |
90,032 |
Stable |
2 |
|
|
|
|
|
|
|
|
0.95 |
8 |
March 1992 |
116,059 |
Developmental |
4 |
|
|
|
|
|
|
|
|
Pre-0.96 |
22 |
April 1992 |
131,606 |
Pre-Release |
0 |
|
|
|
|
|
|
|
|
0.96a |
22 |
May 1992 |
174,003 |
Stable |
4 |
|
|
|
|
|
|
|
|
0.96b |
22 |
June 1992 |
181,231 |
Stable |
2 |
|
|
|
|
|
|
|
|
0.96c |
5 |
July 1992 |
191,894 |
Stable |
2 |
|
|
|
|
|
|
|
|
0.97 |
1 |
August 1992 |
233,862 |
Developmental |
7 |
|
|
|
|
|
|
|
|
0.98 |
29 |
September 1992 |
320,917 |
Stable |
6 |
|
|
|
|
|
|
|
|
0.99 |
13 |
December 1992 |
426,483 |
Developmental |
79 |
|
|
|
|
|
|
|
|
Pre-1.0 |
6 |
March 1994 |
1,009,290 |
Pre-Release |
0 |
|
|
|
|
|
|
|
|
1.0 |
13 |
March 1994 |
1,016,601 |
Stable |
9 |
|
|
|
|
|
|
|
|
1.1.0 |
6 |
April 1994 |
1,013,691 |
Developmental |
95 |
|
|
|
|
|
|
|
|
1.2.0 |
7 |
March 1995 |
1,850,182 |
Stable |
13 |
|
|
|
|
|
|
|
|
1.3.0 |
12 |
June 1995 |
2,052,167 |
Developmental |
100 |
|
|
|
|
|
|
|
|
2.0-pre1 |
12 |
May 1996 |
4,570,261 |
Pre-Release |
13 |
|
|
|
|
|
|
|
|
2.0 |
9 |
June 1996 |
4,718,270 |
Stable |
39 |
|
|
|
|
|
|
|
|
2.10 |
30 |
September 1996 |
4,897,927 |
Developmental |
132 |
|
|
|
|
|
|
|
|
2.2.0-pre1 |
28 |
December 1998 |
10,455,343 |
Pre-Release |
8 |
|
|
|
|
|
|
|
|
2.2.0 |
26 |
January 1999 |
10,592,549 |
Stable |
19 |
|
|
|
|
|
|
|
|
2.3.0 |
11 |
May 1999 |
11,208,792 |
Developmental |
51 |
|
|
|
|
|
|
|
|
2.3.99-pre1 |
15 |
March 2000 |
16,027,466 |
Pre-Release |
8 |
|
|
|
|
|
|
|
|
2.4.0-test1 |
25 |
May 2000 |
16,989,873 |
Pre-Release |
11 |
|
|
|
|
|
|
|
|
2.4.0-Pre-release |
31 |
December 2000 |
19,341,926 |
Pre-Release |
0 |
|
|
|
|
|
|
|
|
2.4.0 |
4 |
January 2001 |
19,788,626 |
Stable |
4 and counting |
|
|
|
|
|
|
|
|