- •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 6 Study Guide 199
4.Repeat as often as needed to become efficient at configuring the X Window System with XF86Setup.
Lab 6-3 Linux
The objective for this hands-on lab is to gain experience in configuring and reconfiguring the X Window System. Any distribution of Linux may be used for this exercise.
1.Back up the configuration files for the current X Window System.
2.Start the custom X Window System configuration program that is included with the Linux distribution of your choice and configure the X Window System. Be sure to note each step used and compare with the configuration used during the initial installation.
3.Verify that the installation works correctly.
4.Repeat as often as needed to become efficient at configuring the X Window System with the custom X Window System configuration program.
Answers to Chapter Questions
Chapter Pre-test
1.The X Window System provides the GUI capabilities in Linux. It provides the X Server for support of the hardware, X Client for support of the software, the X Protocol for local and remote connections between the X Server and Client, and finally, a Window Manager.
2.The software and resources for the X Window System are at www.X.org and several other Web sites.
3.The X Window System is configured with XF86Config, XF86Setup, and several custom programs that are included with Linux distributions.
4.Configuring the X Window System manually with a text editor or XF86Config can be a fast and easy way for a very experienced administrator to configure the X Window System.
5.The files used for the X Window configuration are X, xinit, .xinitrc, and xf86config.
6.The major parts of the X Window System are the X Client, X Server, X Protocol, and Window Manager.
200 Chapter 6 Study Guide
7.The most dominant desktops used in Linux are KDE and GNOME.
8.Desktop environments often include several useful applications and provide a full-featured desktop for the user.
9.The X Window System can be used for remote systems; this is actually a major feature of the system because it works equally well on remote and local systems.
10.The ability to use the X Window System to manage remote systems is an enormous advantage for administrators. This allows the administrator to install, test, and troubleshoot user issues remotely while not changing the environment.
Assessment Questions
1.A. The X Consortium at www.x.org controls the official release and updating of the X Window System. MIT turned over control of the X Window System to the X Consortium; www.linux.org maintains information about Linux; and www.xfree86.org creates a distribution of the X Windows System for the x86 platform. For review, see the “What is the X Window System?” section.
2.B. The X Server controls the hardware; the X Client controls the software; the X Protocol controls communication; and the window manager provides the user interface. For review, see the “The X Window System” section.
3.C. The X Protocol controls communication; the X Client controls the software; the X Server controls the hardware; and the window manager provides the user interface. For review, see the “The X Window System” section.
4.D. The window manager provides the user interface; the X Client controls the software; the X Server controls the hardware; and the X Protocol controls communication. For review, see the “The X Window System” section.
5.A. The X Client controls the software; the window manager provides the user interface; the X Server controls the hardware; and the X Protocol controls communication. For review, see the “The X Window System” section.
6.A and B. The advantages of local and remote computing are actually the same to the user and developer; applications don’t suffer a performance penalty when used locally or remotely. The others are not disadvantages of remote network use of the X Window System; the major disadvantage is a performance impact from using many X Window Systems on a network. For review, see the “X Client and Server communications” section.
7.B. GNOME uses CORBA (or Common Object Request Broker Architecture) to provide open, vendor-independent architecture that applications can use over networks. The others don’t use CORBA. For review, see the “GNOME” section.
Chapter 6 Study Guide 201
8.C. KDE uses the KWin window manager by default. GNOME does not include a specific window manager by default, but is usually installed over Enlightenment, Window Maker, or Sawfish. Enlightenment and Sawfish are window managers. For review, see the “KDE” section.
9.B. The XF86Config program is the command line setup program for the X Window System. The others are GUI or Shell programs for the X Window System configuration. For review, see the “Configuring X Window Systems” section.
10.D. The usual location of the file is /usr/X11R6/bin. For review, see the “Configuring X Window Systems” section.
11.A. The default location for the mouse device is /dev/mouse. For review, see the “Configuring X Window Systems” section.
12.A, C, and D are all custom-created programs for configuring the X Window System on particular Linux distributions. XF86Setup is not distributionspecific; it is included with the XF86 system. For review, see the “Custom X Window System Programs” section.
13.B. The default location of the configuration file for the X Window System is /etc/X11/XF86Config. For review, see the “Manual Configuration of the X Window System” section.
14.B. X is a symbolic link or symlink to the X Server. The others are not linked to X. For review, see the “Configuring X Window Systems” section.
15.B. KDE uses QT; the others don’t. For review, see the “KDE” section.
16.B. AbiWord is the program included with GNOME for word processing. The others may be available, but they are not the defaults. For review, see the “GNOME” section.
17.C. Krayon is included with KDE to provide graphic manipulation. The others may be available but are not the defaults. For review, see the “KDE” section.
18.B. GNOME is part of the GNU project; the others are not. For review, see the “GNOME” section.
19.A and D. Both horizontal sync and vertical refresh rate are information used with monitors. ClockChip and RAMDAC are used with video cards. For review, see the “Configuring X Window Systems” section.
20.B and C. ClockChip and RAMDAC are used with video cards. Both horizontal sync and vertical refresh rate are information used with monitors. For review, see the “Configuring X Window Systems” section.
202 Chapter 6 Study Guide
Scenarios
1.You can configure the X Window System in several ways. First, you can use the custom configuration program that is included with the distribution. Second, you can use the XF86Setup or XF86Config programs included with the X Window System for the x86 system. The third, and probably simplest way, is that you can modify the file manually, and copy the corrected configuration to the other systems. You can also deploy the repaired system by manually configuring each system, but copying the corrected configuration file from the first system to the other identical systems is much more efficient. This way, only one configuration file needs to be backed up, as they are all identical. For review, see the “Manual Configuration of the X Window System” and “Configuring X Window Systems” sections.
2.The following information should be given to the manager:
•Monitor make and model
•Vertical refresh rate of the monitor
•Horizontal sync rate of the monitor
•Resolution capabilities of the monitor
•Color depth capabilities of the monitor
•Video card make and model
•Video card Chipset
•Video card RAMDAC
•Video card available memory
•Video card ClockChip
•XF86 version
•XF86 setup program used
•Resolutions selected
•Color depth selected
•Mouse type selected
•Video card selected
•Monitor selected
For review, see the “Documentation” section.
Configuring
Networking
EXAM OBJECTIVES
3.2 Configure the client’s workstation for remote access (e.g., ppp, ISDN)
3.4 Configure basic network services and settings (e.g., netconfig, linuxconf; settings for TCP/IP, DNS, DHCP)
3.5 Configure basic server services (e.g., X, SMB, NIS, NFS)
3.6 Configure basic Internet services (e.g., HTTP, POP, SMTP, SNMP, FTP)
3.13 Load, remove, and edit list modules (e.g., insmod, rmmod, lsmod, modprobe)
3.14 Document the installation of the operating system, including configuration
3.15 Configure access rights (e.g., rlogin NIS, FTP, TFTP, SSH, Telnet)
7.8 Identify basic networking concepts, including how a network works
C 7H A P T E R
204 Part III Configuration
CHAPTER PRE-TEST
1.What is the TCP/IP protocol?
2.What are DNS, WINS, NIS, and DHCP?
3.What are SMB and NFS?
4.What is the purpose of the PPP protocol?
5.What are HTTP, POP, SMTP, and SNMP?
6.What is FTP and TFTP?
7.What are Telnet, rlogin, and SSH?
8.What is a gateway and what is a netmask?
9.What is the standard protocol of the Internet?
10.What are the standard Internet e-mail client protocols?
Answers to these questions can be found at the end of the chapter.