Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course IT-202 Linux Command Line and System Administration
Course progress, 0 of 14 parts done0%

Setting Up a Practice Environment

Download as PDF

Why you need a machine you can break, how to build one, and a readiness check.

1. Why the beginner course did not need this Any Linux

The beginner course could be worked through on the machine you use every day. Nothing in it risked more than a bad theme choice, and Timeshift covered the rest.

This course is different. From Module 9 onward you will run mkfs on a disk, edit /etc/fstab in ways that can prevent a system booting, change ownership of system directories, and chroot into a broken installation from a live USB. These are exactly the skills that separate an operator from a user, and there is no way to learn them by reading alone.

You need a computer you are willing to destroy. Not "probably fine" - genuinely willing. The exercises in Modules 9 and 12 will ask you to break a system deliberately so you can practise repairing it. Doing that on the laptop holding your only copy of your work is how people end up with a story rather than a skill.

2. The recommended option: a virtual machine Any Linux

A virtual machine is a complete computer simulated in software. It has its own disk, its own memory allocation and its own boot process, and it can be destroyed and rebuilt in minutes without touching the machine it runs on.

OptionInstall withBest for
VirtualBoxSoftware Manager, or Oracle's repositoryThe usual choice. Snapshots are excellent, and it runs on Windows and macOS too if your host is not yet Mint.
GNOME BoxesSoftware ManagerSimpler and lighter. Fewer options, faster to get going.
virt-manager / KVMSoftware ManagerBest performance and the closest to how virtualisation is done professionally. More setup.

Any of the three works. The instructions below assume VirtualBox because its snapshot interface is the friendliest, but nothing in this course depends on that choice.

3. Building the practice machine Any Linux

  1. Install VirtualBox from the Software Manager.
  2. Create a new VM. Name it something obvious such as mint-practice. Type Linux, version Ubuntu (64-bit).
  3. Allocate resources. 4 GB of memory and 2 CPU cores if your host machine can spare them; 2 GB and 1 core will work. Never allocate more than half your host's memory.
  4. Create the main virtual disk at 30 GB, dynamically allocated so it only consumes real space as it fills.
  5. Add a second virtual disk of 8 GB. Settings → Storage → add a new hard disk on the SATA controller. This one exists purely to be partitioned, formatted, mounted and broken in Module 9. Do not skip it.
  6. Attach the Mint ISO to the virtual optical drive and install Mint as you did in the beginner course. The process is identical.
  7. Install Guest Additions once Mint is running - Devices → Insert Guest Additions CD image. This gives you a resizable window, shared clipboard and shared folders.

4. Snapshots: your undo button Any Linux

This is the single feature that makes a VM worth the setup effort. A snapshot captures the entire machine state - disk, memory, everything - and restores it exactly.

A machine you are allowed to break Your real computer, the host VirtualBox, the hypervisor Practice Mint, the guest its own disk, memory and boot rebuilt in minutes if needed Snapshots, taken from outside the guest installedclean-installbefore anexercisebroken restore: back in seconds Unlike Timeshift, a VM snapshot is taken from outside, so it rescues even a guest that will not boot.
Figure 0.1 The practice environment. The guest runs inside VirtualBox on your real computer, and a snapshot taken before each risky exercise can restore it in seconds.

Shut the VM down cleanly once it is installed, updated and has Guest Additions, then take a snapshot named clean-install. From then on, before any exercise that could break the system, take another snapshot. If something goes wrong, restore and you are back in seconds.

How this differs from Timeshift. Timeshift, from beginner Module 9, snapshots the operating system from inside the running system, and cannot help if the machine will not boot at all without a live USB. A VM snapshot is taken from outside and restores even a completely destroyed installation. In this course you will use both - and Module 12 asks you to deliberately break the boot process, which only a VM snapshot can undo comfortably.

5. Alternatives to virtualisation

A spare machineIdeal if you have one. Closest to real conditions, and hardware problems are real rather than simulated. No snapshots, so recovery takes longer.
An external SSDInstall Mint to a USB SSD and boot from it. Your main disk is untouched. Reasonably fast; no snapshots.
A Raspberry PiRuns Raspberry Pi OS, which is Debian. Nearly everything in this course applies. Reimaging the card is your snapshot.

What will not work is attempting Modules 9 and 12 on your only machine. If none of the above is available to you, read those modules and work their exercises on paper - but be honest with yourself that you have read them rather than learned them.