Книга SUSE Linux Professional Administration Guide

Книга SUSE Linux Professional Administration Guide

Цена: 135 р.

Товар временно закончился

Авторы: SuSE Team
ISBN: 3-89990-117-7
Издатель: SuSE Linux AG
Издание: Формат: 70x100/16 Мягкая обложка, 445 стр.
Код товара: lc1110

SusE Linux Professional Administration Guide

Содержание:

I Installation 5

1 Installation 7
1.1 Text-Based Installation with YaST . . . . . . . . . . . . . . . . . 8
1.1.1 The Start Screen . . . . . . . . . . . . . . . . . . . . . . . 8
1.1.2 The Basis: linuxrc . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Starting SUSE LINUX . . . . . . . . . . . . . . . . . . . . . . . . 13
1.2.1 The Graphical SUSE Screen . . . . . . . . . . . . . . . . 14
1.3 Special Installation Procedures . . . . . . . . . . . . . . . . . . 15
1.3.1 Installation Without CD-ROM Support . . . . . . . . . 15
1.3.2 Installation from a Network Source . . . . . . . . . . . 15
1.4 Tips and Tricks . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.4.1 Creating a Boot Disk in DOS . . . . . . . . . . . . . . . 17
1.4.2 Creating a Boot Disk in a UNIX-Type System . . . . . . 19
1.4.3 Booting from a Floppy Disk (SYSLINUX) . . . . . . . . 20
1.4.4 Using CD 2 for Booting . . . . . . . . . . . . . . . . . . 20
1.4.5 Supported CD-ROM Drives . . . . . . . . . . . . . . . . 21
1.5 ATAPI CD-ROM Hangs While Reading . . . . . . . . . . . . . 21
1.6 Permanent Device File Names for SCSI Devices . . . . . . . . . 22
1.7 Partitioning for Experts . . . . . . . . . . . . . . . . . . . . . . . 23
1.7.1 Size of the Swap Partition . . . . . . . . . . . . . . . . . 23
1.7.2 Suggested Partitioning Schemes . . . . . . . . . . . . . 23
1.7.3 Optimization . . . . . . . . . . . . . . . . . . . . . . . . 25
1.8 LVM Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.8.1 Logical Volume Manager (LVM) . . . . . . . . . . . . . 28
1.9 Soft RAID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
1.9.1 Common RAID Levels . . . . . . . . . . . . . . . . . . . 36
1.9.2 Soft RAID Configuration with YaST . . . . . . . . . . . 36
1.9.3 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 37
1.9.4 For More Information . . . . . . . . . . . . . . . . . . . 37

2 Updating the System and Package Management 39
2.1 Updating SUSE LINUX . . . . . . . . . . . . . . . . . . . . . . . 40
2.1.1 Preparations . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.1.2 Updating with YaST . . . . . . . . . . . . . . . . . . . . 42
2.1.3 Manual Update . . . . . . . . . . . . . . . . . . . . . . . 42
2.1.4 Updating Individual Packages . . . . . . . . . . . . . . 44
2.2 Software Changes from Version to Version . . . . . . . . . . . . 45
2.2.1 From 7.3 to 8.0 . . . . . . . . . . . . . . . . . . . . . . . . 45
2.2.2 From 8.0 to 8.1 . . . . . . . . . . . . . . . . . . . . . . . . 46
2.2.3 From 8.1 to 8.2 . . . . . . . . . . . . . . . . . . . . . . . . 48
2.2.4 From 8.2 to 9.0 . . . . . . . . . . . . . . . . . . . . . . . . 49
2.2.5 From 9.0 to 9.1 . . . . . . . . . . . . . . . . . . . . . . . . 49
2.3 RPM .the Package Manager . . . . . . . . . . . . . . . . . . . 52
2.3.1 Verifying Package Authenticity . . . . . . . . . . . . . . 53
2.3.2 Managing Packages: Install, Update, and Uninstall . . 53
2.3.3 RPM and Patches . . . . . . . . . . . . . . . . . . . . . . 55
2.3.4 RPM Queries . . . . . . . . . . . . . . . . . . . . . . . . 57
2.3.5 Installing and Compiling Source Packages . . . . . . . 59
2.3.6 Compiling RPM Packages with build . . . . . . . . . . 61
2.3.7 Tools for RPM Archives and the RPM Database . . . . 62

II Configuration 63

