CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
  • Week 1
    • 1.Operating Systems and the Kernel: What Linux Does
    • 2.The Birth of Linux: From Unix to Linus
    • 3.Free Software and Open Source: What a License Decides
    • 4.Distributions: The Unit That Bundles the Kernel and Tools for Sale
    • 5.Week 1 Review: The Identity Behind the Name Linux
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
    • 1.The Structure and Evolution of the X Window System
    • 2.Libraries and the Toolkit Layers
    • 3.Window Manager · Display Manager · Desktop Environment
    • 4.Running X and Remote Displays
    • 5.Week 8 Comprehensive Review: The X Window Name Tag Sheet
  • Week 9
  • Week 10
  • Week 11
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← Linux Master 2/Week 8/Day 3

Based on the Linux Master 2 exam syllabus·Report an error

Linux Master 2· AssociateWeek 8 · Day 3~23 min read

Day 3 - Window Manager · Display Manager · Desktop Environment

📌 Key Takeaways

  • The three do different jobs — the window manager handles windows, the display manager handles the login screen, and the desktop environment is the whole bundle.
  • Window managers: KWin · Mutter · Metacity · Xfwm · Windowmaker · Afterstep · Enlightenment · Fluxbox · twm
  • Display managers: XDM · GDM · KDM · SDDM · LightDM
  • Desktop environments: GNOME · KDE · Xfce · LXDE · MATE · Cinnamon · CDE
  • Questions that mix the names and ask you to pick the "one of a different kind" are repeatedly asked.

Where the Three Sit

Structure in which the desktop environment contains the window manager, with the display manager and X server supporting it from below

ItemWhat it doesWithout it
Window managerWindow borders, moving, resizingYou can neither move nor close windows
Display managerGraphical login screenLog in by text, then startx
Desktop environmentAll of the above + panel, file manager, applicationsOnly windows appear, with no integrated environment

The desktop environment contains the window manager. The fact that there is a containment relationship is the key to telling the three apart.

The Order in Which Things Appear After Power-On

   Boot complete (graphical.target)
        │
        ▼
   ① Display manager starts     launches the X server and draws the login screen      ← GDM · SDDM · LightDM
        │   enter ID and password, choose the session type
        ▼
   ② Session starts             the desktop environment comes up                       ← GNOME · KDE · Xfce
        │
        ├── window manager      window borders and placement                          ← Mutter · KWin · Xfwm
        ├── panel · desktop background
        └── file manager etc.   programs the user opens                               ← Nautilus · Dolphin · Thunar
        │
        ▼
   ③ Logout                     the session ends and returns to the login screen of ①
ItemWhen it operatesWhat the user sees
Display managerBefore login and after logoutThe one login screen
Window managerAll the time after loginThe title bar, borders, and buttons on each window
Desktop environmentAll the time after loginThe panel, menus, desktop background, and settings windows, all of it
  • The display manager and desktop environment can be chosen separately. It is possible to select a session on the login screen, enter through GDM, and use KDE. The "belongs to" column in the tables is just the default pairing.
  • A window manager can be used alone without a desktop environment. Conversely, a desktop environment cannot exist without a window manager. Running only Fluxbox or twm on a light system is the former case.
  • Because of the name "display manager", it is easy to mistake it for something that manages monitor resolution. What it does is login.

Window Managers

They handle drawing window borders, moving, resizing, and minimizing.

Window managerBelongs to
KWinKDE
MutterGNOME 3 and later
MetacityGNOME 2
XfwmXfce
OpenboxLXDE
MarcoMATE
MuffinCinnamon
WindowmakerStandalone (NeXTSTEP style)
AfterstepStandalone
EnlightenmentStandalone
Fluxbox, BlackboxStandalone (lightweight)
FVWM, twmVery old basics
CompizDedicated to 3D effects
  • twm (Tab Window Manager) is the simplest window manager, included with X by default.
  • Windowmaker · Afterstep · Fluxbox · Enlightenment are window managers used standalone that do not belong to a desktop environment. The names look unfamiliar, so they are easily used as choices.

Names with a Clue and Names Without

