You are on page 1of 68

http://linux.vbird.

org/somepaper/

SuSE Linux Enterprise Server 9

1-1 Unix
1-2 Linux
1-3 Linux Distribution
1-4 Novell SuSE
1-5 SLES 9
1-6 SLES 9

1-1 Unix

IBM AIXSun SolarisHP HP-UX


Linux 1969 AT&T Bell LabsUnix
Linux kernel Linus Torvalds Linux
Unix
Perter Salus A Quarter Century of Unix Unix

19651969 MUITICS

Unix MULTICSMULTiplexed Information and Computing


Service 1965
Batch Processing
JobsCPU
CPU

MULTiplexed

CPU American Telephone and


Telegraph Inc.AT&TGeneral EletricsG.E.
Massachusetts Institute of TechnologyMIT
General-PurposeTime-SharingMulti-User
MIT CTSSCompatible Time-Sharing System
MULTICSMULTiplexed Information and
Computing Service CTSS G.E.GE-645

MULTICS GE-645
GE-635

G.E.GE-635
GE-635GE-645


1-1

1-1

DOS

CPU IO

MULTICSUnix Linux
CPU

A B

MULTICS
AT&T Bell Labs
60 Unix Ken Thompson
University of California at BerkeleyUCBBell Labs
MULTICS

MULTICS
1969 2 Bell Labs
MULTICS

Bell Labs MULTICS


1972 Honeywell G.E.MULTICS
MULTICS 75 100
1977 MIT MULTICS
Honeywell Bull MULTICS
1988

1969 8 Man-Month

Unix Ken Thompson MULTICS GE-645


Space TravelBell Labs
MULTICS Ken Thompson
Dennis Ritchie Bell LabsDEC-10

Digital PDP-7minicomputer
PDP-7Little-used PDP-7 in
a corner

PDP-7 DECDigital Equipment Corporation 1964


Ken Thompson Ken
Thompson MULTICS
MULTICS
tree-structuredCommand Interpreter
Device
Ken Thompson PDP-7
GE-645 GEMAP AssemblerMacros
post-processerPDP-7
GE-645PDP-7Kernel
EditorAssemblerShell rmcat
cpPDP-7

Ken Thompson
1969 8 Ken Thompson DEC
PDP-7 Unix

A Quarter Century of Unix Perter Salus


Ken Thompson
Unix

z
Everythingincluding hardware is a file
z
Configuration data stored in text
z
Small, single-purpose program
z
Avoid captive user interfaces
z
Ability to chain program together to perform complex tasks

PDP-7
multiuser Ken Thompson Brian W. Kernighan
MUITICSUNiplexed Information
and Computing SystemUNICSUnix
Unix UNIX
UnixDennis Ritchie UNIX 1974
CACM The UNIX Time-Sharing System
typesetter troffUNIX
Dennis Ritchie Unix
Bell LabsUnixUNIX
UNIX
1971 Unix

PDP-7
Ken Thompson Dennis Ritchie
PDP-1120PDP-11DEC-10
AT&T
PDP-1120

Unix
PDP-1120PDP-1120
Unix Unix
nrofftroffPDP-1120
Ken
Thompson PDP-11Assembly Langauge Unix
PDP-1120 24KB
PDP-11 Unix 12KB RAM Disk
Ken
Memory Protection 500KB Ken Thompson
Unix Unix

Bell Labs
Ken Thompson Bell
Labs Unix

1971 11 Unix Unix Manual


First EditionBell Labs
Unix Unix Version 1
V1 Unix UnixBell Labs
Unix nth Edition Unix
Unix Version
n

Unix edfork()rofftroff
pipe() Unix Version 2

1973 2 C Unix
Unix PDP-7PDP-11
Ken Thompson Dennis Ritchie

High-level Langauge Unix

Ken
Thompson Dennis Ritchie

Ken Thompson FORTRAN


BCPLBasic CPLBCPL Martin Richards 1967
CPLCombined Programming Language 1963
CPL 1960 Algol60

Ken Thompson Dennis Ritchie BCPL BCPL


B Unix
B Dennis Ritchie B Data Type
B C

1973 Unix Ken Thompson Dennis Ritchie


C Unix Unix Unix
Unix

Ken Thompson Dennis Ritchie Turing Award

1973 11 Unix