3 YaST in Text Mode (ncurses) 65
3.1 Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
3.1.1 The YaST Control Center . . . . . . . . . . . . . . . . . . 66
3.1.2 The YaST Modules . . . . . . . . . . . . . . . . . . . . . 67
3.2 Restriction of Key Combinations . . . . . . . . . . . . . . . . . 68
3.3 Starting the Individual Modules . . . . . . . . . . . . . . . . . 69
3.4 YaST Online Update . . . . . . . . . . . . . . . . . . . . . . . . 69
3.4.1 The YOU Module . . . . . . . . . . . . . . . . . . . . . . 69
3.4.2 Online Update from the Command Line . . . . . . . . 69

4 The X Window System 71
4.1 Optimizing the Installation of the X Window System . . . . . . 72
4.1.1 Screen Section . . . . . . . . . . . . . . . . . . . . . . . . 74
4.1.2 Device Section . . . . . . . . . . . . . . . . . . . . . . . . 76
4.1.3 Monitor and Modes Section . . . . . . . . . . . . . . . . 77
4.2 Installing and Configuring Fonts . . . . . . . . . . . . . . . . . 78
4.2.1 Font Systems . . . . . . . . . . . . . . . . . . . . . . . . 78
4.3 OpenGL . 3D Configuration . . . . . . . . . . . . . . . . . . . 83
4.3.1 Hardware Support . . . . . . . . . . . . . . . . . . . . . 83
4.3.2 OpenGL Drivers . . . . . . . . . . . . . . . . . . . . . . 84
4.3.3 The Diagnosis Tool 3Ddiag . . . . . . . . . . . . . . . . 85
4.3.4 OpenGL Test Utilities . . . . . . . . . . . . . . . . . . . 85
4.3.5 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 85
4.3.6 Installation Support . . . . . . . . . . . . . . . . . . . . 86
4.3.7 Additional Online Documentation . . . . . . . . . . . . 86

5 Printer Operation 87
5.1 Printing Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
5.1.1 Important Standard Printer Languages . . . . . . . . . 88
5.1.2 Processing Print Jobs . . . . . . . . . . . . . . . . . . . . 88
5.1.3 Various Printing Systems . . . . . . . . . . . . . . . . . 91
5.2 Preconditions for Printing . . . . . . . . . . . . . . . . . . . . . 92
5.2.1 General Requirements . . . . . . . . . . . . . . . . . . . 92
5.2.2 Finding the Right Printer Driver . . . . . . . . . . . . . 92
5.2.3 The Issue with GDI Printers . . . . . . . . . . . . . . . . 94
5.3 Configuring a Printer with YaST . . . . . . . . . . . . . . . . . 96
5.3.1 Print Queues and Configurations . . . . . . . . . . . . . 96
5.3.2 Printer Configuration with YaST: The Basics . . . . . . 96
5.3.3 Automatic Configuration . . . . . . . . . . . . . . . . . 98
5.3.4 Manual Configuration . . . . . . . . . . . . . . . . . . . 98
5.4 Configuring Applications . . . . . . . . . . . . . . . . . . . . . 101
5.5 The CUPS Printing System . . . . . . . . . . . . . . . . . . . . . 102
5.5.1 Naming Conventions . . . . . . . . . . . . . . . . . . . 102
5.5.2 IPP and Server . . . . . . . . . . . . . . . . . . . . . . . 102
5.5.3 Configuration of a CUPS Server . . . . . . . . . . . . . 103
5.5.4 Network Printers . . . . . . . . . . . . . . . . . . . . . . 104
5.5.5 Internal CUPS Print Job Processing . . . . . . . . . . . . 105
5.5.6 Tips and Tricks . . . . . . . . . . . . . . . . . . . . . . . 107
5.6 Printing from Applications . . . . . . . . . . . . . . . . . . . . . 109
5.7 Command-Line Tools for the CUPS Printing System . . . . . . 110
5.7.1 Managing Local Queues . . . . . . . . . . . . . . . . . . 110
5.7.2 Managing Remote Queues . . . . . . . . . . . . . . . . 112
5.7.3 Using Command-Line Tools for CUPS Troubleshooting 113
5.8 Printing in a TCP/IP Network . . . . . . . . . . . . . . . . . . . 114
5.8.1 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 114
5.8.2 Quick Configuration of a Client Machine . . . . . . . . 115
5.8.3 Protocols for Printing in TCP/IP Networks . . . . . . . 116
5.8.4 Filtering for Network Printers . . . . . . . . . . . . . . 124
5.8.5 Remote Printer Troubleshooting . . . . . . . . . . . . . 130
5.8.6 Print Servers Supporting Both LPD and IPP . . . . . . 133

