Get in Touch
 Duration 35 hours

Course Outline

Debian Distribution

What is Debian?

  • Selecting a Debian version
  • Debian support and assistance resources
  • The Debian community

Console fundamentals

  • The shell prompt
  • Using the shell prompt within X
  • The root account and root shell prompt (su, sudo, running programs as root under X)
  • Graphical system administration tools
  • Virtual consoles
  • Exiting the command prompt
  • Shutting down the system
  • Restoring a functional console
  • Recommended additional packages for beginners
  • Creating an extra user account
  • Configuring sudo

The filesystem

  • Filesystem permissions
  • Controlling permissions for new files: umask
  • Permissions for user groups
  • Timestamps
  • Symbolic and hard links
  • Named pipes (FIFOs)
  • Sockets
  • Device files
  • Special device files
  • procfs and sysfs

Midnight Commander (MC)

  • Customising MC
  • Launching MC
  • The file manager within MC
  • Command-line shortcuts in MC
  • The internal editor in MC
  • The internal viewer in MC
  • Auto-start features of MC
  • MC's FTP virtual filesystem

The fundamental Unix-like work environment

  • The login shell
  • Customising bash
  • Special key sequences
  • The pager
  • Setting a default text editor
  • How to exit vim
  • Recording shell activities
  • Essential Unix commands

The simple shell command

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

Unix-like text processing

  • Unix text utilities
  • Regular expressions
  • Replacement expressions
  • Global substitution using regular expressions
  • Extracting data from text file tables
  • Script snippets for piping commands

Debian package management

Prerequisites for Debian package management

  • Package configuration
  • Basic precautions
  • Managing continuous upgrades
  • Debian archive fundamentals
  • Package dependencies
  • The workflow of package management
  • Initial responses to package management issues

Basic package management operations

  • 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 with regex matching
  • Completely removing purged packages
  • Managing auto/manual installation status
  • System-wide upgrades

Advanced package management operations

  • Advanced package management operations via the command line
  • Verifying installed package files
  • Mitigating package issues
  • Searching package metadata

Debian package management internals

  • Archive metadata
  • Top-level "Release" file and authenticity
  • Archive-level "Release" files
  • Fetching package metadata
  • Package state in APT
  • Package state in aptitude
  • Local copies of downloaded packages
  • Debian package file naming conventions
  • The dpkg command
  • The update-alternatives command
  • The dpkg-statoverride command
  • The dpkg-divert command

Recovery from a broken system

  • Incompatibility with legacy user configurations
  • Conflicting packages with overlapping files
  • Fixing broken package scripts
  • Rescuing the system using the dpkg command
  • Restoring package selection data

Tips for package management

  • How to choose Debian packages
  • Packages from mixed archive sources
  • Adjusting candidate versions
  • Updates and Backports
  • Automatic package download and upgrade
  • Limiting APT download bandwidth
  • Emergency downgrading
  • Identifying package uploaders
  • The equivs package
  • Porting a package to a stable system
  • Proxy server for APT
  • Setting up a small public package archive
  • Recording and copying system configurations
  • Converting or installing non-Debian binary packages
  • Extracting packages without dpkg
  • Further reading on package management

System initialisation

  • Overview of the bootstrapping process
  • BIOS, boot loader, and mini-Debian systems
  • The concept of runlevels
  • Configuring runlevels
  • An example of runlevel management
  • Default parameters for each init script
  • The hostname
  • The filesystem
  • Network interface initialisation
  • Network service initialisation
  • System messages
  • Kernel messages
  • The udev system
  • Kernel module initialisation

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 centralised system management
  • "Why GNU su does not support the wheel group"
  • Stricter password rules
  • Other access controls
  • sudo
  • SELinux and AppArmor
  • Restricting access to specific server services
  • Authentication security
  • Secure passwords over the Internet
  • Secure Shell
  • Additional security measures for Internet connections
  • Securing the root password

Network setup

The basic network infrastructure

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

Modern network configuration for desktops

  • Graphical network configuration tools

Low-level network configuration

  • Iproute2 commands
  • Safe low-level network operations

Network optimization

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

Netfilter infrastructure

Network applications

The mail system

  • Modern mail service fundamentals
  • 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 filters

  • maildrop configuration
  • procmail configuration
  • 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 non-standard SSH clients
  • Setting up ssh-agent
  • Shutting down the remote system via SSH
  • Troubleshooting SSH

Other network application servers

Other network application clients

Diagnosing 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
  • Customising the X session (classic method)
  • Customising the X session (new method)
  • Connecting a remote X client via SSH
  • Secure X terminal via the Internet
  • X applications
  • X office applications
  • X utility applications

System tips

The screen program

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

Data recording and presentation

  • The log daemon
  • Log analyzers
  • Recording shell activities efficiently
  • Customised display of text data
  • Customised display of time and date
  • Coloured shell echo
  • Coloured commands
  • Recording editor activities for complex repetitions
  • Capturing graphic images of X applications
  • Tracking changes in configuration files

Data storage tips

  • Disk partition configuration
  • Accessing partitions using UUID
  • Filesystem configuration
  • Creating filesystems and integrity checks
  • Optimising filesystems via mount options
  • Optimising filesystems via the superblock
  • Hard disk optimization
  • Using SMART to predict hard disk failures
  • 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

  • Encrypting removable disks with dm-crypt/LUKS
  • Encrypting the 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 constant intervals
  • Repeating a command in a loop over files
  • Starting a program from the GUI
  • Customising programs to be started
  • Terminating a process
  • Scheduling one-time tasks
  • Scheduling regular tasks
  • The Alt-SysRq key

System maintenance tips

  • Identifying users on the system
  • Warning 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 kernel source: Debian standard method
  • Compiling module source: Debian standard method
  • Non-free hardware drivers

Virtualized systems

  • Virtualization tools
  • Virtualization workflow
  • Mounting virtual disk image files
  • Chroot systems
  • 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
  • An example script for system backup
  • A script for data backup
  • Removable storage devices
  • Sharing data via network
  • Archive media

Binary data

  • Viewing and editing binary data
  • Manipulating files without mounting the 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
  • Restoring deleted but still open files
  • Finding all hard links
  • Invisible disk space consumption

Data security infrastructure

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

Requirements

There are no specific prerequisites required to participate in this course.

Related Categories