System Administration Terminals and the X Window System.

Slides:



Advertisements
Similar presentations
Introduction to Linux X-Windows, Desktop Environments Other commonly used programs.
Advertisements

Guide to Linux Installation and Administration, 2e1 Chapter 5 Using Linux Graphical Environments.
X Window. Module 3 X Window ♦ Introduction The X Window System (‘X’ or ‘X11’) is a graphical windowing system that was developed at MIT in ♦ The.
1. Objective 1 Overview of the Linux Desktop  X Server  Controls Graphical Interface  Manages Input Devices  Transmits Input actions to the client.
Chapter 11: The X Window System Guide To UNIX Using Linux Third Edition.
The X Windows system Unit objectives A.Explain the purpose of GUI components, list common window managers and desktop environments B. Configure X Windows.
A Guide to Unix Using Linux Fourth Edition
Install. Will your hardware work? Most things are compatible - a few are known not to be.
Week 8 System Initialization and X Windows. Objectives  Summarize the major steps necessary to boot a Linux system  Configure the LILO and GRUB boot.
Linux+ Guide to Linux Certification, Second Edition
Linux+ Guide to Linux Certification, Third Edition
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
X Window Manager and Remote Displays History and usage.
Linux GUI X-Windows System. X-Windows System A stable and extremely powerful GUI system that provides a complete Client/Server framework. The X-org foundation.
Overview Basic functions Features Installation: Windows host and Linux host.
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.
1 LINUX Desktops Using the GNOME and KDE Desktops Learning Red Hat Enterprise Linux & Fedora, 4th Edition By Bill McCarty, 2004.
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.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
E X C E E D I N G E X P E C T A T I O N S RUNLEVELS Linux System Administration Dr. Hoganson Kennesaw State University A runlevel is a mode of operation.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
X Window System.
COSC513 Project Linux Features Instructor: Prof. Mort Anvari Student: Yingfeng Luo ID: #
Instant Messaging for the Workplace A pure collaborative communication tool that does not distract users from their normal activities.
SUSE Linux Enterprise Desktop Administration Chapter 2 Use the Linux Desktop.
1 FreeBSD Installation ISOC/AfNOG Michuki Mwangi (Original materials by Hervey Allen – NSRC)
Linux+ Guide to Linux Certification Chapter Ten The X Window System.
SUSE Linux Enterprise Desktop Administration Chapter 14 Customize the Graphical Interface on SUSE Linux Enterprise Desktop 10.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
X Window System mangoking 2015/09/24. Computer Center, CS, NCTU Outline ❑ X Window System Introduction Architecture X11 Implementation The Window Manager.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
1 FreeBSD Installation AFNOG X Cairo, Egypt May 2009 Hervey Allen.
Chapter Eleven The X Window System. 2 Lesson A Starting and Navigating an X Window System.
XWN740 X-Windows Configuring and Using Remote Access (Chapter 13: Pages )‏
1 FreeBSD Installation AFNOG Chix 2011 Blantyre, Malawi 31 st Oct - 4 th Nov 2011 Dorcas Muthoni and Evelyn Namara.
CIS Lesson 7 X. Understanding X Overview One of the original open source projects Developed at MIT Criticisms of X Handles fonts poorly Security.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
Basic UNIX 4: More on the GUI ● How X works ● Window and desktop managers ● File managers ● Common tasks ● System administration tools Iowa State University.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
Basic UNIX 4: More on the GUI
Linux Essentials Chapter 1: Selecting an Operating System.
Session / Window Managers
Overview of Linux Fall 2016 Dr. Donghyun Kim
Development Environment
CSC227: Operating Systems
Introduction to Operating Systems
SUSE Linux Enterprise Desktop Administration
Operating System Concepts
An Introduction to Computers and Visual Basic
Chapter 3 Working With Unity
Introduction to Computers
Lecture 13 RPM and its advantages.
An Introduction to Computers and Visual Basic
Bomgar Remote support software
Red Hat Linux 9 Basics CHAPTER 2.
Using the Terminal Lab 3+.
Telnet/SSH Connecting to Hosts Internet Technology.
X Windows.
Installing Linux Redhat:
Getting Started: Amazon AWS Account Creation
SUSE Linux Enterprise Desktop Administration
An Introduction to Computers and Visual Basic
X Window System shunyi 2014/09/25.
February 16th, 2004 Class Meeting 5
Presentation transcript:

