Novell SUSE Linux Administrator WorkBook Course 3037.pdf

(3353 KB) Pobierz
3037_Workbook.book
SUSE LINUX Administration
COURSE 3037
Novell Training Services
www.novell.com
SELF-STUDY WORKBOOK
Version 1
29910608.002.png
Pr
oprietar
y Statement
T
rademarks
Copyright © 2004 Novell, Inc. All rights reserved.
Novell, Inc. has attempted to supply trademark information about company
No part of this publication may be reproduced, photocopied, stored on a retrieval
names, products, and services mentioned in this manual. The following list of
trademarks was derived from various sources.
system, or transmitted without the express prior consent of the publisher. This
manual, and any portion thereof, may not be copied without the express written
No
vell,
Inc.
rademarks
permission of Novell, Inc.
NetWare, the N-Design, and Novell are registered trademarks of Novell, Inc. in
Novell, Inc.
the United States and other countries. CNA, CDE, CNI, NAEC, and Novell
1800 South Novell Place
Authorized Education Center are service marks and CNE is a registered service
Provo, UT 84606-2399
mark of Novell, Inc. in the United States and other countries. ConsoleOne,
DirXML, and eDirectory are trademarks of Novell, Inc. GroupWise is a
registered trademark of Novell, Inc. Hot Fix, and IPX is a trademark of Novell,
Disc
laimer
Inc. NDS, Novell Directory Services, and NDPS are registered trademarks of
Novell, Inc. makes no representations or warranties with respect to the contents
Novell, Inc. NetWire is a registered service mark of Novell, Inc. in the United
or use of this manual, and specifically disclaims any express or implied
States and other countries. NLM and Novell Certificate Server are trademarks of
warranties of merchantability or fitness for any particular purpose.
Novell, Inc. Novell Client, Novell Cluster Services, and Novell Distributed Print
Services are trademarks of Novell, Inc. ZENworks is a registered trademark of
Further, Novell, Inc. reserves the right to revise this publication and to make
Novell, Inc.
changes in its content at any time, without obligation to notify any person or
entity of such revisions or changes.
Other
T
rademarks
Further, Novell, Inc. makes no representations or warranties with respect to any
Adaptec is a registered trademark of Adaptec, Inc. AMD is a trademark of
NetWare software, and specifically disclaims any express or implied warranties
Advanced Micro Devices. AppleShare and AppleTalk are registered trademarks
of merchantability or fitness for any particular purpose.
of Apple Computer, Inc. ARCserv is a registered trademark of Cheyenne
Further, Novell, Inc. reserves the right to make changes to any and all parts of
Software, Inc. Btrieve is a registered trademark of Pervasive Software, Inc.
EtherTalk is a registered trademark of Apple Computer, Inc. Java is a trademark
NetWare software at any time, without obligation to notify any person or entity
or registered trademark of Sun Microsystems, Inc. in the United States and other
of such changes.
countries. Linux is a registered trademark of Linus Torvalds. LocalTalk is a
This Novell Training Manual is published solely to instruct students in the use of
registered trademark of Apple Computer, Inc. Lotus Notes is a registered
Novell networking software. Although third-party application software packages
trademark of Lotus Development Corporation. Macintosh is a registered
are used in Novell training courses, this is for demonstration purposes only and
trademark of Apple Computer, Inc. Netscape Communicator is a trademark of
shall not constitute an endorsement of any of these software applications.
Netscape Communications Corporation. Netscape Navigator is a registered
Further, Novell, Inc. does not represent itself as having any particular expertise
trademark of Netscape Communications Corporation. Pentium is a registered
trademark of Intel Corporation. Solaris is a registered trademark of Sun
in these application software packages and any use by students of the same shall
Microsystems, Inc. The Norton AntiVirus is a trademark of Symantec
be done at the students’ own risk.
Corporation. TokenTalk is a registered trademark of Apple Computer, Inc. Tru64
is a trademark of Digital Equipment Corp. UNIX is a registered trademark of the
Software Pirac
y
Open Group. WebSphere is a trademark of International Business Machines
Corporation. Windows and Windows NT are registered trademarks of Microsoft
Throughout the world, unauthorized duplication of software is subject to both
Corporation.
criminal and civil penalties.
If you know of illegal copying of software, contact your local Software
Antipiracy Hotline.
For the Hotline number for your area, access Novell’s World Wide Web page at
http://www.novell.com and look for the piracy page under “Programs.”
Or, contact Novell’s anti-piracy headquarters in the U.S. at
800-PIRATES (747-
2837) or 801-861-7101.
T
Contents
Contents
SUSE LINUX Administration Self-Stud
y
W
orkbook
Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Intro-1
SLES 9 Server Setup Instructions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Intro-2
. . . . . . . . . . . . . . . . . . . . . . . Intro-2
Check Setup Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro-2
Install the SLES 9 VMware Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro-3
Configure the SLES 9 VMware Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro-4
Start the SLES 9 VMware Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro-6
VMware Workstation Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro-7
Install the SLES 9 Student Server With AutoYaST . . . . . . . . . . . . . . . . . . . . . Intro-7
Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Intro-11
SECTION
1
Mana
e the SUSE LINUX Enterprise Ser
ver
Exercise
1-1
Explore Your KDE Desktop
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1
Exercise
1-2
Customize Your SLES 9 Installation With YaST
. . . . . . . . . . . . . . . .
1-5
Exercise
1-3
Gather Information About Your SLES 9 Server
. . . . . . . . . . . . . . . .
1-11
SECTION
2
Mana
e User Access and Security
Exercise
2-1
Check User and Group Information on Your Server
. . . . . . . . . . . . . .
2-1
Exercise
2-2
Create and Manage Users and Groups From the Command Line
. . . .
2-3
. . . . . . . . . . . . . . . . . . . . . . . 2-3
Part II: Create Login Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Part III: Create Users With YaST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
Part IV: Create a User Account at the Command Line . . . . . . . . . . . . . . . . . . . 2-8
Part V: Manage Groups With YaST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10
Part VI: Manage Groups From the Command Line . . . . . . . . . . . . . . . . . . . . . 2-11
Part VII: Manage User Accounts From the Command Line . . . . . . . . . . . . . . 2-12
Part VIII: Restore the Default Group Assignment For New Users . . . . . . . . . 2-14
Exercise 2-3 Configure the Password Security Settings . . . . . . . . . . . . . . . . . . . . . 2-15
Exercise 2-4 Set Permissions for Files and Directories
Part I: Customize User Account Default Settings
From the Command Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
Exercise 2-5 Configure PAM Authentication for Digital Airlines Employees . . . . 2-19
Exercise 2-6 Change the Security Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22
Version 1
Copying all or part of this manual, or distrib
uting suc
h copies, is strictly pr
ohibited.
Workbook
TOC-1
T
o r
eport suspected copying
, please call 1-800-PIRA
TES.
Access the SLES 9 Server as a VMware Server
g
g
29910608.003.png
 
