Linux+ Guide to Linux Certification, Second Edition

Slides:



Advertisements
Similar presentations
Guide to Linux Installation and Administration, 2e1 Chapter 5 Using Linux Graphical Environments.
Advertisements

The X Windows system Unit objectives A.Explain the purpose of GUI components, list common window managers and desktop environments B. Configure X Windows.
Linux Boot Loaders. ♦ Overview A boot loader is a small program that exists in the system and loads the operating system into the system’s memory at system.
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Week 8 System Initialization and X Windows. Objectives  Summarize the major steps necessary to boot a Linux system  Configure the LILO and GRUB boot.
Booting and Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
Linux+ Guide to Linux Certification Chapter Nine System Initialization.
Linux Booting Procedure
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Booting the Linux Kernel Dr. Michael L. Collard 1.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Second Edition
Chapter One The Essence of UNIX.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Linux Installation Chapter II. Linux Distributions Pre-packaged, installable Linux Anyone can compile a distribution, have to inculde GPL Available for.
1 Web Server Administration Chapter 3 Installing the Server.
Installing Windows XP and Windows Installing two different versions of Windows on the same machine. In this example, Windows 2000 and Windows XP.
Lesson 5-Accessing Networks. Overview Introduction to Windows XP Professional. Introduction to Novell Client. Introduction to Red Hat Linux workstation.
Module 8 Linux Installation Procedures 8.1 Pre-Installation Tasks 8.2 Installing and Configuring Linux 8.3 X Server 8.4 Post Installation Configuration.
Bootloader / multi-boot
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Guide To UNIX Using Linux Third Edition
System Startup and Shutdown
Getting Started with Linux: Novell’s Guide to CompTIA’s Linux+ (Course 3060) Section 2 Use the Linux Desktop.
Chapter 2: Exploring the Desktop The Complete Guide to Linux System Administration.
Installing Linux Redhat: A how to guide in installing and configuring Redhat 6.2.
Linux GUI Chapter 5. Graphical User Interface GUI vs. CLI Easier and more intuitive More popular and advanced Needed for graphics, web browsing Linux.
CIS 116SUNY Ulster Chapter L5 – The GUI Karl Wick.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
Booting and boot levels
Linux Booting Procedure
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Day 4 Understanding Hardware Partitions Linux Boot Sequence.
Operating Systems  A collection of programs that  Coordinates computer usage among users  Manages computer resources  Handle Common Tasks.
University of Management & Technology 1 Operating Systems & Utility Programs.
CHAPTER 8 TROUBLESHOOT LINUX SYSTEM. 8.1 Troubleshoot methodology The maintenance cycle.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
SUSE Linux Enterprise Desktop Administration Chapter 2 Use the Linux Desktop.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Linux+ Guide to Linux Certification Chapter Ten The X Window System.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Troubleshooting and Performance
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
CHAPTER 2. Overview 1. Pre-Installation Tasks 2. Installing and Configuring Linux 3. X Server 4. Post Installation Configuration and Tasks.
Linux Startup Process Presenter: Dipu Gupta.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2009 by Scott Orr and the Trustees of Indiana University.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 6A Operating System Basics PART I.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
2: Operating Systems Networking for Home & Small Business.
Computer Operating Systems And Software applications.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
1 COP 4343 Unix System Administration Unit 1: –Linux OS structure –Distributions –Hardware inventory –Disks and partitions –Installation steps –Boot loader.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
Guide to Linux Installation and Administration, 2e
TOPIC 6: SYSTEM START-UP AND CONFIGURATION
Structure of Unix OS.
CONFIGURING HARDWARE DEVICE & START UP PROCESS
X Windows.
Installing Linux Redhat:
SUSE Linux Enterprise Desktop Administration
Modern PC operating systems
Presentation transcript:

Linux+ Guide to Linux Certification, Second Edition Chapter 9 System Initialization and X Windows

Linux+ Guide to Linux Certification, 2e Objectives Summarize the major steps necessary to boot a Linux system Configure the LILO and GRUB boot loaders Dual boot Linux with the Windows OS using LILO, GRUB, and NTLOADER Understand how the init daemon initializes the system at boot time into different runlevels Linux+ Guide to Linux Certification, 2e

Objectives (continued) Configure the system to start daemons upon system startup Explain the purpose of the major Linux GUI components: X Windows, Window Manager, and desktop environment List common Window Managers and desktop environments used in Linux Configure X Windows settings using various Linux utilities Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e The Boot Process POST: Series of tests run when computer is turned on Ensures functionality of hardware MBR: Defines partitions and boot loader Normally located on first HDD sector Boot loader: Program used to load an OS MBR might contain pointer to a partition containing a boot loader on the first sector Active partition: Partition pointed to by MBR One per HDD Linux+ Guide to Linux Certification, 2e

