Flash cards
Why does server administration need a lab of several machines rather than one?
Show the answer
You cannot compare dnf with apt or firewalld with ufw on one machine, services such as file, DNS and web servers need clients on the network, and TLS certificates, DNS records and mail need a real public IP address.
Which machines make up the course lab, and what is each for?
Show the answer
A Mint workstation as the control node, deb-srv running Ubuntu Server 24.04 LTS, rpm-srv running Rocky Linux 9, an optional Fedora Server, a Debian nas with a second disk for file and print services, and a public VPS.
Why does the lab use Rocky Linux rather than Red Hat Enterprise Linux itself?
Show the answer
Rocky is a free, binary-compatible rebuild of RHEL, so what you learn applies to RHEL and AlmaLinux without translation, and it has the fewest obstacles. Fedora is where features arrive first, typically two to three years before RHEL.
Why install the lab servers with no desktop environment?
Show the answer
Real servers have no desktop, only a console you may not reach and an SSH session that may be the thing that broke. Working headless builds the habit of doing everything from the command line.
What resources does a headless lab server need?
Show the answer
About 1 GB of RAM and 1 CPU core. The NAS node gets 15 GB of disk plus a second 8 GB disk. Four such machines fit in 8 GB of host RAM if you start only the ones a module needs.
How are the lab machines networked in VirtualBox?
Show the answer
A host-only or internal network on 192.168.56.0/24, so the machines see each other and your workstation, plus a NAT adapter on each for internet access.
Why must SELinux stay enforcing on the Rocky Linux server?
Show the answer
Later work on security depends on it, and disabling SELinux is exactly the habit the course exists to prevent.
Before the lab has real DNS, how do you reach the servers by name and log in without passwords?
Show the answer
Add all the nodes to /etc/hosts on your workstation, copy your SSH key to each with ssh-copy-id, and add a ~/.ssh/config block for each so that ssh deb-srv just works.
What does a public server need for the hosting part of the course?
Show the answer
A public IP address, root or sudo access and a console you can reach when SSH fails, plus a domain name, because DNS records, TLS certificates and mail all require one.
Why must you use SSH keys and a unique password from the very first login to a VPS?
Show the answer
Within hours of coming online it receives automated login attempts. You are responsible for what your server sends, so if it is compromised and sends spam, the provider's abuse team contacts you, not the attacker.
When should you take snapshots of the lab machines?
Show the answer
Before any destructive exercise, named after the module, and after completing work that leaves useful state behind, such as a DNS server. Delete old snapshots periodically, because long chains consume disk and slow the machine.
Why protect the VPS with a rebuild script rather than snapshots?
Show the answer
Most providers charge for snapshots, and being able to rebuild the server from nothing is more valuable than a snapshot anyway.
What four differences between a cloud instance and a local VM matter from the first login?
Show the answer
cloud-init configures the hostname, network and SSH key at first boot, there may be two firewalls, there is no physical console, only a web-based serial console, and a metadata service returns instance information to anything on the host.
On a VPS, a port seems closed even though the service is listening. What should you check?
Show the answer
Both firewalls: the provider may filter traffic before it reaches the server, and the host runs its own firewall.