RHCSA - EX200ipcompro.com/IpComPro/Training-Materials/Linux/Slides/... · 2018. 12. 17. · RHCSA -...

Preview:

Citation preview

RHCSA DAY - 04

RHCSA

RHCSA - EX200

RHCSA DAY - 04

RHCSA

TrainerAli AydemirCISCO, CCIE #47287 SP/RS, CCSI#35413

AVAYA, ACE-Fx #169

HUAWEI, HCDP

RHCSA DAY - 04

RHCSA

RHCSA TimetableDay AM Lunch PM

1-Installing RHEL Server

-Using Essential Tools --

-Essential File Management

-ToolsWorking with Text Files

-Connecting to a RHEL Server

2-User and Group Management

-Permissions Management--

-Configuring Networking

-Process Management

-Working with Virtual Machines

3-Installing Software Packages

-Scheduling Tasks--

-Configuring Logging

-Managing Partitions

-Managing LVM Logical Volumes

4

-Basic Kernel Management

-Configuring a Basic Apache

Server

--

-Managing and Understanding

the Boot Procedure

-Essential Boot Procedure

Troubleshooting

5-Managing SELinux

-Configuring a Firewall--

-Configuring Remote Mounts

and FTP

-Configuring Time Services

RHCSA DAY - 04

RHCSA

Chapter 16:

Basic Kernel Management

5RHCSA DAY - 04

RHCSA

Chapter 16 Objectives

The following topics are covered in this chapter:

• Understanding the Role of the Linux Kernel

• Working with Kernel Modules

• Updating the Linux Kernel

The following RHCSA exam objectives are covered in this

chapter:

• Update the kernel package appropriately to ensure a bootable system

6RHCSA DAY - 04

RHCSA

Basic Kernel Management

The Linux kernel is the heart of the Linux operating system.

It takes care of many things, including hardware

management. In this chapter, you learn all you need to

know about the Linux kernel from an RHCSA perspective.

In fact, you even learn a bit more.

This chapter includes information about topics that are not

on the current list of RHCSA objectives. I think it is good to

know about these topics anyway. Any serious Linux

administrator should be able to deal with issues related to

the topics discussed in this chapter.

7RHCSA DAY - 04

RHCSA

Understanding the Role of the Linux Kernel

8RHCSA DAY - 04

RHCSA

Understanding the use of Kernel Threads and Drivers

9RHCSA DAY - 04

RHCSA

Understanding the use of Kernel Threads and Drivers

10RHCSA DAY - 04

RHCSA

Analyzing What the Kernel Is Doing

11RHCSA DAY - 04

RHCSA

Analyzing What the Kernel Is Doing

12RHCSA DAY - 04

RHCSA

Analyzing What the Kernel Is Doing

13RHCSA DAY - 04

RHCSA

Analyzing What the Kernel Is Doing

14RHCSA DAY - 04

RHCSA

Working with Kernel Modules

In the old days of Linux, kernels had to be compiled to

include all drivers that were required to support computer

hardware. Other specific functionality needed to be

compiled into the kernel as well.

Since the release of Linux kernel 2.0 in the mid 1990s,

kernels are no longer compiled but modular. A modular

kernel consists of a relatively small core kernel and

provides driver support through modules that are loaded

when required. Modular kernels are very efficient, as only

those modules that really are needed are included.

15RHCSA DAY - 04

RHCSA

Understanding Hardware Initialization

16RHCSA DAY - 04

RHCSA

Understanding Hardware Initialization

17RHCSA DAY - 04

RHCSA

Managing Kernel Modules

18RHCSA DAY - 04

RHCSA

Managing Kernel Modules

19RHCSA DAY - 04

RHCSA

Managing Kernel Modules

20RHCSA DAY - 04

RHCSA

Managing Kernel Modules

21RHCSA DAY - 04

RHCSA

Managing Kernel Modules

22RHCSA DAY - 04

RHCSA

Managing Kernel Modules

23RHCSA DAY - 04

RHCSA

Exercise 16.1 Managing Kernel Modules from the Command Line

24RHCSA DAY - 04

RHCSA

Checking Driver Availability for Hardware Devices

25RHCSA DAY - 04

RHCSA

Checking Driver Availability for Hardware Devices

26RHCSA DAY - 04

RHCSA

Managing Kernel Module Parameters

27RHCSA DAY - 04

RHCSA

Exercise 16.2 Loading Kernel Modules with Parameters