Unix Bell Labs

Ken Thompson
Columbia University

1974 Ken Thompson Dennis Ritchie Communications of the


ACM Unix Communications of the ACM
Unix

Unix
DEC PDP-11
Unix Unix

1976 Unix

1976 Unix Unix


Unix AT&T
1976 Unix AT&T
Unix License

1978 System IV 4.x BSD

1978 Unix UC
Berkeley Unix
1 BSD1st Berkeley Software Distribution Unix
BSD

AT&T USGUnix Support Group Unix


USG System III System IV
BSD Unix AT&T Unix Unix System IV 4.x BSD
Sun
Solaris OS POSIX

POSIXPortable Operation System Interface


Unix Unix
NISTCSL 1988 Unix Unix
Portable IEEE 1003.1 POSIXPOSIX
Portable Operation System Interface
C programming interfaceLibrary system
callsFilesProcess Terminal IO
portability Unix
Unix POSIX
Unix Unix

1979 Unix
1979 Unix
Unix Unix K&R C
Bourne ShellUnix kernel 40 Kbytes

Unix VAX 32V Unix


Unix University of Illinois
Harvard UniversityDECUC Berkeley
UC Berkeley Bill Joy Ozalp Baboglu 32V
3 BSD
Unix DARPA

3BSD Unix 32
vi C Shell BSD
Unix 4.2 BSD
LAN Ethernet Token Ring WAN NSFNET

AT&T BSD AT&T


BSD AT&T
Unix

Unix C

Unix AT&T System V BSD


IBM AIX

1984 MITProject Athena

Graphical User InterfaceGUI


1984 MIT
Project Athena
X Window System1988
XFree86 XFree86 X Window System
Free X86 XFree86 GUI 1994
Linux 1.0 Linux

1984 GNUGNU is Not Unix kernel


AT&T Unix
Unix Unix
Richard M. Stallman
Unix

Stallman Open Source

Open Source Unix

Stallman 1984 GNUGNU is Not Unix


GNU Unix GNU 1985
Free Software FoundationFSF

Stallman GNU

GNUGPLGNU General Public License


GPL

GPL
GPL

GPL GNUGPL GNU General Public


License http://www.gnu.org/copyleft/gpl.html
http://www.slat.org/project/legal/GNU_GPL_Chinese

GNU GCC GCC


GNU C GUN C CompilerGCC
GCC GNU

Shell C C library
Shell Stallman
Shell GNU Shell bash Bourne Again Shell
Unix Unix Shell Bourne Shell
C C library
C C librarybash
Unix 1990
kernelKernel

kernel
ShellC 1-2Stallman
kernel Linus Torvalds kernelLinux

1-2

1991 UNIX Linux

1991 4 AT&T Unix System Lab oratoriesUSL


UNIX USL

1993 Novell USL UNIX


X / OpenUnix
Unix
Unix
Unix 1-3
Unix http://www.levenez.com/unix/
19692005 Unix PDF
Unix

1-3 Unix http://www.levenez.com/unix


1-4 Unix-Like

LinuxIBM AIXSun SolarisFreeBSDBSDSun UnixSCO Unix


HP UnixUnix
Unix-Like
Unix AT&T System V BSD
Berkeley Software DistributionSVR4

System V

System III1981AT&T Unix


z FIFOsnamed pipes

System V1983
z IPC packageshmmsgsem

SVR21984
sh
z Shell

z SVIDSystem V Interface Definition

SVR31986
z STREAMSpoll()TLI

z RFS

z shared librarys

z SVID 2

z demand paging

SVR3.21987
z XenixIntel 80386

SVR41988 System VBSDSunOS Unix


z SVR3 Terminal RFSSTREAMS

uucp
z BSD FFSTCPIPsocketsselect()csh

z SunOS NFSOpenLook GUIX11NeWS

virtual memory subsystem with


memory-mapped files
z ksh

z ANSI C

z 8-bit clean
Binary Interface routines instead of traps
z ABIApplication

z POSIXXOpenSVID3

SVR4.11992
z IO SunOS

SVR4.21992based on SVR4.1ES
z Veritas FSACLs

BSD
BSDBerkeley Software Distribution VAXRISC
System V BSD
Unix BSD Unix BSD

2.xBSD1979 PDP-11
z csh