6 Booting and Boot Managers 135
6.1 Booting a PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
6.1.1 Master Boot Record . . . . . . . . . . . . . . . . . . . . . 136
6.1.2 Boot Sectors . . . . . . . . . . . . . . . . . . . . . . . . . 137
6.1.3 Booting DOS or Windows . . . . . . . . . . . . . . . . . 137
6.2 Boot Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
6.3 Map Files, GRUB, and LILO . . . . . . . . . . . . . . . . . . . . 138
6.4 Booting with GRUB . . . . . . . . . . . . . . . . . . . . . . . . . 139
6.4.1 The GRUB Boot Menu . . . . . . . . . . . . . . . . . . . 140
6.4.2 The File device.map . . . . . . . . . . . . . . . . . . . . 144
6.4.3 The File /etc/grub.conf . . . . . . . . . . . . . . . . . . 145
6.4.4 The GRUB Shell . . . . . . . . . . . . . . . . . . . . . . . 145
6.4.5 Setting a Boot Password . . . . . . . . . . . . . . . . . . 146
6.4.6 Boot Problems with GRUB . . . . . . . . . . . . . . . . 147
6.4.7 For More Information . . . . . . . . . . . . . . . . . . . 147
6.5 Uninstalling the Linux Boot Loader . . . . . . . . . . . . . . . . 147
6.5.1 Restoring the MBR (DOS,Win9x, or ME) . . . . . . . . 148
6.5.2 Restoring the MBR of Windows XP . . . . . . . . . . . 148
6.5.3 Restoring the MBR of Windows 2000 . . . . . . . . . . . 148
6.6 Creating Boot CDs . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.6.1 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.6.2 Boot CD with ISOLINUX . . . . . . . . . . . . . . . . . 149

7 Linux on Mobile Devices 151
7.1 PCMCIA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
7.1.1 The Hardware . . . . . . . . . . . . . . . . . . . . . . . . 152
7.1.2 The Software . . . . . . . . . . . . . . . . . . . . . . . . 152
7.1.3 Configuration . . . . . . . . . . . . . . . . . . . . . . . . 154
7.1.4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 156
7.1.5 Installation with PCMCIA . . . . . . . . . . . . . . . . . 160
7.1.6 Other Utilities . . . . . . . . . . . . . . . . . . . . . . . . 161
7.1.7 Updating the Kernel or PCMCIA Package . . . . . . . . 161
7.1.8 For More Information . . . . . . . . . . . . . . . . . . . 162
7.2 SCPM.System Configuration Profile Management . . . . . 162
7.2.1 Basic Terminology and Concepts . . . . . . . . . . . . . 163
7.2.2 The YaST Profile Manager . . . . . . . . . . . . . . . . . 164
7.2.3 Configuring SCPM . . . . . . . . . . . . . . . . . . . . . 164
7.2.4 Creating and Managing Profiles . . . . . . . . . . . . . 164
7.2.5 Switching Configuration Profiles . . . . . . . . . . . . . 165
7.2.6 Advanced Profile Settings . . . . . . . . . . . . . . . . . 166
7.2.7 Profile Selection at Boot . . . . . . . . . . . . . . . . . . 167
7.2.8 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 168
7.3 IrDA. Infrared Data Association . . . . . . . . . . . . . . . . 169
7.3.1 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
7.3.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . 170
7.3.3 Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
7.3.4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 171
7.4 Bluetooth . Wireless Connections . . . . . . . . . . . . . . . . 172
7.4.1 Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
7.4.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
7.4.3 Configuration . . . . . . . . . . . . . . . . . . . . . . . . 172
7.4.4 System Components and Useful Tools . . . . . . . . . . 173
7.4.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 175
7.4.6 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 177
7.4.7 For More Information . . . . . . . . . . . . . . . . . . . 178

8 Power Management 179
8.1 Power Saving Functions . . . . . . . . . . . . . . . . . . . . . . 180
8.2 APM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
8.2.1 The APM Daemon (apmd) . . . . . . . . . . . . . . . . 183
8.2.2 Further Commands . . . . . . . . . . . . . . . . . . . . . 184
8.3 ACPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
8.3.1 ACPI in Action . . . . . . . . . . . . . . . . . . . . . . . 185
8.4 Rest for the Hard Disk . . . . . . . . . . . . . . . . . . . . . . . 190
8.5 powersave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
8.5.1 Configuration of powersave . . . . . . . . . . . . . . . . 192
8.5.2 Configuration of APM and ACPI . . . . . . . . . . . . . 192
8.5.3 Additional ACPI Features . . . . . . . . . . . . . . . . . 194
8.5.4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 195
8.6 The YaST Power Management Module . . . . . . . . . . . . . . 198