28RHCSA DAY - 04

RHCSA

Exercise 16.2 Loading Kernel Modules with Parameters

29RHCSA DAY - 04

RHCSA

Upgrading the Linux Kernel

30RHCSA DAY - 04

RHCSA

Summary

31RHCSA DAY - 04

RHCSA

Define Key Terms

Define the following key terms:

• kernel,

• module,

• dmesg,

• udev,

• sysfs,

• proc

32RHCSA DAY - 04

RHCSA

Lab 16.1

33RHCSA DAY - 04

RHCSA

Chapter 17:

Configuring a Basic Apache Server

34RHCSA DAY - 04

RHCSA

Chapter 17 Objectives

The following topics are covered in this chapter:

• Configuring a Basic Apache Server

• Understanding Apache Configuration files

• Creating Apache Virtual Hosts

The following RHCSA exam objectives are covered in this

chapter:

• No RHCSA exam objectives relate directly to Apache

35RHCSA DAY - 04

RHCSA

Configuring a Basic Apache Server

36RHCSA DAY - 04

RHCSA

Installing the Required Software

37RHCSA DAY - 04

RHCSA

Identifying the Main Configuration File

38RHCSA DAY - 04

RHCSA

Identifying the Main Configuration File

39RHCSA DAY - 04

RHCSA

Exercise 17.1 Setting Up a Basic Web Server

40RHCSA DAY - 04

RHCSA

Exercise 17.1 Setting Up a Basic Web Server

41RHCSA DAY - 04

RHCSA

Understanding Apache Configuration Files

42RHCSA DAY - 04

RHCSA

Understanding Apache Configuration Files

43RHCSA DAY - 04

RHCSA

Creating Apache Virtual Hosts

44RHCSA DAY - 04

RHCSA

Creating Apache Virtual Hosts

45RHCSA DAY - 04

RHCSA

Exercise 17.2 Installing Apache Virtual Hosts

46RHCSA DAY - 04

RHCSA

Exercise 17.2 Installing Apache Virtual Hosts

47RHCSA DAY - 04

RHCSA

Exercise 17.2 Installing Apache Virtual Hosts

48RHCSA DAY - 04

RHCSA

Exercise 17.2 Installing Apache Virtual Hosts

49RHCSA DAY - 04

RHCSA

Summary

50RHCSA DAY - 04

RHCSA

Define Key Terms

Define the following key terms:

• DocumentRoot,

• virtual hosts,

• chroot

51RHCSA DAY - 04

RHCSA

Lab 17.1

52RHCSA DAY - 04

RHCSA

Chapter 18:

Managing and Understanding the Boot Procedure

53RHCSA DAY - 04

RHCSA

Chapter 18 Objectives

The following topics are covered in this chapter:

• Working with Systemd

• Working with GRUB 2

The following RHCSA exam objectives are covered in this

chapter:

• Start and stop services and configure services to start automatically at

boot

• Configure systems to boot into a specific target automatically

• Modify the system bootloader

54RHCSA DAY - 04

RHCSA

Managing and Understandingthe Boot Procedure

55RHCSA DAY - 04

RHCSA

Working with Systemd

56RHCSA DAY - 04

RHCSA

Understanding Systemd

57RHCSA DAY - 04

RHCSA

Understanding Systemd

58RHCSA DAY - 04

RHCSA

Understanding Service Units

59RHCSA DAY - 04

RHCSA

Understanding Service Units

60RHCSA DAY - 04

RHCSA

Understanding Service Units

61RHCSA DAY - 04

RHCSA

Understanding Service Units

62RHCSA DAY - 04

RHCSA

Understanding Service Units

63RHCSA DAY - 04

RHCSA

Understanding Target Units

64RHCSA DAY - 04

RHCSA

Understanding Target Units

65RHCSA DAY - 04

RHCSA

Understanding Target Units

66RHCSA DAY - 04

RHCSA

Understanding Wants

67RHCSA DAY - 04

RHCSA

Managing Units Through Systemd

68RHCSA DAY - 04

RHCSA

Exercise 18.1 Managing Units with systemctl

69RHCSA DAY - 04

RHCSA

Exercise 18.1 Managing Units with systemctl

70RHCSA DAY - 04

RHCSA

Managing Units with systemctl

71RHCSA DAY - 04

RHCSA

Managing Units with systemctl

72RHCSA DAY - 04

RHCSA

Managing Units with systemctl

73RHCSA DAY - 04