System Administration Terminals and the X Window System

Terminals: Then and Now ● "In the old days": real serial terminals ● Common now: "Virtual Terminal" on monitor ● In both cases, a tty "TeleTYpe" – a text terminal

Terminal Types ● vt100 ● ansi ● each uses different 'control sequences' to do things like erase characters, move the cursor around, etc

Termcap ● termcap: TERMinal CAPabilities database: an generic interface to different terminal types ● allows programs to say "move cursor here" and translates that into the actual control sequences the end terminal requires ● contains information about screen size, color capability, etc.

How terminals are started ● From inittab: mingetty runs to listen on a virtual terminal, displays login prompt: 1:2345:respawn:/sbin/mingetty tty1 ● Type in username, that is sent to login program ● login prompts for password, verifies that password, finds the user's default shell, and executes that ● User now has shell

How terminals are started ● When user exits shell, login exits and then mingetty exits ● Init respawns mingetty, starting the process over again

X Window System ● X is a framework for a graphical user interfaces, developed initially at MIT. ● A common implementation on Linux systems, is XFree86, an open source implementation of the X Window System ● A newer implemenation is the X.org implementation --- this is what Red Hat EL 4 and 5 use

Starting X ● startx ● XDM and variants

Startx ● startx is used for manually starting X11. It is typically run when your machine doesn't default to starting with X11 on. ● It is also useful when configuring X --- you can configure X, run startx to try it, and make changes as necessary

XDM and Variants ● xdm (the X Display Manager) and related programs (kdm, gdm, the KDE and Gnome versions, respectively, of xdm) start X and provide a graphical login screen. ● This is what starts up when you start Red Hat Enterprise Linux in runlevel 5

Which display manager will run? ● /etc/sysconfig/desktop contains prefered display manager DISPLAYMANAGER=”XDM” ● If that line does not exist, it simply defaults to a particular display manager (currently, gdm)

Window Managers ● X simply provides a protocol for drawing simple objects: lines, boxes, circles, etc. It has no concept of the menus, title bars, tool bars, etc., that we expect in a graphical user environment ● Window Managers offer an interface between X and programs, offering those common items and allowing for a common look

Window Managers ● Some display managers offer more, and are called "Desktop Environments", which provide higher- level things like file managers, inter-program communications, etc.

KDE ● The K Desktop Environment, a project of the KDE e.V., a German non-profit foundation

Gnome ● The desktop environment of the GNOME project, part of the GNU project of the Free Software Foundation

Which Window Manager runs? ● Depends on which display manager you run. gdm and kdm both offer popup menus that allow you to change the which window manager opens

prefdm (RHEL5) ● /etc/X11/prefdm is called by init when starting a graphical runlevel ● Prefdm takes the information in /etc/sysconfig/desktop (if it exists) and runs the appropriate display manager ● If X stops for some reason, init will respawn prefdm

Xsession (RHEL4) ● /etc/X11/xdm/Xsession is called by all three window managers to start the 'Default' window manager. This file looks in $HOME/.xsession $HOME/.Xclients ● If those files exist, they are executed.

Xsession ● So you could start gnome-session or startkde, which start the default gnome or kde window managers: exec gnome-session exec startkde ● or even something more arcane exec twm

/etc/sysconfig/desktop ● If neither of those files exist, it looks in /etc/sysconfig/desktop for a line that looks like DESKTOP=GNOME DESKTOP=KDE which in turn starts gnome-session or startkde

Configuring X ● Configuration for XFree86 is in the /etc/X11/xorg.conf file, which is a wonderfully long and complicated file. ● The X Window System is a very flexible system, allowing for heavy customization of nearly every aspect of the system. ● With that flexibility comes a lot of complexity.

Configuring X ● Fortunately, you typically configure X at installation time ● If you have to reconfigure afterwards, you can run /usr/bin/system-config-display which does a decent job of detecting cards and monitors and fixing things More complicated setups are left as an exercise to the reader