ClueNames that matchNote
Ends in wm (window manager)twm, FVWM, Xfwm, IceWMThe surest clue
Ends in WinKWinKDE's window manager
Ends in boxOpenbox, Fluxbox, BlackboxThe lightweight window manager lineage
No clue — must be memorizedMutter, Metacity, Marco, MuffinAll four are window managers of the GNOME lineage
No clue — must be memorizedWindowmaker, Afterstep, EnlightenmentStandalone window managers
Window managerOne-line history
Metacity → MutterMutter in GNOME 3 succeeded GNOME 2's Metacity
MarcoThe name MATE gave to what it inherited from Metacity
MuffinThe name Cinnamon gave to what it inherited from Mutter
Windowmaker · AfterstepBoth imitate the look of NeXTSTEP — that is why they appear together
FluxboxBuilt on top of Blackbox
FVWMSplit off from twm
  • Of the four starting with M, three are window managers and only MATE is a desktop environment. In a set of choices like Metacity · Mutter · Marco · MATE, the odd one out is MATE.
  • Combining windows into one screen while producing translucency, shadows, and window-switching effects is called compositing. Compiz was famous for these effects, and now KWin and Mutter do it themselves.

Display Managers

They handle the graphical login screen that appears after boot. When login succeeds, they start the session.

Display managerBelongs to
XDMThe default of the X Window System. The simplest
GDMGNOME (GNOME Display Manager)
KDMThe former KDE
SDDMThe current KDE Plasma
LightDMUbuntu, Xfce — lightweight
LXDMLXDE
  • The first letter of the name is a hint — GDM is GNOME, KDM is KDE, and XDM is X's default.
  • If you do not use a display manager, you log in by text and then launch X with startx.
NameFull nameAdditional notes
XDMX Display ManagerThe original, shipped with X. Almost no decoration
GDMGNOME Display ManagerThe current default Ubuntu edition also uses GNOME, so it is GDM
KDMKDE Display ManagerUp to KDE 4
SDDMSimple Desktop Display ManagerTook KDM's place from KDE Plasma 5
LightDM(Light + DM)A lightweight one not tied to any particular desktop. Common in the Xfce family and was the default of older Ubuntu
  • A display manager does three things — launches the X server, authenticates the user, and starts the chosen session.
  • The protocol used to bring up the login screen of a remote computer on my X server is XDMCP (X Display Manager Control Protocol). As the name says, it pairs with the display manager.
  • You can check which one is running now with systemctl status display-manager.
  • You turn on only one display manager at a time. Even if you install two, only one comes up at boot.

Desktop Environments

They bundle a panel, file manager, settings tools, and default applications on top of the window manager and provide one integrated environment.

Desktop environmentToolkitWindow managerFile manager
GNOMEGTK+MutterNautilus
KDE (Plasma)QtKWinDolphin
XfceGTK+XfwmThunar
LXDEGTK+OpenboxPCManFM
LXQtQtOpenboxPCManFM-Qt
MATEGTK+MarcoCaja
CinnamonGTK+MuffinNemo
CDEMotif——
  • GNOME and KDE are the two major camps. The key pairing is that GNOME is based on GTK+ and KDE on Qt.
  • Xfce and LXDE are lightweight environments, used on old computers.
  • CDE (Common Desktop Environment) is the standard desktop of traditional commercial Unix and is Motif-based.
EnvironmentHistory · nature
KDEStarted in 1996. The name comes from K Desktop Environment, and today's desktop is called KDE Plasma
GNOMEStarted in 1997. It is the desktop of the GNU project
XfceAims to be light. It was first built with XForms and then moved to GTK+
LXDELightweight X11 Desktop Environment — "lightweight" right in the name
LXQtLXDE rebuilt with Qt
MATESplit off to carry on GNOME 2
CinnamonSplit off from GNOME 3. Made by Linux Mint
CDEA standard jointly set by commercial Unix companies in the 1990s. Its window manager is dtwm
  • If asked about the lightness order, generally LXDE and Xfce are on the light side and GNOME and KDE are on the heavy side.
  • Grouped by toolkit, the GTK+ side is GNOME, Xfce, LXDE, MATE, and Cinnamon, and the Qt side is just two: KDE and LXQt. If asked to pick a "Qt-based desktop environment", it comes from these two.

Programs That Come with the Desktop Environment

A desktop environment has a set of default programs beyond the file manager. Questions that give a purpose and ask you to pick the program come from this area.

PurposeGNOME sideKDE side
File managerNautilusDolphin (formerly Konqueror)
TerminalGNOME TerminalKonsole
Text editorgeditKate, KWrite
Document (PDF) viewingEvinceOkular
Image viewingeog (Eye of GNOME)Gwenview
Video playbackTotemDragon Player
Music playbackRhythmboxAmarok
PurposeWidely used programs not tied to a desktop
Image editingGIMP (photo editing)
OfficeLibreOffice — Writer (documents) · Calc (spreadsheets) · Impress (presentations) · Draw (drawing)
Web browserFirefox, Chromium
Video playbackVLC
  • Distinguish "viewing" from "editing". eog and Gwenview are programs for viewing images, and GIMP is a program for editing. Evince and Okular are programs for viewing PDFs.
  • Pair the four of LibreOffice as Writer–documents, Calc–spreadsheet calculation, Impress–presentations, Draw–drawings.
  • These programs are X clients. They are neither window managers nor display managers, so if they are mixed into a classification question, place them in the "application" column.