3BSD1980
z

4.0BSD1980
z termcapcurses

z vi

4.1BSD1981 AT&T CRG


z job

z automatic kernel config

z vfork()

4.2BSD1983
z TCP/IPsocketsethernet

z UFSsymbolic links

z reliable signalsSVR3 4.1 reliable signals

z select()

4.3BSD1986
4.3 Tahoe19884.3BSD Tahoe 32

z Fat FFS

z TCP

4.3 Reno1990for VAXTahoe HP 9000/300


z P1003.1

z NFSfrom Sun

z MFS

z OSITP4CLNPISODE's FTAMVT and X.500SLIP

z Kerberos

Net1 Net2June 1991


z 4.4BSDalpha June 1992 for HP 9000/300Sparc386DEC

System V Open Software Foundation 1991


OSF1OSF1 SVR2 SVID 2SVID

1-2 Linux

Unix 1987 Andrew


Tanenbaum MINIX MINIX mini-Unix

1991 Linus Torvalds MINIX


Linus Torvalds 25
Linus Torvalds USENET NEWS MINIX
386 486 AT
MINIX MINIX
MINIX Linux
kernel 0.01 1-5
"Hello everybody... I'm doing a
(free) operating system (just a
hobby, won't be big and
professional...)."
Linus Torvalds, creator of Linux,
from the first Internet announcement
on August 25, 1991. Even he initially
underestimated its potential.

1-5Linus Torvalds Linux

Linus hobby Unix


Intel x86 386 486
freaxLinus's Unix Linux
Linus FTP Linux
under GNU Public License 10 Linus
Linux 0.02 Internet Linux
MINIX Linux


kernel 2.6XLinux

Linux

Linux Unix

Linux Unix Linux


Intel x86 AlphaSun SparcMotorola
68KMIPS PowerPC

Linux Unix Unix

Linux Unix Unix API POSIX Single


Unix Specification Unix Unix
AT&T Unix
Unix

Linux Unix
Unix
Unix

Linux

Linux
Linux

memory partition
CPU
Intel x86 CPU 100
Alpha 1024
IO
CPU

monolithic kernel

Linux Unix monolithic


kernelmicrokernel

Linux
Linux
module Unix

Linux Unix-Like
Unix
1-3 Linux Distribution

Linux kernel

Linux

Linux Distribution
1-6

Distribution Linux
SuSE Linux Enterprise Server 9 9
Distribution Linux 2.6.x

1-6Linux kernel Distribution

Linux Red HatSuSEOpenLinux


Mandrake Debian Distribution
Distribution Linux
Distribution Linux
Standard BaseLSB Distribution
Linux Distribution

Linux Distribution Linux Distribution


http://www.distrowatch.com/ Linux
Distributionhttp://www.linuxiso.org

1-7http://www.distrowatch.com Distribution

1-4 Novell SuSE

1993 SuSE

SuSE Linux 1993 Hubert MantelBurchard


SteinbildRoland Dyroff Thomas Fehr SuSE
Software und System Entwicklung
Software and System DevelopmentSuSE Slackware
Slackware
Distribution Florina LaRoche jurix distribution
YaSTYet another Setup Tool Distribution
SuSE Linux 4.2
YaSTSuSE KDEK Desktop Environment
SuSE X Server SuSE XFCom-Server
XFCom-Server XFree86 XFree86
XFCom X Server SuSE XFree86 Linux
Distribution FreeBSD Linux

1997

SuSE Linux Linux Distribution Linux


Unix 1997
SuSE
Oakland

2003 Novell SuSE Linux

2003 Novell CEO Jack Messman Linux


SuSE Linux NetWare
Linux IBM 5000 Novell 2004 1
SuSE Novell 10
SuSE Linux Linux
Novell

2004 8 kernel 2.6 SLES 9

Novell 2004 8 kernel 2.6 SuSE Linux


Enterprise Server 9SLES 9 11 Novell Linux Desktop
9 2005 Open Enterprise Server
OES Linux Linux

Novell Linux Unix


Linux Intel-based x86
x86 RISC
Unix

Novell
SuSE Linux Novell
Novell Linux

2005 SuSE Linux

2005 1 SG Cowen 440


Linux Distribution
Novell 21% 33% Linux
Robert Frances Stacey Quandt SuSE Linux