III System 203

9 SUSE LINUX on AMD64 Systems 205
9.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
9.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
9.3 Running 32-bit Software . . . . . . . . . . . . . . . . . . . . . . 207
9.4 Software Development in a 64-bit Environment . . . . . . . . . 207
9.5 For More Information . . . . . . . . . . . . . . . . . . . . . . . . 207

10 The Linux Kernel 209
10.1 Kernel Update . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
10.2 Kernel Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
10.3 Kernel Configuration . . . . . . . . . . . . . . . . . . . . . . . . 211
10.3.1 Configuration on the Command Line . . . . . . . . . . 211
10.3.2 Configuration in Text Mode . . . . . . . . . . . . . . . . 212
10.3.3 Configuration in the X Window System . . . . . . . . . 212
10.4 Kernel Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
10.5 Hardware Detection with the Help of hwinfo . . . . . . . . . . 213
10.5.1 Handling Modules . . . . . . . . . . . . . . . . . . . . . 213
10.5.2 /etc/modprobe.conf . . . . . . . . . . . . . . . . . . . . 214
10.5.3 Kmod . the Kernel Module Loader . . . . . . . . . . . 214
10.6 Settings in the Kernel Configuration . . . . . . . . . . . . . . . 215
10.7 Compiling the Kernel . . . . . . . . . . . . . . . . . . . . . . . . 215
10.8 Installing the Kernel . . . . . . . . . . . . . . . . . . . . . . . . 216
10.9 Cleaning Your Hard Disk after Compilation . . . . . . . . . . . 217

11 Special Features of SUSE LINUX 219
11.1 Linux Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
11.1.1 Linux Standard Base (LSB) . . . . . . . . . . . . . . . . 220
11.1.2 File System Hierarchy Standard (FHS) . . . . . . . . . . 220
11.1.3 teTeX . TeX in SUSE LINUX . . . . . . . . . . . . . . . 220
11.1.4 Example Environment for FTP Server . . . . . . . . . . 220
11.1.5 Example Environment for HTTP Server . . . . . . . . . 221
11.2 Hints on Special Software Packages . . . . . . . . . . . . . . . . 221
11.2.1 Package bash and /etc/profile . . . . . . . . . . . . . . 221
11.2.2 cron Package . . . . . . . . . . . . . . . . . . . . . . . . 222
11.2.3 Log Files: the Package logrotate . . . . . . . . . . . . . . 222
11.2.4 Man Pages . . . . . . . . . . . . . . . . . . . . . . . . . . 224
11.2.5 The Command ulimit . . . . . . . . . . . . . . . . . . . 224
11.2.6 The free Command . . . . . . . . . . . . . . . . . . . . . 225
11.2.7 The File /etc/resolv.conf . . . . . . . . . . . . . . . . . . 226
11.2.8 Settings for GNU Emacs . . . . . . . . . . . . . . . . . . 226
11.3 Booting with the Initial Ramdisk . . . . . . . . . . . . . . . . . 227
11.3.1 Concept of the Initial Ramdisk . . . . . . . . . . . . . . 228
11.3.2 The Order of the Booting Process with initrd . . . . . . 228
11.3.3 Boot Loaders . . . . . . . . . . . . . . . . . . . . . . . . 229
11.3.4 Using initrd in SUSE . . . . . . . . . . . . . . . . . . . . 229
11.3.5 Possible Difficulties . Custom Kernels . . . . . . . . . 231
11.3.6 Prospects . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
11.4 linuxrc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
11.4.1 Main Menu . . . . . . . . . . . . . . . . . . . . . . . . . 232
11.4.2 Settings / Preferences . . . . . . . . . . . . . . . . . . . 232
11.4.3 System Information . . . . . . . . . . . . . . . . . . . . 232
11.4.4 Loading Modules . . . . . . . . . . . . . . . . . . . . . . 234
11.4.5 Entering Parameters . . . . . . . . . . . . . . . . . . . . 234
11.4.6 Start Installation / System . . . . . . . . . . . . . . . . . 235
11.4.7 Passing Parameters to linuxrc . . . . . . . . . . . . . . . 236
11.5 The SUSE Rescue System . . . . . . . . . . . . . . . . . . . . . . 238
11.5.1 Starting the Rescue System . . . . . . . . . . . . . . . . 238
11.5.2 Working with the Rescue System . . . . . . . . . . . . . 239
11.6 Virtual Consoles . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
11.7 Keyboard Mapping . . . . . . . . . . . . . . . . . . . . . . . . . 242
11.8 Local Adjustments . I18N and L10N . . . . . . . . . . . . . . 243
11.8.1 Some Examples . . . . . . . . . . . . . . . . . . . . . . . 244
11.8.2 Settings for Language Support . . . . . . . . . . . . . . 245