Questions That Mix and Ask You to Pick

"Which of the following is of a different kind from the other three?" KWin · Xfce · Windowmaker · Afterstep → It is Xfce. The other three are window managers, and only Xfce is a desktop environment.

When mixed, sort them like this
KWin, Mutter, Xfwm, Windowmaker, Afterstep, FluxboxWindow managers
XDM, GDM, KDM, SDDM, LightDMDisplay managers (end in DM)
GNOME, KDE, Xfce, LXDE, MATE, CDEDesktop environments
Nautilus, Dolphin, Thunar, PCManFMFile managers
  • The rule that a name ending in DM is a display manager is the easiest clue.
  • Do not confuse Xfce and Xfwm. Xfce is the desktop environment and Xfwm is its window manager. They differ by one letter, so they appear together in choices.

The Order of Sorting

When you get four names, sift them in the order below.

   ① Does it end in DM?               → display manager   (XDM · GDM · KDM · SDDM · LightDM · LXDM)
   ② Does it end in wm · Win · box?   → window manager    (twm · FVWM · Xfwm · KWin · Openbox · Fluxbox)
   ③ Is it GNOME · KDE · Xfce · LXDE · LXQt · MATE · Cinnamon · CDE?   → desktop environment
   ④ Among the rest, Mutter · Metacity · Marco · Muffin · Windowmaker · Afterstep · Enlightenment · Compiz
                                      → window manager (names without a clue)
   ⑤ Nautilus · Dolphin · Thunar · PCManFM · Caja · Nemo            → file manager
ChoicesThe odd oneReason
GDM · SDDM · LXDE · LightDMLXDEDoes not end in DM — a desktop environment
Mutter · Metacity · Marco · MATEMATEThe rest are window managers
Nautilus · Dolphin · Thunar · MutterMutterThe rest are file managers
GNOME · Xfce · LXDE · KDE (by toolkit)KDEAlone is Qt, the rest are GTK+
Fluxbox · Openbox · Enlightenment · LXQtLXQtThe rest are window managers
The window manager among KDE · KDM · KWin · KonsoleKWinKDE is the environment, KDM is the login, and Konsole is the terminal
  • There is a trick of gathering names that begin with the same initial into one set of choices. They separate the four starting with K, Xfce, Xfwm, and XDM starting with X, and GNOME, GDM, and GTK+ starting with G.
  • LXDE and LXDM also differ by one letter. Ending in E means Environment, and ending in M means Manager.

Tomorrow we cover how to actually run X and bring up a remote screen.

📖 Glossary

  • Window manager: The program that handles window borders and moving and resizing.
  • Display manager: The program that provides the graphical login screen and starts the session.
  • Desktop environment: An integrated environment bundling a panel, file manager, and applications on top of a window manager.
  • KWin / Mutter / Xfwm: The window managers of KDE, GNOME, and Xfce respectively.
  • GDM / SDDM / LightDM: The display managers used by GNOME, KDE Plasma, and Ubuntu respectively.
  • twm: The simplest window manager, included with X by default.
  • CDE: A Motif-based desktop environment of traditional commercial Unix.
  • File manager: A program that handles files and folders graphically. Nautilus, Dolphin, Thunar, etc.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which of the following is of a different kind from the other three?

Question 2

Which of the following is a display manager that provides the graphical login screen?

Question 3

Which of the following is the window manager used in the KDE desktop environment?

Question 4

Which of the following draws window borders and handles moving and resizing windows?

Question 5

Which of the following is the file manager used in the GNOME desktop environment?

PreviousLibraries and the Toolkit LayersWeek 8 · Day 2Next Running X and Remote DisplaysWeek 8 · Day 4

Official references

  • Linux Master 2 official exam syllabus(opens in a new tab)

On this page

  • Key Takeaways
  • Where the Three Sit
  • The Order in Which Things Appear After Power-On
  • Window Managers
  • Names with a Clue and Names Without
  • Display Managers
  • Desktop Environments
  • Programs That Come with the Desktop Environment
  • Questions That Mix and Ask You to Pick
  • The Order of Sorting
  • Glossary
  • Practice Questions