of 22

X Window

X Window JianJing Cao (ID #98284)
2 views22 pages
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Documenttranscript
Title: X Window 1 X Window
  • JianJing Cao
  • (ID 98284) 2 Content
  • Introduction
  • X Window System
  • Function
  • Window Principle
  • How X Window Works
  • Security
  • 3 Introduction
  • X window, a window system for UNIX was developed at M.I.T when graphics terminals came into existence
  • The X Window system is device independent -- it can run on most common computer platforms. It includes workstations from companies such as Sun Microsystems Inc, and Silicon Graphics Inc.
  • 4 Introduction
  • X window is a portable, network-transparent window system which runs on many different computers. It is frequently used in conjunction with the UNIX operating system
  • X window is a client-server model
  • 5 X Window System 6 X Window system 7 Function
  • X Window provides a consistent means of graphical user interaction for UNIX workstations.
  • Motif (one of toolkit) uses X window provides an introduction to graphic user interface (GUI) programming base on Unix operating system.
  • 8 Function
  • With X the programmer can write a single application in a single language and run this program on different machines with little or no modification. Moreover, applications can actually run programs on one computer and have the results displayed on another (or several) computer's terminal.
  • 9 X Window Principle
  • All forms of displaying of information in X are bit-mapped
  • X, like most other windowing systems, divides the screen into various parts that control input and output. Each part is called a window
  • Not all applications need to consist of a single window.
  • 10 X Window Principle
  • There is one special window, the background or root window. All other windows are children of the root .
  • 11 How X window Works
  • It runs on a machine with a display, keyboard, and a mouse
  • All a client program needs to do to use the X display is to open up a connection with the server and then send Protocol requests to it.
  • 12 How X window works
  • There are 4 types of messages passing between the client and server
  • Requests - the client can ask the server to draw something, or ask for information.
  • Replies - the server can reply.
  • Events - the server can supervise the client with something
  • Errors - the server can report an error
  • 13 Security
  • Problem
  • Solution
  • 14 Damage Possible By Attacker
  • destroy any (or all) of your windows
  • open new windows on your screen
  • view the contents of your screen remotely
  • log all keystrokes, including passwords, typed while in X
  • 15 Damage Possible By Attacker
  • generate spurious X events causing arbitrary instructions to be executed (this risk is particularly great if you use Emacs)
  • 16 Solution
  • Host Authentication
  • Token Authentication
  • 17 Host Authentication
  • Using xhost(display,add,move)
  • Benfit The xhost access control mechanism is certainly easy to use. A single program with a simple syntax is required Drawbacks 1.Many environments, where numerous users are allowed access to a particular host . 2. NCD servers, SGI systems, and Mac X for the Macintosh come with access control disable by default. 18 Token Authentication
  • xauth Program The xauth program is used for editing and displaying the user's magic cookie authorization information
  • The X Display Manager xdm, is a client which provides login screens for multiple X Servers
  • 19 Token Authentication
  • Benefits Authorization is now done on a user-by-user basis, not a host-by-host basis.
  • Drawbacks The xdm and xauth programs are time consuming for both the administrator and the end user to use and maintain. They require a good understanding of the X client-server model on the part of the user.
  • 20 Reference
  • http//search.yahoo.com/bin/search?pXwindow
  • Structure Computer Organization 4th Edition Andrew S. Tanenbaum
  • 21 END
    Advertisement
    MostRelated
    View more
    We Need Your Support
    Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

    Thanks to everyone for your continued support.

    No, Thanks
    SAVE OUR EARTH

    We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

    More details...

    Sign Now!

    We are very appreciated for your Prompt Action!

    x