12 The SUSE LINUX Boot Concept 247
12.1 The init Program . . . . . . . . . . . . . . . . . . . . . . . . . . 248
12.2 Runlevels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
12.3 Changing Runlevels . . . . . . . . . . . . . . . . . . . . . . . . 250
12.4 Init Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
12.4.1 Adding init Scripts . . . . . . . . . . . . . . . . . . . . . 253
12.5 The YaST Runlevel Editor . . . . . . . . . . . . . . . . . . . . . 255
12.6 SuSEconfig and /etc/sysconfig . . . . . . . . . . . . . . . . . . 256
12.7 The YaST sysconfig Editor . . . . . . . . . . . . . . . . . . . . . 258

IV Network 261

13 Linux in the Network 263
13.1 TCP/IP . The Protocol Used by Linux . . . . . . . . . . . . . 264
13.1.1 Layer Model . . . . . . . . . . . . . . . . . . . . . . . . . 265
13.1.2 IP Addresses and Routing . . . . . . . . . . . . . . . . . 268
13.1.3 Domain Name System . . . . . . . . . . . . . . . . . . . 271
13.2 IPv6. The Next Generation Internet . . . . . . . . . . . . . . 272
13.2.1 Advantages of IPv6 . . . . . . . . . . . . . . . . . . . . . 273
13.2.2 The IPv6 Address System . . . . . . . . . . . . . . . . . 274
13.2.3 IPv4 versus IPv6. Moving between the TwoWorlds . 279
13.2.4 For More Information . . . . . . . . . . . . . . . . . . . 281
13.3 Manual Network Configuration . . . . . . . . . . . . . . . . . . 281
13.3.1 Configuration Files . . . . . . . . . . . . . . . . . . . . . 282
13.3.2 Start-Up Scripts . . . . . . . . . . . . . . . . . . . . . . . 288
13.4 Network Integration . . . . . . . . . . . . . . . . . . . . . . . . 289
13.4.1 Requirements . . . . . . . . . . . . . . . . . . . . . . . . 289
13.4.2 Configuration with YaST . . . . . . . . . . . . . . . . . . 289
13.4.3 Hotplug and PCMCIA . . . . . . . . . . . . . . . . . . . 291
13.4.4 Configuring IPv6 . . . . . . . . . . . . . . . . . . . . . . 291
13.5 Routing in SUSE LINUX . . . . . . . . . . . . . . . . . . . . . . 292
13.6 DNS. Domain Name System . . . . . . . . . . . . . . . . . . 293
13.6.1 Starting the Name Server BIND . . . . . . . . . . . . . . 293
13.6.2 The Configuration File /etc/named.conf . . . . . . . . 294
13.6.3 Important Configuration Options . . . . . . . . . . . . 295
13.6.4 The Configuration Section Logging . . . . . . . . . . . 296
13.6.5 Zone Entry Structure . . . . . . . . . . . . . . . . . . . . 297
13.6.6 Structure of Zone Files . . . . . . . . . . . . . . . . . . . 298
13.6.7 Secure Transactions . . . . . . . . . . . . . . . . . . . . . 301
13.6.8 Dynamic Update of Zone Data . . . . . . . . . . . . . . 303
13.6.9 DNSSEC . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
13.6.10 For More Information . . . . . . . . . . . . . . . . . . . 304
13.7 LDAP. A Directory Service . . . . . . . . . . . . . . . . . . . 304
13.7.1 LDAP versus NIS . . . . . . . . . . . . . . . . . . . . . . 306
13.7.2 Structure of an LDAP Directory Tree . . . . . . . . . . . 306
13.7.3 Server Configuration with slapd.conf . . . . . . . . . . 309
13.7.4 Data Handling in the LDAP Directory . . . . . . . . . . 314
13.7.5 For More Information . . . . . . . . . . . . . . . . . . . 318
13.8 NIS. Network Information Service . . . . . . . . . . . . . . . 320
13.8.1 NIS Master and Slave Servers . . . . . . . . . . . . . . . 320
13.8.2 The NIS Client Module of YaST . . . . . . . . . . . . . . 323
13.9 NFS. Shared File Systems . . . . . . . . . . . . . . . . . . . . 325
13.9.1 Importing File Systems with YaST . . . . . . . . . . . . 325
13.9.2 Importing File Systems Manually . . . . . . . . . . . . 326
13.9.3 Exporting File Systems with YaST . . . . . . . . . . . . 326
13.9.4 Exporting File Systems Manually . . . . . . . . . . . . . 326
13.10 DHCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
13.10.1 The DHCP Protocol . . . . . . . . . . . . . . . . . . . . 329
13.10.2 DHCP Software Packages . . . . . . . . . . . . . . . . . 330
13.10.3 The DHCP Server dhcpd . . . . . . . . . . . . . . . . . 331
13.10.4 Hosts with Fixed IP Addresses . . . . . . . . . . . . . . 333
13.10.5 The SUSE LINUX Version . . . . . . . . . . . . . . . . . 334
13.10.6 For More Information . . . . . . . . . . . . . . . . . . . 335
13.11Time Synchronization with xntp . . . . . . . . . . . . . . . . . 335
13.11.1 Configuration in a Network . . . . . . . . . . . . . . . . 336
13.11.2 Establishing a Local Time Normal . . . . . . . . . . . . 336

