Acknowledgments |
|
xx | |
Introduction |
|
xxi | |
Who This Book Is For |
|
xxii | |
How This Book Is Organized |
|
xxii | |
Part I: Before Installation |
|
xxii | |
Part II: During Installation |
|
xxiii | |
Part III: Running Linux |
|
xxiii | |
Part IV: Basic Administration |
|
xxiii | |
Part V: Server Solutions |
|
xxiii | |
What You Need to Use This Book |
|
xxiv | |
What's on the Companion CD-ROM |
|
xxiv | |
Where to Go from Here |
|
xxiv | |
|
Part I Before Installation |
|
|
|
|
3 | (10) |
|
|
4 | (6) |
|
|
4 | (1) |
|
|
5 | (1) |
|
|
6 | (1) |
|
|
7 | (1) |
|
|
8 | (1) |
|
|
9 | (1) |
|
What Makes Linux Different? |
|
|
10 | (2) |
|
|
12 | (1) |
|
Which Distribution Is Right for You? |
|
|
13 | (10) |
|
|
13 | (1) |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
16 | (1) |
|
|
17 | (1) |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
|
20 | (1) |
|
Special-Purpose Distributions |
|
|
21 | (1) |
|
Standalone, Dual Boot, or Live CD? |
|
|
21 | (1) |
|
|
22 | (1) |
|
Preparing for Installation |
|
|
23 | (12) |
|
Deciding on the Kind of Installation |
|
|
23 | (4) |
|
Choosing a server installation |
|
|
24 | (1) |
|
Choosing a personal desktop installation |
|
|
25 | (1) |
|
Choosing a workstation installation |
|
|
26 | (1) |
|
Choosing a custom installation |
|
|
26 | (1) |
|
Getting System Information |
|
|
27 | (3) |
|
What do you need to know? |
|
|
27 | (2) |
|
Sleuthing your system hardware from Windows |
|
|
29 | (1) |
|
Finding compatible hardware lists |
|
|
29 | (1) |
|
|
30 | (2) |
|
|
30 | (1) |
|
Gathering the installation and restore disks |
|
|
31 | (1) |
|
Making backups on Windows |
|
|
31 | (1) |
|
|
32 | (3) |
|
Part II During Installation |
|
|
|
Getting Linux and Starting to Install |
|
|
35 | (10) |
|
|
35 | (4) |
|
Download, buy, or acquire? |
|
|
36 | (1) |
|
Creating CDs from ISO files |
|
|
37 | (1) |
|
Creating ISO files for later burning |
|
|
38 | (1) |
|
Understanding the Boot Process |
|
|
39 | (2) |
|
|
40 | (1) |
|
|
40 | (1) |
|
Beginning the Installation |
|
|
41 | (1) |
|
|
41 | (3) |
|
|
44 | (1) |
|
Partitioning Your Hard Drive |
|
|
45 | (12) |
|
|
46 | (2) |
|
Physical media versus mount points |
|
|
46 | (1) |
|
Mounting and unmounting file systems |
|
|
47 | (1) |
|
Logical versus Physical Partitions |
|
|
48 | (1) |
|
|
49 | (1) |
|
|
50 | (1) |
|
Automatic Partitioning Schemes |
|
|
50 | (4) |
|
|
54 | (1) |
|
|
55 | (2) |
|
|
57 | (18) |
|
Users, System Users, and Groups |
|
|
57 | (6) |
|
The user database: /etc/passwd |
|
|
58 | (1) |
|
|
59 | (1) |
|
The group database: /etc/group |
|
|
60 | (3) |
|
|
63 | (1) |
|
Administering Users and Groups Graphically |
|
|
63 | (4) |
|
Determining Your Account Information |
|
|
67 | (1) |
|
Switching Users with the su Command |
|
|
68 | (1) |
|
|
69 | (4) |
|
Changing your own password and account information |
|
|
69 | (1) |
|
Administering passwords and account information as root |
|
|
70 | (1) |
|
|
71 | (1) |
|
|
71 | (2) |
|
|
73 | (2) |
|
Setting Network Information |
|
|
75 | (16) |
|
|
75 | (3) |
|
|
75 | (1) |
|
Understanding IP addresses |
|
|
76 | (1) |
|
|
77 | (1) |
|
Manual versus dynamic settings |
|
|
77 | (1) |
|
Connecting to the Internet |
|
|
78 | (11) |
|
Connecting to a local area network |
|
|
78 | (5) |
|
Direct Internet connections |
|
|
83 | (3) |
|
|
86 | (3) |
|
|
89 | (1) |
|
You Can Always Do It Later |
|
|
89 | (1) |
|
|
89 | (2) |
|
|
91 | (22) |
|
The Boot Process in Detail |
|
|
91 | (1) |
|
Linux and Windows Together |
|
|
92 | (1) |
|
Backing Up Your Windows Data |
|
|
93 | (1) |
|
|
94 | (2) |
|
Partitioning Your Hard Drive |
|
|
96 | (6) |
|
Installing Linux on the New Partition |
|
|
102 | (5) |
|
Selecting an Operating System at Boot Time |
|
|
107 | (2) |
|
|
109 | (4) |
|
|
|
|
113 | (30) |
|
|
113 | (1) |
|
|
114 | (11) |
|
|
114 | (8) |
|
Using the Nautilus file manager and Web browser |
|
|
122 | (2) |
|
|
124 | (1) |
|
Managing multiple workspaces |
|
|
125 | (1) |
|
|
125 | (11) |
|
The Fedora Core KDE desktop |
|
|
126 | (1) |
|
|
127 | (8) |
|
|
135 | (1) |
|
Using Konqueror's file manager and Web browser |
|
|
135 | (1) |
|
GNOME and KDE Interoperability |
|
|
136 | (1) |
|
The Essential Applications |
|
|
137 | (5) |
|
|
137 | (2) |
|
|
139 | (2) |
|
|
141 | (1) |
|
|
142 | (1) |
|
Customizing GNOME and KDE |
|
|
143 | (18) |
|
|
143 | (13) |
|
Customizing your desktop background |
|
|
145 | (2) |
|
|
147 | (6) |
|
|
153 | (3) |
|
|
156 | (4) |
|
|
156 | (4) |
|
|
160 | (1) |
|
|
161 | (22) |
|
|
162 | (1) |
|
|
163 | (1) |
|
|
164 | (5) |
|
|
165 | (1) |
|
|
166 | (2) |
|
|
168 | (1) |
|
Some Common Useful Commands |
|
|
169 | (2) |
|
|
169 | (1) |
|
|
169 | (1) |
|
|
170 | (1) |
|
|
170 | (1) |
|
|
171 | (1) |
|
|
171 | (3) |
|
Redirecting input and output |
|
|
171 | (2) |
|
|
173 | (1) |
|
A (Very) Brief Introduction to Shell Programming |
|
|
174 | (7) |
|
|
175 | (1) |
|
|
175 | (1) |
|
|
176 | (5) |
|
|
181 | (2) |
|
Internet Solutions in Linux |
|
|
183 | (24) |
|
Browsing the World Wide Web |
|
|
183 | (6) |
|
|
184 | (2) |
|
|
186 | (3) |
|
|
189 | (10) |
|
|
190 | (1) |
|
|
190 | (4) |
|
|
194 | (2) |
|
|
196 | (1) |
|
|
197 | (2) |
|
|
199 | (4) |
|
|
199 | (1) |
|
|
200 | (1) |
|
|
201 | (2) |
|
|
203 | (4) |
|
Part IV Basic Administration |
|
|
|
User and File Management Solutions |
|
|
207 | (20) |
|
Understanding User and Superuser |
|
|
207 | (4) |
|
|
208 | (1) |
|
|
209 | (1) |
|
|
210 | (1) |
|
|
210 | (1) |
|
Creating New User Accounts |
|
|
211 | (4) |
|
|
211 | (2) |
|
|
213 | (2) |
|
Creating and Assigning Users to Groups |
|
|
215 | (3) |
|
|
216 | (1) |
|
Assigning users to groups |
|
|
217 | (1) |
|
|
218 | (6) |
|
A graphical look at permissions |
|
|
219 | (2) |
|
Checking permissions from the terminal |
|
|
221 | (1) |
|
|
222 | (2) |
|
|
224 | (1) |
|
|
224 | (1) |
|
|
224 | (1) |
|
Changing ownership with graphical methods |
|
|
224 | (1) |
|
Setuid and Setgid Programs |
|
|
225 | (1) |
|
|
226 | (1) |
|
|
227 | (22) |
|
What Do You Need to Back Up? |
|
|
227 | (3) |
|
|
227 | (2) |
|
|
229 | (1) |
|
|
229 | (1) |
|
|
230 | (2) |
|
|
230 | (1) |
|
|
231 | (1) |
|
|
231 | (1) |
|
|
231 | (1) |
|
|
231 | (1) |
|
|
232 | (1) |
|
|
232 | (5) |
|
|
232 | (1) |
|
|
233 | (1) |
|
Listing tar file contents |
|
|
233 | (1) |
|
|
234 | (1) |
|
Deleting files from a tar archive |
|
|
235 | (1) |
|
Refreshing or replacing files in a tar archive |
|
|
235 | (1) |
|
|
236 | (1) |
|
|
236 | (1) |
|
Controlling a Tape Drive with mt |
|
|
237 | (1) |
|
|
238 | (1) |
|
KDat: A Graphical Tool for Tape Backups |
|
|
239 | (4) |
|
|
241 | (1) |
|
|
241 | (1) |
|
Restoring files and folders |
|
|
241 | (1) |
|
Creating a backup profile |
|
|
241 | (1) |
|
Configuring user preferences |
|
|
242 | (1) |
|
|
243 | (2) |
|
Commercial Backup and Recovery Packages |
|
|
245 | (1) |
|
Solutions for Common Backup Issues |
|
|
246 | (2) |
|
|
246 | (1) |
|
Backing up OpenOffice.org documents |
|
|
246 | (1) |
|
Copying an entire partition |
|
|
247 | (1) |
|
|
248 | (1) |
|
|
248 | (1) |
|
Software Management Solutions |
|
|
249 | (18) |
|
|
249 | (11) |
|
Acquiring the right software packages |
|
|
250 | (1) |
|
Installing and upgrading with RPM |
|
|
251 | (2) |
|
Verifying a package with RPM |
|
|
253 | (1) |
|
Querying a package with RPM |
|
|
254 | (3) |
|
|
257 | (3) |
|
|
260 | (5) |
|
|
261 | (1) |
|
Installing packages with APT |
|
|
262 | (1) |
|
|
262 | (1) |
|
Upgrading packages with APT |
|
|
262 | (1) |
|
Removing packages with APT |
|
|
263 | (1) |
|
|
263 | (1) |
|
Querying packages with APT |
|
|
264 | (1) |
|
|
265 | (2) |
|
Installing and Removing Hardware |
|
|
267 | (20) |
|
How Linux Handles Hardware |
|
|
267 | (5) |
|
Loading device drivers at boot time |
|
|
269 | (1) |
|
|
270 | (1) |
|
Finding new hardware dynamically with hotplugging |
|
|
271 | (1) |
|
Getting Information About Your Hardware Manually |
|
|
272 | (12) |
|
Locating, listing, and activating PCI devices |
|
|
273 | (4) |
|
Locating, listing, and activating USB devices |
|
|
277 | (1) |
|
Getting hardware information from the /proc and /sys file systems |
|
|
278 | (6) |
|
Getting Information from System Logs |
|
|
284 | (2) |
|
|
286 | (1) |
|
Automation and Timed Execution |
|
|
287 | (8) |
|
Overview of Scheduling Options |
|
|
287 | (1) |
|
|
288 | (2) |
|
|
289 | (1) |
|
|
289 | (1) |
|
|
290 | (1) |
|
|
290 | (1) |
|
|
290 | (3) |
|
|
290 | (1) |
|
Some tips for using cron effectively |
|
|
291 | (1) |
|
Other cron and crontab functions |
|
|
292 | (1) |
|
Controlling access to cron |
|
|
293 | (1) |
|
|
293 | (1) |
|
|
293 | (2) |
|
|
295 | (26) |
|
Linux-to-Windows File Sharing |
|
|
295 | (21) |
|
Preparing to set up a SAMBA server |
|
|
295 | (1) |
|
|
296 | (1) |
|
Configuring the SAMBA server |
|
|
296 | (15) |
|
Setting up the Windows clients |
|
|
311 | (3) |
|
|
314 | (2) |
|
Setting up Macintosh clients |
|
|
316 | (1) |
|
Linux-to-Linux File Sharing |
|
|
316 | (4) |
|
|
316 | (3) |
|
|
319 | (1) |
|
|
320 | (1) |
|
Adjusting Your Internet Settings |
|
|
321 | (16) |
|
Overview of the Linux TCP/IP System |
|
|
321 | (3) |
|
Networking from an Administrator's Perspective |
|
|
324 | (3) |
|
Lookup order in /etc/nsswitch.conf |
|
|
325 | (1) |
|
Name resolution in /etc/resolv.conf |
|
|
326 | (1) |
|
Using Graphical Network Managers |
|
|
327 | (4) |
|
Configuring Network Settings from the Command Line |
|
|
331 | (4) |
|
Using the ifconfig command |
|
|
332 | (1) |
|
|
333 | (2) |
|
|
335 | (2) |
|
|
337 | (28) |
|
|
337 | (2) |
|
|
339 | (15) |
|
Secure physical access to the system |
|
|
339 | (1) |
|
|
339 | (2) |
|
|
341 | (1) |
|
Don't use the superuser account |
|
|
342 | (1) |
|
Don't make files executable |
|
|
342 | (1) |
|
Use permissions and ownership |
|
|
342 | (1) |
|
Log out or use a screensaver |
|
|
342 | (1) |
|
Use SSH rather than Telnet for remote access |
|
|
342 | (1) |
|
Prefer encrypted versions of other protocols |
|
|
343 | (1) |
|
Prefer open source software |
|
|
344 | (1) |
|
|
344 | (1) |
|
Keep up with patches and upgrades from your distribution |
|
|
344 | (4) |
|
Check for tampering with checksums |
|
|
348 | (1) |
|
Check for tampering with rpm |
|
|
348 | (2) |
|
Uninstall services you don't need |
|
|
350 | (2) |
|
Deactivate services you don't need but don't want to uninstall |
|
|
352 | (1) |
|
Deactivate inetd services you don't need |
|
|
353 | (1) |
|
Uninstall any other software you don't need |
|
|
353 | (1) |
|
|
353 | (1) |
|
|
354 | (1) |
|
Encrypt your files and protect your identity with GnuPG |
|
|
354 | (1) |
|
Trust but verify, or it's not paranoia if they're really out to get you |
|
|
354 | (1) |
|
|
354 | (7) |
|
|
355 | (2) |
|
|
357 | (1) |
|
|
358 | (1) |
|
Uploading and downloading keys |
|
|
359 | (1) |
|
Digital signatures and encryption |
|
|
359 | (1) |
|
|
360 | (1) |
|
Learning More About Security |
|
|
361 | (1) |
|
|
362 | (3) |
|
|
|
|
365 | (14) |
|
Getting and Installing Apache |
|
|
365 | (1) |
|
|
366 | (10) |
|
|
367 | (5) |
|
|
372 | (4) |
|
Tuning Apache's Performance |
|
|
376 | (2) |
|
|
378 | (1) |
|
|
379 | (22) |
|
How Electronic Mail Works |
|
|
379 | (2) |
|
Installing and Configuring Postfix |
|
|
381 | (7) |
|
Step 1: Install the software |
|
|
381 | (1) |
|
Step 2: Configure Postfix |
|
|
382 | (4) |
|
Step 3: Turn off Sendmail and turn on Postfix |
|
|
386 | (1) |
|
|
387 | (1) |
|
The Dovecot Mail Delivery Agent |
|
|
388 | (6) |
|
|
389 | (1) |
|
Step 2: Configure Dovecot |
|
|
389 | (2) |
|
Step 3: Start and test the server |
|
|
391 | (1) |
|
Step 4: Configure Postfix and Dovecot to start at boot |
|
|
392 | (2) |
|
|
394 | (3) |
|
|
397 | (1) |
|
|
398 | (3) |
|
|
401 | (16) |
|
|
401 | (2) |
|
Installing and Configuring Squid |
|
|
403 | (8) |
|
Configuring Squid to start at boot |
|
|
411 | (1) |
|
Configuring Squid Clients |
|
|
411 | (3) |
|
Configuring a Web browser |
|
|
412 | (1) |
|
Configuring general network settings |
|
|
413 | (1) |
|
Access Control with Squid |
|
|
414 | (1) |
|
|
415 | (2) |
Index |
|
417 | (32) |
End-User License Agreement |
|
449 | |