linux

Fix Fatal glibc Error: CPU Does Not Support x86-64-v3 on RHEL 10

Fix Fatal glibc error CPU does not support x86-64-v3 on RHEL 10 by checking the CPU microarchitecture baseline and correcting VM EVC, CPU models, or VirtualBox when hardware already supports x86-64-v3.

Omer Cakmak11 min read
linux

How to Use systemd Soft Reboot on RHEL

Use systemctl soft-reboot on RHEL 10.1+ to restart userspace while the kernel keeps running, and verify SoftRebootsCount, boot_id, uptime, and service PIDs.

Omer Cakmak10 min read
linux

How to Install Docker on RHEL

Install Docker Engine Community (Docker CE) on RHEL 8, 9, and 10 from the official DNF repository, enable docker.service, verify with hello-world, optionally add the docker group, upgrade, and uninstall cleanly.

Omer Cakmak8 min read
linux

RHEL 10 TigerVNC Alternative: Configure GNOME Remote Desktop

TigerVNC server was removed from RHEL 10. Configure GNOME Remote Desktop with RDP on RHEL, Rocky Linux, AlmaLinux, and CentOS Stream 10 as the supported replacement.

Deepak Prasad14 min read
devops

Provision AWS EC2 Instances with Ansible Playbooks

Provision AWS EC2 instances with Ansible using amazon.aws.ec2_instance. Create a security group, launch and tag Ubuntu instances, and start, stop, query, and terminate EC2 resources.

Deepak Prasad14 min read
linux

Install and Trust a CA Certificate in the Linux System Trust Store

Install a private CA certificate into the Linux system trust store with update-ca-certificates on Debian and Ubuntu or update-ca-trust on RHEL and Fedora, verify the anchor landed, remove it again, and fix the …

Omer Cakmak20 min read
devops

Install Podman on Rocky Linux, AlmaLinux & CentOS Stream

Install Podman on Rocky Linux, AlmaLinux, and CentOS Stream with dnf from AppStream, verify with podman info, test rootless mode, run a hello container, and update or uninstall.

Deepak Prasad7 min read
devops

Install Podman on RHEL: Commands, Versions & Requirements

Install Podman on RHEL 8, 9, and 10 from AppStream with dnf, compare podman and container-tools, check Quadlet feature gates by version, verify with podman info, test rootless mode, and run a hello container.

Deepak Prasad11 min read
linux

How to Find and Fix Memory Leaks in Linux Applications

Read LeakSanitizer and Valgrind reports down to the line that owns the memory, use the flags that add detail, attribute growth with Massif, and query a running process with vgdb so you fix the cause instead of only …

Omer Cakmak42 min read
linux

How to Install libc.so.6 on Linux (glibc Package, Not a Download)

Diagnose libc.so.6 errors by message type — GLIBC_2.xx not found, cannot open shared object file, wrong ELF class, or damaged system libc — then fix with the matching glibc package, multilib, rebuild, container, or …

Omer Cakmak12 min read
linux

Configure Fail2ban to Protect SSH on Linux

Install Fail2ban, enable the sshd jail with sane bantime and ignoreip values, verify bans after failed SSH logins on RHEL and Debian, and unban trusted client addresses when needed.

Omer Cakmak10 min read
linux

Found a Swap File by the Name: Fix Vim .swp Warnings (E325)

Fix Vim E325 Found a swap file by the name by reading the .swp prompt, recovering after a crash, or removing a stale swap file once no editor owns it — not Linux swap memory from mkswap.

Omer Cakmak9 min read
linux

Fix SSH No Route to Host: Routing, Firewall, and sshd Checks

Diagnose SSH no route to host with TCP port tests, ip route get, remote firewalld and sshd checks, and learn when the message means a firewall REJECT instead of a missing route.

Omer Cakmak10 min read
linux

Fix RPM Failed Dependencies on Install and Remove

Fix error Failed dependencies when installing a local RPM with dnf install, list requirements with dnf repoquery, install offline RPM bundles, and remove packages safely on RHEL family systems.

Omer Cakmak7 min read
linux

Idle SSH Sessions: Disconnect or Keep Them Alive on Linux

