Packages, services, and logs
From packages and systemd services to your own unit, the journal, schedules and log rotation.
13 stages7 labs~8 hours easy
Progress
Stages: 0 of 13
The track has not been started. The first stage is «Packages, dependencies and repositories», ~30 min.
Module 1
Packages and software installation
Package files and installed packages, versions and dependencies, finding a file's package, finishing a broken install and removing with or without config.
4 stages · ~2 hours
-
Stage 1 of 13
1 · Packages, dependencies and repositoriesPackages, dependencies and repositories
8 steps · ~30 min 8 steps · ~30 min- The program is on the server exercises 0 of 1 on a machine 4 min
- 2 Archive and installed package on a machine 4 min
- 3 Look inside the archive on a machine 3 min
- 4 Version, architecture, dependency theory 5 min
- 5 How apt knows about versions theory 5 min
- 6 Installed and available on a machine 4 min
- 7 Check an archive before installing on a machine 3 min
- 8 Summary summary 2 min
-
Stage 2 of 13
2 · Installed packages and their filesInstalled packages and their files
8 steps · ~30 min 8 steps · ~30 min- The package is there, the program is not exercises 0 of 1 on a machine 4 min
- 2 Database record and files on disk on a machine 5 min
- 3 Whose file is it on a machine 5 min
- 4 Bring a file back from the archive theory 4 min
- 5 Fix the program on a machine 4 min
-
6
When dpkg
-Sfinds nothing on a machine 3 min - 7 Find the package behind a command on a machine 3 min
- 8 Summary summary 2 min
-
Stage 3 of 13
3 · Installing, upgrading and removing packagesInstalling, upgrading and removing packages
8 steps · 1 lab · ~55 min 8 steps · 1 lab · ~55 min- An installation with an error exercises 0 of 1 on a machine 5 min
- 2 Unpacking and configuring theory 6 min
- 3 Finish the installation on a machine 4 min
- 4 Upgrades and your own settings edit theory 5 min
- 5 Remove and keep the settings theory 4 min
- 6 Take the program off the server on a machine 4 min
- 7 Upgrade a package without losing its setting lab 25 min
- 8 Summary summary 2 min
-
4 · Module test 10 questions · pass mark 70%
Module 2
Systemd services
Service state and autostart, restart after a crash, diagnosing a failure from the journal, your own unit and how to apply a change.
5 stages · ~3 hours
-
Stage 5 of 13
5 · Systemd services: state and startupSystemd services: state and startup
6 steps · ~25 min 6 steps · ~25 min- Why cron did not come up exercises 0 of 1 on a machine 5 min
- 2 A unit and its two states on a machine 5 min
- 3 Start and stop on a machine 4 min
- 4 Turn autostart on on a machine 5 min
- 5 Change one state on a machine 4 min
- 6 Summary summary 2 min
-
Stage 6 of 13
6 · Services under systemdServices under systemd
7 steps · 1 lab · ~35 min 7 steps · 1 lab · ~35 min- Two services crash exercises 0 of 1 on a machine 4 min
- 2 The unit file theory 5 min
- 3 The service journal on a machine 6 min
- 4 The main process on a machine 5 min
- 5 Bring nginx back on a machine 3 min
- 6 Service doesn't come up after reboot lab 10 min
- 7 Summary summary 2 min
-
Stage 7 of 13
7 · Diagnosing a failed serviceDiagnosing a failed service
8 steps · 1 lab · ~45 min 8 steps · 1 lab · ~45 min- The service will not start exercises 0 of 1 on a machine 4 min
- 2 The outcome of a start theory 5 min
- 3 The journal of the attempt on a machine 6 min
- 4 Fix and apply on a machine 5 min
- 5 An error in the program's settings on a machine 5 min
- 6 A second failure on a machine 3 min
- 7 Fix nginx lab 15 min
- 8 Summary summary 2 min
-
Stage 8 of 13
8 · Your own service unit and applying changesYour own service unit and applying changes
7 steps · 1 lab · ~1 hour 7 steps · 1 lab · ~1 hour- The file and the process disagree exercises 0 of 1 on a machine 6 min
- 2 What a unit file is made of theory 6 min
- 3 The file, the description and the process on a machine 6 min
- 4 Apply the change on a machine 6 min
- 5 Restart after a crash on a machine 4 min
- 6 Write a systemd unit for a service lab 30 min
- 7 Summary summary 2 min
-
9 · Module test 10 questions · pass mark 70%
Module 3
Schedules and logs
Filtering the journal by time and priority, cron schedules and systemd timers, log rotation and journal limits.
4 stages · ~3 hours
-
Stage 10 of 13
10 · The journal as evidenceThe journal as evidence
7 steps · ~30 min 7 steps · ~30 min- The service is fine, the journal shows an error exercises 0 of 1 on a machine 5 min
- 2 The journal is the machine's history on a machine 7 min
- 3 Selecting by time theory 5 min
- 4 Errors only on a machine 3 min
- 5 Priority is a threshold theory 4 min
- 6 Save the repair journal on a machine 4 min
- 7 Summary summary 2 min
-
Stage 11 of 13
11 · Cron jobs and systemd timersCron jobs and systemd timers
8 steps · 1 lab · ~45 min 8 steps · 1 lab · ~45 min- Where schedules live exercises 0 of 1 on a machine 4 min
- 2 A cron schedule line theory 5 min
- 3 What a cron job sees theory 5 min
- 4 systemd timers theory 5 min
- 5 Enable the report timer on a machine 5 min
- 6 Fix a cron job on a machine 4 min
- 7 Cron job isn't running lab 15 min
- 8 Summary summary 2 min
-
Stage 12 of 13
12 · Log rotation and retentionLog rotation and retention
9 steps · 2 labs · ~1 hour 9 steps · 2 labs · ~1 hour- The rule is there, the log is unchanged exercises 0 of 1 on a machine 5 min
- 2 How rotation works theory 6 min
- 3 How the systemd journal grows theory 5 min
- 4 Clean the journal on a machine 4 min
- 5 Who writes to the new log theory 5 min
- 6 Rotation without losing writes on a machine 3 min
- 7 Set up log rotation lab 20 min
- 8 Bound training journal retention lab 25 min
- 9 Summary summary 2 min
-
13 · Module test 10 questions · pass mark 70%
-
-
Final test 18 questions · pass mark 80%