Reprint: Basic knowledge about Linux graphical interface __linux

Source: Internet
Author: User
Many Linux beginners do not remove the relationship between Linux and X, between x and Xfree86, between X and Kde,gnome, and so on. Often confusing concepts, I would like to explain the x,x11,xfree,wm,kde in a more understandable way, The relationship between GNOME and so on. Due to my limited level Ken may be wrong, please correct me.

First, Linux itself does not have a graphical interface, Linux is now the implementation of the graphical interface is only under the Linux application implementation.

Graphical interface is not a part of Linux, Linux is just a command line operating system, Linux and Xfree relationship is equivalent to the same year's DOS and WINDOWS3.0, windows3.0 is not a stand-alone operating system, it is only the expansion of DOS, It is a DOS application-level system, not a stand-alone operating system, and the same xfree is just an application under Linux. Not part of the system, but X is in a convenient way for users to use the computer. WINDOWS95 and later versions are different, Their graphical interface is a part of the operating system, the graphical interface in the system kernel is implemented, without a graphical interface windows will not become windows, but Linux is not the same, no graphical interface Linux or Linux, Many Linux-loaded Web servers do not install X servers at all. This is also one of the important differences between Windows and Linux.

Two, X is an agreement, not a specific software:

X is protocol, just like the HTTP protocol, IP protocol, this concept many beginners even learn Linux for some time people are confused, an X-based application needs to run and display content when he joined to the X server, Start a conversation with an X protocol and a server. For example an X application to output a circle on the screen so he said to the X server with the X protocol: Hey! I need to draw a circle on the screen. The X application is only responsible for telling the X server where to draw a large circle on the screen and in what color, and the specific "painting" action, such as how the circle generated, with what graphics card driver to command the video card completion and so on work is done by the X server. The x server is also responsible for capturing keyboard and mouse movements, Assuming the X server catches the left mouse button pressed, he tells the X application: Dear application sir, I found the mouse was pressed, do you have any instructions?
If the x application is designed to draw a square on the screen when the mouse Zuojian is pressed, x app says to x server: Please draw a square again, of course he will tell the server where to paint with what size square, but do not care about how to draw--that is the server thing.

Then the protocol needs specific software to implement, and that's what I'm going to talk about here:

Three, X and XFree86 relations.

With a protocol, you need specific software to implement this Protocol. Like we have traffic regulations, we need the police to maintain the traffic order according to the regulations. XFree86 is such a "traffic policeman" to achieve the agreement according to the law. He did the X-Protocol to complete the on-screen tasks presented by the X. Application. Of course, not only a certain traffic police can go to maintain and implement this law, such as also by traffic wardens to achieve traffic regulations, when necessary, the police can intervene, of course, if they must understand the traffic laws, That is to understand the agreement. So the software that implements the X protocol is not only Xfree86,xfree86, a free x server software that implements the X protocol.
Commercially used motif, there are now xorg, and a lot of small X-Server software written by the love number. You can even run an X server on Windows, This allows you to run an X application on a Linux system and then display it on another Windows system. What an air. You can use Google to find such an X server software.
But the most commonly used on Linux is XFree86. By the way, the Apple Computer's graphical interface is also the X protocol, and is considered to be the best X protocol graphics interface, and his implementation of the X protocol is in the system kernel, so the performance is significantly better, This is why many large three-dimensional graphic design software is on the Apple platform.

To facilitate understanding of the HTTP protocol to compare:
Protocol is HTTP (Hyper Text transmission protocol)
Common servers to implement this protocol are: Apache IIS, etc.
The clients requesting these servers to transfer files are: IE, MOZILLA, Netscape, and so on.


What is the relationship between X and X11R6?

Don't know if beginners have noticed/usr/x11r6 this directory, which is the default installation directory for Xfree
X11R6 is actually X Protocol version one release 6
(x Agreement 11th Edition Sixth issue) means that the current X protocol is the 11th version, and then after 6 minor revisions. Different versions of the X protocol are not able to communicate. Like we're IPV4 and IPV6 can't communicate now, but don't worry, Today's X Server software and x applications follow X11R6.

In addition, these versions of XFree86 3.3.6 XFree86 4.3.6 are the version number of the software XFree86 that implements the X protocol. This is often the concept of high confusion for beginners.

The protocol version and the version of the software that implements the protocol--Have you cleared the distinction between the two concepts?

Five, what is the relationship between the X server and the WM (Windows Manager window manager)?

How do we start the graphical interface at ordinary times?
It would be a shame if you went into the graphical interface as soon as you opened it. It should be a good time for you to learn about the X server START process. You open a xterm input:

Init 3

You can safely return to the character interface.


Well, when you're done with the following experiments, you fully understand what the relationship is between X and the WM (Windows Manager window manager).

First enter the following command:
#startx

The starting graphical interface you see is a peaceful time to use the same complete graphical interface operating environment.
You can maximize, minimize, move, close windows, and so on.

Press Ctrl+alt+backspace to back up the character interface.

Input:
#xinit

Start the graphical interface again and you see what you see a xterm. and can't move. But you can enter the command in this xterm to open the X application, as I enter:
#mozilla
Open the browser, you see the browser and what is the difference between the usual? He is in the middle of the screen, cannot move, cannot be minimized, cannot be maximized, has no border.

Why does the same X application have this kind of impassability? Because we also started a WM (the window manager) when we used the STARTX to start the graphical interface, and if you used KDE to move KDE, If you use GNOME, you start gnome, but you don't start the WM when you start the graphical interface with Xinit.

Now do you understand the role of the window manager? His role is to maximize, minimize, move, close the window, and so on. And these are not X servers responsible for the completion.



If you use the Xinit to start the graphical interface and enter the TWM in the xterm, see what happens?
Xterm is added a border, you can move through this border, maximize, minimize this xterm,twm is the XFree86 of the window manager, is a relatively simple window manager, but he has the full characteristics of the window manager.

If you enter gnome-session without entering TWM, you can start gnome
or input startkde to start KDE.

Through the above experiments you can clearly understand their relationship.

Six, about KDE and GNOME

KDE and Gnome are the most common graphical interface operating environments in Linux, and they are more than just a window manager.
KDE is the abbreviation for King DESKTOP Envirment (King of the desktop environment). He is not only a window manager, there are many supporting applications and easy-to-use desktop environment, such as taskbar, Start menu, desktop icons and so on.

GNOME is an abbreviation for the GNU Network Object Model envirment. Like KDE, it is also a powerful integrated environment.

In addition to other UNIX systems, CDE is often used as such an environment.

The other small window managers are:
Windows Maker,after step,blackbox,fvwm,fvwm2, and so on, are common good window managers. REDHAT9 has window maker but the default does not install, we can install to try. As long as the Xinit wmaker& can be used windowmaker.



Seven, the Linux graphical interface hierarchy relationship Summary

Linux itself--> x Server--> window Manager (Integrated desktop environment)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.