Acknowledgments |
|
xviii | |
Check-In |
|
xix | |
I Installing and Configuring Linux |
|
1 | |
|
|
3 | |
|
Objective 1.01 Determine Customer Needs |
|
|
4 | |
|
|
4 | |
|
What Applications Linux Can Include for Clients |
|
|
5 | |
|
What Server Services Can Be Installed |
|
|
6 | |
|
|
6 | |
|
Objective 1.02 Identify Required Hardware |
|
|
7 | |
|
|
8 | |
|
|
8 | |
|
|
9 | |
|
Objective 1.03 Understand That Linux Is Just the Kernel |
|
|
9 | |
|
|
9 | |
|
|
10 | |
|
|
10 | |
|
Objective 1.04 Determine the Appropriate Installation Method |
|
|
11 | |
|
|
11 | |
|
|
12 | |
|
|
13 | |
|
Objective 1.05 Define Multimedia Options |
|
|
14 | |
|
|
14 | |
|
|
15 | |
|
|
16 | |
|
Objective 1.06 Identify Machine Requirements |
|
|
16 | |
|
Packages and Package Groups |
|
|
16 | |
|
|
18 | |
|
|
18 | |
|
|
19 | |
|
|
19 | |
|
|
20 | |
|
|
22 | |
|
2 Configuring During and After Installation |
|
|
23 | |
|
Objective 2.01 Select Appropriate Parameters for Installation |
|
|
24 | |
|
|
25 | |
|
|
26 | |
|
|
26 | |
|
|
27 | |
|
Objective 2.02 Partition with fdisk and More |
|
|
27 | |
|
Appropriate Directories for Dedicated Partitions |
|
|
27 | |
|
|
28 | |
|
|
29 | |
|
|
29 | |
|
|
29 | |
|
|
29 | |
|
|
30 | |
|
Logical Volume Management Configuration |
|
|
30 | |
|
Other Partition Management Tools |
|
|
31 | |
|
Objective 2.03 Configure a Filesystem |
|
|
31 | |
|
Standard Linux Filesystems |
|
|
31 | |
|
|
33 | |
|
Objective 2.04 Understand and Reinstall a Boot Manager |
|
|
33 | |
|
|
34 | |
|
The Grand Unified Bootloader (GRUB) |
|
|
35 | |
|
|
37 | |
|
Objective 2.05 Identify Network Configuration Issues |
|
|
37 | |
|
|
37 | |
|
|
38 | |
|
|
39 | |
|
Connecting via Telephone Modem |
|
|
40 | |
|
The Internet Super Server |
|
|
41 | |
|
Objective 2.06 Configure Peripherals as Needed |
|
|
41 | |
|
|
41 | |
|
|
42 | |
|
|
42 | |
|
Objective 2.07 Perform Post-Installation Package Management |
|
|
42 | |
|
Installing New RPM Packages |
|
|
43 | |
|
|
43 | |
|
Installing from a Compressed Tarball |
|
|
44 | |
|
|
45 | |
|
|
46 | |
|
|
48 | |
II Managing Linux Users, Files, Packages, Processes, and Services |
|
49 | |
|
3 Managing Files and Directories |
|
|
51 | |
|
Objective 3.01 Work with Files and Directories |
|
|
52 | |
|
|
53 | |
|
|
53 | |
|
Directories as a Dot Hand a Double Dot(..) |
|
|
53 | |
|
|
53 | |
|
|
54 | |
|
|
54 | |
|
|
55 | |
|
|
55 | |
|
|
56 | |
|
|
56 | |
|
Finding More with whereis |
|
|
56 | |
|
Using the find and locate Commands |
|
|
57 | |
|
|
57 | |
|
|
59 | |
|
|
59 | |
|
|
59 | |
|
Objective 3.02 Create Files and Directories |
|
|
60 | |
|
Creating Files with touch |
|
|
60 | |
|
|
60 | |
|
Modifying Filenames with my |
|
|
61 | |
|
|
61 | |
|
Creating and Removing Directories with mkdir and rmdir |
|
|
62 | |
|
Objective 3.03 Manage Text Files |
|
|
63 | |
|
|
63 | |
|
|
63 | |
|
|
64 | |
|
|
64 | |
|
|
64 | |
|
|
65 | |
|
The awk Text Manipulation Tool |
|
|
65 | |
|
|
65 | |
|
|
66 | |
|
|
67 | |
|
Objective 3.04 Create Linked Files |
|
|
68 | |
|
|
68 | |
|
|
68 | |
|
Objective 3.05 Modify Ownership and Permissions |
|
|
69 | |
|
|
69 | |
|
Changing Ownership with chown and chgrp |
|
|
70 | |
|
Defining Permissions, Octally |
|
|
71 | |
|
Permissions on a Soft Link |
|
|
71 | |
|
Permissions on a Hard Link |
|
|
72 | |
|
Changing Permissions with chmod |
|
|
72 | |
|
The SUID, SLID, and Sticky Bits |
|
|
73 | |
|
|
73 | |
|
|
74 | |
|
|
74 | |
|
Defining Default Permissions with umask |
|
|
74 | |
|
Objective 3.06 Shell Command Management |
|
|
75 | |
|
|
75 | |
|
|
76 | |
|
|
76 | |
|
|
76 | |
|
|
78 | |
|
|
79 | |
|
Escaping Special Characters |
|
|
79 | |
|
Objective 3.07 Create, Modify, and Run Basic Scripts |
|
|
80 | |
|
|
80 | |
|
Making a Shell Script Executable |
|
|
81 | |
|
|
81 | |
|
|
82 | |
|
|
84 | |
|
4 Media, Process, and Package Management |
|
|
87 | |
|
Objective 4.01 Manage Storage Devices and Filesystems |
|
|
88 | |
|
The Filesystem Hierarchy Standard |
|
|
88 | |
|
|
90 | |
|
|
91 | |
|
|
92 | |
|
|
93 | |
|
Objective 4.02 Mount Locally and Remotely |
|
|
93 | |
|
|
94 | |
|
Mounting a Shared NFS Directory |
|
|
94 | |
|
Mounting a Shared Samba/CIFS Directory |
|
|
94 | |
|
Objective 4.03 Back Up and Restore Data |
|
|
95 | |
|
Tape Archives and Compression with tar |
|
|
95 | |
|
Input and Output with cpio |
|
|
96 | |
|
Objective 4.04 Use Recordable Media |
|
|
96 | |
|
|
97 | |
|
|
98 | |
|
Objective 4.05 Manage Runlevels |
|
|
99 | |
|
|
99 | |
|
Setting the Default Runlevel |
|
|
100 | |
|
|
101 | |
|
Services in Each Runlevel |
|
|
101 | |
|
Other Initialization Scripts |
|
|
101 | |
|
Objective 4.06 Learn Process Management |
|
|
101 | |
|
Process Collections with ps |
|
|
101 | |
|
Core Kernel and init Processes |
|
|
102 | |
|
Stopping and Restarting a Job |
|
|
103 | |
|
|
105 | |
|
Listing Open Files with Isof |
|
|
105 | |
|
|
106 | |
|
Running Jobs in the Background: &, bg, jobs, fg |
|
|
106 | |
|
|
106 | |
|
Objective 4.07 Identify Package Problems and Solve with Updates |
|
|
107 | |
|
|
107 | |
|
|
108 | |
|
|
108 | |
|
|
110 | |
|
|
110 | |
|
|
111 | |
|
|
113 | |
|
5 User and Service Management |
|
|
115 | |
|
Objective 5.01 Understand Network Troubleshooting |
|
|
116 | |
|
Confirming Connectivity with ping |
|
|
116 | |
|
Reviewing Network Connections with netstat |
|
|
117 | |
|
Tracing a Network Path with traceroute |
|
|
118 | |
|
Objective 5.02 Administer with Remote Management Tools |
|
|
119 | |
|
|
120 | |
|
|
121 | |
|
Objective 5.03 Configure Printer Systems |
|
|
122 | |
|
|
122 | |
|
The Common Unix Printing System |
|
|
123 | |
|
|
124 | |
|
Checking Print Queues and Spools |
|
|
124 | |
|
|
125 | |
|
Objective 5.04 Control Mail Servers |
|
|
126 | |
|
|
126 | |
|
|
127 | |
|
Objective 5.05 Understand Text-based Mail Clients |
|
|
127 | |
|
|
127 | |
|
|
128 | |
|
Objective 5.06 Administrative Job Management |
|
|
129 | |
|
Standard and User cron Jobs |
|
|
129 | |
|
|
131 | |
|
Objective 5.07 Manage User Accounts |
|
|
132 | |
|
User and Group Configuration Files |
|
|
132 | |
|
Adding User Accounts in Configuration Files |
|
|
134 | |
|
Adding Users and Groups from the Command Line |
|
|
135 | |
|
User and Group Management Commands |
|
|
135 | |
|
|
136 | |
|
|
136 | |
|
|
136 | |
|
Managing Users and Groups with Quotas |
|
|
137 | |
|
Objective 5.08 Configure the Network Information Service |
|
|
138 | |
|
Basic NIS Client Configuration |
|
|
138 | |
|
|
138 | |
|
|
139 | |
|
|
140 | |
|
|
140 | |
|
|
142 | |
III Configuring Linux Clients and Servers |
|
145 | |
|
6 Basic Client Configuration |
|
|
147 | |
|
Objective 6.01 Set Up Environment Variables |
|
|
148 | |
|
Objective 6.02 Configure Mounted Directories |
|
|
149 | |
|
|
150 | |
|
Configuring Local Mounts in /etc/fstab |
|
|
153 | |
|
Configuring Network Mounts in /etc/fstab |
|
|
154 | |
|
|
155 | |
|
Objective 6.03 Work Client Network Settings |
|
|
155 | |
|
|
155 | |
|
Network Client Configuration Files |
|
|
157 | |
|
Objective 6.04 Manage a Network Card |
|
|
158 | |
|
|
158 | |
|
Associated Configuration Files |
|
|
159 | |
|
|
161 | |
|
Objective 6.05 Implement Name Resolution |
|
|
161 | |
|
|
162 | |
|
|
162 | |
|
|
163 | |
|
|
163 | |
|
Objective 6.06 Work with Log Files |
|
|
165 | |
|
As Defined in /etc/syslog.conf |
|
|
165 | |
|
Logs in the /var/log Directory |
|
|
167 | |
|
|
168 | |
|
|
169 | |
|
Objective 6.07 Use Makefiles |
|
|
169 | |
|
Compiling Drivers and Other Packages |
|
|
170 | |
|
|
170 | |
|
Objective 6.08 Configure the X Window System |
|
|
171 | |
|
The X Window Server, Old and New |
|
|
171 | |
|
Different Meanings for Client and Server |
|
|
172 | |
|
X Window Configuration Tools |
|
|
172 | |
|
The X Window Configuration File |
|
|
174 | |
|
|
174 | |
|
Configuring the X Window System from the Command Line |
|
|
174 | |
|
|
175 | |
|
|
176 | |
|
|
178 | |
|
7 Basic Server Configuration |
|
|
181 | |
|
Objective 7.01 Implement Basic Routing and Subnetting |
|
|
182 | |
|
|
182 | |
|
|
183 | |
|
|
184 | |
|
Objective 7.02 Configure Basic Network Server Services |
|
|
186 | |
|
|
186 | |
|
|
187 | |
|
|
187 | |
|
|
188 | |
|
|
189 | |
|
|
189 | |
|
Dynamic Host Configuration Protocol |
|
|
190 | |
|
|
191 | |
|
Objective 7.03 Configure Samba |
|
|
192 | |
|
The Basic Configuration File |
|
|
193 | |
|
|
194 | |
|
Samba Configuration Commands |
|
|
195 | |
|
Objective 7.04 Configure Apache |
|
|
197 | |
|
The Structure of Apache Directories |
|
|
197 | |
|
Associated Configuration Files |
|
|
198 | |
|
|
199 | |
|
Main Server Configuration |
|
|
200 | |
|
|
200 | |
|
Control Through .htaccess |
|
|
201 | |
|
|
201 | |
|
Objective 7.05 Set Up Linux Print Services |
|
|
202 | |
|
The Line Printer, Next Generation Service |
|
|
202 | |
|
The Common Unix Printing System |
|
|
203 | |
|
|
204 | |
|
The cupsd.conf Configuration File |
|
|
204 | |
|
CUPS Service Control Commands |
|
|
206 | |
|
Sharing Printers with Samba |
|
|
206 | |
|
Objective 7.06 Apply Basic Printer Permissions |
|
|
208 | |
|
Limiting Access by Address |
|
|
208 | |
|
|
208 | |
|
|
209 | |
|
|
210 | |
|
|
212 | |
IV Securing Accounts and Services |
|
215 | |
|
|
217 | |
|
Objective 8.01 Manage User Accounts |
|
|
218 | |
|
|
218 | |
|
Deleting Accounts While Keeping the Data |
|
|
220 | |
|
Deactivating Regular Accounts |
|
|
221 | |
|
|
221 | |
|
Objective 8.02 Control Administrative Accounts |
|
|
222 | |
|
Regular and Administrative Accounts |
|
|
223 | |
|
Temporary Administrative Access with su |
|
|
223 | |
|
Administrative Privileges with sudo |
|
|
224 | |
|
Objective 8.03 Set Up Security Environment Files |
|
|
225 | |
|
Users as Administrators in /etc/sudoers |
|
|
225 | |
|
|
226 | |
|
Pluggable Authentication Module User Limits |
|
|
228 | |
|
|
230 | |
|
Server Limits with /etc/hosts.allow and /etc/hosts.deny |
|
|
231 | |
|
Objective 8.04 Work with Special File Permissions |
|
|
232 | |
|
Identifying Files with Specialized Permissions |
|
|
233 | |
|
Preventing Specialized Permissions |
|
|
233 | |
|
Immutability Protects Files |
|
|
234 | |
|
Special Group Directories |
|
|
235 | |
|
Objective 8.05 Configure Password Policies |
|
|
236 | |
|
The Shadow Password Suite |
|
|
236 | |
|
|
237 | |
|
|
237 | |
|
PAM and Password Complexity |
|
|
238 | |
|
Objective 8.06 Promote User-level Security |
|
|
239 | |
|
|
239 | |
|
Memory Usage and Process Limits with ulimit |
|
|
241 | |
|
|
242 | |
|
|
243 | |
|
|
245 | |
|
|
247 | |
|
Objective 9.01 Configure Encryption |
|
|
248 | |
|
|
249 | |
|
|
250 | |
|
|
250 | |
|
|
250 | |
|
Objective 9.02 Detect Intrusion Attempts |
|
|
252 | |
|
|
252 | |
|
|
253 | |
|
|
253 | |
|
Checking Up on Users with last and utmpdump |
|
|
254 | |
|
Objective 9.03 Understand Intrusion Detection Systems |
|
|
255 | |
|
|
256 | |
|
|
256 | |
|
|
257 | |
|
Objective 9.04 Decipher Basic Firewall Configurations |
|
|
258 | |
|
|
259 | |
|
|
260 | |
|
Objective 9.05 Audit Key Security Files |
|
|
264 | |
|
Security-related /etc/ Configuration Files |
|
|
264 | |
|
The Internet Super Server |
|
|
264 | |
|
|
266 | |
|
Other Security Configuration Issues |
|
|
266 | |
|
Objective 9.06 Identify File Corruption |
|
|
267 | |
|
|
267 | |
|
|
268 | |
|
Checking Download Integrity |
|
|
268 | |
|
|
269 | |
|
|
270 | |
|
|
271 | |
V An Overview of Linux Documentation |
|
273 | |
|
10 Documentation and Configuration |
|
|
275 | |
|
Objective 10.01 Document a System Performance Baseline |
|
|
276 | |
|
Display Linux Performance with top |
|
|
276 | |
|
System Activity Reports with sar |
|
|
277 | |
|
Memory Statistics with vmstat |
|
|
278 | |
|
Review the Process Tree with pstree |
|
|
278 | |
|
Objective 10.02 Create Installation, Configuration, and Security Management Procedures |
|
|
280 | |
|
Document the Installation Configuration |
|
|
280 | |
|
Back Up Configuration Files |
|
|
280 | |
|
Set Up Security Procedures |
|
|
281 | |
|
Objective 10.03 Document the Installed Configuration |
|
|
281 | |
|
|
281 | |
|
Document Compiled Package Options |
|
|
284 | |
|
|
284 | |
|
Set Up Consistent Networking |
|
|
285 | |
|
Create Maintenance Procedures |
|
|
285 | |
|
When to Update the Kernel |
|
|
285 | |
|
Objective 10.04 Troubleshoot System and Application Errors with Logs |
|
|
286 | |
|
Monitoring Logs with head and tail |
|
|
286 | |
|
Searching Through Logs with grep |
|
|
286 | |
|
Objective 10.05 Access System Documentation |
|
|
287 | |
|
|
287 | |
|
|
288 | |
|
|
289 | |
|
|
289 | |
|
|
290 | |
|
|
290 | |
|
|
292 | |
VI Hardware Issues |
|
295 | |
|
|
297 | |
|
Objective 11.01 Describe Common Hardware Components |
|
|
298 | |
|
|
298 | |
|
|
299 | |
|
|
299 | |
|
|
299 | |
|
|
300 | |
|
|
300 | |
|
|
300 | |
|
|
301 | |
|
|
302 | |
|
|
302 | |
|
|
302 | |
|
insmod, rmmod, and modprobe |
|
|
303 | |
|
Hardware Compatibility Lists |
|
|
303 | |
|
Objective 11.02 Diagnose Hardware Issues |
|
|
304 | |
|
Hardware Detected in /proc |
|
|
304 | |
|
|
304 | |
|
Using a Live CD as a Rescue Disk |
|
|
305 | |
|
|
306 | |
|
Hardware Detection Commands |
|
|
307 | |
|
|
307 | |
|
|
308 | |
|
Kernel Hardware Boot Parameters |
|
|
309 | |
|
Objective 11.03 Understand Hardware Power Management |
|
|
310 | |
|
Working with Advanced Power Management |
|
|
310 | |
|
Managing the Advanced Configuration and Power Interface |
|
|
311 | |
|
Objective 11.04 Identify and Configure Removable System Hardware |
|
|
311 | |
|
|
312 | |
|
|
312 | |
|
|
312 | |
|
Objective 11.05 Identify and Configure Mass Storage Devices |
|
|
313 | |
|
|
313 | |
|
Traditional Internal PC Drives |
|
|
313 | |
|
|
314 | |
|
|
315 | |
|
|
315 | |
|
|
315 | |
|
|
315 | |
|
|
316 | |
|
|
316 | |
|
|
316 | |
|
|
317 | |
|
|
319 | |
VII Appendixes |
|
321 | |
|
|
323 | |
|
Mike Meyers' Certification Passport CD-ROM Instructions |
|
|
323 | |
|
|
323 | |
|
Installing and Running Wine |
|
|
323 | |
|
Installing and Running Master Exam |
|
|
324 | |
|
|
327 | |
|
|
328 | |
|
|
328 | |
|
Learn Key Technical Support |
|
|
328 | |
|
|
328 | |
|
|
329 | |
|
|
329 | |
|
Red Hat Certified Technician (RHCT) |
|
|
329 | |
|
Red Hat Certified Engineer (RHCE) |
|
|
330 | |
|
Red Hat Certified Security Specialist (RHCSS) |
|
|
330 | |
|
Red Hat Certified Datacenter Specialist (RHCDS) |
|
|
330 | |
|
Red Hat Certified Architect (RHCA) |
|
|
331 | |
|
Novell/SUSE Certifications |
|
|
331 | |
|
Novell Certified Linux Professional (CLP) |
|
|
332 | |
|
Novell Certified Linux Engineer (CLE) |
|
|
332 | |
|
Linux Professional Institute (LPI) |
|
|
332 | |
|
|
333 | |
|
|
333 | |
|
|
333 | |
|
C Installing CentOS-5, Step by Step |
|
|
335 | |
|
|
335 | |
|
|
336 | |
|
D Testing Linux with VMware |
|
|
343 | |
|
|
344 | |
|
Installing VMware Server on Microsoft Windows |
|
|
345 | |
|
Installing VMware Server on Ubuntu Dapper Drake |
|
|
346 | |
|
Preparing VMware for Linux Installation |
|
|
348 | |
|
|
352 | |
Glossary |
|
353 | |
Index |
|
377 | |