SUSE LINUX
Administration
/Self-Study
W
orkbook
SECTION
3
Mana
g
e the Lin
ux File System
Exercise
3-1
Configure Partitions on Your Hard Drive
. . . . . . . . . . . . . . . . . . . . . .
3-1
. . . . . . . . . . . . . . . . . . 3-1
Part II: Manually Partition With fdisk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Exercise 3-2 Create Logical Volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Part I: Create LVM Volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Part II: Resize an LVM Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
Exercise 3-3 Manage File Systems From the Command Line . . . . . . . . . . . . . . . . . 3-9
Part I: Create File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Part II: Customize the File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
Exercise 3-4 Set Up and Configure Disk Quotas . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
Exercise 3-5 Back Up System Files on Your Server. . . . . . . . . . . . . . . . . . . . . . . . 3-17
Part I: Use YaST to Create a Partition and File System
SECTION
4
Mana
g
e Software For SUSE LINUX Enterprise Ser
ver
Exercise
4-1
Manage Software With RPM
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1
Exercise
4-2
Install a Software Package With YaST
. . . . . . . . . . . . . . . . . . . . . . . .
4-4
Exercise
4-3
Manage Shared Libraries
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6
Exercise
4-4
Update Your SLES 9 Server With YOU
. . . . . . . . . . . . . . . . . . . . . . .
4-8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Part II: Update Your Server With YOU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
SECTION
5
Mana
g
e System Initialization
Exercise
5-1
Manage Run Levels
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1
Exercise 5-2 View Information About the Hardware System. . . . . . . . . . . . . . . . . . 5-3
Part I: View General Information About the Hardware System . . . . . . . . . . . . 5-3
Part II: View Information About Specific Hardware . . . . . . . . . . . . . . . . . . . . . 5-5
Exercise 5-3 Manage the Linux Kernel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9
Exercise 5-4 Manage the Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11
Part I: Pass Kernel Parameters to the Bootloader . . . . . . . . . . . . . . . . . . . . . . 5-11
Part II: Configure Boot Managers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
Exercise 5-5 Change the Power Setting With YaST . . . . . . . . . . . . . . . . . . . . . . . . 5-17
SECTION 6
Manage Linux Processes and Services
Exercise 6-1 Manage Linux Processes and Services. . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Part I: Move Processes in the Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Part II: Modify Process Priorities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
Part III: Enable Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
Part IV: Enable Services Using YaST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
Workbook
TOC-2
Copying all or part of this manual, or distrib
uting suc
h copies, is strictly pr
ohibited.
Version 1
T
o r
eport suspected copying
, please call 1-800-PIRA
TES.
Part I: Configure a Local YOU Server
29910608.004.png
 