14 The ApacheWeb Server 339
14.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
14.1.1 Web Server . . . . . . . . . . . . . . . . . . . . . . . . . 340
14.1.2 HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
14.1.3 URLs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
14.1.4 Automatic Display of a Default Page . . . . . . . . . . . 341
14.2 Setting up the HTTP Server with YaST . . . . . . . . . . . . . . 341
14.3 Apache Modules . . . . . . . . . . . . . . . . . . . . . . . . . . 342
14.4 New Features of Apache 2 . . . . . . . . . . . . . . . . . . . . . 343
14.5 Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
14.6 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
14.6.1 Package Selection in YaST . . . . . . . . . . . . . . . . . 344
14.6.2 Activating Apache . . . . . . . . . . . . . . . . . . . . . 345
14.6.3 Modules for Active Contents . . . . . . . . . . . . . . . 345
14.6.4 Other Recommended Packages . . . . . . . . . . . . . . 345
14.6.5 Installation of Modules with apxs . . . . . . . . . . . . 345
14.7 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
14.7.1 Configuration with SuSEconfig . . . . . . . . . . . . . . 346
14.7.2 Manual Configuration . . . . . . . . . . . . . . . . . . . 347
14.8 Using Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
14.9 Active Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
14.9.1 Server Side Includes: SSI . . . . . . . . . . . . . . . . . . 353
14.9.2 Common Gateway Interface: CGI . . . . . . . . . . . . 353
14.9.3 GET and POST . . . . . . . . . . . . . . . . . . . . . . . 353
14.9.4 Languages for CGI . . . . . . . . . . . . . . . . . . . . . 354
14.9.5 Generating Active Contents with Modules . . . . . . . 354
14.9.6 mod_perl . . . . . . . . . . . . . . . . . . . . . . . . . . 354
14.9.7 mod_php4 . . . . . . . . . . . . . . . . . . . . . . . . . . 357
14.9.8 mod_python . . . . . . . . . . . . . . . . . . . . . . . . . 357
14.9.9 mod_ruby . . . . . . . . . . . . . . . . . . . . . . . . . . 357
14.10Virtual Hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
14.10.1 Name-Based Virtual Hosts . . . . . . . . . . . . . . . . 358
14.10.2 IP-Based Virtual Hosts . . . . . . . . . . . . . . . . . . . 359
14.10.3 Multiple Instances of Apache . . . . . . . . . . . . . . . 360
14.11Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
14.11.1 Minimizing the Risk . . . . . . . . . . . . . . . . . . . . 361
14.11.2 Access Permissions . . . . . . . . . . . . . . . . . . . . . 361
14.11.3 Staying Updated . . . . . . . . . . . . . . . . . . . . . . 361
14.12Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
14.13For More Information . . . . . . . . . . . . . . . . . . . . . . . . 362
14.13.1 Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
14.13.2 CGI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
14.13.3 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
14.13.4 Additional Sources . . . . . . . . . . . . . . . . . . . . . 363

