anitsh / til

Today I Learn (til) - Github `Issues` used as daily learning management system for taking notes and storing resource links.
https://anitshrestha.com.np
MIT License
77 stars 11 forks source link

X Window System, X Server #48

Open anitsh opened 4 years ago

anitsh commented 4 years ago

https://en.wikipedia.org/wiki/X_Window_System https://www.x.org https://www.freedesktop.org

Context: How did I came to here? I was working on Dell Inspiron N5050. OS Ubuntu 18 LTS. It became slow and unstable. So I decided to find other GUI so installded Lubuntu. It improved speed but was unstable. Then I wanted to how stable and speed it would be just to have CLI version of Ubuntu. So deleted both ubuntu-desktop and lubuntu-desktop.

While trying to start Ubuntu in CLI mode, there was an error Failed to connect to lvmetad

With any button click, it led to the login prompt.

In the process, I ended up in startx, and let to this topic.

anitsh commented 3 years ago

X Server

X is an application that manages one or more graphics displays and one or more input devices (keyboard, mouse, etc.) connected to the computer. It works as a server and can run on the local computer or on another computer on the network. Services can communicate with the X server to display graphical interfaces and receive input from the user. It's worth noting, a common component used with an X server is the Window Manager, an application that manages the resizing and moving of windows and decorative elements of windows such as title bars, minimize, and close buttons. The X server can be started with the 'startx' command, or more commonly, from a display manager such as gdm. ~/.xinitrc is a shell script used by xinit, that starts the X server when not using a display manager, to define some application to start automatically in the X server. /etc/X11/xorg.conf is a configuration file used to give the X server information about the hardware components used, but now the X server can avoid using it, because it is capable of autoconfiguring itself.


X-Windows is a Unix/Linux Client-Server system. Although usually on the same computer, the Client and Server can be on different computers, unlike Microsoft Windows. X11 is a network protocol. It encodes things such as graphic primitives, images, pointer motion, and key presses. X clients are graphical applications like Firefox. Xorg is an X server. It implements X11 and provides an interface to keyboards, mice, and video cards. Gnome, KDE, LXDE, and Xfce are desktop environments. They provide libraries and specifications that applications use when running X-Windows, instead of a console login, the Display Manager i.e. Lightdm starts up. The DM starts the X-server and asks for login credentials and then launches the user's desktop environment. /etc/X11/xorg.conf is a configuration file used to give the X server information about the hardware components used, but now the X server can avoid using it, because it is capable of auto-configuring itself.

The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server. In the case of hosts, this provides a rudimentary form of privacy control and security. It is only sufficient for a workstation (single user) environment, although it does limit the worst abuses. Environments which require more sophisticated measures should implement the user-based mechanism or use the hooks in the protocol for passing other authentication data to the server.


Resource