Where to start First steps track · 15 stages
Linux Labs

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 easy

Progress Stages: 0 of 13

The track has not been started. The first stage is «Packages, dependencies and repositories», ~30 min.

Start stage 1

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

  1. Stage 1 of 13

    1 · Packages, dependencies and repositoriesPackages, dependencies and repositories

    8 steps · ~30 min 8 steps · ~30 min
    1. The program is on the server exercises 0 of 1 on a machine 4 min
    2. 2 Archive and installed package on a machine 4 min
    3. 3 Look inside the archive on a machine 3 min
    4. 4 Version, architecture, dependency theory 5 min
    5. 5 How apt knows about versions theory 5 min
    6. 6 Installed and available on a machine 4 min
    7. 7 Check an archive before installing on a machine 3 min
    8. 8 Summary summary 2 min
  2. Stage 2 of 13

    2 · Installed packages and their filesInstalled packages and their files

    8 steps · ~30 min 8 steps · ~30 min
    1. The package is there, the program is not exercises 0 of 1 on a machine 4 min
    2. 2 Database record and files on disk on a machine 5 min
    3. 3 Whose file is it on a machine 5 min
    4. 4 Bring a file back from the archive theory 4 min
    5. 5 Fix the program on a machine 4 min
    6. 6 When dpkg -S finds nothing on a machine 3 min
    7. 7 Find the package behind a command on a machine 3 min
    8. 8 Summary summary 2 min
  3. 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
    1. An installation with an error exercises 0 of 1 on a machine 5 min
    2. 2 Unpacking and configuring theory 6 min
    3. 3 Finish the installation on a machine 4 min
    4. 4 Upgrades and your own settings edit theory 5 min
    5. 5 Remove and keep the settings theory 4 min
    6. 6 Take the program off the server on a machine 4 min
    7. 7 Upgrade a package without losing its setting easy lab 25 min
    8. 8 Summary summary 2 min
  4. 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

  1. Stage 5 of 13

    5 · Systemd services: state and startupSystemd services: state and startup

    6 steps · ~25 min 6 steps · ~25 min
    1. Why cron did not come up exercises 0 of 1 on a machine 5 min
    2. 2 A unit and its two states on a machine 5 min
    3. 3 Start and stop on a machine 4 min
    4. 4 Turn autostart on on a machine 5 min
    5. 5 Change one state on a machine 4 min
    6. 6 Summary summary 2 min
  2. Stage 6 of 13

    6 · Services under systemdServices under systemd

    7 steps · 1 lab · ~35 min 7 steps · 1 lab · ~35 min
    1. Two services crash exercises 0 of 1 on a machine 4 min
    2. 2 The unit file theory 5 min
    3. 3 The service journal on a machine 6 min
    4. 4 The main process on a machine 5 min
    5. 5 Bring nginx back on a machine 3 min
    6. 6 Service doesn't come up after reboot introductory lab 10 min
    7. 7 Summary summary 2 min
  3. Stage 7 of 13

    7 · Diagnosing a failed serviceDiagnosing a failed service

    8 steps · 1 lab · ~45 min 8 steps · 1 lab · ~45 min
    1. The service will not start exercises 0 of 1 on a machine 4 min
    2. 2 The outcome of a start theory 5 min
    3. 3 The journal of the attempt on a machine 6 min
    4. 4 Fix and apply on a machine 5 min
    5. 5 An error in the program's settings on a machine 5 min
    6. 6 A second failure on a machine 3 min
    7. 7 Fix nginx easy lab 15 min
    8. 8 Summary summary 2 min
  4. 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
    1. The file and the process disagree exercises 0 of 1 on a machine 6 min
    2. 2 What a unit file is made of theory 6 min
    3. 3 The file, the description and the process on a machine 6 min
    4. 4 Apply the change on a machine 6 min
    5. 5 Restart after a crash on a machine 4 min
    6. 6 Write a systemd unit for a service medium lab 30 min
    7. 7 Summary summary 2 min
  5. 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

  1. Stage 10 of 13

    10 · The journal as evidenceThe journal as evidence

    7 steps · ~30 min 7 steps · ~30 min
    1. The service is fine, the journal shows an error exercises 0 of 1 on a machine 5 min
    2. 2 The journal is the machine's history on a machine 7 min
    3. 3 Selecting by time theory 5 min
    4. 4 Errors only on a machine 3 min
    5. 5 Priority is a threshold theory 4 min
    6. 6 Save the repair journal on a machine 4 min
    7. 7 Summary summary 2 min
  2. 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
    1. Where schedules live exercises 0 of 1 on a machine 4 min
    2. 2 A cron schedule line theory 5 min
    3. 3 What a cron job sees theory 5 min
    4. 4 systemd timers theory 5 min
    5. 5 Enable the report timer on a machine 5 min
    6. 6 Fix a cron job on a machine 4 min
    7. 7 Cron job isn't running easy lab 15 min
    8. 8 Summary summary 2 min
  3. Stage 12 of 13

    12 · Log rotation and retentionLog rotation and retention

    9 steps · 2 labs · ~1 hour 9 steps · 2 labs · ~1 hour
    1. The rule is there, the log is unchanged exercises 0 of 1 on a machine 5 min
    2. 2 How rotation works theory 6 min
    3. 3 How the systemd journal grows theory 5 min
    4. 4 Clean the journal on a machine 4 min
    5. 5 Who writes to the new log theory 5 min
    6. 6 Rotation without losing writes on a machine 3 min
    7. 7 Set up log rotation medium lab 20 min
    8. 8 Bound training journal retention medium lab 25 min
    9. 9 Summary summary 2 min
  4. 13 · Module test 10 questions · pass mark 70%
  1. Final test 18 questions · pass mark 80%

Already know this?

Take the final test right away: with 80% or more the whole track counts as passed.

Skip the track with a test
Loading…