15 File Synchronization 365
15.1 Data Synchronization Software . . . . . . . . . . . . . . . . . . 366
15.1.1 InterMezzo . . . . . . . . . . . . . . . . . . . . . . . . . 366
15.1.2 Unison . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
15.1.3 CVS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
15.1.4 mailsync . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
15.2 Determining Factors for Selecting a Program . . . . . . . . . . 368
15.2.1 Client-Server versus Peer-to-Peer . . . . . . . . . . . . . 368
15.2.2 Portability . . . . . . . . . . . . . . . . . . . . . . . . . . 368
15.2.3 Interactive versus Automatic . . . . . . . . . . . . . . . 368
15.2.4 Speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
15.2.5 Conflicts: Incidence and Solution . . . . . . . . . . . . . 369
15.2.6 Selecting and Adding Files . . . . . . . . . . . . . . . . 369
15.2.7 History . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
15.2.8 Data Volume and Hard Disk Requirements . . . . . . . 370
15.2.9 GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
15.2.10 User Friendliness . . . . . . . . . . . . . . . . . . . . . . 370
15.2.11 Security against Attacks . . . . . . . . . . . . . . . . . . 371
15.2.12 Protection against Data Loss . . . . . . . . . . . . . . . 371
15.3 Introduction to InterMezzo . . . . . . . . . . . . . . . . . . . . 372
15.3.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 372
15.3.2 Configuring an InterMezzo Server . . . . . . . . . . . . 373
15.3.3 Configuring InterMezzo Clients . . . . . . . . . . . . . 374
15.3.4 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . 374
15.4 Introduction to Unison . . . . . . . . . . . . . . . . . . . . . . . 375
15.4.1 Uses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
15.4.2 Requirements . . . . . . . . . . . . . . . . . . . . . . . . 375
15.4.3 Using Unison . . . . . . . . . . . . . . . . . . . . . . . . 375
15.4.4 More Information . . . . . . . . . . . . . . . . . . . . . . 376
15.5 Introduction to CVS . . . . . . . . . . . . . . . . . . . . . . . . . 376
15.5.1 Uses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
15.5.2 Configuring a CVS Server . . . . . . . . . . . . . . . . . 377
15.5.3 Using CVS . . . . . . . . . . . . . . . . . . . . . . . . . . 378
15.5.4 More Information . . . . . . . . . . . . . . . . . . . . . . 379
15.6 Introduction to mailsync . . . . . . . . . . . . . . . . . . . . . . 379
15.6.1 Uses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
15.6.2 Configuration and Use . . . . . . . . . . . . . . . . . . . 379
15.6.3 Possible Problems . . . . . . . . . . . . . . . . . . . . . 381
15.6.4 More Information . . . . . . . . . . . . . . . . . . . . . . 382

16 Heterogenous Networks 383
16.1 Samba . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
16.1.1 Introduction to Samba . . . . . . . . . . . . . . . . . . . 384
16.1.2 Installing and Configuring the Server . . . . . . . . . . 386
16.1.3 Samba as Login Server . . . . . . . . . . . . . . . . . . . 390
16.1.4 Installing Clients . . . . . . . . . . . . . . . . . . . . . . 391
16.1.5 Optimization . . . . . . . . . . . . . . . . . . . . . . . . 392
16.2 Netatalk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
16.2.1 Configuring the File Server . . . . . . . . . . . . . . . . 393
16.2.2 Configuring the Print Server . . . . . . . . . . . . . . . 397
16.2.3 Starting the Server . . . . . . . . . . . . . . . . . . . . . 397
16.2.4 Additional Information . . . . . . . . . . . . . . . . . . 398
16.3 NetWare Emulation with MARSNWE . . . . . . . . . . . . . . 398
16.3.1 Starting the NetWare Emulator MARSNWE . . . . . . 399
16.3.2 The Configuration File /etc/nwserv.conf . . . . . . . . 399
16.3.3 Access to and Administration of NetWare Servers . . . 401
16.3.4 IPX Router with ipxrip . . . . . . . . . . . . . . . . . . . 402

17 Internet 403
17.1 The smpppd as Dial-up Assistant . . . . . . . . . . . . . . . . . 404
17.1.1 Program Components for the Internet Dial-Up . . . . . 404
17.1.2 Configuring smpppd . . . . . . . . . . . . . . . . . . . . 404
17.1.3 Configuring kinternet and cinternet for Remote Use . . 405
17.2 Configuring an ADSL or T-DSL Connection . . . . . . . . . . . 406
17.2.1 Default Configuration . . . . . . . . . . . . . . . . . . . 406
17.2.2 DSL Connection by Dial-on-Demand . . . . . . . . . . 407
17.3 Proxy Server: Squid . . . . . . . . . . . . . . . . . . . . . . . . . 408
17.3.1 Squid as Proxy Cache . . . . . . . . . . . . . . . . . . . 408
17.3.2 Some Facts about Proxy Caches . . . . . . . . . . . . . . 408
17.3.3 System Requirements . . . . . . . . . . . . . . . . . . . 410
17.3.4 Starting Squid . . . . . . . . . . . . . . . . . . . . . . . . 412
17.3.5 The Configuration File /etc/squid/squid.conf . . . . . 413
17.3.6 Transparent Proxy Configuration . . . . . . . . . . . . . 418
17.3.7 Squid and Other Programs . . . . . . . . . . . . . . . . 421

