
- •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 Configuring X-Windows 191
location for configuration by manually editing the text. This requires skill — and often trial-and-error — to see what setting works best. However, there are several different options for configuring the file, which are separated into different sections. These sections are shown in Table 6-5.
|
Table 6-5 |
|
The xf86config file |
|
|
File Section |
This area effects |
|
|
Files |
Location of support files including font and red, green, blue, or rgbfile |
|
|
ServerFlags |
Used to troubleshoot and disable features |
|
|
Keyboard |
Keyboard protocol used |
|
|
Pointer |
Mouse device, type, and features |
|
|
Monitor |
Monitor information |
|
|
Device |
Video card information |
|
|
Screen |
Combined monitor and device information |
|
|
The xf86config file is a long file that must be edited in several locations in order to function correctly. This is why the GUI, Command Line, and Shell tools have evolved to the point that manual configuration is seldom — if ever — used to configure an X Window System. However, manually editing or using the XF86Config program can be an exceptionally efficient way for the experienced administrator to configure the X Window System.
Documentation
3.14 Document the installation of the operating system, including configuration
Whether you choose a GUI, Command Line, or Shell Tool to configure the X Window System, the selected settings should be clearly documented, as should the hardware used. The following information should be included in this documentation:
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

192 Part III Configuration
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
These are most of the settings that should be documented; of course, any other configurations made during the configuration of the X Window System should also be documented.
Know the information that is required for video card and monitor selection during the installation and configuration of the X Window System.
Summary
This chapter explains many of the basics of the X Window System. This task can be broken down into three areas:
Preparation
•Monitor hardware information
•Video card hardware information
•Planned display settings and window manager
Configuration
•Select GUI, text, or custom X Window System configuration program
•Select mouse type
•Select monitor type
•Select video card type

Chapter 6 Configuring X-Windows 193
•Configure the settings
•Test the settings
Documentation
•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

194 Chapter 6 Study Guide
STUDY GUIDE
The Study Guide section provides you with the opportunity to test your knowledge about the Linux+ exam objectives that are covered in this chapter. The Assessment Questions provide practice for the real exam, and the Scenarios provide practice with real situations. If you get any questions wrong, use the answers to determine the part of the chapter that you should review before continuing.
Assessment Questions
1.Which organization controls the official releases and updates of the X Window System?
A.www.x.org
B.www.xfree86.org
C.www.linux.org
D.www.mit.edu
2.Which part of the X Window System controls the hardware?
A.X Client
B.X Server
C.X Protocol
D.Window manager
3.Which part of the X Window System controls the internal communications?
A.X Client
B.X Server
C.X Protocol
D.Window manager
4.Which part of the X Window System provides the user interface?
A.X Client
B.X Server
C.X Protocol
D.Window manager

Chapter 6 Study Guide 195
5.Which part of the X Window System controls software application requests?
A.X Client
B.X Server
C.X Protocol
D.Window manager
6.What are the major advantages/disadvantages of the X Window System for network usage? (Choose all that apply.)
A.Local and remote computing are actually the same to the user and developer
B.Applications don’t suffer a performance penalty when used locally or remotely
C.Local and remote computing are actually controlled differently for the user and the developer
D.Applications do suffer a performance penalty when used locally or remotely
7.Which of the following use the Common Object Request Broker Architecture?
A.KDE
B.GNOME
C.Enlightenment
D.Sawfish
8.Which window manager does KDE use by default?
A.Enlightenment
B.Sawfish
C.KWin
D.Blackbox
9.Which of the following is a command line-based setup program for the X Window System?
A.XF86Setup
B.XF86Config
C.SetupXF86
D.Xconfigurator

196 Chapter 6 Study Guide
10.Where is the .xinitrc usually stored on a Linux system?
A./etc/X11R6/bin/
B./var/X11R6/bin/
C./lib/X11R6/bin/
D./usr/X11R6/bin/
11.What is the default physical location of the mouse when using XF86Config?
A./dev/mouse
B./dev/psaux
C./dev/ttys0
D./dev/tsmo
12.Which of the following customized X Window System configuration programs are included with distributions of Linux? (Choose all that apply.)
A.Xconfigurator
B.XF86Setup
C.Sax2
D.XDrake
13.Which file can be manually edited to adjust the X Window System configuration?
A./usr/X11R6/bin/.xinitrc
B./etc/X11/XF86Config
C./etc/X11/.xinitrc
D./usr/X11R6/bin/XF86Config
14.What is “X” a symbolic link to?
A.X Client
B.X Server
C.xinitrc
D.XF86Config
15.Which of the makes use the QT programming toolkit?
A.GNOME
B.KDE
C.Enlightenment
D.Blackbox

Chapter 6 Study Guide 197
16.What program, included with GNOME, provides a word processing application?
A.KWord
B.AbiWord
C.Word
D.WordPerfect
17.What program, included with KDE, provides graphic manipulation?
A.Photoshop
B.GIMP
C.Krayon
D.Konqueror
18.Which of the following is part of the GNU project?
A.KDE
B.GNOME
C.XFce
D.Sawfish
19.Which of the following should be documented when installing a monitor with the X Window System? (Choose all that apply.)
A.Horizontal sync
B.ClockChip
C.RAMDAC
D.Vertical refresh rate
20.Which of the following should be documented when installing a video card with the X Window System? (Choose all that apply.)
A.Horizontal sync
B.ClockChip
C.RAMDAC
D.Vertical refresh rate