1-5 SLES 9

kernel 2.6

2003 12 17 kernel 2.6 Novell SuSE Linux Enterprise Server


9 kernel 2.6 kernel 2.6


z O1 scheduler

schedulerProcess
OpenOffice
WWW ServerDNS Server
Process CPU CPU
multitasking
scheduler 1-8


Of(n)f(n)
scheduler Process n
Process
Process n
OnOn
O1O1
ProcessProcess 10 100
1000 ProcessProcess

1-8scheduler

z Preemptive kernel

Preemptive kernel kernel 2.4


Process CPU Process

Process CPU


preemptive
heavy
load crash kernel 2.6.0


z
kernel 2.4 32 CPUskernel 2.6 255

CPUs
64GB 64bit

kernel 2.4 block device 2TBkernel 2.6

16TB
major numbers 4095minor numbers 1,000,000

UID GID 40

PID 10
z Hyperthreading

kernel 2.6 Intel Pentium 4


Hyperthreading kernel 2.4 kernel 2.4.17
Hyperthreading Hyperthreading
Hyperthreading CPU CPU
CPU

z wireless

Linux
kernel 2.4 kernel 2.6
BluetoothBluetooth
PDA
BluetoothLinux

z hot-plug

hot-plug
USB kernel 2.6 USB 2.0

kernel 2.4 SATA kernel2.6


SATA kernel 2.4 IDE CD-RW
SCSI IDE CD-RW SCSI
kernel 2.6 IDE CD-RW SCSI
IDE

z ISA PnPPlug and Play

kernel 2.6 ISA


PnP kernel 2.4 ISA PnP
kernel 2.6 ISA

z udev
kernel 2.4 devfs
/dev/devLinux

devfs

kernel 2.6Kernel
devfsudevdevfs
udevmount/udev
sysfs
devfs
udev


z XFS

Novell SuSE ReiserFS Red Hat Linux ext3


IBM AIX Unix xfs Linux
xfs kernel AIX xfs kernel 2.6 Linux
xfs

z NFSNetwork File System

kernel 2.6 NFS NFS4 Linux NFS


NFS2NFS3NFS4 UDP
NFS4 TCP TCP UDP
NFS4NFS2NFS3

kernel 2.6 NFS


Linux NFS Server Sun Solaris
Linux Sun Solaris
kernel 2.4 NFS Server NFS 3 UDP
rsize wsize 8192 bytes Sun Solaris NFS
3 UDP TCP rsize wsize 32768 bytes
kernel 2.6 NFS NFS4


kernel 2.4 ACPIAdvanced Configuration and Power Interface
Distribution
ACPI
kernel 2.6

software suspend RAM Linux Swap


partition Swap partition

CPU speedstep
CPU CPU

kernel 2.4 kernel 2.6


kernel 2.4 kernel 2.6

1kernel 2.4 kernel 2.6


Kernels 2.4.0 2.4.22 2.6.0-test7

Max # of CPUs 32 32 255

Large block device size


2TB 2TB 16TB
supported 32 bit

NUMA support Poor Some Good

Preemptive Kernel NO NO YES

O1 scheduler NO NO YES

CPU affinity NO NO YES

Reverse mappings NO NO YES

Large page support NO NO YES

NFS version 4 NO NO YES

NFS over TCP NO YES YES

CIFS NO NO YES

SCTP NO NO YES

IPSec NO NO YES

JFS NO YES YES

ResierFS NO YES YES

XFS NO NO YES

SUSE AutoBuild one source for all platform

SuSE Linux
AutoBuild AutoBuild common code base
x86AMD64
Intel EM64TIntel Itanium IBM pSeriesIBM zSeries
SuSE Linux

YaST

SuSE Linux YaSTYet another Setup Tool


Linux
cluster
AutoYaST no touch Linux
APICIM

EAL4+

EALEvaluation Assurance Level ISO


ISOIEC 15408

SLES 9

Linux 2.6 Linux


512 CPU32000 SCSI Disks4095 device types 40
65535

per partitionfile system size 16 TB

native POSIX threading libraryHyperthreading



IO

Class-based kernel resource managementCKRM


partitioning

cluster

InfiniBand High Performance ComputingHPC

