Get in Touch

Course Outline

Debian Distribution

What is Debian?

  • Selecting the appropriate Debian version
  • Debian support resources and assistance
  • Engaging with the Debian community

Console Fundamentals

  • Understanding the shell prompt
  • The shell prompt in X environments
  • The root account and root shell prompt (using su, sudo, and running programs as root under X)
  • GUI-based system administration tools
  • Virtual consoles
  • Exiting the command prompt
  • Properly shutting down the system
  • Restoring a functional console
  • Recommended packages for beginners
  • Creating an additional user account
  • Configuring sudo

The Filesystem

  • Filesystem permissions
  • Controlling permissions for newly created files: umask
  • Permissions for user groups (group)
  • Timestamps
  • Links
  • Named pipes (FIFOs)
  • Sockets
  • Device files
  • Special device files
  • procfs and sysfs

Midnight Commander (MC)

  • Customizing MC
  • Launching MC
  • File management within MC
  • Command-line tips in MC
  • The internal editor in MC
  • The internal viewer in MC
  • Auto-start features of MC
  • FTP virtual filesystem in MC

The Basic Unix-like Work Environment

  • The login shell
  • Customizing bash
  • Special keystrokes
  • Using the pager
  • Setting a default text editor
  • Exiting vim
  • Recording shell activities
  • Essential Unix commands

Simple Shell Commands

  • Command execution and environment variables
  • The "$LANG" variable
  • The "$PATH" variable
  • The "$HOME" variable
  • Command-line options
  • Shell globbing
  • Return values of commands
  • Typical command sequences and shell redirection
  • Command aliases

Unix-like Text Processing

  • Unix text processing tools
  • Regular expressions
  • Replacement expressions
  • Global substitution with regular expressions
  • Extracting data from text file tables
  • Script snippets for piping commands

Debian Package Management

Prerequisites for Debian Package Management

  • Package configuration
  • Essential precautions
  • Managing continuous upgrades
  • Basics of the Debian archive
  • Package dependencies
  • The event flow of package management
  • Initial responses to package management issues

Basic Package Management Operations

  • Comparing apt-get/apt-cache vs. aptitude
  • Basic package management operations via the command line
  • Interactive use of aptitude
  • Key bindings in aptitude
  • Package views in aptitude
  • Search method options with aptitude
  • The aptitude regex formula
  • Dependency resolution in aptitude
  • Package activity logs

Examples of aptitude Operations

  • Listing packages with regex matching on package names
  • Browsing using regex matching
  • Permanently purging removed packages
  • Cleaning up auto/manual installation status
  • Performing a system-wide upgrade

Advanced Package Management Operations

  • Advanced package management operations via the command line
  • Verifying installed package files
  • Safeguards for package-related problems
  • Searching package metadata

Debian Package Management Internals

  • Archive metadata
  • The top-level "Release" file and authenticity
  • Archive-level "Release" files
  • Fetching package metadata
  • The package state for APT
  • The package state for aptitude
  • Local copies of fetched packages
  • Debian package file naming conventions
  • The dpkg command
  • The update-alternative command
  • The dpkg-statoverride command
  • The dpkg-divert command

Recovery from a Broken System

  • Incompatibility with old user configurations
  • Packages with overlapping files
  • Fixing broken package scripts
  • Rescue operations using the dpkg command
  • Recovering package selection data

Tips for Package Management

  • Selecting appropriate Debian packages
  • Handling packages from mixed archive sources
  • Tweaking candidate versions
  • Updates and Backports
  • Automatic download and upgrade of packages
  • Limiting download bandwidth for APT
  • Emergency downgrading
  • Identifying package uploaders
  • The equivs package
  • Porting a package to a stable system
  • Configuring a proxy server for APT
  • Using a small public package archive
  • Recording and copying system configuration
  • Converting or installing alien binary packages
  • Extracting packages without dpkg
  • Further reading on package management

System Initialization

  • Overview of the boot strap process
  • BIOS, boot loader, and mini-Debian system
  • Understanding runlevels
  • Configuring runlevels
  • Runlevel management examples
  • Default parameters for each init script
  • The hostname
  • The filesystem
  • Network interface initialization
  • Network service initialization
  • System messages
  • Kernel messages
  • The udev system
  • Kernel module initialization

Authentication and Security

  • Standard Unix authentication
  • Managing account and password information
  • Creating strong passwords
  • Generating encrypted passwords
  • PAM and NSS
  • Configuration files accessed by PAM and NSS
  • Modern centralized system management
  • Why GNU su does not support the wheel group
  • Stricter password policies
  • Other access controls
  • sudo
  • SELinux, Apparmor
  • Restricting access to specific server services
  • Authentication security
  • Secure password transmission over the Internet
  • Secure Shell
  • Additional security measures for the Internet
  • Securing the root password