Contents
Exercise 6-2 Schedule Jobs With cron and at . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9
Part I: Schedule Jobs With at . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9
Part II: Schedule Jobs With cron . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-11
Exercise 6-3 Manage System Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Part I: Modify the Syslog Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-14
Part II: Configure Logrotate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-16
SECTION 7
Connect the SUSE LINUX Enterprise Server to the Network
Exercise 7-1 Configure and Test Your Network Connection . . . . . . . . . . . . . . . . . . 7-1
Part I: Configure a Static Network Configuration With YaST . . . . . . . . . . . . . 7-2
Part II: View and Record Network Configuration . . . . . . . . . . . . . . . . . . . . . . . 7-4
Part III: Test the Network Card Internet or Network Access . . . . . . . . . . . . . . 7-5
SECTION 8
Enable Infrastructure Services
Exercise 8-1 Configure CUPS Network Printing Services . . . . . . . . . . . . . . . . . . . . 8-1
Part I: Add a Printer to the Network With YaST . . . . . . . . . . . . . . . . . . . . . . . . 8-2
Part II: Provide Access to the CUPS Administrator . . . . . . . . . . . . . . . . . . . . . 8-3
Part III: Manage the Printer From the Command Line . . . . . . . . . . . . . . . . . . . 8-4
Part IV: Manage the Printer from the CUPS Administration Tool . . . . . . . . . . 8-6
Part V: Manage the Printer With YaST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7
Part VI: Print to a Remote Printer (Optional) . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8
Exercise 8-2 Set Up and Manage Network File System (NFS) . . . . . . . . . . . . . . . 8-10
Part I: Set Up an NFS Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-10
Part II: Access the NFS Server With an NFS Client . . . . . . . . . . . . . . . . . . . . 8-11
Exercise 8-3 Configure a Basic Samba Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-13
Part I: Configure a Samba Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-13
Part II: Configure the Samba Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-15
Exercise 8-4 Enable Network Information Service (NIS) on Your Network . . . . . 8-16
Part I: Configure an NIS Server With YaST . . . . . . . . . . . . . . . . . . . . . . . . . . 8-16
Part II: Create an NIS User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-17
Part III: Update the NIS Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-19
Part IV: Verify the Local NIS Client Configuration . . . . . . . . . . . . . . . . . . . . 8-19
Part V: Prepare the NIS Server Computer for NIS Network Users . . . . . . . . . 8-20
Part VI: Prepare the NIS Client Computer for NIS
Version 1
Copying all or part of this manual, or distributing such copies, is strictly prohibited.
Workbook TOC-3
To report suspected copying, please call 1-800-PIRATES.
Network Users (Optional) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-22
29910608.001.png
 
Zgłoś jeśli naruszono regulamin