Introduction
This lesson is about X11.
The main question is:
How does a Linux graphical session based on X11 work, and what do you need to know to inspect or adjust it at a beginner level?
What you should be able to do after this lesson:
- Understand the basic X11 client/server model.
- Recognize common X11 configuration paths.
- Understand
DISPLAY,xhost, andxauthat a beginner level. - Know where Xorg configuration snippets live.
- Be aware of Wayland as a modern alternative.
Big Idea: In X11, the "Server" Owns the Display
The naming feels backwards at first.
In X11:
- the X server owns the keyboard, mouse, and display
- X clients are the graphical programs that connect to it
That means:
- one machine can run the display server
- another program can send graphical output to it
This is why remote display ideas exist in X11.
Core Pieces to Recognize
X server
Usually provided by Xorg on modern Linux systems.
X client
Any graphical application that talks to the X server.
Display manager
The graphical login layer.
Window manager / desktop environment
The part that gives you windows, panels, menus, and desktop behavior.
DISPLAY
DISPLAY tells an X client where to draw.
Show it:
echo "$DISPLAY"
Common examples:
:0
localhost:10.0
Simple meanings:
:0often means the first local display- remote-looking values often appear with SSH X forwarding
Xorg Configuration
Classic main file:
/etc/X11/xorg.conf
Modern snippet directory:
/etc/X11/xorg.conf.d/
Simple beginner idea:
- one big file was the old common picture
- smaller config snippets are now more common
Keyboard Layout and Small Overrides
LPIC expects awareness that you can override parts of X11 config.
Examples of things you may change:
- keyboard layout
- monitor options
- input-device behavior
You do not need deep Xorg tuning here. You do need to know where that kind of config lives.
Access Control: xhost and xauth
xhost
Very simple access control tool.
xauth
Cookie-based X authentication tool.
Beginner rule:
xhostis easy to demonstratexauthis the safer and more normal authentication story
Helpful Inspection Tools
xdpyinfo
Show information about the X display.
xdpyinfo | head
xwininfo
Inspect window information.
xwininfo
These are awareness-level tools that help you see the X server context.
Remote X11 at a Beginner Level
X11 can display applications remotely.
Simple idea:
- graphical program runs somewhere
- display appears somewhere else
This is one reason DISPLAY, xhost, and xauth matter.
Legacy / Exam Note
Many modern Linux desktops use Wayland by default. LPIC-1 still expects X11 awareness because:
- X11 concepts are still common in Linux administration
- remote desktop and compatibility topics often refer to them
- older docs and tools still use the X11 mental model
So for the exam:
- know X11 basics
- know
DISPLAY - know the config paths
- know that Wayland exists as a modern alternative
Practice Step by Step
1) Check the current display variable
- Run:
echo "$DISPLAY" - Ask: is there an active graphical session value?
2) Inspect the X display
- Run:
xdpyinfo | head - Notice that the command reports information about the active X display.
3) Recognize Xorg config paths
- Remember:
/etc/X11/xorg.conf - Also remember:
/etc/X11/xorg.conf.d/ - Read them as: classic main file and modern snippet directory.
Cheat Sheet
- X server = owns display, keyboard, and mouse
- X client = graphical application
DISPLAY= where an X client should draw/etc/X11/xorg.conf= classic Xorg config file/etc/X11/xorg.conf.d/= modern Xorg config snippetsxhost= simple X access controlxauth= X authentication cookiesxdpyinfo= inspect display informationxwininfo= inspect window information- Wayland = modern alternative to X11
Test Your Knowledge
Complete the quiz to assess your understanding of this course's concepts.