DNSDHCPFTPFirewallSSH/VPNProxy
SambaNFSLDAPCUPSIMAPNTPSLPPostfixPXESNMP
SMTP

ApacheJBossTomcat
MySQL PostgreSQL

SAPmySAPOracleIBM Software
GroupBEAComputer AssociatesSunBMC SoftwarePolyserve
Software AGVeritasSGITobitImmUnixSybase

orarun Oracle

APIs
Linux EclipseKDevelop
AnjutaEric and QuantaMono SuSE LINUX SDK 9

SuSE AutoBuild

1-6 SLES 9

1-6-1 MBR

SLES 9 SLES 9

Sector
Cylinder
1-2

1-2
Cylinders Heads Sectors
16,383 16 63


head0
1-2 16 heads

8

1-9


Track0
Sector 512 bytes 1-2
63 Sectors
63 X 512 bytes

Cylinder

Cylinder
X 2X

1-2

Cylindersx Headsx Sectorsx 512bytes


16383 X16 X 63 X 512 8455200768bytes 8GB


Cylinder0

partitionstart
cylinderend cylinder

MBR

512 bytes MBRMaster Boot Record


MBR

Boot Loader
446 bytes

Partition Table
16 X 4 bytes Partition Table
64 bytes
16 X 4
16 bytes start cylinderend cylinder
MBR 16 X 4 bytes Partition Table
Partition Table 4

Magic Number
2 bytes MBR
1-10MBR

Linux IDE hd#SCSI sd#


IDE
IDE1Primary IDE Master hda
IDE1Primary IDE Slave hdb
IDE2Slave IDE Master hdc
IDE2Slave IDE Slave hdd

Primary Extended
Logic

Primary
partition table 16 X 4 bytes 4
4 Primary

Extended
4

Extended Extended hda4 1-10
hda2

Logical
Extended Logical
Logical Logical
Extended partition table
Logical Extended Partition Table
Extended
N

1-6-2 SLES 9


Linux


/home
Linux


Quota
Quota
Quota
Mail Server
/var/spool/mail

Linux Distribution

Linux

Linux

/Swap/ 8GB Swap


1GB

SLES 9SuSE Linux Enterprise Server 9


SLES 9
Linux
Just Do it

SLES 9


SLES 9 Server



/dev/hda1 / 8GB
/dev/hda2 /home 1GB
/dev/hda3 Swap 1GB


testing.suse.com
IP 192.168.123.10
255.255.255.0
192.168.123.2
DNS 168.95.1.1

Preparation
1
SLES 9 BIOS
1-11 Novell SuSE geeko
1-11SLES 9

2
1-12
Installation
F2

FTPNFSSMBF3
1-12SLES 9

3
Novell SLES 9

1-13SLES 9
Base Installation

4

Accept

1-14

5
SLES 9
Change
ChangePartitioning
1-15

SLES 9
1-16

Accept proposal as-is


SLES 9 SLES 9
Swap /dev/hda1 1008.4MBroot
/dev/hda2 reiser 15GB

Base partition setup on this proposal


Create custom partition setup



1-16

Create custom
partition setupNext
1-17 Custom partitioning for expert

1-17
1-18 Expert Partitioner

1-18Expert Partitioner


/dev/hda1 / 8GB
/dev/hda2 /home 1GB
/dev/hda3 Swap 1GB

/
Create 1-19 Primary
PartitionExtended Partition
1-19Primary PartitionExtended Partition

Primary 4 3 Primary
Primary partition 1-20
Size
Start cylinder End cylinder +8G
/ 8GBMount Point /
Reiser

1-20 /

/home
/ Expert Partitioner Create
Primary Partition 1-21
1GBStart cylinder End
cylinder +1GMount point /home

1-21/home

Swap
Swap

Swap
1GB 2GB

Expert Partitioner CreatePrimary Partition


1-22 1G
File system Swap
1-22Swap

1-23
Next
1-23

7
Change
Time zone 1-24
1-24

1-25 Region Asia Time Zone


TaipeiHardware clock set to local time
UTC
Accept
1-25

8
Accept
1-26Yesinstall 1-27

1-26

1-27
Configuration
9 root
1-28 root root

SLES 9 root Windows administrator

1-28 root

10

DHCP IP
ChangeNetwork Interfaces 1-29
1-29Network Interfaces

1-30 Linux
Change IP
1-31

