Linucate
~ Linucate_

106.1 Install and Configure X11

All Levels

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, and xauth at 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:

  • :0 often 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:

  • xhost is easy to demonstrate
  • xauth is 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
  1. Run: echo "$DISPLAY"
  2. Ask: is there an active graphical session value?
2) Inspect the X display
  1. Run: xdpyinfo | head
  2. Notice that the command reports information about the active X display.
3) Recognize Xorg config paths
  1. Remember: /etc/X11/xorg.conf
  2. Also remember: /etc/X11/xorg.conf.d/
  3. 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 snippets
  • xhost = simple X access control
  • xauth = X authentication cookies
  • xdpyinfo = inspect display information
  • xwininfo = inspect window information
  • Wayland = modern alternative to X11
🎯

Test Your Knowledge

Complete the quiz to assess your understanding of this course's concepts.