18 Security in the Network 427
18.1 Masquerading and Firewalls . . . . . . . . . . . . . . . . . . . . 428
18.1.1 Masquerading Basics . . . . . . . . . . . . . . . . . . . . 428
18.1.2 Firewalling Basics . . . . . . . . . . . . . . . . . . . . . . 430
18.1.3 SuSEfirewall2 . . . . . . . . . . . . . . . . . . . . . . . . 431
18.2 SSH. Secure Shell, the Safe Alternative . . . . . . . . . . . . . 434
18.2.1 The OpenSSH Package . . . . . . . . . . . . . . . . . . . 435
18.2.2 The ssh Program . . . . . . . . . . . . . . . . . . . . . . 435
18.2.3 scp .Secure Copy . . . . . . . . . . . . . . . . . . . . . 436
18.2.4 sftp. Secure File Transfer . . . . . . . . . . . . . . . . 436
18.2.5 The SSH Daemon (sshd). Server-Side . . . . . . . . . 436
18.2.6 SSH Authentication Mechanisms . . . . . . . . . . . . . 438
18.2.7 X, Authentication, and Other Forwarding Mechanisms 439
18.3 Network Authentication .Kerberos . . . . . . . . . . . . . . . 440
18.3.1 Kerberos Terminology . . . . . . . . . . . . . . . . . . . 441
18.3.2 How KerberosWorks . . . . . . . . . . . . . . . . . . . 442
18.3.3 Users' View of Kerberos . . . . . . . . . . . . . . . . . . 445
18.3.4 For More Information . . . . . . . . . . . . . . . . . . . 446
18.4 Installing and Administering Kerberos . . . . . . . . . . . . . . 447
18.4.1 Choosing the Kerberos Realms . . . . . . . . . . . . . . 447
18.4.2 Setting up the KDC Hardware . . . . . . . . . . . . . . 448
18.4.3 Clock Synchronization . . . . . . . . . . . . . . . . . . . 449
18.4.4 Log Configuration . . . . . . . . . . . . . . . . . . . . . 449
18.4.5 Installing the KDC . . . . . . . . . . . . . . . . . . . . . 450
18.4.6 Configuring Kerberos Clients . . . . . . . . . . . . . . . 452
18.4.7 Remote Kerberos Administration . . . . . . . . . . . . . 455
18.4.8 Creating Kerberos Host Principals . . . . . . . . . . . . 456
18.4.9 Enabling PAM Support for Kerberos . . . . . . . . . . . 457
18.4.10 Configuring SSH for Kerberos Authentication . . . . . 458
18.4.11 Using LDAP and Kerberos . . . . . . . . . . . . . . . . 459
18.5 Security and Confidentiality . . . . . . . . . . . . . . . . . . . . 462
18.5.1 Basic Considerations . . . . . . . . . . . . . . . . . . . . 462
18.5.2 Local Security and Network Security . . . . . . . . . . 462
18.5.3 Some General Security Tips and Tricks . . . . . . . . . . 471
18.5.4 Using the Central Security Reporting Address . . . . . 473

V Appendixes 475
A File Systems in Linux 477
B Access Control Lists in Linux 487
C Manual Page of e2fsck 499
D Manual Page of reiserfsck 505
E The GNU General Public Lic


ЛинуксЦентр рекомендует:

SUSE LINUX Professional 9.3 (BOX)
SUSE Linux 9.3 FTP Eval (1DVD)
SuSE 9.3 Live DVD (1DVD)
Книга SUSE Linux Professional Administration Guide
Книга SUSE Linux Professional User Guide
SuSE Linux 9.2 Professional (BOX)
SuSe Linux 9.1 Professional (BOX)
SUSE Linux 9.1 Personal (BOX)
SuSE Linux 8.2 Professional (BOX)

Семейство

  • SUSE

    Надежная и производительная система корпоративного уровня, вобравшая в себя лучшие технологии Novell и SUSE.