- •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 4 Installing Linux 111
Figure 4-17: The Red Hat individual package selection screen
GUI installation
2.11 Install 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)
112 Part II Installation
The installation of the GUI, or graphical user interface, is the next part of the installation process. Often, you configure a GUI interface in Linux by using XFree86, which is a freely redistributable Open Source implementation of the X Window System that runs on UNIX, Linux, versions of BSD, Mac OS X (Darwin), Solaris for the x86 platform, and OS/2. XFree86 is the base software that provides the support between the hardware and graphical user interface. The KDE, GNOME, Enlightenment, Blackbox, AfterStep, twm and fvwm windows managers all run XFree86 as the interface to provide hardware support. The ability of Xfree86 to provide hardware support is constantly being updated by the XFree86 Project, Inc., located at www.xfree86.org, and currently provides support for not only the x86 platform, (hence the X in Xfree86), but also for Alpha, PowerPC, Sparc, and in-the- works MIPS CPUs. As Xfree86 has evolved, it has provided better and better support for more variations of hardware, and also provides high-end 3-D support. Although most windows managers, such as enlightenment, use the Xfree86 X- Windows System, it is KDE and GNOME that are the most used windows managers on today’s Linux systems.
Obtaining video card information
When configuring a system to use Xfree86, you are often required to have detailed information about the video card and monitor. Although Xfree86 does an excellent job of detecting video cards, sometimes it will identify the class of the video card — S3 968, for example — but not the exact chipset, such as S3 968 with TI3026 chipset. Therefore, when installing the Xfree86 system, you should know the manufacturer and the model of the video card, the video card chipset, and the amount of memory that the video card contains. As Xfree86 evolves, this is becoming less
of a requirement.
Monitors suffer many of the same detection errors, which is partly due to the fact that monitors are created by so many different manufacturers. Xfree86 allows you to manually input the information to get the best performance out of your monitor. You need the following information in order to correctly configure the monitor:
The horizontal and vertical refresh rate in Hz
The maximum color depth (only on old monitors)
The maximum screen resolution
With this information in hand, it is time to configure the system. Figure 4-18 shows the menu in the Red Hat setup, and Figure 4-19 shows the Xfree86 menu.
Chapter 4 Installing Linux 113
Figure 4-18: The Red Hat X configuration screen
Configuring the X windows system
To configure the X Windows system, you need to use the Xfree86 configuration utility. The screens in Figures 4-18 and 4-19 demonstrate the ability of Xfree86 to interface with other programs in order to provide hardware support for any windowing program or windows manager. Red Hat has placed a single menu that accesses the Xfree86 submenu for the Video Card menu shown in Figure 4-20.
The next Red Hat installation screen, shown in Figure 4-21, shows the manufacturers of the monitor. This is an extensive list, as Red Hat contains support for virtually every monitor that may be on a system. This corresponds to the Xfree86 menu for monitor selection.
114 Part II Installation
Figure 4-19: The introduction to configuration with XFree86 screen
The screen in Figure 4-21 enables you to select the depth of color and screen resolution. Color depth allows the system to display images as close to the true colors that a video card can provide. Selections usually include 16-bit, 24-bit, and 32-bit color.
These are implementations of binary math that provide 4 bits for 16 colors, 8 bits for 256 colors, 16 bits for colors, 24 bits for 1,6777,216 colors, and 32 bits for 4,294,967,296 colors. By allowing the selection of color depth, the installation enables the user to select between color quality and screen resolution.
Chapter 4 Installing Linux 115
Screen resolution is the number of pixels used to fill the screen. By setting the screen resolution to 640 × 480, for example, means that the video card will use 640 pixels wide by 480 pixels high to fill the monitor. Therefore, if you select the setting of 1024 × 768, then the screen can contain more data but will be smaller in size than the screen resolution setting of 640 × 480. This is because the video card is now using 1024 — almost twice the number 640 — pixels wide and 768 pixels high to fill the screen. Selecting a higher screen resolution usually results in reduced color depth capabilities because the amount of memory on the video card provides the ability to select different color depths and screen resolutions. On this system, the screen resolution is set to 1024 × 768 and the color depth is at 16 bits or High Color, as shown in Figure 4-22.
Figure 4-20: The Xfree86 video card selection screen
116 Part II Installation
Figure 4-21: The Red Hat monitor configuration screen
Because the video card has only 4MB of memory, the color is limited to 16 bits at 1024 × 768, but if you select 800 × 600, you can use 24-bit color, as shown in Figure 4-23.
The XFree86 menus are a little different because this task is broken down into two steps:
1.Select the resolution capabilities of the monitor. Notice in Figure 4-24 that the installer doesn’t choose by brand name or by monitor type, but strictly based on the resolution capabilities of the monitor. Continue to the monitor menu and select the resolution capabilities of the attached monitor.
2.Select the color depth and screen resolution on which the X Windows System will be run. You make this selection at the Modeselection screen. The selection settings on the screen will be limited by the abilities of the video card and the monitor. The screen resolutions are located in the center of the screen, and the color depth is located along the lower left part of the screen. Figure 4-25 shows the screen as it appears in the XFree86 setup program.