Network Setup

Basic Network Infrastructure

  • The domain name
  • Hostname resolution
  • Network interface names
  • LAN network address ranges
  • Network device support

Modern Network Configuration for Desktop

  • GUI network configuration tools

Low-Level Network Configuration

  • Iproute2 commands
  • Safe low-level network operations

Network Optimization

  • Finding the optimal MTU
  • Setting MTU
  • WAN TCP optimization

Netfilter Infrastructure

Network Applications

The Mail System

  • Basics of modern mail services
  • Mail configuration strategy for workstations

Mail Transport Agent (MTA) and Mail User Agent (MUA)

  • Overview of exim4
  • Basic MUA: Mutt

Mail Delivery Agent (MDA) with Filter

  • Configuring maildrop
  • Configuring procmail
  • Redelivering mbox contents

POP3/IMAP4 Server

The Remote Access Server and Utility (SSH)

  • SSH basics
  • Port forwarding for SMTP/POP3 tunneling
  • Connecting without remote passwords
  • Handling incompatible SSH clients
  • Setting up ssh-agent
  • Shutting down a remote system via SSH
  • SSH troubleshooting

Other Network Application Servers

Other Network Application Clients

Diagnosis of System Daemons

The X Window System

  • Setting up the desktop environment
  • The server/client relationship
  • The X server
  • Starting the X Window System
  • Starting an X session with gdm
  • Customizing the X session (classic method)
  • Customizing the X session (new method)
  • Connecting a remote X client via SSH
  • Secure X terminal over the Internet
  • X applications
  • X office applications
  • X utility applications

System Tips

The screen Program

  • Use cases for screen(1)
  • Key bindings for the screen command

Data Recording and Presentation

  • The log daemon
  • Log analyzers
  • Cleanly recording shell activities
  • Customized display of text data
  • Customized display of time and date
  • Colorized shell echo
  • Colorized commands
  • Recording editor activities for complex repeats
  • Recording the graphic image of an X application
  • Recording changes in configuration files

Data Storage Tips

  • Disk partition configuration
  • Accessing partitions using UUID
  • Filesystem configuration
  • Filesystem creation and integrity checks
  • Optimizing filesystems via mount options
  • Optimizing filesystems via superblock
  • Hard disk optimization
  • Using SMART to predict hard disk failure
  • Expanding usable storage space via LVM
  • Expanding usable storage space by mounting another partition
  • Expanding usable storage space using symlinks
  • Expanding usable storage space using aufs

Data Encryption Tips

  • Removable disk encryption with dm-crypt/LUKS
  • Encrypted swap partition with dm-crypt
  • Automatically encrypting files with eCryptfs
  • Automatically mounting eCryptfs

Monitoring, Controlling, and Starting Program Activities

  • Timing a process
  • Scheduling priority
  • The ps command
  • The top command
  • Listing files opened by a process
  • Tracing program activities
  • Identifying processes using files or sockets
  • Repeating a command at a constant interval
  • Repeating a command while looping over files
  • Starting a program from the GUI
  • Customizing programs to be started
  • Killing a process
  • Scheduling one-time tasks
  • Scheduling recurring tasks
  • Alt-SysRq key

System Maintenance Tips

  • Checking who is on the system
  • Notifying all users
  • Hardware identification
  • Hardware configuration
  • System and hardware time
  • Terminal configuration
  • Sound infrastructure
  • Disabling the screen saver
  • Disabling beep sounds
  • Memory usage
  • System security and integrity checks

The Kernel

  • Kernel parameters
  • Kernel headers
  • Compiling the kernel and related modules
  • Compiling the kernel source: Debian standard method
  • Compiling the module source: Debian standard method
  • Non-free hardware drivers

Virtualized System

  • Virtualization tools
  • Virtualization workflow
  • Mounting virtual disk image files
  • Chroot system
  • Multiple desktop systems

Data Management

Sharing, Copying, and Archiving

  • Archive and compression tools
  • Copy and synchronization tools
  • Idioms for archiving
  • Idioms for copying
  • Idioms for file selection
  • Backup and recovery
  • Backup utility suites
  • Example script for system backup
  • Cop script for data backup
  • Removable storage devices
  • Sharing data via network
  • Archive media

Binary Data

  • Viewing and editing binary data
  • Manipulating files without mounting a disk
  • Data redundancy
  • Data file recovery and forensic analysis
  • Splitting large files into smaller ones
  • Clearing file contents
  • Dummy files
  • Erasing an entire hard disk
  • Erasing unused areas of a hard disk
  • Undeleting deleted but still open files
  • Searching for all hardlinks
  • Invisible disk space consumption

Data Security Infrastructure

  • Key management for GnuPG (signing and encrypting)
  • The MD5 sum
 35 Hours

Number of participants


Price per participant

Upcoming Courses

Related Categories