chapter three
DESCRIPTION
Chapter Three. Linux Installation and Usage. Objectives. Install Linux Red Hat 7.2 using good practices Outline the structure of the Linux interface Enter basic shell commands and find command documentation Properly shut down the Linux operating system. Installing Linux. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/1.jpg)
Linux+ Guide to Linux Certification
Chapter Three
Linux Installation and Usage
![Page 2: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/2.jpg)
ObjectivesObjectives
• Install Linux Red Hat 7.2 using good practices
• Outline the structure of the Linux interface
• Enter basic shell commands and find command documentation
• Properly shut down the Linux operating system
![Page 3: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/3.jpg)
Installing LinuxInstalling Linux
• Installation methods– Installation from an FTP server across the
network– Installation from an HTTP Web server across the
network– Installation from an NFS server across the
network– Installation from packages located on the hard
disk
![Page 4: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/4.jpg)
Creating Boot DisksCreating Boot Disks
• Boot disk– Bootable floppy disk that can be used to start a
Linux system or initiate a Linux installation
• Rawrite– Windows utility that can be used to create
installation boot disks
![Page 5: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/5.jpg)
Creating Boot DisksCreating Boot Disks
• boot.img– Used to create a floppy disk for a CD-ROM or
hard disk installation
• bootnet.img– Used to create a floppy disk for an installation
from a server across the network
• pcmcia.img– Used to create a floppy disk for an installation on
portable laptop computers
![Page 6: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/6.jpg)
Starting the InstallationStarting the Installation
Figure 3-1: Beginning a Red Hat installation
![Page 7: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/7.jpg)
Starting the InstallationStarting the Installation
• By far, the largest problem during installation is initiating a graphical installation
• Framebuffers– Abstract representations of video adapter card
hardware that programs may use instead of directly communicating with the video adapter card hardware
![Page 8: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/8.jpg)
Choosing the Language, Choosing the Language, Keyboard, and MouseKeyboard, and Mouse
Figure 3-2: Selecting an installation language
![Page 9: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/9.jpg)
Choosing the Language, Choosing the Language, Keyboard, and MouseKeyboard, and Mouse
Figure 3-3: Verifying keyboard configuration
![Page 10: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/10.jpg)
Choosing the Language, Choosing the Language, Keyboard, and MouseKeyboard, and Mouse
Figure 3-4: Verifying mouse configuration
![Page 11: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/11.jpg)
Choosing the Language, Choosing the Language, Keyboard, and MouseKeyboard, and Mouse
Figure 3-5: Welcome screen
![Page 12: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/12.jpg)
Providing Installation OptionsProviding Installation Options
Figure 3-6: Choosing installation options
![Page 13: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/13.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
Figure 3-7: Choosing a partitioning method
![Page 14: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/14.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
• Virtual memory– Also known as swap memory– Consists of an area on the hard disk that can be
used to store information that would normally reside in physical memory, if the physical memory is being used excessively
![Page 15: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/15.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
Table 3-1: Common Linux filesystems and sizes
![Page 16: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/16.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
• Each of the filesystems described in Table 3-1 may be of different types– The most common types used today are:
• Ext2
• Ext3
• Vfat
• REISER
![Page 17: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/17.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
• Journaling filesystem– Keeps track of the information written to the hard
drive in a journal
• Disk Druid– Easy-to-use graphical partitioning program– Using Disk Druid, you can delete existing
partitions, create and edit new ones, or even create a Redundant Array of Inexpensive Disks (RAID)
![Page 18: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/18.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
Figure 3-8: Disk Druid
![Page 19: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/19.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
Figure 3-9: Adding a partition
![Page 20: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/20.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
Figure 3-10: Formatting partitions
![Page 21: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/21.jpg)
Partitioning the Hard DiskPartitioning the Hard Disk
Figure 3-11: The fdisk utility
![Page 22: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/22.jpg)
Configuring the Boot LoaderConfiguring the Boot Loader
• Boot loader– Program started by the BIOS ROM after POST, which
loads the Linux kernel into memory from a hard disk partition inside the computer but can also boot other operating systems if they exist on the hard drive
• There are two available boot loaders that one may choose during the Red Hat Linux installation:– LInux LOader (LILO)
– GRand Unified Bootloader (GRUB)
![Page 23: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/23.jpg)
Configuring the Boot LoaderConfiguring the Boot Loader
• Large Block Addressing 32-bit (LBA32)– Parameter that may be specified that enables
Large Block Addressing in a boot loader– Required only if a large hard disk that is not fully
supported by the system BIOS is used
![Page 24: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/24.jpg)
Configuring the Boot LoaderConfiguring the Boot Loader
Figure 3-12: Configuring the boot loader
![Page 25: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/25.jpg)
Configuring the Network and Configuring the Network and FirewallFirewall
Figure 3-13: Configuring the network
![Page 26: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/26.jpg)
Configuring the Network and Configuring the Network and FirewallFirewall
Figure 3-14: Configuring a firewall
![Page 27: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/27.jpg)
Choosing a System Language and Choosing a System Language and Time ZoneTime Zone
Figure 3-15: Configuring a language support
![Page 28: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/28.jpg)
Choosing a System Language and Choosing a System Language and Time ZoneTime Zone
Figure 3-16: Selecting a time zone
![Page 29: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/29.jpg)
Creating User Accounts and Creating User Accounts and Configuring AuthenticationConfiguring Authentication
Figure 3-17: Configuring the root password
![Page 30: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/30.jpg)
Creating User Accounts and Creating User Accounts and Configuring AuthenticationConfiguring Authentication
Figure 3-18: Configuring a regular user account
![Page 31: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/31.jpg)
Creating User Accounts and Creating User Accounts and Configuring AuthenticationConfiguring Authentication
Figure 3-19: Configuring the type of authentication
![Page 32: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/32.jpg)
Selecting PackagesSelecting Packages
Figure 3-20: Selecting packages to install
![Page 33: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/33.jpg)
Selecting PackagesSelecting Packages
Figure 3-21: Refining individual package selection
![Page 34: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/34.jpg)
Configuring the Video HardwareConfiguring the Video Hardware
Figure 3-22: Verifying video hardware
![Page 35: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/35.jpg)
Installing Packages and Creating Installing Packages and Creating Boot DisksBoot Disks
Figure 3-23: Copying packages to the hard disk
![Page 36: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/36.jpg)
Installing Packages and Creating Installing Packages and Creating Boot DisksBoot Disks
Figure 3-24: Creating a boot disk
![Page 37: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/37.jpg)
Selecting Monitor and X Windows Selecting Monitor and X Windows SettingsSettings
Figure 3-25: Choosing a monitor
![Page 38: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/38.jpg)
Selecting Monitor and X Windows Selecting Monitor and X Windows SettingsSettings
Figure 3-26: Configuring X Windows
![Page 39: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/39.jpg)
Selecting Monitor and X Windows Selecting Monitor and X Windows SettingsSettings
Figure 3-27: Completing the installation
![Page 40: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/40.jpg)
Shells, Terminals, and the KernelShells, Terminals, and the Kernel
• Terminal– Channel that allows a certain user to log in and
communicate with the kernel via a user interface
• Shell– User interface that accepts input from the user and
passes the input to the kernel for processing
– Shell used by default in Linux is the BASH Shell (Bourne Again Shell)
![Page 41: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/41.jpg)
Shells, Terminals, and the KernelShells, Terminals, and the Kernel
Figure 3-28: Shells, terminals, and the kernel
![Page 42: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/42.jpg)
Shells, Terminals, and the KernelShells, Terminals, and the Kernel
Figure 3-29: The gdm (GNOME Display Manager)
![Page 43: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/43.jpg)
Shells, Terminals, and the KernelShells, Terminals, and the Kernel
Table 3-2: Common Linux terminals
![Page 44: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/44.jpg)
Shells, Terminals, and the KernelShells, Terminals, and the Kernel
Figure 3-30: A GNOME terminal
![Page 45: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/45.jpg)
Shells, Terminals, and the KernelShells, Terminals, and the Kernel
Figure 3-31: A KDE terminal
![Page 46: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/46.jpg)
Basic Shell CommandsBasic Shell Commands
• Commands– Indicate name of the program to execute and are case
sensitive
• Options– Specific letters starting with a dash “-” and appearing
after command name to alter way the command works
• Arguments– Specify the parameters that the command works upon,
which are not predetermined by the person who developed the command
![Page 47: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/47.jpg)
Basic Shell CommandsBasic Shell Commands
Table 3-3: Some Common Linux commands
![Page 48: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/48.jpg)
Shell MetacharactersShell Metacharacters
• Metacharacters– Key combinations that have special meaning in
the Linux OS– One of the most commonly used metacharacters
is the $ character
![Page 49: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/49.jpg)
Shell MetacharactersShell Metacharacters
Table 3-4: Common BASH Shell metacharacters
![Page 50: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/50.jpg)
Getting Command HelpGetting Command Help
• Most distributions of Linux contain more than 1000 different Linux commands in common configurations
• Manual pages– Commonly referred to as man pages– The most common set of local command syntax
documentation, available by typing the man command-line utility
![Page 51: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/51.jpg)
Getting Command HelpGetting Command Help
Table 3-5: Manual page section numbers
![Page 52: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/52.jpg)
Getting Command HelpGetting Command Help
• Info pages– Set of local, easy-to-read command syntax
documentation available by typing the info command-line utility
• Today, both the info pages and the manual pages are used to find documentation because manual pages have been used to find documentation in Linux since its inception
![Page 53: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/53.jpg)
Shutting Down the Linux SystemShutting Down the Linux System
Table 3-6: Commands to halt and reboot the Linux operating system
![Page 54: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/54.jpg)
Chapter SummaryChapter Summary
• Most software information can be specified at the time of installation– However, the network configuration and package
selection should be carefully planned before installation
• CD-ROM-based installation is the easiest, most common method for installing Linux and seldom requires the creation of an installation boot disk
![Page 55: Chapter Three](https://reader035.vdocument.in/reader035/viewer/2022062409/56814e8f550346895dbc358b/html5/thumbnails/55.jpg)
Chapter SummaryChapter Summary
• A typical Linux installation prompts the user for information such as language, boot loader, hard disk partitions, network configuration, firewall configuration, time zone, user accounts, authentication, and package selection
• Users must log into a terminal and receive a shell before being able to interact with the Linux system and kernel
• Regardless of the type of terminal that you use, you are able to enter commands, options, and arguments at a shell prompt to perform system tasks, obtain help, or shut down the Linux system