- •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
74 |
Chapter 3 Study Guide |
Answers to Chapter Questions
Chapter Pre-Test
1.Linux can be used in the enterprise at every level, from the desktop, to the server.
2.Samba provides connectivity with windows-based PCs or servers by using the SMB protocol.
3.Linux can be used to install a firewall that can limit or prevent unauthorized access.
4.Linux supports e-mail through use of standards-based software such as Sendmail, which is based on the Simple Mail Transport Protocol (SMTP).
5.Linux supports the most popular Web server in use today, which is the Apache web server.
6.Linux can provide file and print services for the Mac OS with support for the Appletalk protocol.
7.Linux can provide every major service that is offered by other operating systems, which makes it an attractive alternative.
8.Linux is very competitive with rival operating systems in terms of cost, reliability, and efficiency, and is a viable choice in most situations.
9.Because drivers for hardware devices are created as they come out by mostly volunteer developers, sometimes Linux does not support very new technologies.
10.Linux offers many places to gather information about the services that it can run, including — but not limited to — the sites that maintain the service software, Linux.org and Linuxdocs.org, and the MAN pages for the service.
Assessment Questions
1.A. WordPerfect is a popular word processor that is available for both Microsoft and Linux operating systems. Microsoft Word has not been ported to Linux; Opera is a Web browser; and Domino is an e-mail server. See the sections “Word Processing” and “Spreadsheets and Databases” for more information.
2.D. Excel is a Microsoft Product that has not been ported to Linux. The others have all been created or ported to Linux. See the section “File servers” for more information.
3.C. The KDE-based Web browser is Konqueror. Netscape and Opera are excellent Web browsers, but they are not part of KDE; neither is Internet Explorer. See the section “ Web browsing” for more information.
4.D. MSN Instant Messenger is not available for Linux; the others are all available in some form for Linux. See the section “More, more, and more applications” for more information.
Chapter 3 Study Guide |
75 |
5.B. DNS provides name to IP mapping; DHCP supplies automatic addressing; WINS is a Microsoft service; UUCP is an old file transfer protocol. See the section “The Server and DNS” for more information.
6.A. SMTP is the most common protocol for an e-mail server. Sendmail is a software package that supports SMTP. SNMP is simple network management protocol, and X.400 is not the primary e-mail service in use today. See the section “Linux e-mail server” for more information.
7.B. The Samba software package provides for Microsoft SMB support in Linux so that Linux machines can connect to Microsoft network resources. NetBIOS is a Microsoft protocol; NFS is used to support UNIX; and DDP is used to support the MAC OS. See the section “File servers” for more information.
8.C. Squid provides the Proxy service, which caches and filters web traffic. E-mail is supported by sendmail; news is supplied by INN; and firewalls are created with ipchains and Netfilter. See the section “Proxy, news, and search servers” for more information.
9.D. NNTP protocol is used for news services. LeafNode and INN are examples of news servers, and Squid is a proxy server. See the section “Proxy, news, and search servers” for more information.
10.A. Dig is the common name of the service that provides searches on an intranet or domain. The others are all services not related to searching on an intranet or domain. See the section “Proxy, news, and search servers” for more information.
11.D. wu-ftpd is an example of a common FTP server application. Apache is a web server, Squid is a proxy server, and TFTP is actually a protocol used for connectionless FTP transfers. See the section “FTP servers” for more information.
12.A. ipchains is an example of the Linux firewall software that is built-in to the kernel. Netfilter is a separate firewall application, NAT is merely a Network Address Translation table, and stateful packet inspection is an advanced firewall filtering technique. See the section “Firewalls” for more information.
13.B. NAT stands for Network Address Translation. See the section “Firewalls” for more information.
14.C. Linux is least likely to provide excellent support for Fibre Channel because this is the newest hardware. See the section “Hardware compatibility” and “Comparing Linux with other operating systems” for more information.
15.A. HCL is where you should look first to learn if Linux supports a particular hardware device. SUNW is the stock ticker for Sun Microsystems; the MAN pages may have some hardware information, but they are usually used for software configuration and information; and finally, Linux.org does not support an extensive hardware list. See the section “Hardware compatibility” for more information.
76 |
Chapter 3 Study Guide |
16.A. The site www.apache.org is helpful for configuring the Apache Web server. The others do not support Web servers. See the section “A Linux Web server” for more information.
17.C. The following Web site can be used to gather information about creating a firewall: http://netfilter.filewatcher.org. The other Web sites don’t support firewall software; Squid is for proxy services, Leafnote is a news server; and Dig is a search server. See the section “Firewalls” for more information.
18.A. NIS is used with NFS to provide remote file access for UNIX systems. NAT is used to allow many IPs to use a single IP to access the Internet; NNTP is a news server protocol; and SMB allows the remote access of a windows system to Linux and Linux to windows. See the section “File servers” for more information.
19.A. MTA is the task that a Sendmail server provides, which is transferring mail from one network or host to another. MUA is a mail user agent; MDA is a mail delivery agent; and DDP is Datagram Delivery Protocol. See the section “Linux e-mail server” for more information.
20.C. TFTP is an example of a connection-less protocol for file transfer. The others are connection-oriented. See the section “FTP servers” for more information.
Scenarios
1.To create a Web server, you should install the Apache Web server. To provide better services for local users, add a Squid proxy server to cache Web pages to decrease the amount of traffic going to the Internet.
2.To protect the internal network from unauthorized users from an outside network, a firewall server should be installed. In order to share the Internet connection, the NAT service should be set up to allow all machines to connect to the Internet using one IP address.