1-30
1-31

testing.suse.com
IP 192.168.123.10
255.255.255.0
192.168.123.2
DNS 168.95.1.1

IP
1-31Edit
IP 192.168.123.10 IP
255.255.255.0 1-32
1-32

1-32Host name and name server


1-33 Host Name
testingDomain Name suse.com
Domain
168.95.1.1 Hinet DNS Domain
Search suse.com O 1-32

1-33

1-32O
1-34

O
1-34

VNC

Linux VNC SLES 9


VNC
VNC
1-35Change VNC
Remote Administration 1-36 Remote Administartion
Allow Remote Administration
1-35 VNC Remote Administration

1-36 VNC

1-37
YesTest Connection to the Internet

1-37

11LDAP
LDAP
1-38Chage
LDAP
1-38LDAP

12User Authorization Method

LDAP
Local/etc/passwd
1-39N

1-39

13

root 1-40

1-40

14Novell SLES9
Novell SLES9 N

1-41

15Hardware Configuration
SLES 9
Change 1-42N
1-43
SLES 9
1-42

1-43SLES 9

Unix

Unix Bell Labs Ken Thompson Dennis Ritchie


Multi-UserMulti-Tasking
MULTICS Unix MULTICS
Unix C
AT&T

Unix Unix

Free Software

Free Software 1980 Richard M. Stallman

z
z
z
z

Linux

Linux Linus Torvalds 1991


Unix Unix AT&T Linus
Torvalds Linux
kernel 2.6.X
Linux

LinuxSuSE Novell

SuSELinux1993Hubert MantelBurchard
SteinbildRoland DyroffThomas FehrSuSE
Software und System Entwicklung
Software and System DevelopmentLinus Torvaldskernel

YastSuSE
Linux Distribution

2003NovellSuSE LinuxLinux
20048kernel 2.6SuSE Linux Enterprise Server 9SLES
9NovellLinux
Linux

Primary Extended Logic

Primary Extended
Logic

z Primary
partition table 64bytes
16bytes 4 4
Primary

z Extended
4 Primary Primary
Extended

z Logical
Extended Logical
Logical Logical
Extended partition table
Logical Extended partition Table
Extended
N

VMware SLES 9
SLES 9
SLES 9 VMware
SLES 9
1 VMWare 5.0
VMWare https://www.vmware.com/download/
VMWare 5.0 VMware Workstation 5for Windows
operating systems and Linux systemsEvaluate 1-44

1-44VMware 5.0

1-45 Register
1-46Continue

Yes
1-47 Download VMware Workstation 5.0or
Windows Systems
1-45 VMware5.0

1-46
1-47 VMware 5.0

2 VMware 5.0
Windows VMware 5.0 Next >

E-mailsupport@vmware.com

Dear Yeh Ming,

Thank you for your interest in evaluating VMware(TM) Workstation 5 (for


Windows Operating Systems). We are pleased to provide you with a 30-day
evaluation serial number.

Your evaluation serial number to use when installing VMware Workstation 5 is:

28K01-HC8A2-N8MC4-4R488

Please download the Workstation 5 (for Windows Operating Systems)


evaluation software from our Web site at:
For Windows
http://www.vmware.com/download/download.do?downloadGroup=WKST-5-W
IN
For Linux
http://www.vmware.com/download/download.do?downloadGroup=WKST-5-L
X

VMware Help
Enter Serial Number 1-48 1-49
VMware 5.0 30

1-48 VMware 5.0

1-49VMware 5.0
3 SLES 9 VMware
testing.suse.com.exe VMware
VMware FileOpen
SLES 9 1-50

1-50 SLES 9 VMware

1-51Power On SLES 9
1-52 SLES 9 VMware

SLES 9 VMware
root novell
geeko geeko
1-51 SLES 9 VMware

1-52SLES 9 VMware
4SLES 9
root root Novell
root root
rootnovell root 1-53
root root
geekogeeko
1-54

VMware SLES 9
WindowsHot KeyCtrl+Alt

VMware VMware Host O.S


Windows VMware Guest O.SCtrl+Alt
Guest O.SHost O.SHot Key
Guest O.SGuest O.S

1-53root
1-54

Nike Just Do it!

If you don't wanna do it, you find an EXCUSE. If you do, you'll find a WAY.