Have you ever wanted to automate Docker container deployment on an EC2 instance. That was exactly what I wanted to do last week and instead of doing it the old-fashioned way with SSH and manual scripts, I decided to automate it using Ansible and run it through GitHub Actions (CI/CD). The result? A super clean…
Category: Ubuntu
Persistent Disk Mapping in Linux – Udev Rules vs. Multipath Configuration
In Linux, ensuring persistent device names for storage volumes is crucial, especially in environments where device names can change across reboots or when new devices are added. This persisting mapping become more crucial if you want to provision raw storage volume for Oracle ASM disks. There are two common methods to achieve this persistence either…
How to clear memory cache and buffer in Linux
Linux, like other operating systems, has an efficient and affective memory management for managing memory hungry Application or database. RAM as you know is a vital part for Operating systems for storing code and data, in Linux it uses memory cache and buffer for improving the system performance. If I talk bit more about memory…
What are Ansible Host and Group Variables
Variables or Vars are used to store the data which is further used by ansible playbook. These variables can either take input from user or it can also be stored in YAML or INI file as well like main.yml or inventory. Variables stored in either playbook or in separate YAML or INI format file can…
How to mitigate Linux OpenSSH vulnerability CVE-2023-38408
The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009. Source Definition: CVE-2023-38408 at…
How to migrate existing WordPress blog from AWS EC2 instance to Amazon Lightsail
In my previous post I had written on how to convert AWS EC2 On Demand (OD) instance to Reserve Instance (RI) for running dedicated and heavy traffic based website like blog or any ecommerce website which require high configuration, but if your website does not have much traffic or you do not want high compute…
What are Huge Pages and how to configure it in Linux for supporting Oracle SGA requirement
Huge Pages In x86 Architecture, memory pages are like textbook pages where CPU use those pages for reading and writing them in virtual memory for addressing computing requirement. Technically, I can say it is a fixed size block of virtual memory which is defined as pages that has corresponding entry in page table and further…
How to upgrade Ubuntu 18.04 LTS to Ubuntu 20.04 LTS
Ubuntu 20.04 LTS has released on April 23, 2020 (with code name “Focal Fossa”) by succeeding its Ubuntu 19.10 as a Latest Stable Linux OS. As Ubuntu 20.04 LTS has suffix “LTS” that’s means it has Long Term Support for 5 years from Ubuntu. Ubuntu 20.04 LTS has come with many features some key features…
Segmentation Fault error in Linux / Unix system
You were running a program installed in your Linux/Unix system and suddenly that program get stop and it log error in its logs memory segmentation fault error or you might executing a command in Linux / Unix server say you are working on LVM extension or VG scanning but you are unable to do so…
I have applied updates in my Ubuntu Linux machine how do I check what updates are applied?
Whenever you apply an install/update/remove any package or packages Ubuntu log the changes happened to packages in its default file /var/log/dpkg.log. If you do listing to /var/log/ path (below is the command) you may find numbers of uncompressed and compressed dpkg.log files it depends on what type of log rotate policy is configure in file…
