🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Cybersecurity › Linux for Cybersecurity › Lesson 1
TEC-CYBE44-04 · Lesson 1 · 10.5 clock hours · lab

Linux Landscape and Lab Environment Setup

Objective. Students install and configure a Linux virtual machine and explain the role of Linux in enterprise cybersecurity environments.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Why Linux Matters in Cybersecurity

Linux powers the majority of web servers, cloud infrastructure, network appliances, and security tools in enterprise environments. As a cybersecurity professional you will encounter Linux constantly — whether you are hardening a production server, analyzing logs, running a vulnerability scanner, or responding to an incident. Understanding Linux is not optional; it is a foundational skill required by every major cybersecurity credential, including CompTIA Security+, CompTIA CySA+, and ISC2 CC.

The Linux Landscape: Key Distributions

A Linux distribution (distro) packages the Linux kernel together with software, a package manager, and default configuration choices. Hundreds of distros exist, but cybersecurity professionals rely on a handful.

Ubuntu Server 22.04 LTS is a Debian-based distro maintained by Canonical. "LTS" means Long-Term Support — Canonical provides security patches for five years. Ubuntu uses the APT (Advanced Package Tool) package manager and the bash shell by default. It is widely used in enterprise servers, cloud deployments, and as a learning platform because of its large community and stable repositories.

Kali Linux is a Debian-based distro maintained by Offensive Security and purpose-built for penetration testing and digital forensics. It ships with hundreds of pre-installed security tools (Nmap, Metasploit, Wireshark, Burp Suite, and many others). Kali also uses APT and bash. Because it is tuned for offensive work, it is not recommended as a general-purpose server OS. Running Kali carelessly on a network you do not own or without authorization is illegal — always obtain written permission before testing.

CentOS / Rocky Linux are Red Hat Enterprise Linux (RHEL)-compatible distros. CentOS reached end-of-life for its stable branch; Rocky Linux is the community-supported successor. These distros use the DNF/YUM package manager and bash. They are common in enterprise data centers because they closely mirror RHEL, which dominates regulated industries such as healthcare and finance.

| Distro | Package Manager | Default Shell | Primary Use Case |

|---|---|---|---|

| Ubuntu Server 22.04 LTS | APT | bash | General server, cloud, learning |

| Kali Linux | APT | bash/zsh | Penetration testing, forensics |

| Rocky Linux | DNF | bash | Enterprise server, RHEL-compatible |

Virtualization and Lab Safety

A virtual machine (VM) runs an entire operating system inside software on your physical computer (the host). VirtualBox and VMware Workstation Player are Type-2 hypervisors that run on top of Windows or macOS. Virtualization requires hardware-assisted virtualization — Intel VT-x or AMD-V — enabled in your system BIOS/UEFI. If this setting is disabled, your VM will not start.

Lab safety rules:

Key Linux Files for Cybersecurity Analysts

Three files will appear constantly in your career:

`/etc/passwd` stores user account information. Each line follows the format `username:x:UID:GID:comment:home_dir:shell`. The `x` in the password field means the encrypted password is stored separately in `/etc/shadow`. Attackers and defenders both examine this file to identify user accounts, privileged UIDs, and unusual entries.

`/etc/os-release` contains distribution identification variables (NAME, VERSION, ID, and others). Incident responders use it to quickly confirm which OS and version is running on an unfamiliar system, which matters when looking up CVEs or applying patches.

`uname -a` prints kernel information: kernel name, hostname, kernel release, kernel version, machine hardware, and OS. Knowing the exact kernel version lets you check whether the system is vulnerable to a known kernel exploit.

Setting Up Your VM: Overview of Steps

1. Confirm VT-x/AMD-V is enabled in BIOS/UEFI.

2. Download and install VirtualBox 7.x from virtualbox.org.

3. Download the Ubuntu Server 22.04 LTS ISO from ubuntu.com.

4. In VirtualBox, create a new VM: set type to Linux, version to Ubuntu (64-bit), allocate at least 2 GB RAM and 20 GB dynamic storage.

5. Attach the ISO to the virtual optical drive, then start the VM and follow the Ubuntu installer (accept defaults unless your lab sheet says otherwise).

