Your first day at Nube Volcán
Nube Volcán S.A. (a fictional company) sells cloud services to businesses in Costa Rica. Today is your first day as their Linux system administrator. Mariela, the head of infrastructure, has given you access to a server and left you a message: "Welcome aboard. Before you touch anything, I want you to get to know this server from the inside. Your instructions are in your home folder."
For the next 15 days you'll get assignments like this one. By the end, you'll be able to do everything the CompTIA Linux+ exam asks for, because you'll have already done it.
What Linux is, in three pieces
When people say "Linux," they almost always mean three things working together:
- The kernel: the program that talks to the hardware. It hands out memory, CPU time and disk access to every other program. Strictly speaking, the kernel is "Linux."
- The distribution: the kernel plus everything else (programs, an installer, a package manager). Ubuntu, Debian, Red Hat Enterprise Linux (RHEL), Rocky Linux, Fedora and SUSE are all distributions. They come in families: Debian-based distributions use
.debpackages andapt; Red Hat-based ones use.rpmanddnf. - The shell: the program that reads what you type and runs it. The most common one is bash. Others include
zsh,shandfish.
On the exam. Linux+ isn't tied to one distribution: the same exam can ask you about apt and about dnf. This course teaches you both families.
The graphical stack: X11, Wayland and the managers
A server almost never has a desktop: you manage it from the terminal, and every graphical program you don't install is memory you save and one less door for an attacker. Linux workstations do use one, though, and the exam asks how it's put together. There are four pieces, from the bottom up:
| Piece | What it does | Examples |
|---|---|---|
| X server (X Window System, X11) | The classic Unix graphics system: it draws on the screen and takes input from the keyboard and mouse. It was designed for the network: a program can run on one machine and display on another machine's screen (that's where SSH X11 forwarding, ssh -X, comes from). The DISPLAY variable, for example :0, tells each program which screen to draw on. | Xorg |
| Wayland | The modern replacement for X11. It's simpler and more secure: one application can't read another application's screen or keystrokes. Older applications built for X11 keep working on top of XWayland. | The default session on Fedora, RHEL 9 and Ubuntu |
| Display manager | The graphical login screen. It asks for your username and password, starts your session and lets you choose between a Wayland session and an X11 (Xorg) one. | GDM (GNOME), SDDM (KDE), LightDM |
| Window manager | Draws each window's borders and buttons, and decides where windows go, how they move and which one is in front. Under Wayland, the compositor does this job. | Mutter, KWin, Openbox, i3 |
A desktop environment (GNOME, KDE Plasma, Xfce) bundles all of the above with panels, menus, applications and settings. To find out which kind of session you're in, run echo $XDG_SESSION_TYPE: it answers x11, wayland or, in a text or SSH session, tty. If a server came with a desktop it doesn't need, you stop loading it with sudo systemctl set-default multi-user.target, which you'll see on day 8.
On the exam. "Which component displays the graphical login screen?" The display manager (GDM, SDDM, LightDM). "An old screen-capture or remote-desktop tool stopped working after an upgrade": the session switched to Wayland, which doesn't let one program read another's screen; pick an Xorg session in the display manager. And don't mix up the terms: the X server runs on the machine that has the screen, even when the program runs somewhere else.