RHCSA

Managing Systemd Targets

74RHCSA DAY - 04

RHCSA

Managing Systemd Targets

75RHCSA DAY - 04

RHCSA

Isolating Targets

76RHCSA DAY - 04

RHCSA

Isolating Targets

77RHCSA DAY - 04

RHCSA

Exercise 18.2 Isolating Targets

78RHCSA DAY - 04

RHCSA

Setting the Default Target

79RHCSA DAY - 04

RHCSA

Working with GRUB 2

80RHCSA DAY - 04

RHCSA

Understanding GRUB 2

81RHCSA DAY - 04

RHCSA

Understanding GRUB 2

82RHCSA DAY - 04

RHCSA

Understanding GRUB 2

83RHCSA DAY - 04

RHCSA

Modifying Default GRUB 2 Boot Options

84RHCSA DAY - 04

RHCSA

Modifying Default GRUB 2 Boot Options

85RHCSA DAY - 04

RHCSA

Exercise 18.3 Applying Modifications to GRUB2

86RHCSA DAY - 04

RHCSA

Summary

87RHCSA DAY - 04

RHCSA

Define Key Terms

Define the following key terms:

• unit,

• wants,

• target,

• systemd,

• dependencies,

• kernel,

• boot loader,

• GRUB

88RHCSA DAY - 04

RHCSA

Lab 18.1

Make sure that the firewalld service is started on boot. Also

make sure that the iptables service can never be started at

the same time.

Change your GRUB 2 boot configuration so that you will

see boot messages upon startup.

89RHCSA DAY - 04

RHCSA

Chapter 19:

Essential Boot Procedure Troubleshooting

90RHCSA DAY - 04

RHCSA

Chapter 19 Objectives

The following topics are covered in this chapter:

• Understanding the RHEL 7 Boot Procedure

• Passing Kernel Boot Arguments

• Using a Rescue Disk

• Fixing Common Issues

• Recovering Access to a Virtual Machine

The following RHCSA exam objectives are covered in this

chapter:

• Boot systems into different targets manually

• Interrupt the boot process in order to gain access to a system

91RHCSA DAY - 04

RHCSA

Troubleshooting the Boot Procedure

92RHCSA DAY - 04

RHCSA

Understanding the RHEL 7 Boot Procedure

93RHCSA DAY - 04

RHCSA

Understanding the RHEL 7 Boot Procedure

94RHCSA DAY - 04

RHCSA

Understanding the RHEL 7 Boot Procedure

95RHCSA DAY - 04

RHCSA

Boot Phase Configuration and Troubleshooting Overview

96RHCSA DAY - 04

RHCSA

Passing Kernel Boot Arguments

97RHCSA DAY - 04

RHCSA

Accessing the Boot Prompt

98RHCSA DAY - 04

RHCSA

Accessing the Boot Prompt

99RHCSA DAY - 04

RHCSA

Accessing the Boot Prompt

100RHCSA DAY - 04

RHCSA

Starting a Troubleshooting Target

101RHCSA DAY - 04

RHCSA

Exercise 19.1 Exploring troubleshooting targets.

102RHCSA DAY - 04

RHCSA

Using a Rescue Disk

103RHCSA DAY - 04

RHCSA

Restoring System Access Using a Rescue Disk

104RHCSA DAY - 04

RHCSA

Restoring System Access Using a Rescue Disk

105RHCSA DAY - 04

RHCSA

Restoring System Access Using a Rescue Disk

106RHCSA DAY - 04

RHCSA

Exercise 19.2 Using the Rescue Option

107RHCSA DAY - 04

RHCSA

Exercise 19.2 Using the Rescue Option

108RHCSA DAY - 04

RHCSA

Exercise 19.2 Using the Rescue Option

109RHCSA DAY - 04

RHCSA

Reinstalling GRUB Using a Rescue Disk

110RHCSA DAY - 04

RHCSA

Re-Creating the Initramfs Using a Rescue Disk

111RHCSA DAY - 04

RHCSA

Fixing Common Issues

112RHCSA DAY - 04

RHCSA

Reinstalling GRUB 2

113RHCSA DAY - 04

RHCSA

Fixing the Initramfs

114RHCSA DAY - 04

RHCSA

Recovering from File System Issues

115RHCSA DAY - 04

RHCSA

Recovering from File System Issues

116RHCSA DAY - 04

RHCSA

Resetting the Root Password

117RHCSA DAY - 04

