Using and Administering Linux: Volume 1: Zero to SysAdmin: Getting Started, 2nd Edition [1, 2 ed.] 9781484296172, 9781484296189, 1555582737, 0131429019

Learn to be a Linux sysadmin and an expert user of the Linux operating system, even with no previous Linux experience. T

119 54 10MB

English Pages 667 Year 2023

Report DMCA / Copyright

DOWNLOAD EPUB FILE

Table of contents :
Table of Contents
About the Author
About the Technical Reviewers
Acknowledgments
Introduction
Chapter 1: Introduction
Objectives
About Linux
The Birth of Windows
Black Box Syndrome
The Birth of Linux
The Open Box
The Linux Truth
Knowledge
Flexibility
Stability
Scalability
Security
Freedom
Our Software Rights
Longevity
Data
Resist Malware
Should I Be a SysAdmin?
About This Course
About the Experiments
What to Do If the Experiments Do Not Work
Terminology
How to Access the Command Line
Chapter Summary
Exercises
Chapter 2: Introduction to Operating Systems
Objectives
Choice – Really!
What Is an Operating System?
Hardware
Motherboard
The Processor
Hyperthreading
P- and E-Cores
Peripherals
The Operating System
The Definition
Typical Operating System Functions
Memory Management
Multitasking
Multiuser
Process Management
Interprocess Communication
Device Management
Error Handling
Utilities
A Bit of History
Starting with UNICS
UNIX
The Berkeley Software Distribution (BSD)
The Unix Philosophy
A (Very) Brief History of Linux
Core Utilities
GNU Coreutils
util-linux
Copyleft
Games
Chapter Summary
Exercises
Chapter 3: The Linux Philosophy for SysAdmins
Objectives
Background
The Structure of the Philosophy
The Tenets
Data Streams Are a Universal Interface
Transforming Data Streams
Everything Is a File
Use the Linux FHS
Embrace the CLI
Be the Lazy SysAdmin
Automate Everything
Always Use Shell Scripts
Test Early and Test Often
Use Commonsense Naming
Store Data in Open Formats
Use Separate Filesystems for Data
Make Programs Portable
Use Open Source Software
Strive for Elegance
Find the Simplicity
Use Your Favorite Editor
Document Everything
Backup Everything – Frequently
Follow Your Curiosity
There Is No “Should”
Mentor the Young SysAdmins
Support Your Favorite Open Source Project
Reality Bytes
Chapter Summary
Exercises
Chapter 4: Preparation
Objectives
Overview
Got Root?
Hardware Specifications
Host Software Requirements
Installing VirtualBox
Install VirtualBox on a Linux Host
Install VirtualBox on a Windows Host
Creating the VM
VirtualBox Manager
Configuring the Virtual Network
Preparing Disk Space
Windows
Linux
Download the ISO Image File
Creating the VM
Chapter Summary
Exercises
Chapter 5: Installing Linux
Objectives
Overview
Insert the Fedora Live Image
Boot the Live Image
Installing Fedora
Start the Installation
Set the Host Name
User Accounts
Hard Drive Partitioning
About Swap Space
Finish Partitioning
Begin the Installation
Finish the Installation
Shut Down the Live System
Reconfigure the VM
Create a Snapshot
First Boot
What to Do If the Experiments Do Not Work
Chapter Summary
Exercises
Chapter 6: Using the Xfce Desktop
Objectives
Why Xfce
The Desktop
The File Manager
Stability
Xfce4 Terminal Emulator
Configurability
Getting Started
Login
First Look
Exploring the Xfce Desktop
Screensaver
Settings Manager
Adding Launchers to Panel 2
Default Applications
Desktop Appearance
Appearance
Multiple Desktops
Installing Updates
Chapter Summary
Exercises
Chapter 7: Using the Linux Command Line
Objectives
Introduction
Preparation
Defining the Command Line
CLI Terminology
Command Prompt
Command Line
Command-Line Interface
Command
Terminal
Console
Virtual Consoles
Using Virtual Consoles
Terminal Emulator
Pseudo-terminal
Device Special Files
Session
Shell
Using Different Shells
Secure Shell (SSH)
Screen
The GUI and the CLI
Some Important Linux Commands
The PWD
Directory Path Notation Styles
Moving Around the Directory Tree
Tab Completion Facility
Exploring Files
More Commands
Command Recall and Editing
Chapter Summary
Exercises
Chapter 8: Core Utilities
Objectives
GNU Coreutils
util-linux
Chapter Summary
Exercises
Chapter 9: Data Streams
Objectives
Data Streams as Raw Materials
Text Streams: A Universal Interface
STDIO File Handles
Preparing a Logical Volume for Testing
Storage Device Logical Structure
Creating the New Volume
Generating Data Streams
Test a Theory with Yes
The Boot Record
Digging Deeper
Randomness
Pipe Dreams
Building Pipelines
Redirection
Just grepping Around
Chapter Summary
Exercises
Chapter 10: Text Editors
Objectives
Why We Need Text Editors
Vim
Other Editors
Nano
Emacs
gnome-text-editor
gedit
Leafpad
Kate
xfw
xed
Learning Nano
Learning Vim
Setting SELinux to Permissive
Use Your Favorite Text Editor
Chapter Summary
Exercises
Chapter 11: Working as Root
Objectives
Why Root?
More About the su Command
Getting to Know the Root Account
Disadvantages of Root
Escalating User Privilege
The Bad Ways
Using sudo
Do Do That sudo That You Do So Well
The sudoers File
Host Aliases
User Aliases
Command Aliases
Environment Defaults
Command Section
Bypassing Passwords
wheel
Real SysAdmins Don’t sudo
sudo or Not sudo
Valid Uses for sudo
Using su as Root
Chapter Summary
Exercises
Chapter 12: Installing and Updating Software
Objectives
Dependency Hell
RPM
YUM
DNF
Installing Packages
Installing Updates
Post-update Tasks
Removing Packages
Groups
Adding Repositories
Other Software
Installing Zoom
Updating Zoom
About the Kernel
Chapter Summary
Exercises
Chapter 13: Tools for Problem Solving
Objectives
The Art of Problem Solving
The Five Steps of Problem Solving
Knowledge
Observation
Reasoning
Action
Test
System Performance and Problem Solving
top
Summary Section
Load Averages
CPU Usage
Process Section
Things to Look for with CPU Usage
Memory Statistics
The Task List
Signals
Consistency
Other top-Like Tools
htop
atop
More Tools
Memory Tools
Tools That Display Disk I/O Statistics
The /proc Filesystem
Exploring Hardware
Monitoring Hardware Temperatures
Monitoring Storage Drives
System Statistics with SAR
Installation and Configuration
Examining Collected Data
Cleanup
Chapter Summary
Exercises
Chapter 14: Terminal Emulator Mania
Objectives
About Terminals
My Requirements
The Terminal Emulators
rxvt
xfce4-terminal
LXTerminal
Tilix
Konsole
Terminator
Chapter Summary
Exercises
Chapter 15: Advanced Shell Topics
Objectives
The Bash Shell
Shell Options
Shell Variables
Commands
The PATH
Internal Commands
External Commands
Forcing the Use of External Commands
Command-Line Programs
Time-Saving Tools
Brace Expansion
Special Pattern Characters
Sets
Meta-characters
Using grep
Finding Files
Chapter Summary
Exercises
Chapter 16: Linux Boot and Startup
Objectives
Overview
Hardware Boot
The Boot Sector
The MBR
The GPT
Impact
Linux Boot
GRUB
GRUB Stage 1
GRUB Stage 1.5
GRUB Stage 2
Configuring GRUB
Finishing GRUB Boot
The Linux Kernel
Linux Startup
Text-Mode Startup
systemd
Graphical Login Screen
Display Manager
Window Manager
How Do I Deal with All These Choices?
Recovery Mode
When Booting to Rescue Mode Fails
Working in Rescue Mode
About the Login
CLI Login Screen
GUI Login Screen
Chapter Summary
Exercises
Chapter 17: Shell Configuration
Objectives
Starting the Shell
Non-login Shell Startup
Login Shell Startup
Exploring the Global Configuration Scripts
Exploring the Local Configuration Scripts
Testing It
Exploring the Environment
User Shell Variables
Aliases
Chapter Summary
Exercises
Chapter 18: Files, Directories, and Links
Objectives
Introduction
Preparation
User Accounts and Security
File Attributes
File Ownership
File Permissions
Directory Permissions
Implications of Group Ownership
umask
Changing File Permissions
Applying Permissions
Timestamps
File Meta-structures
The Directory Entry
The inode
File Information
Links
Hard Links
Locating Files with Several Hard Links
Symbolic (Soft) Links
Chapter Summary
Exercises
Chapter 19: Filesystems
Objectives
Overview
Definitions
Filesystem
Storage
Filesystem Functions
The Linux Filesystem Hierarchical Standard
The Standard
Problem Solving
Using the Filesystem Incorrectly
Adhering to the Standard
Linux Unified Directory Structure
Filesystem Types
Mounting
The Linux EXT4 Filesystem
Cylinder Groups
The inode
Journal
Data Allocation Strategies
Data Fragmentation
Repairing Problems
The /etc/fstab File
Repairing Damaged Filesystems
Using a Fedora Live USB Device for System Recovery
Recovery Mode Using a Live USB Image
Finding Lost Files
Creating a New Filesystem
Finding Space
Add a New Virtual Hard Drive
Other Filesystems
Chapter Summary
Exercises
Index

Using and Administering Linux: Volume 1: Zero to SysAdmin: Getting Started, 2nd Edition [1, 2 ed.]
 9781484296172, 9781484296189, 1555582737, 0131429019

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
Recommend Papers