red hat, rhel8
You will find here notes and links to official docs with information on products and technologies that described on RedHat Training.
THIS DOCUMENT DOES NOT REPRINT ANY COPYRIGHTED CONTENT FROM REDHAT TRAINING. You will find here only public accessible outline.
Course description: RH134 Red Hat System Administration II
Run commands more efficiently by using advanced features of the Bash shell, shell scripts, and various utilities provided by Red Hat Enterprise Linux.
Book: Advanced Bash-Scripting Guide
Книга: Искусство программирования на языке сценариев командной оболочки
YouTube Video: "Where GREP Came From - Computerphile" with Brian Kernighan
GNU website: GNU Grep 3.5 manual
Почему работать в консоли настолько приятно? Так задумано отцами-основателями Unix
Schedule commands to run in the future, either one time or on a repeating schedule.
Cron в Linux: история, использование и (внутреннее) устройство
Red Hat Enterprise Linux 7 System Administrator’s Guide: CHAPTER 24. AUTOMATING SYSTEM TASKS
Techmint Article: Cron Vs Anacron: How to Schedule Jobs Using Anacron on Linux
Putorius Article: Cron vs Anacron - Different Ways of Scheduling Jobs on Linux
Cron | Anacron |
---|---|
It’s a daemon | It’s not a daemon |
Appropriate for server machines | Appropriate for desktop/laptop machines |
Enables you to run scheduled jobs every minute | Only enables you to run scheduled jobs on daily basis |
Doesn’t executed a scheduled job when the machine if off | If the machine if off when a scheduled job is due, it will execute a scheduled job when the machine is powered on the next time |
Can be used by both normal users and root | Can only be used by root unless otherwise (enabled for normal users with specific configs) |
Fedora Magazine: Systemd Timers for Scheduling Tasks
Let's create an alternative for this crontab job:
Timers work directly with services' units. So we have to create /etc/systemd/system/date.service first:
Then we have to create timer unit with the same name but with *.timer suffix /etc/systemd/system/date.timer:
This config will run date.service every 10 minutes. You can also list all timers enabled in your system using systemctl list-timers command or systemctl list-timers –all to list all timers. Run systemctl start date.timer to enable timer.
You can also create timer with different name, i.e. task.timer. In this case you have specify service unit name:
Freedesktop man page: systemd.timer — Timer unit configuration
Freedesktop man page: systemctl — Control the systemd system and service manager
RedHat Knowledgebase: Why are there many tmpfs filesystems mounted on the server?
RedHat Knowledgebase: How to work with /dev/shm in Red Hat Enterprise Linux 7 and later
RedHat Knowledgebase: How do I restrict or modify size of /dev/shm?
RedHat Knowledgebase: How do I modify the size of tmpfs?
By default tmpfs is half of available system RAM
What Is /dev/shm And Its Practical Usage
Freedesktop man journald.conf: journald disk usage can grow up to 4GB
https://www.loggly.com/ultimate-guide/managing-journal-size/
https://www.loggly.com/ultimate-guide/linux-logging-with-systemd/#journald-configuration
Improve system performance by setting tuning parameters and adjusting scheduling priority of processes.
Tuned is a system tuning service for Linux.
RedHat Blog: Tuning Your System With Tuned
YouTube Video: Linux processes, init, fork/exec, ps, kill, fg, bg, jobs
Interpret and set access control lists (ACLs) on files to handle situations requiring complex user and group access permissions.
Protect and manage the security of a server by using SELinux.
Manage basic storage
https://people.redhat.com/dwalsh/
https://danwalsh.livejournal.com/
YouTube: Red Hat Summit: Are you listening to what SELinux is telling you?
https://selinuxproject.org/page/Category:Notebook
https://freecomputerbooks.com/The-SELinux-Notebook-The-Foundations.html
https://www.amazon.com/SELinux-System-Administration-Sven-Vermeulen/dp/1787126951
https://www.amazon.com/SELinux-Example-Using-Security-Enhanced/dp/0131963694
https://www.amazon.com/Selinux-Source-Security-Enhanced-Linux/dp/0596007167
https://www.thomas-krenn.com/en/wiki/Linux_Storage_Stack_Diagram
RHEL8 Docs: Considerations in adopting RHEL 8: Btrfs has been removed
Create and manage logical volumes containing file systems and swap spaces from the command line.
RHEL8 Docs: Configuring and managing logical volumes
The Status of Storage Within Linux: LVM, Btrfs, and ZFS comparison
Manage storage using the Stratis local storage management system and use VDO volumes to optimize storage space in use.
https://opensource.com/article/18/4/stratis-easy-use-local-storage-management-linux
https://opensource.com/article/18/4/stratis-lessons-learned
RHEL8 Docs: Managing file systems: Chapter 17. Managing layered local storage with Stratis
Red hat Interactive Lab: Stratis
RHEL8 Docs: Deduplicating and Compressing storage
https://www.opennet.ru/opennews/art.shtml?num=51828
Use the NFS protocol to administer network-attached storage.
RHEL8 Docs: System Design Guide Chapter: 29. Mounting NFS shares
RHEL8 Docs: Considerations in adopting RHEL 8 Chapter 12. File systems and storage
https://www.kernel.org/doc/html/latest/filesystems/autofs.html
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/nfs-autofs
https://www.freedesktop.org/software/systemd/man/systemd.automount.html
https://www.freedesktop.org/software/systemd/man/systemd.mount.html
Альтернатива демону autofs.Автомонтирование при помощи, юнитов systemd mount и automount.
Habr: Автомонтирование файловых систем с systemd
Manage the boot process to control services offered and to troubleshoot and repair problems.
Red Hat KB: Resetting the Root Password of RHEL8
http://onreader.mdl.ru/HandsonBooting/content/index.html
Control network connections to services using the system firewall and SELinux rules.
Install Red Hat Enterprise Linux on servers and virtual machines.
RHEL Overview
RHEL 8 Bare Metal Quick Install
RHEL8 Administration guid:Installation
RHEL 8 VirtualBox Quick Install
Red Hat Enterprise Linux Hello World
Obtain, run, and manage simple, lightweight services as containers on a single Red Hat Enterprise Linux server.
https://developers.redhat.com/blog/2018/02/22/container-terminology-practical-introduction/
https://developers.redhat.com/blog/2018/08/29/intro-to-podman/
https://www.redhat.com/sysadmin/behind-scenes-podman
https://www.redhat.com/sysadmin/image-stores-podman
https://www.redhat.com/sysadmin/rootless-podman
https://developers.redhat.com/blog/2020/09/25/rootless-containers-with-podman-the-basics/
https://access.redhat.com/solutions/3911401
https://catalog.redhat.com/software/containers/explore
https://developers.redhat.com/products/rhel/ubi
https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image
https://www.certdepot.net/
https://www.server-world.info/en/
Snap vs Flatpack vs AppImage
DJ Ware - The CyberGizmo
Brian Will
Chris Titus Tech
Bryan Lunduke
Learn Linux TV
Jeff Geerling
DistroTube Linux enthusiast & free software advocate
Luke Smith
Tyler's Tech
Craft Computing
Christian Lempa