Suse Linux Integration Guide for IBM for Xseries and Netfinity
Total Page:16
File Type:pdf, Size:1020Kb
SuSE Linux Integration Guide for IBM for xSeries and Netfinity The complete guide to running SuSE Linux on xSeries and Netfinity Netfinity server-specific coverage you can’t find anywhere else, including ServeRAID configuration Plan, configure, and install key services, step-by-step: Samba, Apache, Postfix, DNS, DHCP, LDAP and more Jakob Carstensen Rufus Credle Justin Davies Ivo Gomilsek Jay Haskins Georg Holzknecht Ted McDaniel ibm.com/redbooks SG24-5863-01 International Technical Support Organization SuSE Linux Integration Guide for IBM ^ for xSeries and Netfinity December 2000 Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix C, “Special notices” on page 385. Second Edition (December 2000) This edition applies to preparing for or installing SuSE Linux 7.0 Professional on xSeries and Netfinity systems. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. HQ7 Building 678 P.O. Box 12195 Research Triangle Park, NC 27709-2195 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1999 2000. All rights reserved. Note to U.S Government Users – Documentation related to restricted rights – Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Preface....................................................ix The team that wrote this redbook. ...................................ix Commentswelcome..............................................xi Chapter 1. Introduction ......................................1 1.1TheIBMcommitmenttoLinux...............................1 1.2SuSELinux.............................................2 1.3 Introducing the xSeries family of servers .......................2 Chapter 2. Installing SuSE Linux...............................5 2.1Hardwareconsiderations...................................5 2.2 Making the CD-ROM bootable . ............................6 2.3LinuxinstallationwithYast1.................................7 2.3.1Bootingtheinstallationsystem...........................9 2.3.2Startingtheinstallation................................14 2.3.3Partitioningandcreationoffilesystems...................16 2.3.4Softwarepackageselectionandinstallation................29 2.3.5 LILO - the Linux Loader ...............................34 2.3.6Timezoneandclocksettings...........................36 2.3.7Networkconfiguration.................................37 2.3.8Mouseconfiguration..................................42 2.4InstallationusingYast2...................................46 2.4.1Yast2:Bootingtheinstallationsystem....................47 2.4.2Yast2:Installationtype................................50 2.4.3 Yast2: Preparing the hard disk ..........................51 2.4.4Yast2:Softwareinstallationtype.........................56 2.4.5Yast2:LILOconfiguration..............................57 2.4.6Yast2:Addinganormaluser............................59 2.4.7Yast2:Committingyoursettings.........................61 2.4.8Yast2:Installingthenewsystem.........................63 2.4.9Yast2:Configuringyourdisplay.........................66 2.4.10Yast2:Configuringyourdevices........................68 2.5ServeRAID:Installationandconfiguration.....................69 2.5.1 Installing SuSE with the latest ServeRAID driver . ...........70 2.5.2 Installing ipsutils.rpm .................................72 2.5.3 The ipssend commands ...............................73 2.5.4Replacingadefunctdrive..............................86 2.5.5ReplacingadefunctdrivewithdisabledHotSpareRebuild....87 2.5.6Replacingadefunctdrivewithahotsparedriveinstalled......88 2.5.7 Using the ServeRAID Manager utility .....................94 2.5.8 Remote management of the ServeRAID adapter . ...........98 © Copyright IBM Corp. 2000 iii 2.6 XFree86 configuration . ................................103 Chapter 3. Basic system administration .......................111 3.1 Adding and removing software packages using YaST . ..........111 3.2 Package management using RPM ..........................117 3.3UserandgroupadministrationusingYaST....................118 3.4Addingusersonthecommandline..........................122 3.4.1Modifyingusers-thecommandlineversion...............125 3.4.2Deletingusers-thecommandlineversion................125 3.4.3GroupadministrationusingYaST.......................126 3.5NetworkconfigurationwithYaST...........................127 3.6 Changing the configuration file with YaST ....................132 3.7SystemadministrationwithYast2...........................135 3.7.1 Yast2: Main window . ................................136 3.7.2Yast2:Networkconfiguration..........................137 3.7.3Yast2:NFSconfiguration.............................141 3.7.4Yast2:Networkservicesconfiguration...................145 3.7.5 Yast2: Package maintenance ..........................148 3.8 Finding Linux commands . ................................149 3.8.1Filesystempermissions..............................150 Chapter 4. Samba .........................................155 4.1WhatcanyoudowithSamba?.............................155 4.2SettinguptheSambaserver..............................155 4.2.1ConfiguringtheSambaserver.........................156 4.2.2 Starting and stopping the Samba server . ...............164 4.2.3StartingSambaasstartupservice......................164 4.2.4UsingSWAT.......................................164 4.3 Sources and additional information..........................181 Chapter 5. DNS - Domain Name System .......................183 5.1Installationofsoftware...................................185 5.2DNSsampleconfiguration................................185 5.3Configurationtips.......................................191 Chapter 6. Secure Shell ....................................193 6.1InstallingSSH.........................................193 6.2ConfiguringSSH.......................................193 6.2.1 Host key generation . ................................194 6.2.2 User key generation . ................................194 6.2.3 Configuring connections ..............................195 Chapter 7. Apache and IBM HTTP Servers .....................197 7.1TheIBMHTTPServer...................................198 iv SuSE Linux Integration Guide for xSeries and Netfinity 7.2ApacheHTTPServerinstallation...........................199 7.3IBMHTTPServerinstallation..............................201 7.3.1 Activating IBM HTTPD on system bootup . ...............203 7.3.2Settinguptheadministrationserver.....................204 7.4 General performance tips . ................................208 Chapter 8. Packet filtering with IP Chains .....................211 8.1Whatispacketfiltering?..................................211 8.2WhatcanyoudowithLinuxpacketfiltering?..................211 8.3 What do you need to run packet filtering?.....................212 8.4Networkconfigurationforapacketfilteringimplementation.......212 8.5 How to permanently enable IP Forwarding ....................214 8.6YourfirstIPChainsrule..................................214 8.7 How packets travel through a gateway . .....................216 8.8UsingIPChains........................................217 8.8.1Howtocreatearule.................................218 8.8.2 Making the rules permanent . ..........................220 8.9 Sources of additional information . ..........................220 Chapter 9. DHCP - Dynamic Host Configuration Protocol .........221 9.1 What is DHCP? . .....................................221 9.2 Why should I use DHCP? . ................................221 9.3ImplementationonLinux.................................221 Chapter 10. Postfix........................................223 10.1InstallingPostfix.......................................223 10.1.1Postfixconfigurationfiles............................224 10.2ExamplePostfixinstallation..............................225 10.2.1 Telling Postfix about the server. .....................225 10.2.2 Telling the rest of the world about us ...................226 10.2.3Transportanddeliveryoptions........................227 10.2.4 Security goes a long way . ..........................228 10.2.5 Reporting Postfix errors . ..........................229 Chapter 11. NFS - Network File System .......................231 11.1TheNFSprocess......................................231 11.2AllowingNFSaccesstodata.............................233 11.3AccessingdataremotelywithNFS-thecommandlineview......235 Chapter 12. NIS - Network Information System .................237 12.1WhatisNIS?.........................................237 12.2HowcanIuseNIS?....................................237 12.3ImplementationonLinux................................238 12.3.1NISserver.......................................239 v 12.3.2NISClient........................................242 12.4 Sources of additional information ..........................245 Chapter 13. LDAP - Lightweight Directory Access Protocol .......247 13.1WhatisLDAP?........................................247 13.1.1DirectoryServices.................................247 13.1.2X.500...........................................248 13.2HowcanIuseLDAP?..................................248 13.3LDAPbasics..........................................248 13.4ImplementationonLinux................................249 13.4.1 Slapd.conf . .....................................250 13.4.2