RHCSA

Resetting the Root Password

118RHCSA DAY - 04

RHCSA

Resetting the Root Password

119RHCSA DAY - 04

RHCSA

Summary

120RHCSA DAY - 04

RHCSA

Define Key Terms

Define the following key terms:

• target,

• GRUB,

• initramfs,

• dracut

121RHCSA DAY - 04

RHCSA

Lab 19.1

122RHCSA DAY - 04

RHCSA

Chapter 20:

Using Kickstart

123RHCSA DAY - 04

RHCSA

Chapter 20 Objectives

The following topics are covered in this chapter:

• Setting Up an Installation Server

• Setting Up a TFTP and DHCP Server for PXE Boot

• Creating a Kickstart File

The following RHCSA exam objectives are covered in this

chapter:

• Installing Red Hat Enterprise Linux automatically using Kickstart

124RHCSA DAY - 04

RHCSA

Using Kickstart

125RHCSA DAY - 04

RHCSA

Setting Up an Installation Server

126RHCSA DAY - 04

RHCSA

Configuring a Network Server as Installation Server

127RHCSA DAY - 04

RHCSA

Exercise 20.1 Setting Up the Network Installation Server

128RHCSA DAY - 04

RHCSA

Exercise 20.1 Setting Up the Network Installation Server

129RHCSA DAY - 04

RHCSA

Setting Up a TFTP and DHCP Server for PXE Boot

130RHCSA DAY - 04

RHCSA

Setting Up a TFTP and DHCP Server for PXE Boot

131RHCSA DAY - 04

RHCSA

Setting Up a TFTP and DHCP Server for PXE Boot

132RHCSA DAY - 04

RHCSA

Setting Up a TFTP and DHCP Server for PXE Boot

133RHCSA DAY - 04

RHCSA

Setting Up a TFTP and DHCP Server for PXE Boot

134RHCSA DAY - 04

RHCSA

Configuring DHCP for PXE Boot

135RHCSA DAY - 04

RHCSA

Configuring DHCP for PXE Boot

136RHCSA DAY - 04

RHCSA

Configuring DHCP for PXE Boot

137RHCSA DAY - 04

RHCSA

Creating the TFTP PXE Server Content

138RHCSA DAY - 04

RHCSA

Exercise 20.2 Configuring the TFTP Server for PXE Boot

139RHCSA DAY - 04

RHCSA

Exercise 20.2 Configuring the TFTP Server for PXE Boot

140RHCSA DAY - 04

RHCSA

Exercise 20.2 Configuring the TFTP Server for PXE Boot

141RHCSA DAY - 04

RHCSA

Exercise 20.2 Configuring the TFTP Server for PXE Boot

142RHCSA DAY - 04

RHCSA

Exercise 20.2 Configuring the TFTP Server for PXE Boot

143RHCSA DAY - 04

RHCSA

Exercise 20.2 Configuring the TFTP Server for PXE Boot

144RHCSA DAY - 04

RHCSA

Creating a Kickstart File

145RHCSA DAY - 04

RHCSA

Using a Kickstart File to Perform an Automated Installation

146RHCSA DAY - 04

RHCSA

Using a Kickstart File to Perform an Automated Installation

147RHCSA DAY - 04

RHCSA

Exercise 20.3 Performing a Virtual Machine Network Installation Using a Kickstart File

148RHCSA DAY - 04

RHCSA

Exercise 20.3 Performing a Virtual Machine Network Installation Using a Kickstart File

149RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

150RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

151RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

152RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

153RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

154RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

155RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

156RHCSA DAY - 04

RHCSA

Modifying the Kickstart File with system-config-kickstart

157RHCSA DAY - 04

RHCSA

Making Manual Modifications to the KickstartFile

158RHCSA DAY - 04

RHCSA

Making Manual Modifications to the KickstartFile

159RHCSA DAY - 04

RHCSA

Making Manual Modifications to the KickstartFile

160RHCSA DAY - 04

RHCSA

Making Manual Modifications to the KickstartFile

161RHCSA DAY - 04

RHCSA

Making Manual Modifications to the KickstartFile

162RHCSA DAY - 04

RHCSA

Summary

163RHCSA DAY - 04

RHCSA

Define Key Terms

Define the following key terms:

• xinetd,

• tftp,

• installation server,

• Kickstart,

• anaconda

164RHCSA DAY - 04

RHCSA

Lab 20.1

Q&A

Recommended