The Boot Process (continued) /boot: Directory containing kernel and boot-related files Vmlinuz-<kernel version>: Linux kernel file Daemon: System process that performs useful tasks e.g., printing, scheduling, OS maintenance Init (initialize) daemon: First process started by Linux kernel Loads all other daemons Brings system to usable state Linux+ Guide to Linux Certification, 2e

The Boot Process (continued) Figure 9-1: The boot process Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Boot Loaders Primary function: Load Linux kernel into memory Other functions: Passing information to kernel Booting another OS Two most common boot loaders: Linux Loader (LILO) GRand Unified Boot loader (GRUB) Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e LILO Traditional Linux boot loader Typically located on MBR Allows choice of OS to load at startup To configure, edit /etc/lilo.conf Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e LILO (continued) append= keyword (in /etc/lilo.conf): Useful for manually passing information to Linux kernel Can pass almost any hardware information Format is hardware dependent Must reinstall LILO if /etc/lilo.conf file altered lilo command: Reinstalls LILO -u option: Uninstall LILO Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e GRUB More recent than the LILO boot loader Stage 1: First major part of GRUB Typically resides on MBR Points to Stage 1.5 Stage1.5: Loads filesystem support Resides in /boot/grub Stage2: Performs boot loader functions Displays graphical boot loader screen To configure, edit /boot/grub/grub.conf Read directly by Stage 2 boot loader HDDs and partitions identified by numbers Format: (hd<drive#>,<partition#>) Linux+ Guide to Linux Certification, 2e

GRUB (continued) Figure 9-3: GRUB boot loader screen Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e GRUB (continued) GRUB root partition: Partition containing Stage 2 boot loader and grub.conf file GRUB normally allows manipulation of boot loader To prevent, enable password protection grub-md5-crypt command: Generates encrypted password for use in grub.conf file Can switch boot loader from GRUB to LILO at any time grub-install command: Installs GRUB boot loader Linux+ Guide to Linux Certification, 2e

GRUB (continued) Figure 9-4: Viewing help at the GRUB boot loader screen prompt Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Dual Booting Linux Only one OS may be used at a time Boot loader may be configured to allow choice of OS at boot time Linux+ Guide to Linux Certification, 2e

Using LILO or GRUB to Dual Boot other Operating Systems Dual boot: Two or more OSs exist on HDD Easiest if Linux installed after another OS Allows installation program to detect other OS Place appropriate entries in boot loader configuration file LILO and GRUB cannot load Windows Kernel directly Linux+ Guide to Linux Certification, 2e

Using LILO or GRUB to Dual Boot other Operating Systems (continued) Figure 9-5: Partitioning for a dual boot system Linux+ Guide to Linux Certification, 2e

Using LILO or GRUB to Dual Boot other Operating Systems (continued) Figure 9-6: Configuring GRUB for a dual boot system Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Using FIPS Windows installers use entire HDD for Windows partitions Leaves no space for Linux First non-destructive Interactive Partition Splitter (FIPS): Resizes Windows partition Preserves Windows OS on Windows partition Creates space to install Linux Linux+ Guide to Linux Certification, 2e

Using FIPS (continued) Guidelines/limitations to using FIPS: FAT16 and FAT32 filesystems only Will only work with primary Windows partition Windows partition split into two primary partitions Need sufficient free space within existing Windows partition to allow Linux installation Linux+ Guide to Linux Certification, 2e

Using a Windows Boot Loader to Dual Boot Linux Specify location of GRUB or LILO in Windows boot loader configuration NTLOADER: Boot loader available with Windows NT/2000/XP At boot time, prompts for OS to boot Able to load LILO or GRUB Windows must be installed on first primary active partition NTLOADER placed on MBR by default Linux+ Guide to Linux Certification, 2e

Using a Windows Boot Loader to Dual Boot Linux (continued) Figure 9-7: Configuring GRUB to reside on a Linux partition Linux+ Guide to Linux Certification, 2e

Using a Windows Boot Loader to Dual Boot Linux (continued) When Linux installed, install GRUB on first sector of the partition Avoids overwriting NTLOADER in MBR After Linux installed: Run Linux rescue utility Make GRUB bootable image file (linboot.bin) Reboot into Windows OS Copy linboot.bin to C:\ Configure NTLOADER configuration file Linux+ Guide to Linux Certification, 2e

Using a Windows Boot Loader to Dual Boot Linux (continued) Boot.ini: File used to configure NTLOADER For NTLOADER to be able to boot Linux, must specify the path to linboot.bin Linux+ Guide to Linux Certification, 2e

Using a Windows Boot Loader to Dual Boot Linux (continued) Figure 9-8: NTLOADER operating system choice screen at boot time Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Linux Initialization Kernel assumes control after Linux loaded Executes first daemon process (init daemon) /etc/inittab: Configuration file for init daemon Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Runlevels Runlevel: Defines number and type of daemons loaded into memory and executed init daemon responsible for changing runlevels Often called initstates runlevel command: Displays current and most recent runlevel init command: Change OS runlevel telinit command: Alias to init command Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e The /etc/inittab File Consulted to start or stop daemons /etc/rc.d/rc.sysinit: First script executed during system startup Init hardware, set variables, check filesystems, perform system tasks for daemon loading mingetty program: Displays login prompt on character-based terminals /etc/rc.d/rc.local file: Performs post-system-startup tasks Linux+ Guide to Linux Certification, 2e

The /etc/inittab File (continued) /etc/rc.d/rc command: Executes all files starting with S or K in /etc/rc.d/rc*.d/ Runlevel must be specified e.g., /etc/rc.d/rc 5 will execute files in /etc/rc.d/rc5.d/ Symbolic links to scripts that start daemons S means “Start,” K means “Kill” Linux+ Guide to Linux Certification, 2e

The /etc/inittab File (continued) Figure 9-9: The Linux initialization process Linux+ Guide to Linux Certification, 2e

Configuring Daemon Startup Most symbolic links in /etc/rc.d/rc*.d point to daemon executable files in /etc/rc.d/init.d Most daemons accept arguments start, stop, restart To add daemons to be automatically started: Add executable to /etc/rc.d/init.d Create appropriate links to /etc/rc.d/rc*.d ntsysv utility: Modifies file entries in /etc/rc.d/rc*.d directories Linux+ Guide to Linux Certification, 2e

Configuring Daemon Startup (continued) Figure 9-10: Results of ntsysv―level 5 command Linux+ Guide to Linux Certification, 2e

The X Windows System: Linux GUI Components Figure 9-11: Components of the Linux GUI Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e X Windows X Windows: Core component of Linux GUI X client: Requests graphics from X server and displays them Does not need to run on same computer as X Windows X server: Draws graphics XFree86: OSS version of X Windows Originally intended for Intelx86 platform Linux+ Guide to Linux Certification, 2e

Windows Managers and Desktop Environments Window manager: Modifies look and feel of X Windows Desktop environment: Works with a window manager to provide standard GUI environment Uses standard programs and development tools KDE and GNOME are most common Linux+ Guide to Linux Certification, 2e

Windows Managers and Desktop Environments (continued) K Windows Manager (kwm): Window manager that works under KDE Qt toolkit: Software toolkit used with KDE GNOME Desktop Environment: Default desktop environment in Red Hat Linux Sawfish Window Manager GTK+ toolkit Xfce Desktop Environment: Consumes less hardware resources than KDE or GNOME Linux+ Guide to Linux Certification, 2e

Windows Managers and Desktop Environments (continued) Figure 9-12: The KDE desktop Linux+ Guide to Linux Certification, 2e

Windows Managers and Desktop Environments (continued) Figure 9-13: The GNOME desktop Linux+ Guide to Linux Certification, 2e

Windows Managers and Desktop Environments (continued) Figure 9-14: The Xfce desktop Linux+ Guide to Linux Certification, 2e

Windows Managers and Desktop Environments (continued) Figure 9-15: The Tab Window Manager Linux+ Guide to Linux Certification, 2e

Starting and Stopping X Windows runlevel 5 starts gdm Displays graphical login screen Allows user to choose the desktop environment or Window Manager /etc/X11/gdm/gdm.conf: Contains gdm configuration data For runlevel 3: Start gdm manually Or, use startx command Linux+ Guide to Linux Certification, 2e

Starting and Stopping X Windows (continued) Figure 9-16: The GNOME Display Manager Linux+ Guide to Linux Certification, 2e

Starting and Stopping X Windows (continued) startx command: start X Windows and Window Manager or desktop environment specified in .Xclients file in home directory Usually points to .Xclients-default file Edit .Xclients-defaults file to start other desktops or Window Managers on X Windows Desktop Switching Tool: Change settings used in the .Xclients-default file from KDE or GNOME Linux+ Guide to Linux Certification, 2e

Starting and Stopping X Windows (continued) Figure 9-17: The Desktop Switching Tool Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Configuring X Windows X Windows interfaces with video hardware Requires information regarding keyboard, mouse, monitor, and video adapter card Required video adapter card information: Model Amount of RAM Chipset Required monitor information: Maximum resolution supported Horizontal sync (hsync) range Vertical sync (vsync) range Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) Mouse, keyboard, monitor, and video adapter card information stored in a file /etc/X11/xorg.conf: X.org implementation of X Windows /etc/X11/XF86Config: XFree86 implementation of X Windows mouseconfig and system-config-mouse commands: Configure mouse Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) Figure 9-18: Mouse configuration using mouseconfig Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) system-config-keyboard command: Configure keyboard system-config-display command: Configure video adapter card and monitor xvidtune utility: Fine-tune the vsync and hsync of the video card Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) Figure 9-19: Keyboard configuration using system-config-keyboard Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) Figure 9-20: Configuring resolution and color depth using system-config-display Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) Figure 9-21: Configuring video card and monitor hardware using system-config-display Linux+ Guide to Linux Certification, 2e

Configuring X Windows (continued) Figure 9-23: The xvidtune utility Linux+ Guide to Linux Certification, 2e