Sie sind auf Seite 1von 18

Linux Installation

Installation Overview
• Installation Language, Keyboard and mouse
selection
• Installation type selection
• Disk partitioning
• Bootloader configuration
• Network configuration and firewall configuration
• Authentication setup (root password-6 digits)
• Package selection
• X Server configuration
Steps
Installation Type
• Personal desktop installation suited for everyday
productivity and office-related tasks
• Workstation to install more advanced set of
system-oriented tools and utilities
• Server installation includes tools for offering and
managing network services
• Custom installation enables the user to choose
which packages are to be installed later in the
install process.
Back
Partitioning Hard Drives
• Hard drives are divided into partitions (each
containing its own file system or swap space for virtual memory)
• Partitions normally contains file systems
• Primary, extended, and logical partitions
• The default filesystem type is ext3
• Multiple partitions may be assembled into a larger
virtual partition: software RAID and LVM
• Filesystems are accessed via a mount point,
which is a designated directory in the file system
hierarchy.
Next
Disk Partitioning
• On the x86 architecture, there is a standard disk
partitioning format which is used by most
operating systems. The first four partitions on
the disk are called primary partitions. If more
than four partitions are needed, one of the
primary partitions may be converted into a
special extended partition that contains one or
more logical partitions. A primary partition or
logical partition may contain a file system or
swap space.
Back
MBR

C: (DOS) /dev/hda1

SWAP /dev/hda2

/boot /dev/hda3

(Extended Partition Table) /dev/hda4

/ (boot) /dev/hda5
/ var /dev/hda6
/ tmp /dev/hda7
/ home /dev/hda8
Extended Partition
Sample Partition Structure

Back
Configuring File Systems
• Must select mount points, partition sizes, and file
system types in the installer
• Can set up manually or automatically
• There are many layouts which may be used
• / must include /etc, /lib, /bin, /sbin, /dev
• Swap space is typically 2x physical RAM
• Typical mount points: /boot, /home, /usr, /var, /tmp,
/usr/local, /opt

Back
Software RAID
• Redundant Array of inexpensive disks
• Multiple partitions on different disks combined into
one RAID device
• Fault tolerance, larger disk size, performance
• Install-time RAID levels
• RAID 0: striping (no redundancy)
• RAID 1: mirroring
• RAID 5: striping with distributed parity

Back
RAID Level 0
It is called “stripping”, and requires at least two
RAID partitions. The resulting RAID device is a
virtual partition the size of all the member RAID
partition added together. RAID 0 allows creation of
the file systems bigger than any one disk, and has
high performance for reads and writes. However, it
is not truly a redundant array; if any disk in the RAID
device fails, the file system on the RAID device is
destroyed.
Back
RAID Level 1
RAID level 1is called “mirroring” and also requires
two RAID partitions. The resulting RAID device is a
virtual partition the size of the smallest of the
member RAID partitions. All RAID partitions which
are members of the RAID device contain identical
data. If any disk in the RAID device fails, the RAID
device continues to function without losing data.
This is useful for fault tolerance, but is costly in
terms of disk space. Performance for reads and
writes is good.
Back
RAID Level 5
It is called “stripping with parity”, and requires at
least three RAID partitions of the same size. Like
RAID 0, this RAID level allows creation of the file
systems bigger than any one disk. However,
additional parity data is also stored on the RAID
device which can be used to preserve file system
data even if a single disk in the RAID device fails.
Therefore RAID 5 can survive single disk failures,
but at the cost of some storage efficiency. Read
performance is good, but write performance is
slower due to the parity update.
Back
LVM: Logical Volume Manager
• Manages storage on one or more partitions as
virtual partitions; or logical volumes
• Real partitions are physical volumes and are assigned
to a volume group (a virtual disk)
• Disk space in the volume group is divided into extents
of identical size which are assigned to a logical
volume
• Easy to resize logical volumes
• Add a physical volume to the volume group and
assign the new extents to the logical volumes
Back
Network Configuration
• Can configure each NIC independently
• Manually/DHCP server at startup for IP configuration
• Determine if interface manually/automatically activated
on boot

Back
Firewall Setup
• Installer can set up a kernel mode stateful
packet filter
• Choice of two settings: “Enabled” and “No
Firewall”
• “Trusted Devices” can bypass the firewall
• Can allow access to arbitrary services

Back
Package Selection
• Package Selection
• Universally (“everything”)
• By predefined components
• Defined RedHat/base/comps.xml
• Individually

Back
Installing Red Hat Linux using Anaconda
(Graphical Installation Method)
1. Bootup system using CD.
2. Press Enter at the boot: prompt.
3. Choose the appropriate language (English).
4. Press Enter on the OK prompt.
5. Choose the appropriate Keyboard (US).
6. Press Enter on the OK prompt.
7. Choose NFS Image for the installation method.
8. Configure TCP/IP.
9. Press Enter on the OK prompt.
10. Enter the appropriate information for an NFS installation
NFS Method:
NFS Server name : 192.168.0.254
NFS mount point : /var/ftp/pub

More
11. At this point Anaconda (the installer) will retrieve the necessary
installation image and will probe the system for it’s monitor and mouse
type and will finally present you with the welcome screen. Click Next.
12. Choose the appropriate mouse for your system. Click Next.
13. Manually partition your system using diskdruid. using the following
partitioning scheme (delete any pre-existing partitions)
/boot100M
/ 400M
/usr 1256M
swap 512M (Note: swap is a File System Type not a Mount Point)
/var 400M
14. Format all partitions, but do NOT check for bad blocks unless you wish
to spend hours on this.
15. Use the (default) Boot Loader settings (also can create a boot loader
password)
16. Choose network services (DHCP for networking) and activate on boot.
More
17. Choose enable firewall and allow ssh.
18. Select the appropriate language support.
19. Set the time zone as appropriate for your location.
20. Set the root password.
21. Select Customize the set of packages to be installed and click
next. For example, unselect ALL selection except the X Window
System and click Next.
22. You should now be at the About to Install screen. Click Next to
begin.
23. Track the progress filesystem formatting by switching to tty5 (Ctrl-
Alt-F5 will take you there; Alt-F7 will return you to installer)
24. Use the probed graphics card and monitor settings.
25. Configure your system to use a graphical login.
26. After the reboot following the installation, complete the initial set up
tool.

Das könnte Ihnen auch gefallen