Set ClientAliveInterval and ClientAliveCountMax on sshd to drop unresponsive SSH clients, use ServerAliveInterval on the OpenSSH client to keep sessions alive through NAT, and understand how TCPKeepAlive differs.

Omer Cakmak8 min read
linux

Detect Rootkits on Linux with rkhunter

Install rkhunter from EPEL or apt, update its signature database, baseline file properties with propupd, run a non-interactive check, and interpret warnings in rkhunter.log on RHEL and Debian-family hosts.

Omer Cakmak7 min read
linux

Create a systemd Service Unit in Linux

Create a custom systemd .service unit under /etc/systemd/system/, explain Unit Service and Install sections, start and enable it with systemctl, and verify with status and journalctl.

Omer Cakmak6 min read
linux

How to Perform tar Incremental Backup on Linux

Take GNU tar listed-incremental backups with a snapshot file, create level 0 and level 1 archives, inspect Y and N file status, and restore by applying the full backup then each incremental in order.

Omer Cakmak8 min read
linux

SSH Multiplexing on Linux: Share One Connection

Reuse one authenticated SSH connection for later ssh, scp, and sftp sessions with ControlMaster, ControlPath, and ControlPersist on the OpenSSH client.

Omer Cakmak10 min read
linux

How to Copy a Directory Over SSH on Linux

Copy a directory and its contents between Linux hosts with scp -r and rsync -av over SSH, verify the remote layout, and avoid common path mistakes with trailing slashes.

Omer Cakmak7 min read
linux

Restrict SFTP Users to a Directory with OpenSSH Chroot

Restrict SFTP users to a chroot directory with OpenSSH ChrootDirectory, ForceCommand internal-sftp, Match blocks in sshd_config, writable upload folders, and SSH public-key authentication.

Omer Cakmak10 min read
linux

How to Set Up a Proxy for YUM and DNF Repositories

Configure proxy settings in dnf.conf and yum.repos.d for YUM, DNF 4, and DNF 5 on RHEL-family systems, including authenticated proxies, per-repo overrides, and proxy=_none_.

Omer Cakmak8 min read
linux

How to Set SFTP umask in Linux

Set SFTP upload permissions with OpenSSH internal-sftp -u in sshd_config, apply umask per user or group with Match blocks, and understand why umask removes bits but cannot add them.

Omer Cakmak7 min read
linux

Secure HTTPS File Transfer with curl and Apache on RHEL

Set up Apache httpd with TLS, WebDAV, and HTTP basic auth on RHEL-family systems, trust the server certificate on the client with curl --cacert, and upload or download files over verified HTTPS.

Omer Cakmak11 min read
linux

pkill -P: Kill Child Processes by Parent PID in Linux

Use pkill -P PARENT_PID . to send SIGTERM to every direct child of a parent process, list them with ps --ppid, and clean up script workers with pkill -P $$ . on EXIT.

Omer Cakmak5 min read
linux

pam_faillock: Lock User Accounts After Failed Logins on RHEL

Enable pam_faillock on RHEL-family Linux with authselect and faillock.conf, verify SSH lockout after failed passwords, and reset tallies with the faillock command.

Omer Cakmak7 min read
linux

Install Prometheus and Grafana on RHEL, Rocky Linux, and AlmaLinux

Install Prometheus from the upstream Linux binary on RHEL-family hosts, add Grafana from the official RPM repository, enable both with systemd, open firewalld ports 9090 and 3000, and connect Grafana to Prometheus on the …

Omer Cakmak12 min read
linux

How to Automate SFTP in Shell Scripts on Linux

Automate SFTP file transfers in Linux shell scripts using sftp batch mode with SSH keys, or password authentication with sshpass or expect when keys are not available.

Omer Cakmak10 min read
linux

How to Install ARPACK on Linux

Install ARPACK runtime and development packages on Ubuntu, Debian, and RHEL-family Linux from distribution repositories, verify libraries with dpkg or rpm and pkg-config, and link a sample Fortran program against …

Omer Cakmak8 min read
linux

Fix “Another App Is Holding the yum Lock” on RHEL and Fedora

Fix “another app is currently holding the yum lock” and modern DNF lock messages on RHEL and Fedora. Find the holding PID, wait safely, and clear stale metadata or RPMDB locks on DNF4 and DNF5.

Omer Cakmak8 min read