6. After installation, eject the ISO and reboot. Log in and update: `sudo apt update && sudo apt upgrade -y`.

7. Document every configuration decision in your lab journal — RAM, CPU cores, network adapter type, disk size, and hostname.

Accurate documentation is a professional habit. Incident response reports, audit trails, and change-management records all depend on precise notes.

Key terms9

Distribution (distro)A packaged version of Linux that bundles the kernel, package manager, default shell, and software repositories into a ready-to-install operating system.
HypervisorSoftware that creates and manages virtual machines; a Type-2 hypervisor (such as VirtualBox) runs on top of an existing host operating system.
VT-x / AMD-VHardware-assisted virtualization extensions built into Intel (VT-x) and AMD (AMD-V) processors; must be enabled in BIOS/UEFI for 64-bit VMs to run.
APT (Advanced Package Tool)The command-line package manager used by Debian-based distributions such as Ubuntu and Kali Linux to install, update, and remove software.
LTS (Long-Term Support)A release designation indicating the vendor will provide security patches and updates for an extended period — five years for Ubuntu LTS releases.
/etc/passwdA Linux system file that stores basic user account information including username, UID, GID, home directory, and default shell for every account on the system.
uname -aA Linux command that prints complete kernel information including the kernel name, version, release number, machine hardware type, and operating system.
SnapshotA saved state of a virtual machine at a specific point in time that allows the user to roll back to that state if subsequent changes cause problems.
NAT (Network Address Translation) adapterA virtual network mode in which the VM shares the host's IP address for outbound traffic; it isolates the VM from inbound connections, making it suitable for safe lab work.
In class: Download and install VirtualBox (or VMware Workstation Player) and deploy an Ubuntu Server 22.04 LTS VM, documenting each configuration choice in a lab journal. · Research and present a five-minute comparison of at least three common Linux distributions used in security (Kali, Ubuntu, CentOS/Rocky) covering package management, default shell, and typical use case. · Complete a guided scavenger hunt inside the VM: locate /etc/passwd, /etc/os-release, and kernel version using uname -a, recording findings and explaining what each reveals about the system.
Materials: Workstation with VT-x/AMD-V enabled, VirtualBox 7.x or VMware Workstation Player, Ubuntu Server 22.04 LTS ISO, CompTIA Security+ Study Guide (Sybex), lab journal template
Check: Student's VM boots successfully, instructor verifies uname output and lab journal entries are accurate; pass = all three scavenger-hunt items correctly identified and explained in writing.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA Security+ — Threats, Attacks and Vulnerabilities / Operations and Incident Response
1. A cybersecurity analyst needs to quickly confirm the exact kernel version on an unfamiliar Ubuntu server during an incident response. Which command provides this information?
CompTIA Security+ — Threats, Attacks and Vulnerabilities
2. Which file on a Linux system would an attacker examine to enumerate all local user accounts and their associated shells?
CompTIA Security+ — Architecture and Design
3. A student's 64-bit Ubuntu VM fails to start in VirtualBox and displays an error about hardware virtualization. What is the most likely cause?
CompTIA CySA+ — Security Operations
4. Which Linux distribution is purpose-built for penetration testing and ships with hundreds of pre-installed offensive security tools?
CompTIA Security+ — Architecture and Design
5. An analyst is setting up a lab VM that will run network scanning tools. Which network adapter mode best isolates the VM from inbound connections while still allowing the VM to reach the internet?
CompTIA Security+ — Governance, Risk and Compliance
6. A junior analyst wants to run Kali Linux scanning tools against a client's network to practice real-world techniques. The analyst has not yet received written permission from the client. What should the analyst do?
CompTIA Security+ — Architecture and Design
7. Which of the following best describes the advantage of using the Ubuntu Server 22.04 LTS release over a non-LTS Ubuntu release for an enterprise cybersecurity lab?
CompTIA CySA+ — Threat and Vulnerability Management
8. During a threat-hunting exercise, an analyst examines /etc/passwd on a Linux server and notices an account with UID 0 that is not the root account. What does this indicate?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.