Where to start First steps track · 15 stages
Linux Labs

Boot

  • systemd

    The init system and service manager (PID 1): units, targets, dependencies, journals.

    systemctl statussystemctl startsystemctl stop

    8 min
  • System boot and GRUB

    How Linux boots: firmware, the GRUB bootloader, the kernel, systemd targets and emergency mode.

    update-grubgrub-installsystemctl get-default

    5 min
  • Mounting and fstab

    Mounting filesystems: the mount command, persistent mounts in /etc/fstab, UUIDs and options.

    lsblk -ffindmntblkid

    7 min
  • The kernel

    What the Linux kernel is, what it does, and how to check its version and parameters.

    uname -runame -acat

    4 min
  • Persistent networking with netplan

    Persistent network configuration on Ubuntu — netplan YAML files, static addresses and DHCP, applying safely.

    netplan generatenetplan trynetplan apply

    6 min
  • Boot targets: default, multi-user, rescue and emergency

    A target is a group of units systemd brings the boot up to; rescue and emergency are the targets for repairs.

    systemctl get-defaultsystemctl set-defaultsystemctl list-units

    11 min
  • systemd-analyze: what slows the boot and what is wrong in a unit

    Breaks the boot down by time and by the chain of unit dependencies, and checks a unit file before the service runs.

    systemd-analyzesystemd-analyze blamesystemd-analyze critical-chain

    11 min
  • Kernel modules

    Kernel modules: loading and unloading with modprobe, kernel messages in dmesg, module parameters.

    uname -rlsmodmodprobe

    4 min
  • sysctl — kernel parameters at runtime

    sysctl reads and changes kernel parameters; -w lasts until reboot, a file in /etc/sysctl.d/ makes it permanent.

    sysctlsysctl -nsysctl -w

    9 min
  • cloud-init — first-boot VM setup

    Automatic setup of cloud/virtual machines on first boot — user-data, debugging.

    cloud-init statuscloud-init schemaless

    4 min
Loading…