- •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
80 |
Part II Installation |
This chapter is about installing Linux. First, I will show you how to install Linux based on the customer’s needs and requirements. Then, I will show you how
to use different file systems to fulfill those installation needs. I will also discuss how to select the required services in order to meet the requirements of the users needs.
I will walk you through a Linux installation step-by-step, showing you the appropriate method of installation, the different types of installation interaction, how to select appropriate parameters (such as language, time zones, keyboard, and mouse), the different packages based on the Workstation, how to choose between a Server or a Custom installation, partitioning based on pre-installation choices and the tools to accomplish partitioning. Other installation tasks include configuring the network, security, and passwords, Xfree86 with video cards, monitors and the desktop windows managers. Then, finalizing the installation and reasons for recompiling and adding packages to the installation will be illustrated.
Final Preparations for Installation
1.1 Identify purpose of Linux machine based on predetermined customer requirements (e.g., appliance, desktop system, database, mail server)
1.3 Determine what software and services should be installed (e.g., client applications for workstation, server services for desired task), check requirements and validate that it is supported by Linux.
1.8 Describe the functions, features, and benefits of a Linux solutions as compared with other operating systems (e.g., Linux players, distributions, available software)
You have a few tasks to complete before you can begin the actual installation. One of the most important tasks is to verify the type of installation that you wish to use. Is the user absolutely sure that she wants to have just a workstation or server? This is an important decision and should be verified beforehand. For example, the user may think that she wants only a desktop system, but perhaps she also wants to share documents on the intranet or Internet? If so, a Web server installation may be more appropriate.
Verification
If you verify the services that the user wants from his or her machine prior to installation, you may save yourself the task of reconfiguring at a later date. Most installation types can be verified by using a checklist, similar to the one that is used during the installation of Linux. The checklist can be a very complicated table or as simple as the list shown in Table 4-1.
Chapter 4 Installing Linux |
81 |
Table 4-1
Linux installation checklist
Workstation System |
Selected Installation Type or Service |
Word Processor
Spreadsheet
Database
Graphics
E-Mail client
Web browser
Programming languages
Application development tools
Networking
Commercial Applications
Server System |
Selected Installation Type or Service |
Web server
File Server
Database Server
Mail Server
Application Server
Terminal Server
E-commerce Server
Proxy Server
DNS Server
DHCP Server
News Server
Search Server
FTP Server
Firewall
Commercial server application
82 |
Part II Installation |
You should consider this table to be only a partial list of possible options. Each installer should customize the verification list to make the installation process easier. Having this checklist should help installers to determine if a user needs a workstation or server type installation. Generally, however, users don’t always know which service they want to use. Therefore, the installer should employ some probing questions to ascertain whether the user wants to share any files or services with others. The following is a list of sample questions that installers can ask their users:
Do you want to have others use your files, system, or documents over an intranet or the Internet?
Which result do you desire the most — sharing of network resources, prevention of outside access to the network, or controlling access?
Do you need to run any high-end applications or services such as Web and FTP?
Using these questions will allow the installer to determine whether the user needs only a workstation, server, or appliance. Here is a breakdown of each type of installation:
Workstation installation: Generally does not provide services to anyone but the user of the machine.
Server installation: Provides services to users anywhere on the intranet or Internet.
Appliance system: Used only to provide special network services, such as routing, proxy, or firewall services; are often minimum hardware configurations that are customized to provide the given service.
Thin server: A special distribution customized to provide only one service; are easy to configure and are often customized to provide the best service for one particular task.
Package selection
No matter which type of server installation you choose, you still need to configure it with the required software packages that are needed for your specific applications. Every installer’s goal is to make installations easier, a list should be created of software packages that allows for the installation of the client’s desired service. A good example of this is shown in Table 4-2:
Chapter 4 Installing Linux |
83 |
Table 4-2
Detailed installation list
Type of System or Service |
Distribution or Package |
Notes |
|
|
|
Server Installation |
___Red Hat ___Mandrake |
There are many more |
|
___ SuSE ___TurboLinux |
distributions than this |
|
___Caldera ___ Debian |
and some are considered |
|
___ Slackware ___ Krud |
better at certain tasks |
Web Server |
___Apache ___Tux Web Server* |
System to provide a |
|
____Other |
Web page? |
|
|
|
File Server |
___Samba ___NFS |
Share files on the intranet? |
|
___Netatalk ___Other |
|
|
|
|
Database Server |
___MySQL ___PostgreSQL |
Database of employees? |
|
___Oracle ___Other |
|
|
|
|
Mail Server |
___Sendmail ___Domino** |
Provide e-mail to and |
|
___other |
from the Internet? |
|
|
|
* Tux Web Server is a fast Web server included with Red Hat Linux
**Domino is an e-mail server from Lotus
The installer can customize this installation list to the current environment that he or she is working in. Using a list ensures that the installation meets the needs of the client, and also allows the client to learn of other possible uses of Linux. Because some clients may be using another operating system to provide a service, such as a Windows file server, they may not know that Linux can also provide that service. Informing your clients of this fact can be an excellent way to move them from other operating systems to Linux.
Final hardware verification
Even though you have already checked the system against the Hardware Compatibility List (HCL), it is best to actually verify some information — such as the hardware details — before proceeding with the installation of Linux, because some details may need to be clarified. For example, some hardware makers may use several different chipsets to create a piece of hardware; therefore, it is wise to verify that the video card is version x, y, or z of a chipset. This is also true of hard drives; the size may be the same but they may have different structures. Suppose that one 30GB hard drive has 16,383 cylinders, 16 heads, and 63 sectors with 60,030,432 LBA (logical block addressing) to have a total capacity of 30,760MB; another 30GB hard drive has the same 16,383 cylinders, 16 heads, and 63 sectors, but with 60,032,448 LBA for a capacity of 30,736MB. These two drives also work at different speeds: The first has runs at 7200 RPM, and the second drive runs at 5400 RPM. This difference may seem inconsequential, but when you are setting up a server environment, it may cause problems down the road. Therefore, a checklist similar to the one that