Tags

azure

Terraform and Azure's 'Required property policyRule not found in JSON'

While developing and testing a TF Azure module for policies and policy initiatives (sets) I’ve received the following error:Error: creating/updating Policy Definition custom-policy-1:...

In Terraform, Azure, Apr 11, 2023

"Error ensuring Resource Providers are registered" in Terraform Azure

Terraform Azure is pretty much a stable, mature provider. However, there are few errors that could occur for some “random” reason, and this time Error ensuring Resource Providers are ...

In Terraform, Azure, Jan 29, 2023

Get Azure AD Microsoft Graph API Delegated / Application permission IDs in Terraform

Getting Microsoft Graph API Delegated and Application permission IDs are definitely hard to find, if you are doing things right – the programmatic way.

In Terraform, Azure, Jul 31, 2022

User-assigned vs System-assigned Managed Identities in Azure

In one of the last Azure posts, I wrote about the differences between Service Principal and Managed Identities. Since there are two types of MIs – User-assigned and System-assigned, I...

In Azure, Jul 29, 2022

Service Principal vs Managed Identities in Azure

Two more arguably confusing identity objects in Azure AD – Service Principal and Managed Identities. Let’s tackle them down by defining what they are and how they distinguish from eac...

In Azure, Jul 27, 2022

App Registrations vs Enterprise Applications in Azure AD

There are two important things to differentiate when registering and working with apps in Azure AD: App Registrations and Enterprise Applications.

In Azure, Jul 23, 2022

Grant Azure AD Admin Consent programmatically (with Terraform)

Admin Consent by definition enables granting access to Azure-registered applications that requires admin approval securely.

In Azure, Terraform, Jun 25, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

Enable HTTP/2 for Azure App Service

HTTP/2 was released in 2015 (7 years ago) which is faster and more reliable than HTTP1. In this post I’m going to show you how easy it can get to upgrade from HTTP1 to HTTP2 for Azure...

In Azure, HTTP, Mar 25, 2022

Enable HTTPS redirection in Azure Functions

HTTPS redirection are quite common these days from security and SEO viewpoint. Today’s topic going to be about how to enable the redirection in Azure Functions.

In Azure, HTTP, Mar 21, 2022

Save data transfer costs with Cloudflare and Azure

Cloudflare Bandwidth Alliance represents a group of cloud and network providers that are willing to help us as their customers to reduce our data transfer charges. It’s interesting to...

In Azure, Cloudflare, Mar 15, 2022

How to get regional Azure public IP address ranges

Public Azure cloud IP ranges and service tags could be important thing when working with services and NSGs (Network Security Groups). The list could be downloaded as a JSON file in a ...

In Azure, Jan 12, 2022

Configure auto logout from the Azure Portal

In case you didn’t know by now, Azure Portal offers a decent amount of customization, including option to auto logout after a period of time.

In Azure, Jan 08, 2022

How to find the latest Azure deployment template schema API version

Using the latest ARM templates schema API version is important only when provisioning new resources. In general, there is no need to keep up-to-date API version of the already deploye...

In Azure, Nov 17, 2021

Get a list of all Azure regions available

Speaking of Azure regions and locations, very often we think of the commercial Azure cloud, since there is Azure Government, which basically represents a completely isolated Azure clo...

In Azure, Nov 15, 2021

Ways to provision infrastructure on Azure

Last week I wrote about the different Ways to Provision Infrastructure on AWS, and as you might expect I’m doing another one, but this time it’s all Azure.

In Azure, Nov 01, 2021

5 ways to protect root account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

Service Endpoints vs Private Links in Azure

Microsoft Azure provides many options to approach networking, starting from Azure VPN, ExpressRoute, Azure Route Server, NVAs, and others. These are more likely to be implemented in t...

In Azure, Oct 10, 2021

7 ways to save money in the Cloud

Cost optimization is just one of the five pillars of Well-Architected Framework, which is identical across the top 3 public cloud provider players. Although, deploying a billing alarm...

In Cloud, Oct 02, 2021

Azure VMs Auto-shutdown

Talking about VMs shutdown operation, we got few ways we could do it in Azure: Stop VMs manually from the Portal. Running the az CLI command, described in How to easily Start, Stop,...

In Azure, Sep 08, 2021

Scale AKS user node pool to 0

In case you missed Configure AKS automatic upgrades.In today’s post, we are going to see how can we be cost-effective, by scaling the User node pool to 0.

In Azure, Kubernetes, Sep 06, 2021

Schedule automated Start and Stop for Azure VMs

Scheduling automated start and stop for Azure VMs is almost as good as provisioning and deprovisioning infrastructure on-demand, by using Infrastructure as Code (IaC) tools, like Terr...

In Azure, Sep 04, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

Configure Azure CLI automatic upgrades

As part of the Azure CLI series, today we are going to see how we can configure automatic upgrades.

In Azure, Aug 31, 2021

How to upload files to Azure Cloud Shell

As the name says, Azure Cloud Shell is a browser-accessible shell, which is used for managing Azure resources. It comes with two types of command shells Bash and PowerShell. It also g...

In Azure, Nov 27, 2019

How to easily Start, Stop, Restart or Delete Azure VMs

Managing Azure Virtual Machines through the Portal could be pretty straightforward. But, it requires multiple steps using the GUI. For example, you’ll have to login to the Portal firs...

In Azure, Oct 28, 2019

How to backup and restore an Azure SQL database using Azure CLI

You cannot think of a SQL Server Administration or any kind of relational and non-relational database administration without the two magic words: backup and restore. Backing up a data...

In Azure, Oct 17, 2019

How to rename an Azure SQL database using Azure CLI

As a part of an Azure SQL Database administration series, this post will be a followup from the last one, where I will write about renaming Azure SQL databases, which is kind of a com...

In Azure, Oct 14, 2019

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that I’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

How to Direct-Upload to Azure Managed Disks

A few days ago, Microsoft announced the preview of direct-upload to Azure Managed Disks. So, there are two ways you could move a VHD to the Azure cloud as a managed disk: Upload the ...

In Azure, Oct 08, 2019

How to restore deleted Azure Storage Blobs

Accidental deletion of files can happen to anyone working either on-premise or in the cloud. As a DevOps engineer who is responsible for managing access permissions to resources, the ...

In Azure, Oct 04, 2019

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and DevOps, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

azure cli

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

Get a list of all Azure regions available

Speaking of Azure regions and locations, very often we think of the commercial Azure cloud, since there is Azure Government, which basically represents a completely isolated Azure clo...

In Azure, Nov 15, 2021

Ways to provision infrastructure on Azure

Last week I wrote about the different Ways to Provision Infrastructure on AWS, and as you might expect I’m doing another one, but this time it’s all Azure.

In Azure, Nov 01, 2021

Scale AKS user node pool to 0

In case you missed Configure AKS automatic upgrades.In today’s post, we are going to see how can we be cost-effective, by scaling the User node pool to 0.

In Azure, Kubernetes, Sep 06, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

Configure Azure CLI automatic upgrades

As part of the Azure CLI series, today we are going to see how we can configure automatic upgrades.

In Azure, Aug 31, 2021

How to upload files to Azure Cloud Shell

As the name says, Azure Cloud Shell is a browser-accessible shell, which is used for managing Azure resources. It comes with two types of command shells Bash and PowerShell. It also g...

In Azure, Nov 27, 2019

How to easily Start, Stop, Restart or Delete Azure VMs

Managing Azure Virtual Machines through the Portal could be pretty straightforward. But, it requires multiple steps using the GUI. For example, you’ll have to login to the Portal firs...

In Azure, Oct 28, 2019

How to backup and restore an Azure SQL database using Azure CLI

You cannot think of a SQL Server Administration or any kind of relational and non-relational database administration without the two magic words: backup and restore. Backing up a data...

In Azure, Oct 17, 2019

How to rename an Azure SQL database using Azure CLI

As a part of an Azure SQL Database administration series, this post will be a followup from the last one, where I will write about renaming Azure SQL databases, which is kind of a com...

In Azure, Oct 14, 2019

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that I’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

How to Direct-Upload to Azure Managed Disks

A few days ago, Microsoft announced the preview of direct-upload to Azure Managed Disks. So, there are two ways you could move a VHD to the Azure cloud as a managed disk: Upload the ...

In Azure, Oct 08, 2019

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

macos

Display current directory from the CLI

Trying to get the current working directory is a good starting point for debugging purposes at least whenever you are ssh-ed into a CI/CD server agent or likewise. So here’s the tip.

In Shell, Jun 22, 2023

Fix 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'

The error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Com...

In macOS, Mar 31, 2023

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

How to install sshpass on macOS

Trying to install sshpass on macOS by executing brew install sshpass I get stuck with the following message:Warning: No available formula with the name "sshpass". Did you mean sshs?We...

In macOS, Jan 10, 2023

How to install smartctl on macOS

Getting some of your macOS system preferences can be easily achieved with smartmontools. Let’s see how to install smartctl on macOS.

In macOS, Jan 08, 2023

head: illegal line count on macOS

Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...

In Parsing, Jan 07, 2023

macOS: xcrun: error: invalid active developer path

Yesterday I’ve tried to spin up some Git cloned Golang project for fun, and while trying to run make worker, I’ve received the following error in the console output: xcrun: error: inv...

In macOS, Dec 16, 2022

Resolve: "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)"

As I was trying to get my Python Docker Compose stack up and running on my MacBook Pro, I’ve noticed the following message: Warning: The requested image's platform (linux/amd64) does ...

In Docker, Nov 23, 2022

Install MySQL on macOS with Homebrew

If you strive to install MySQL on macOS in a few steps then brew is the right choice for it. Let’s see how to install MySQL on macOS with Homebrew.

In macOS, MySQL, Oct 06, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Install macOS software updates from the Terminal

Working on macOS usually requires a manual intervention when applying the latest software updates. This could easily be done from the Terminal, as shown below.

In macOS, Apr 02, 2022

Install Go on macOS

Go, also known as Golang is a popular open source programming language developed by Google and used for general purpose. Although the official macOS installation supports downloading ...

In Go, macOS, Mar 31, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

base64 encode and decode from the CLI

Base64 encoding and decoding has many use cases, but it’s important to understand that it’s different from encryption and decryption. While base64 encoding focuses on data usability, ...

In Encode/Decode, Jan 30, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

How to shutdown and restart macOS from the Terminal

As a DevOps engineers, we must get used to running commands from the Terminal. Let’s see how easy and fast we can shutdown and restart a macOS machine after long day of work.

In macOS, Nov 29, 2021

Which shell am I using - how to check

Linux comes with support for multiple flavors of shell, including bash, zsh, ksh, csh, or suchlike. This time I’ll be focusing on how to find out which shell you are using, which is t...

In Shell, Nov 21, 2021

How to reload shell session

In order to update and see changes made in the shell environment, most of the time reload is required. So, instead of restarting the machine and wasting a lot of time, a simple comman...

In Shell, Nov 19, 2021

How to install Apple Command Line Tools

Apple Command Line Tools are part of the Xcode, the official integrated development environment (IDE) for macOS. The installation is a one-liner, so let’s just jump right into it.

In macOS, Nov 13, 2021

Install Visual Studio Code on macOS

VSCode is considered as one of the most used code editors nowadays. In this brief tutorial, I will show you how to install it on macOS using Homebrew.

In VSCode, macOS, Nov 04, 2021

Install Skype on macOS

Skype as a world-known VoIP based software can be installed in multiple ways on macOS. Today I’m going to pick up one of the preferable ways of doing it, which is the easiest and the ...

In macOS, Oct 31, 2021

Install Ruby on macOS

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version m...

In Ruby, macOS, Oct 30, 2021

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your Kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In macOS, Kubernetes, Jul 22, 2021

How to install PowerShell on macOS

As a DevOps engineer, most likely we would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In PowerShell, macOS, Jul 16, 2021

How to fix 'kernel driver not installed (rc=-1908)' error on macOS

The first time you try to spin up a VM on macOS, you will probably go with VirtualBox as a Hypervisor, and honestly VBox is pretty good for beginners who just want to get the things d...

In macOS, Virtualization, Jul 07, 2021

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

brew

Install MySQL on macOS with Homebrew

If you strive to install MySQL on macOS in a few steps then brew is the right choice for it. Let’s see how to install MySQL on macOS with Homebrew.

In macOS, MySQL, Oct 06, 2022

Install Go on macOS

Go, also known as Golang is a popular open source programming language developed by Google and used for general purpose. Although the official macOS installation supports downloading ...

In Go, macOS, Mar 31, 2022

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

Install Visual Studio Code on macOS

VSCode is considered as one of the most used code editors nowadays. In this brief tutorial, I will show you how to install it on macOS using Homebrew.

In VSCode, macOS, Nov 04, 2021

Install Skype on macOS

Skype as a world-known VoIP based software can be installed in multiple ways on macOS. Today I’m going to pick up one of the preferable ways of doing it, which is the easiest and the ...

In macOS, Oct 31, 2021

Install Ruby on macOS

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version m...

In Ruby, macOS, Oct 30, 2021

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your Kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In macOS, Kubernetes, Jul 22, 2021

How to install PowerShell on macOS

As a DevOps engineer, most likely we would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In PowerShell, macOS, Jul 16, 2021

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

zsh

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Install macOS software updates from the Terminal

Working on macOS usually requires a manual intervention when applying the latest software updates. This could easily be done from the Terminal, as shown below.

In macOS, Apr 02, 2022

Install Go on macOS

Go, also known as Golang is a popular open source programming language developed by Google and used for general purpose. Although the official macOS installation supports downloading ...

In Go, macOS, Mar 31, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

How to shutdown and restart macOS from the Terminal

As a DevOps engineers, we must get used to running commands from the Terminal. Let’s see how easy and fast we can shutdown and restart a macOS machine after long day of work.

In macOS, Nov 29, 2021

Which shell am I using - how to check

Linux comes with support for multiple flavors of shell, including bash, zsh, ksh, csh, or suchlike. This time I’ll be focusing on how to find out which shell you are using, which is t...

In Shell, Nov 21, 2021

How to reload shell session

In order to update and see changes made in the shell environment, most of the time reload is required. So, instead of restarting the machine and wasting a lot of time, a simple comman...

In Shell, Nov 19, 2021

How to install Apple Command Line Tools

Apple Command Line Tools are part of the Xcode, the official integrated development environment (IDE) for macOS. The installation is a one-liner, so let’s just jump right into it.

In macOS, Nov 13, 2021

Install Visual Studio Code on macOS

VSCode is considered as one of the most used code editors nowadays. In this brief tutorial, I will show you how to install it on macOS using Homebrew.

In VSCode, macOS, Nov 04, 2021

Install Skype on macOS

Skype as a world-known VoIP based software can be installed in multiple ways on macOS. Today I’m going to pick up one of the preferable ways of doing it, which is the easiest and the ...

In macOS, Oct 31, 2021

Install Ruby on macOS

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version m...

In Ruby, macOS, Oct 30, 2021

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your Kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In macOS, Kubernetes, Jul 22, 2021

How to install PowerShell on macOS

As a DevOps engineer, most likely we would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In PowerShell, macOS, Jul 16, 2021

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

shell

Display current directory from the CLI

Trying to get the current working directory is a good starting point for debugging purposes at least whenever you are ssh-ed into a CI/CD server agent or likewise. So here’s the tip.

In Shell, Jun 22, 2023

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Show full history in PowerShell

PowerShell’s Get-History only lists the current session history. Now, I’m going to share with you a quick nugget on how to show the full history from all sessions.

In PowerShell, Jul 15, 2022

Escape PowerShell's double quotes in Terraform

To my Windows-PowerShell-Terraform-Azure users out there, I just want to share a quick nugget on how to escape the annoying double quotes.

In Terraform, PowerShell, Jun 23, 2022

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Get Windows 10 version number from the CLI

Today’s topic going to be all about the multiple way to get the version number for Windows 10. Even though there’s a dozen ways to do it, I’m going to stick to the most basic ones wit...

In Windows 10, May 12, 2022

PowerShell equivalent of the touch command in Linux

There might be a point in your IT career where you need to switch to a Windows OS dev machine whatever you like it not because the CTO decided to put all eggs in the Microsoft Azure b...

In PowerShell, May 02, 2022

Install macOS software updates from the Terminal

Working on macOS usually requires a manual intervention when applying the latest software updates. This could easily be done from the Terminal, as shown below.

In macOS, Apr 02, 2022

Install Go on macOS

Go, also known as Golang is a popular open source programming language developed by Google and used for general purpose. Although the official macOS installation supports downloading ...

In Go, macOS, Mar 31, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

How to shutdown and restart macOS from the Terminal

As a DevOps engineers, we must get used to running commands from the Terminal. Let’s see how easy and fast we can shutdown and restart a macOS machine after long day of work.

In macOS, Nov 29, 2021

Which shell am I using - how to check

Linux comes with support for multiple flavors of shell, including bash, zsh, ksh, csh, or suchlike. This time I’ll be focusing on how to find out which shell you are using, which is t...

In Shell, Nov 21, 2021

How to reload shell session

In order to update and see changes made in the shell environment, most of the time reload is required. So, instead of restarting the machine and wasting a lot of time, a simple comman...

In Shell, Nov 19, 2021

How to install Apple Command Line Tools

Apple Command Line Tools are part of the Xcode, the official integrated development environment (IDE) for macOS. The installation is a one-liner, so let’s just jump right into it.

In macOS, Nov 13, 2021

Install Visual Studio Code on macOS

VSCode is considered as one of the most used code editors nowadays. In this brief tutorial, I will show you how to install it on macOS using Homebrew.

In VSCode, macOS, Nov 04, 2021

Install Skype on macOS

Skype as a world-known VoIP based software can be installed in multiple ways on macOS. Today I’m going to pick up one of the preferable ways of doing it, which is the easiest and the ...

In macOS, Oct 31, 2021

Install Ruby on macOS

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version m...

In Ruby, macOS, Oct 30, 2021

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

How to install PowerShell on macOS

As a DevOps engineer, most likely we would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In PowerShell, macOS, Jul 16, 2021

How to upload files to Azure Cloud Shell

As the name says, Azure Cloud Shell is a browser-accessible shell, which is used for managing Azure resources. It comes with two types of command shells Bash and PowerShell. It also g...

In Azure, Nov 27, 2019

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

cli

Display current directory from the CLI

Trying to get the current working directory is a good starting point for debugging purposes at least whenever you are ssh-ed into a CI/CD server agent or likewise. So here’s the tip.

In Shell, Jun 22, 2023

How to Install PHP CLI on Amazon Linux 2

If you want to have the ability to run PHP scripts without the need for a web server or web browser, just running them through a terminal or command-line interface you need to have th...

In AWS, Amazon Linux 2, Apr 04, 2023

Replicate directory structure in a GCP bucket

gsutil is a Python app developed by Google that lets you handle the GCP Cloud Storage service, anything from uploading, downloading, sync, mostly doing backup and migration operation....

In GCP, Mar 18, 2023

GCP: gsutil and parallel_composite_upload_threshold

The first I tried to upload some TBs of data to a GCP bucket, I’ve received the following message:NOTE: You are uploading one or more large file(s), which would run significantly fast...

In GCP, Mar 16, 2023

GCP: revoking gcloud auth

In this tutorial, I’m going to show you how easy is to revoke any gcloud authentication, whatever you are dealing with multiple GCP personal or even service accounts.

In GCP, Mar 14, 2023

Linux 101: stdin, stdout and stderr

In Linux, stdin, stdout and stderr are all important standard input/output streams that are used to manage input and output from command line programs. So, here’s a quick overview for...

In Linux, Feb 16, 2023

How to Pass Api Key Header in Curl

Most of the API proxy services like AWS Gateway API are used to secure some requests with a level of authentication. To achieve that you can use either Bearer tokens or API Keys. Here...

In Curl, Dec 13, 2022

PS Command Not Found in Amazon Linux 2

Procps package might not be part of some Amazon Linux 2 docker images. So if you want to list the active processes you will get: ps command not found. It can be easily resolved by ins...

In PS, Amazon Linux 2, Nov 23, 2022

Install Sudo on Amazon Linux 2

Some of the Amazon Linux 2 images are missing very basic system commands like sudo. If you get this error /bin/sh: sudo: command not found then you definitely need to install sudo on ...

In AWS, Amazon Linux 2, Nov 15, 2022

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

Install Wget on Amazon Linux 2

Let’s resolve the issue wget command not found on Amazon Linux 2.

In Wget, AWS, Amazon Linux 2, Nov 05, 2022

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

How to solve Redis WARNING overcommit_memory is set to 0!

As I was working on a docker-compose stack I received the following warning message that was coming from the Redis service:WARNING overcommit_memory is set to 0! Background save may f...

In Redis, Aug 18, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

How to update Redis password

By default, Redis ships the default user without any password configured, which is okay as long as you have Redis deployed in a private subnet behind a firewall. However, if you want ...

In Redis, Aug 14, 2022

How to check Redis server version

In one of the previous Redis posts I wrote about how you could authenticate and run a command in one go. Now, let’s see how to get the currently installed version of Redis. Although t...

In Redis, Aug 12, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Update private service access connection in GCP

Not trying to rant about GCP, but to sum up, you need to do a ton of somehow complex steps just to get a simple thing up and running. It’s frustrating though.

In GCP, Aug 08, 2022

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

Show full history in PowerShell

PowerShell’s Get-History only lists the current session history. Now, I’m going to share with you a quick nugget on how to show the full history from all sessions.

In PowerShell, Jul 15, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

Resolve KernelCare `Error unpatching [255] ('default', '', '', False)` issue

Updating the latest security and stability patches using KernelCare it’s a safe and recommended way, but sometimes it can throw Error unpatching [255] ('default', '', '', False) error...

In Linux, Jun 28, 2022

Escape PowerShell's double quotes in Terraform

To my Windows-PowerShell-Terraform-Azure users out there, I just want to share a quick nugget on how to escape the annoying double quotes.

In Terraform, PowerShell, Jun 23, 2022

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Find non-ASCII characters in Linux

ASCII as a character encoding standard that use numbers to represent characters. The original ASCII code range is 0 - 127 (7 bits) which represents the english character set including...

In Linux, May 26, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Get Windows 10 version number from the CLI

Today’s topic going to be all about the multiple way to get the version number for Windows 10. Even though there’s a dozen ways to do it, I’m going to stick to the most basic ones wit...

In Windows 10, May 12, 2022

PowerShell equivalent of the touch command in Linux

There might be a point in your IT career where you need to switch to a Windows OS dev machine whatever you like it not because the CTO decided to put all eggs in the Microsoft Azure b...

In PowerShell, May 02, 2022

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

Install macOS software updates from the Terminal

Working on macOS usually requires a manual intervention when applying the latest software updates. This could easily be done from the Terminal, as shown below.

In macOS, Apr 02, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

How to restart processes with Kill in Linux

You may ask yourself why using kill command to restart processes when here is systemctl. But some of you will get stuck in a position where you will not be able to restart some stuck ...

In Linux, Mar 06, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

How to install DBeaver on Ubuntu 21.10

One of the great alternative for MySQL workbench is DBeaver. So instead of connecting only MySQL servers, DBeaver offers a lot of different database connections like PostgreSQL, SQLit...

In DBeaver, Ubuntu, Feb 12, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

How to shutdown and restart macOS from the Terminal

As a DevOps engineers, we must get used to running commands from the Terminal. Let’s see how easy and fast we can shutdown and restart a macOS machine after long day of work.

In macOS, Nov 29, 2021

How to generate random password from the CLI

There are a lot of ways to generate random passwords, starting from simple password generator sites found online to the most advanced password management solutions. Today’s topic will...

In Linux, Nov 27, 2021

Which shell am I using - how to check

Linux comes with support for multiple flavors of shell, including bash, zsh, ksh, csh, or suchlike. This time I’ll be focusing on how to find out which shell you are using, which is t...

In Shell, Nov 21, 2021

How to reload shell session

In order to update and see changes made in the shell environment, most of the time reload is required. So, instead of restarting the machine and wasting a lot of time, a simple comman...

In Shell, Nov 19, 2021

Get a list of all Azure regions available

Speaking of Azure regions and locations, very often we think of the commercial Azure cloud, since there is Azure Government, which basically represents a completely isolated Azure clo...

In Azure, Nov 15, 2021

How to install Apple Command Line Tools

Apple Command Line Tools are part of the Xcode, the official integrated development environment (IDE) for macOS. The installation is a one-liner, so let’s just jump right into it.

In macOS, Nov 13, 2021

Install Skype on macOS

Skype as a world-known VoIP based software can be installed in multiple ways on macOS. Today I’m going to pick up one of the preferable ways of doing it, which is the easiest and the ...

In macOS, Oct 31, 2021

Ways to provision infrastructure on AWS

Popular as it is, Infrastructure as Code also known as IaC, is a practice and process of managing and deploying infrastructure through code. Now, we got the flexibility to choose from...

In AWS, Oct 28, 2021

Get public IP from the CLI on Linux

Let’s speedrun the tutorial on how to get your public IP address from the command line interface for any whitelisting reason, on any Linux distro.

In Linux, Oct 16, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

List processes with high memory usage in Linux

There are situations where your web application or particular software installed on your machine takes a lot of time to load. The troubleshooting process may last long but however, yo...

In Linux, Sep 05, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

Configure Azure CLI automatic upgrades

As part of the Azure CLI series, today we are going to see how we can configure automatic upgrades.

In Azure, Aug 31, 2021

How to search Docker Hub repositories from the CLI

If you want to search for a specific Docker image on Docker Hub there is a way to do this from the CLI. The docker search command will allow you to search Docker Hub from the CLI. It ...

In Docker, Aug 24, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

How to install PowerShell on macOS

As a DevOps engineer, most likely we would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In PowerShell, macOS, Jul 16, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

How to list AWS S3 bucket size from the command line

AWS S3 as a service is pretty cheap and probably the most popular one among the rest of the cloud object storage services. S3 is most often used as a database backup storage, log stor...

In AWS, Jun 29, 2021

How to stop all running EC2 instances from the command line

Stopping preproduction, staging environment EC2 instances could be described sometimes as a good practice. In the next few lines, I’ll show you how you can easily stop all running EC2...

In AWS, Jun 27, 2021

How to upload files to Azure Cloud Shell

As the name says, Azure Cloud Shell is a browser-accessible shell, which is used for managing Azure resources. It comes with two types of command shells Bash and PowerShell. It also g...

In Azure, Nov 27, 2019

How to easily Start, Stop, Restart or Delete Azure VMs

Managing Azure Virtual Machines through the Portal could be pretty straightforward. But, it requires multiple steps using the GUI. For example, you’ll have to login to the Portal firs...

In Azure, Oct 28, 2019

How to backup and restore an Azure SQL database using Azure CLI

You cannot think of a SQL Server Administration or any kind of relational and non-relational database administration without the two magic words: backup and restore. Backing up a data...

In Azure, Oct 17, 2019

How to upload your local files to your AWS S3 bucket with AWS CLI

There are a lot of reasons for moving your local files into your AWS S3 bucket. Maybe you want to host your static files with S3 or you want to make a backup of your databases, etc. I...

In AWS, Oct 15, 2019

How to rename an Azure SQL database using Azure CLI

As a part of an Azure SQL Database administration series, this post will be a followup from the last one, where I will write about renaming Azure SQL databases, which is kind of a com...

In Azure, Oct 14, 2019

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that I’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

How to install AWS CLI and setup multiple named profiles on Ubuntu

AWS CLI is an efficient and powerful tool cause it enables developers and DevOps people to have a full control over their AWS cloud services by executing commands on a specified line....

In AWS, Ubuntu, Oct 09, 2019

How to Direct-Upload to Azure Managed Disks

A few days ago, Microsoft announced the preview of direct-upload to Azure Managed Disks. So, there are two ways you could move a VHD to the Azure cloud as a managed disk: Upload the ...

In Azure, Oct 08, 2019

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

Install Azure CLI 2.0 on macOS with Homebrew

Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and auto...

In Azure, macOS, Sep 24, 2019

git

GitHub Actions: multi-line shell commands

There are two different ways to run shell commands in GitHub actions: the Literal Block Scalar (run: |) and the Folded Block Scalar (run: >). Here’s the difference.

In GitHub, Oct 20, 2023

GitHub Actions: github.ref_name vs github.head_ref

GitHub has its own contexts that you could use while working with GitHub actions which you could use in certain scenarios. The most confusing thing I stumble upon was choosing between...

In GitHub, Oct 18, 2023

Resolve 'fatal: detected dubious ownership in repository at' in Git

The error message fatal: detected dubious ownership in repository at.. happens when Git detects that the current user is not owner of the Git repo directory.

In Git, Sep 16, 2023

Retrieve a single file with Git

Retrieving a single file from a Git repo it’s not possible …yet. However, there are few workarounds that could get the job done.

In Git, Jun 26, 2023

Git error: cannot lock ref ..unable to create..

Since Stack Exchange decided to follow the same path as Reddit in terms of restricting access to the content, I’ll try to share with you as many error “hacky” solutions as possible. H...

In Git, Jun 02, 2023

Drone CI and GitHub webhooks 'We couldn't deliver this payload: timed out' error

As the title says here’s a workaround if you find yourself in a situation where the GitHub webhook fails only for a certain repository with “no reason” or updates made regarding Drone...

In Drone, GitHub, May 19, 2023

How to Install git on Ubuntu 23.04

Git follows the same installation pattern as the other Ubuntu versions, but let’s see how to install git on Ubuntu 23.04.

In GIT, May 18, 2023

Enable symlinks in Windows, VSCode and Git

By default while running a Windows dev machine, symlinks (symbolic links, soft links) are not shown or at least are not seen from VSCode and Git as such. Regarding the workaround… few...

In Windows, VSCode, Git, May 13, 2023

CRLF to LF all files in a Git repo on Windows

Windows probably the worst OS for engineering duh. So many things needs to be setup right just so to enjoy cross-platform collaboration with those running Linux, Unix. So, here’s a wo...

In Git, Windows, May 11, 2023

Resolve 'No newline at end of line' in GitHub

Creating the first Pull Request could be anxious, you feel like being judged by other engineers. Generally, the first thing you might notice is the GitHub red sign saying “No newline ...

In Git, Apr 29, 2023

Fix 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'

The error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Com...

In macOS, Mar 31, 2023

How not to get prompt for GitHub username and token everytime

Getting prompt for GitHub username and token everytime you try to pull is so annoying task. Keep in mind that PATs (Personal Access Tokens) aren’t the default solution anymore, as of ...

In GitHub, Feb 10, 2023

Install Git on CentOS 9 Stream

Git can be easily installed on CentOS 9 within the dnf system packages. Let’s see how to install Git on CentOS 9.

In Git, CentOS, Dec 29, 2022

Pull Go modules from private repositories

One of the first struggles with Go, was when I wanted to have a private repo for the app. Apparently, if you run go get, Go uses Git to pull the specific versions of your dependency p...

In Go, Dec 20, 2022

VCS: Centralized vs Distributed

The Version Control System (VCS) presents a core component from the DevOps cycle. Tracking anything from application codes, infrastructure, policies, and what not is part of the best ...

In Git, Nov 16, 2022

Merge multiple Git commits into one

Merging or if you will, squashing N commits into a single one could be a handy practice though before pushing anything to remote. This is done with the almighty interactive rebase Git...

In Git, Nov 15, 2022

Git 101: Git vs GitHub

For all of you beginners out there, I want to clarify the difference between Git and GitHub. Clearly they are not the same, so here’s a pretty simple and straight answer.

In Git, Nov 14, 2022

Git: top interview questions for DevOps

Preparing and passing technical DevOps interviews is a skill by itself. Although I didn’t encounter many Git-related questions since mostly the focus is put on the CI/CD cycle, there ...

In Git, Nov 12, 2022

Git 101: log vs reflog

There are two commands you could use to list Git commit history including: git log and git reflog. For more details see How to list all commits in a Git repository. However, there mus...

In Git, Nov 11, 2022

Git: best practices to start with

Not trying to get you wrapped up in some advanced and confusing Git practices, so I want to share with you some best practices to start with that worked for me through the years as an...

In Git, Nov 10, 2022

Git: update commit before and after push

Updating commits whenever before or after push goes against the Git religion and I consider it as an anti-pattern. And, since we are people, and we make mistakes, we don’t want to emb...

In Git, Nov 09, 2022

The right way to write Git commit messages

I think we’ve all been there writing one or few of the following Git commit messages: test, “new feature Y”, “Changed something”, “asdasd”, “minor update”, etc. You can tell nothing f...

In Git, Nov 08, 2022

Git 101: branching strategies

Essentially you need to come up with a good Git branch strategy as it’s often overlooked. There are few strategies you could pick off and call it a day but on a long run you might fac...

In Git, Nov 07, 2022

Git: tips and tricks

You can’t really much think of any projects that’s being developed today without Git. Git is one of the fundamental core tools when writing software in a team or even by yourself. Alt...

In Git, Nov 06, 2022

Git 101: objects

The key part of a Git repo is a key-value data store where each object has its own hash value. Git objects can be found under .git/objects directory. Two noticeably subdirectories whe...

In Git, Nov 05, 2022

Git error: There are too many unreachable loose objects

Here I want to share a solution to the following Git error: There are too many unreachable loose objects. This usually happens when Git cannot cleanup all dangling commits as they are...

In Git, Nov 04, 2022

Git 101: loose vs dangling vs unreachable objects

You can find Git project objects under .git/objects. When dealing with managing objects using git fsck and git gc commands, you might stumble upon the following types of “failed” obje...

In Git, Nov 03, 2022

Git 101: git stash

Git stash simply saves your staged and unstaged changes (uncommitted though) for a later use, so you could checkout another working directory, or even continue your work in the same w...

In Git, Nov 02, 2022

Git: monorepo vs multirepo vs submodules

Usually when we think about Git repos we are assuming the multirepo type where each project or microservice has its own repository. The other two types of repos being monorepo and Git...

In Git, Nov 01, 2022

About Git repos size

The maximum Git repo size limit is debatable and depends on Git hosting platforms after all. A good example of a large repo size, would be monorepos. A monorepo is a singular reposito...

In Git, Oct 31, 2022

Git 101: tags

Git tags is a Git feature that allows us to tag certain commits. Basically, it’s a Git ref that points to and labels commits wherefrom we want to release our software. You can think o...

In Git, Oct 30, 2022

Git 101: gc

Git gc stands for garbage collection. There are multiple types of “garbage” including orphaned, unreachable and dangling objects. These Git objects will be part of another post in the...

In Git, Oct 29, 2022

Git 101: config

Git configuration or just git config is where you update the configuration at project, user and at system level. Here are some nuggets though that might help you with the basics.

In Git, Oct 28, 2022

Git merge: --ff vs --no-ff

Besides Git merge being a common operation when merging one branch into another, there are these two popular flags bamboozling developers: --ff or so-called fast-forward, and --no-ff ...

In Git, Oct 27, 2022

Git: merge vs rebase

Probably the most searched Git comparison ever made between merge and rebase. The most debated as well in terms of use case and a popular DevOps interview question as well. I’m going ...

In Git, Oct 26, 2022

Git: working tree vs working directory

Starting from Git version 2.9.1 the working directory is referred to as working tree. Let me clear the baffling difference for once.

In Git, Oct 25, 2022

git switch vs git checkout

Both git checkout and git switch are being used for checking out Git branches with git switch being introduced recently (3 years ago) considering Git being “born” in 2005. So, why sho...

In Git, Oct 24, 2022

Git error: 'fatal: refusing to merge unrelated histories'

Rebasing, pulling, merging and what not could lead to the following Git error: fatal: refusing to merge unrelated histories. Here’s the solution.

In Git, Oct 23, 2022

Git error: Cannot delete branch 'some-branch' checked out at 'some-location'

While I was playing around with the Git flow, I received the following error: error: Cannot delete branch <some-branch> checked out at <some-location> as I was trying to r...

In Git, Oct 22, 2022

Merging two or multiple Git repos

Here’s a fun Git exercise you could try if you have few multiple repos to spare. Try to merge two or more repos in a single git repository. It’s quite easy if you don’t care about the...

In Git, Oct 21, 2022

Multiple working directories in Git

Multiple working directories in Git are commonly used when working on multiple branches at once using git worktree. Other alternatives include working in the GitHub UI (which might no...

In Git, Oct 20, 2022

About filtering Git commits (CHEATSHEET)

Filtering commits is yet another handy feature about Git. You can filter by author, by date, commit ID (SHA1 hash), commit message, and few other things I suppose. My goal in this pos...

In Git, Oct 19, 2022

Install Git on Amazon Linux 2

The Git installation on Amazon Linux 2 is simple and straightforward. Let’s check it out.

In Git, AWS, Amazon Linux 2, Oct 18, 2022

Properly remove untracked files in Git

You can always rm -rf files and directories from your working tree for sure, or even git reset --hard. However, there is another way, the Git way, a much proper one to do the same thing.

In Git, Oct 18, 2022

How to remove unstaged changes in Git

As a follow-up to my previous posts linked below, let me show you how to remove unstaged changes in Git. Although it’s much easier and arguably faster to do everything from an IDE GUI...

In Git, Oct 17, 2022

Unstaging Git commits

There are certain scenarios where you need to unstage local Git commit changes. As everything with Git, there are multiple angles from which you can approach almost anything.

In Git, Oct 16, 2022

Unstaging files in Git

Unstaging files in Git is closely related to restoring deletes files in Git though. Let’s explore few possible options.

In Git, Oct 15, 2022

Move Git branch pointer to different commit w/o checkout

Working with Git on a daily basis could lead to some special scenarios now and then. This post is all about manipulating the Git branch pointer to different commit w/o checking out.

In Git, Oct 14, 2022

Recovering from a Git detached HEAD

Simply put, a detached HEAD is a Git state that occurs only when you checkout a commit. See Checkout a specific Git commit. In a normal state, HEAD points to a branch name. Under the ...

In Git, Oct 13, 2022

How to list merge commits for a specific Git branch

Here’s a neat Git command that might help you with listing merge commits for a specific Git branch.

In Git, Oct 12, 2022

Git cherry-pick multiple commits

In one of the previous Git posts I wrote about cherry picking commits in Git. Today we are going to see how we could do the same but instead of cherry-picking a single commit, we are ...

In Git, Oct 11, 2022

List merged / unmerged branches in Git

Here’s another nugget on how to list merged and unmerged Git branches. Personally, I don’t find it much useful, but who knows. Maybe you need to do a cleanup by removing every merged ...

In Git, Oct 10, 2022

The proper way to copy Git commit from one branch to another

If you are asking yourself how to copy changes from one branch to another, you are probably in the right place. Many posts out there suggest a git merge or git rebase which is also fi...

In Git, Oct 09, 2022

Git: Recovering files from previous commit or branch

As I continue on my Git journey, today I want to show you how to recover files from some old commits or branches. This would be closely related to Restore deleted files in Git.

In Git, Oct 08, 2022

Viewing an older version of a file with Git

Here’s a great Git tip if you want to view an older version of a file on a certain branch / commit. As with other things with Git, there’s more than one way to cook an egg.

In Git, Oct 07, 2022

Git: Commit parts of a file only and interactive staging

Interactive staging is a neat feature in Git that lets you be selective about which file changes to be staged.

In Git, Oct 06, 2022

About Git orphan branches and their use cases

Orphan branches in Git are rare as hens’ teeth though I’m writing from my personal experience. What, how and why are created orphaned branches will be the topics for today.

In Git, Oct 05, 2022

About deleting your Git repo commit history

Removing things has been my favorite topic to write about. Pushing any sensitive information as part of a Git commit or starting from scratch could be arguably enough reasons to remov...

In Git, Oct 04, 2022

Create a Git branch from an existing commit

This post will be all about on how you could create a new Git branch from a previous commit. As everything with Git, there are multiple ways to do so.

In Git, Oct 03, 2022

Checkout a specific Git commit

Checking out a Git commit is a common practice mostly used for troubleshooting purposes.

In Git, Oct 02, 2022

Git revert a merge commit

Undoing operations in Git is often an underrated feature. Merging code that wasn’t meant to be merged (yet) is something that could happen to all of us. To be honest, we’ve all been t...

In Git, Oct 01, 2022

Git: HEAD^ vs HEAD~

Git HEAD is usually defined as the most recent commit on your current working branch. There are more than one “HEAD” variations which are going to be topic for this post.

In Git, Sep 29, 2022

List remotes with git remote

Remotes as part of a Git repository point to the remote repo URLs. On your local machine these are known as origin. By default, each repo has a single remote, although in some scenari...

In Git, Sep 27, 2022

Git HEAD vs head vs tip vs origin

Here’s few other core concepts around Git: HEAD, head, tip and origin. I’m going to break them down briefly as I did previously with the rest of the related posts shared at the end of...

In Git, Sep 25, 2022

Restore deleted files in Git

There are multiple ways you could recover files in Git. Before we explore them, here’s a list of related posts: The proper way to restore a deleted Git branch Restore a deleted Git ...

In Git, Sep 23, 2022

Restore a deleted Git commit

As a part of Git restoring series, today we are going to look at how to restore a deleted Git commit. Without further ado follow the steps as described below.

In Git, Sep 21, 2022

The proper way to restore a deleted Git branch

Personally, not a huge fan of switching between branches and complicating things as much as they need to. Therefore, the trunk-based development must be the most perfect Git branching...

In Git, Sep 19, 2022

The proper way to delete a Git repository

Besides automation, running rm -rf against directories is my second to none thing to do as a DevOps engineer. And this is exactly how you could easily remove a Git repository.

In Git, Sep 17, 2022

Git: HEAD vs working tree vs index

Here’s a Git interview question: “What’s the difference between HEAD, working tree and index in Git?”. First, we need to understand the usual Git workflow:| Working tree | Staging are...

In Git, Sep 15, 2022

Git: restore vs reset vs revert vs rebase

Time to compare yet another somehow confusing Git commands. This time being restore, reset, revert and rebase. Obviously, I won’t be doing a deep dive, and I’ll try to be as plain as ...

In Git, Sep 13, 2022

Cherry picking commits in Git

Cherry-picking in Git is all about choosing, picking and applying commit from any branch to the current HEAD branch. This is done using the git cherry-pick command. Let’s dive a bit i...

In Git, Sep 11, 2022

git fetch vs git pull

Two oddly confusing Git commands for beginners – git fetch and git pull used on a daily basis. I’ll try to describe them broadly and get to know how and when to use both of them.

In Git, Sep 09, 2022

How to get Git repository URL

In this plain and simple tutorial we are going to see how to get the remote URL that a Git repository was initially cloned from. This could be useful though when writing scripts per se.

In Git, Sep 07, 2022

Deleting local and remote Git branches (CHEATSHEET)

Cleaning up the environment after a successful sprint is probably my favorite part so far. This includes everything from Git branches to containerized application environments. It’s a...

In Git, Sep 05, 2022

Git list local and remote branches

As with most things in Git, there are multiple ways to list branches. You don’t want to waste any time browsing GitHub or GitLab for sure, hence running Git commands from the CLI is t...

In Git, Sep 03, 2022

How to Git checkout a commit

Besides checking out Git branches, checking out commits could be a convenient way to test and deploy features in a test environment as well. As with branches, we are going to use the ...

In Git, Sep 01, 2022

How to get the hash (commit ID) for the current Git commit

Git commit ID is essentially a SHA-1 hash 40 characters string that looks like c1e5a0931989d842d00b8c07a5aacfe75ff39fcc. However, here’s some practical nugget I wanna share with you o...

In Git, Aug 30, 2022

How to delete local and remote commits in Git

As a Git newbie doing things right has always been a difficult thing to do. Here are some commands to remove and local and remote commits in Git.

In Git, Aug 28, 2022

How to list Git empty commits

Pushing empty commits or in general with no files changed is mostly done when triggering a deployment (CI/CD) pipeline, speaking from my personal experience for sure. However, if you ...

In Git, Aug 26, 2022

How to list unpushed commits with git log

Another cool command by Git and this time we are going to try to list all local (unpushed) commits. As always, there’s more than one way to shine a penny.

In Git, Aug 24, 2022

How to list all commits in a Git repository

Another potentially neat Git command to share. This time we are going to see how to list commits in a Git repository. This could be useful when writing scripts or from a personal expe...

In Git, Aug 22, 2022

Commit empty folders in Git with .gitkeep

By default, Git completely ignores directories because it’s an intentional design choice. Since empty dirs don’t include any files or content, therefore they’re ignored. And sometimes...

In Git, Aug 20, 2022

GitHub EMU external groups with Terraform

GitHub EMU (Enterprise Managed Users) in general allows users to manage their enterprise members through IdPs (identity providers). Azure Active Directory and Okta are the only ones s...

In GitHub, Terraform, Jul 01, 2022

Install Git on Alpine Linux

Previously git was not included in the official alpine packages. As the new Alpine versions are released, there are improvements of course. So now git is a part of the Alpine packages...

In Git, Alpine Linux, Jun 20, 2022

How to rename a Git branch

There might be a case where you need to rename a current branch you are already working on, and I’m going to show you the least painful way to do so. Now, the most common reason is of...

In Git, Apr 30, 2022

How to checkout Git pull requests

Checking out Git PRs on your local machine it’s not so uncommon practice, especially if you want to test things out before they are merged into the main branch or any other branch tha...

In Git, Apr 18, 2022

How to remove already committed secrets from Git repositories

One of the most common secure practices in Git is to never commit any secrets in Git repos. But, what happen if you did, or someone else made that rookie mistake?! Let’s see how to re...

In Git, Mar 11, 2022

How to remove empty commits in Git

In the previous tutorial, we’ve learned How to create empty commits in Git. Let’s see how can we remove them as well.

In Git, Aug 27, 2021

How to get Git commit count

In today’s tutorial we are going to see how can we get the Git commit count of empty and non-empty commits. So, here’s the neat commands you might need.

In Git, Aug 21, 2021

GitHub hidden feature

There is a mind-blowing GitHub feature or if I can call it a “secret” that I’ve just discovered, and I need to share with you all.

In GitHub, Aug 19, 2021

How to create and push empty Git commits

As a DevOps engineer, you must have heard at least something about GitOps. GitOps is a set of practices that allows to manage infrastructure and application configurations using Git a...

In Git, Aug 15, 2021

Use Git LFS with existing Bitbucket repository

Git LFS allows users to save space by storing binary files in a different location, so in this tutorial I’m going to show you how can you operate and manage your repo using Git LFS.

In Git, Sep 28, 2019

bitbucket

Use Git LFS with existing Bitbucket repository

Git LFS allows users to save space by storing binary files in a different location, so in this tutorial I’m going to show you how can you operate and manage your repo using Git LFS.

In Git, Sep 28, 2019

azure blob storage

How to restore deleted Azure Storage Blobs

Accidental deletion of files can happen to anyone working either on-premise or in the cloud. As a DevOps engineer who is responsible for managing access permissions to resources, the ...

In Azure, Oct 04, 2019

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and DevOps, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

sas token

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

security

Docker Compose: expose vs ports

At first sight expose and ports kinda look basically the same thing right, but there is a subtle keep difference. Here’s the deal.

In Docker, Jun 14, 2023

Docker Compose and named volumes as non-root user

Sharing named volumes or bind mounts between Docker Compose services as unprivileged / non-root user has always been tricky. By default, they all run as root. So, here are few solutio...

In Docker, Jun 12, 2023

Docker tips: run containers as non-root users

Running a Dockerfile as a non-root user is a good practice for security reasons. By default, Docker runs containers with root privileges, but you can configure your Dockerfile to run ...

In Docker, May 31, 2023

Docker tips: enable DOCKER_CONTENT_TRUST

Docker Content Trust (DCT) is a Docker security feature introduced to provide an additional layer of verification and trust for container images. It ensures the integrity and authenti...

In Docker, May 27, 2023

Debugging Certbot cronjob

Quite frequently I’ve noticed some Certbot cronjobs not being able to renew certificates as I was receiving the Let’s Encrypt expiring notice emails. So, here are some things you coul...

In Certbot, Feb 12, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

How to install UFW on CentOS 9 Stream

If you are more familiar with the UFW firewall instead of using firewalld, first you need to stop the firewalld service: sudo systemctl stop firewalld.service and install UFW on CentO...

In Firewalls, CentOS, Aug 23, 2022

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

Install UFW on Alpine Linux

Protecting your Alpine Docker images is always a good practice, especially the vulnerable services. Today, I will install UFW on Alpine Linux.

In Firewalls, Alpine Linux, Jul 16, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

Ansible user module and password hashing

As far as I know, there are two secure ways (discussable) you could include a password as part of the Ansible user module. Let’s go through it.

In Ansible, Apr 28, 2022

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

Add HSTS in Nginx

Increasing the website performance and decreasing the server load can be achieved by HSTS. Enabling the HSTS security headers in Nginx will tell the browser to use https instead of ht...

In Nginx, Mar 28, 2022

Enable HTTPS redirection in Azure Functions

HTTPS redirection are quite common these days from security and SEO viewpoint. Today’s topic going to be about how to enable the redirection in Azure Functions.

In Azure, HTTP, Mar 21, 2022

Ansible Vault password integration with Bitwarden

Ansible Vault encrypts Ansible data files mostly variables, so you could protect things such as passwords and keys. It uses a single password for encryption and decryption which initi...

In Ansible, Mar 13, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

How to remove already committed secrets from Git repositories

One of the most common secure practices in Git is to never commit any secrets in Git repos. But, what happen if you did, or someone else made that rookie mistake?! Let’s see how to re...

In Git, Mar 11, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

base64 encode and decode from the CLI

Base64 encoding and decoding has many use cases, but it’s important to understand that it’s different from encryption and decryption. While base64 encoding focuses on data usability, ...

In Encode/Decode, Jan 30, 2022

How to fix Gmail SMTP's 'Please log in via your web browser and then try again'

SMTP configuration has always been an annoying task, especially for the inexperienced engineers. Needless to say, setting up mail server from scratch is a whole other beast. Today’s f...

In SMTP, Jan 26, 2022

Certbot auto renew SSL/TLS certificate with a cron job

If you are using a free SSL/TLS certificate from Certbot, probably you are tired of the manual renewal. Here I’m going to show you how to automate the process of creating a cron job t...

In Certbot, Jan 19, 2022

SFTP transfer files non-interactive through the command line

This tutorial is aimed to show you how to download files from a remote sftp server and of course how to upload files to a remote sftp server. It’s useful if you are writing a bash or ...

In SFTP, Jan 13, 2022

How to connect with SFTP through the command line

Most of the shared hosting platforms are providing SFTP access to the end-users as a secure file transfer protocol. There are a lot of free and open source GUI platforms for ftp, SFTP...

In SFTP, Jan 11, 2022

Configure auto logout from the Azure Portal

In case you didn’t know by now, Azure Portal offers a decent amount of customization, including option to auto logout after a period of time.

In Azure, Jan 08, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Associate AWS VPC with a private hosted zone

Working with multiple AWS accounts can lead to timeouts between the different account services. Behind the VPC peering and the routing table connection, a very important thing is to s...

In AWS, Dec 30, 2021

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

Redirect HTTP to HTTPS in Apache

Securing your website by setting redirect from HTTP to HTTPS in Apache can be achieved easily if your SSL/TLS certificate is generated and ready to use. It can be done using a virtual...

In Apache, HTTP, Dec 28, 2021

Redirect HTTP to HTTPS in Nginx

Nowadays almost every owner of a website wants to secure his site with an SSL/TLS certificate. Once that is achieved the second step is to redirect the whole HTTP traffic to HTTPS dep...

In Nginx, HTTP, Dec 26, 2021

Scan Docker images for Apache Log4j2 vulnerability

Docker Hub already announced public Log4jShell detection which is now live on Docker Official Images. But for those of you who are still using some old or custom images, there is a wa...

In Docker, Apache Log4j2, Dec 20, 2021

Protect Elasticsearch stack from Apache Log4j vulnerability

As the Apache Log4j vulnerability is growing massively and its spread all over the internet a lot of worldwide companies are affected mostly on their Java-based applications. Elastics...

In Elasticsearch, Dec 16, 2021

How to check Apache Log4j vulnerability in Jenkins

There are a lot of open forums and discussions due to the Log4j zero-day flaw these days. Log4j is an open-source Java-based library developed by Apache Software Foundation, as it’s u...

In Jenkins, Apache Log4j2, Dec 14, 2021

AWS|How to allow source IP addresses to access specific URL path using an Application Load Balancer

Most likely, if you use ECS as your application orchestration service it will require some basic knowledge to manage Application Load Balancers short ALBs. Essentially managing the ac...

In AWS, Dec 12, 2021

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install UFW on CentOS 7

Most of the RHEL Linux distros are coming with pre-installed firewalld as a default firewall. But if you are UFW fan and you don’t want to waste your time or resources on getting fami...

In Firewalls, CentOS, Dec 08, 2021

firewalld allow MySQL remote access

On most of the RHEL-based distributions, firewalld comes as a default firewall, and it’s configured to pass only SSH connections by default. Therefore, in this tutorial I’m going to s...

In Firewalls, MySQL, Dec 06, 2021

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to install Firewalld on Rocky Linux 8

Keeping your services and host itself secure is crucial. Nowadays, there are a lot of attacks that can harm your host server, like brute force attacks, dictionary SSH attacks, SQL inj...

In Firewalls, Rocky Linux, Nov 30, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to generate random password from the CLI

There are a lot of ways to generate random passwords, starting from simple password generator sites found online to the most advanced password management solutions. Today’s topic will...

In Linux, Nov 27, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

Solution: The AWS Access Key Id does not exist in our records

Working with multiple AWS account profiles could sometimes be not so pleasant experience, especially when handling different AWS named profiles for different purposes. The AWS Access ...

In AWS, Oct 26, 2021

5 ways to protect root account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

How to check if your web application is under DDoS attack

Nowadays, most of the web applications are vulnerable and exposed on many kinds of attacks. One of them is a DDoS attack. There are a lot of services on the internet that are offering...

In DDOS, Sep 11, 2021

How to enable CORS in Nginx

If you are trying to make API calls, and you are getting the following error from Nginx: No Access-Control-Allow-Origin header is present on the requested resource you should definite...

In Nginx, Sep 07, 2021

How to disable SELinux

You may face Nginx or Apache web server blocking issues even when your firewall is disabled. SELinux is a security engine that may block some calls or permissions on your server. So, ...

In Linux, Aug 16, 2021

How to block visitors by country in Nginx

In some of mine previous posts, I wrote about how you can whitelist IPs in Nginx. In today’s tutorial, we are going to see how can we block specific countries in a few steps.

In Nginx, Aug 13, 2021

How to whitelist IP addresses in Nginx

We all know what firewalls are for, but sometimes they can become a pain in the arse, and we all end up opening HTTP and HTTPS port by default. Let’s say we host multiple domains via ...

In Nginx, Aug 09, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

SSH into an AWS ECS Fargate-managed container

Managing servers from the developers’ side causes difficulties. To avoid such situations AWS offers Fargate, the new compute engine which will manage your ECS cluster depending on you...

In SSH, AWS, Jun 22, 2021

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that I’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

Generate SAS token for blobs in Azure storage using Azure CLI

A shared access signature (SAS) provides secure and temporary access to the resources in a storage account. You can configure access to specific objects, as well as permissions and SA...

In Azure, Oct 01, 2019

aws

How to Enable Remi Repo on Amazon Linux 2

Working with up-to-date packages on Amazon Linux 2 can be achieved through Remi repo. Let’s see how to enable Remi Repo on Amazon Linux 2.

In Remi, Amazon Linux 2, Apr 14, 2023

Fix 'RecursionError: maximum recursion depth exceeded'

The RecursionError: maximum recursion depth exceeded usually occurs when a function calls itself too many times, causing the stack to overflow. The solution is to check the code for i...

In Python, Mar 27, 2023

AWS S3: "Read timeout on endpoint URL"

This is a sort of a second part of the “AWS S3” error series that I’ve encountered a week ago. In the previous post I had the (RequestTimeTooSkewed) The difference between the request...

In AWS, Nov 29, 2022

AWS S3: "(RequestTimeTooSkewed) The difference between the request time and the current time is too large"

There are two scenarios where I find AWS S3, the most popular object store, most fit for solutions including: Keeping DB, file backups or even any kind of backups as a cold storage s...

In AWS, Nov 28, 2022

Install Git on Amazon Linux 2

The Git installation on Amazon Linux 2 is simple and straightforward. Let’s check it out.

In Git, AWS, Amazon Linux 2, Oct 18, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

Fix 'illegal_argument_exception at shard' Elasticsearch error

Playing around with an existing ES cluster, I stumbled upon the following issue:Typeillegal_argument_exceptionReasonField [...] of type [text] does not support custom formatsHere I’m ...

In Elasticsearch, Oct 04, 2022

Install Unbuffer on Amazon Linux 2

If you need to disable the output buffering when you use complex pipelines, passing the output between multiple pipes then you can definitely use the unbuffer command. Let’s install u...

In Unbuffer, AWS, Amazon Linux 2, Aug 13, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

Restart ECS tasks with --force-new-deployment

If you want to update your currently running ECS tasks and launch new ones, there is a cool option --force-new-deployment which will start a new deployment of the service and recycle ...

In AWS, Jul 14, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

Install Fluentd on Amazon Linux 2

Fluentd is one of the most popular open-source projects, used for gathering logs from a set of sources and forwarding them to other monitoring software. Here I’m going to show you how...

In Logging, AWS, Amazon Linux 2, Jun 24, 2022

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

Install AWS CLI on Amazon Linux 2

Managing some AWS services through AWS CLI can be useful and practical, especially when you need to perform some quick actions like listing active resources or troubleshooting. Here I...

In AWS, Amazon Linux 2, Jun 02, 2022

Install PHP Composer on Amazon Linux 2

Using PHP on Amazon Linux 2 can potentially require a composer installation for some libraries. Installing Composer on Amazon Linux 2 is a quick and easy procedure. Let’s see it.

In PHP, AWS, Amazon Linux 2, May 31, 2022

Install Telnet on Amazon Linux 2

As a useful tool Telnet can help you to troubleshoot some connectivity problems, access specific port and also offers a lot of other useful stuff as well. The installation is simple a...

In Telnet, AWS, Amazon Linux 2, May 29, 2022

Install PHP 8.1 on Amazon Linux 2

If you want to hang out with the latest major update of PHP, then you should definitely try to install PHP 8.1 on Amazon Linux 2. Let’s do it.

In PHP, AWS, Amazon Linux 2, May 27, 2022

Install tar on Amazon Linux 2

Yet another free cool tool for archiving files, is tar. I’m going to stick to the title itself and show you how to install tar on Amazon Linux 2.

In Archive, AWS, Amazon Linux 2, May 25, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

Resolve `Resource handler returned message: Model validation failed (#/ContainerDefinitions/0/Environment: array items are not unique)` error in CloudFormation

While updating some of my CloudFormation templates I stumbled upon the following error:Resource handler returned message: "Model validation failed (#/ContainerDefinitions/0/Environmen...

In AWS, May 11, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Install Screen on Amazon Linux 2

Screen is a Linux utility that allows you to run and use multiple shell sessions from a single SSH session. It’s commonly used for migrating a bunch of data through an SSH connection....

In Screen, AWS, Amazon Linux 2, Apr 23, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

Install Rsync on Amazon Linux 2

Sending files, and directories remotely can be achieved with a lot of utility tools. One of them is Rsync, which is a cool tool for remote transfer. Let’s see how to install it on Ama...

In Rsync, AWS, Amazon Linux 2, Apr 17, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

Install Node.js on Amazon Linux 2

Node.js doesn’t exist in the default Amazon Linux 2 yum packages. So we should add the Node.js official repo and use it for the installation. Let’s see how to install Node.js on Amazo...

In Node.js, AWS, Amazon Linux 2, Apr 09, 2022

Enable EPEL on Amazon Linux 2

Using EPEL package repository can be very beneficial. EPEL contains all the common packages that you may want to install. Unfortunately, EPEL is disabled in Amazon Linux 2. Let’s see ...

In AWS, Amazon Linux 2, Apr 07, 2022

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

How to install Go on Amazon Linux 2

Installing Golang on Amazon Linux 2 can be done within a few minutes since Go exists in the default Amazon Linux 2 yum packages. Let’s dive into it.

In Go, AWS, Amazon Linux 2, Apr 01, 2022

How to install SQLite on Amazon Linux 2

SQLite is one of the best minimalistic, lightweight, and powerful SQL database managers. It can be suitable for every application which doesn’t use a complex database structure. So to...

In SQLite, AWS, Amazon Linux 2, Mar 30, 2022

How to kill thread or query in AWS RDS

Stopping some threads or queries that may appear in the deadlock queue or locked from the InnoDB engine on AWS RDS is a different thing than self-hosted MySQL or MariaDB. They can pot...

In AWS, Mar 24, 2022

How to upload files to S3 while preserving directory structure

Preserving the directory structure while uploading files to S3 could be a handy thing especially if you want to copy these files later to an EBS volume. The solution is pretty simple ...

In AWS, Mar 17, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

How to attach AWS managed policy to an IAM role in Terraform

AWS Managed Policies are IAM policies created and managed by AWS. Today I’m going to show you how to attach a managed policy in Terraform.

In Terraform, Mar 05, 2022

MySQL fix: 'Waiting for table metadata lock'

Working with high load SQL queries or big transactions, you may face: Waiting for table metadata lock. Here I’m going to list some useful solutions that might help you.

In MySQL, Feb 24, 2022

AWS Error 1290 (HY000): The MySQL server is running with the --read-only

Using AWS Aurora auto-scaling will increase the resources to handle the workload and connections. So that way you can see a bunch of replicas that are taking care of the workload. Con...

In MySQL, Feb 10, 2022

How to install Apache on Amazon Linux 2

Once you have provisioned an AWS EC2 instance installing Apache on Amazon Linux 2 is a straightforward and easy process. Here I’m going to show you how to install Apache web server on...

In Apache, AWS, Amazon Linux 2, Feb 06, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Resolve AWS SSM plugin with name Standard_Stream not found

AWS SSM is a nice feature if you don’t want to deal with the majority of the SSH issues along the way. Today’s topic is all about resolving the:SessionId: devcoops-<some_string>...

In AWS, Jan 02, 2022

Associate AWS VPC with a private hosted zone

Working with multiple AWS accounts can lead to timeouts between the different account services. Behind the VPC peering and the routing table connection, a very important thing is to s...

In AWS, Dec 30, 2021

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

AWS|How to allow source IP addresses to access specific URL path using an Application Load Balancer

Most likely, if you use ECS as your application orchestration service it will require some basic knowledge to manage Application Load Balancers short ALBs. Essentially managing the ac...

In AWS, Dec 12, 2021

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to resolve AWS Aurora ERROR 3024 (HY000)

If you hold some heavy-load AWS Aurora database tables, and you are trying to export some tables or import data, there is a big chance to face the following error ERROR 3024 (HY000): ...

In AWS, Nov 02, 2021

How to drain an ECS instance

While troubleshooting the ECS cluster you may notice some EC2 instances might be unhealthy due to some processes being in a stuck state. Here I’m going to show how to drain an ECS ins...

In AWS, Oct 29, 2021

Ways to provision infrastructure on AWS

Popular as it is, Infrastructure as Code also known as IaC, is a practice and process of managing and deploying infrastructure through code. Now, we got the flexibility to choose from...

In AWS, Oct 28, 2021

Solution: The AWS Access Key Id does not exist in our records

Working with multiple AWS account profiles could sometimes be not so pleasant experience, especially when handling different AWS named profiles for different purposes. The AWS Access ...

In AWS, Oct 26, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

5 ways to protect root account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

How to install Ansible on Amazon Linux 2

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In Ansible, AWS, Amazon Linux 2, Oct 07, 2021

Get AWS region name in Terraform

The following tutorial will be a step-by-step guide on how to get the current AWS region name in Terraform.

In Terraform, AWS, Oct 06, 2021

How to install Nginx on Amazon Linux 2

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In Nginx, AWS, Amazon Linux 2, Oct 05, 2021

How to create an S3 bucket through AWS CloudFormation

Deploying your infrastructure through CloudFormation as an infrastructure as code tool can cause some murky situations as a beginner because AWS is facing a lack of CloudFormation doc...

In AWS, Oct 03, 2021

7 ways to save money in the Cloud

Cost optimization is just one of the five pillars of Well-Architected Framework, which is identical across the top 3 public cloud provider players. Although, deploying a billing alarm...

In Cloud, Oct 02, 2021

Remmina can't remote into AWS EC2 Windows machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some RDP software. A few days ago I needed to access a Microsoft SQL server ...

In RDP, AWS, Oct 01, 2021

How to dump Elasticsearch index to S3 with Docker

Previously I’ve covered the topic around export and import the Elasticsearch index from one ES cluster to another. So now if you want to back up a particular index, instead of storing...

In Elasticsearch, Docker, AWS, Sep 21, 2021

How to make local archive_file to be available when deploying Terraform aws_lambda_function

In today’s blog post, I really need to share with you all a quick tip regarding Terraform’s aws_lambda_function resource and how to make the latest local data archive_file to be prese...

In Terraform, AWS, Sep 20, 2021

How to get private IP address of Fargate ECS task with metadata

Previously I’ve explained How to SSH into an AWS ECS Fargate-managed container. In this tutorial, I will cover some steps on how can you get the private IP address of a Fargate ECS co...

In AWS, Sep 13, 2021

Define the CPU and memory values for tasks hosted on Fargate

Migrating your ec2 instances on ECS to Fargate will let you focus on building applications instead of managing servers. Maybe you will ask yourself, which size do you need to pick up ...

In AWS, Sep 09, 2021

How to remove ECS task definitions

For those who have experience with AWS ECS, we all know how frustrating is sometimes that we just can’t delete task definitions. The only option is to update all task definition revis...

In AWS, Aug 25, 2021

How to install Podman on Amazon Linux 2

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m going to show you how to install...

In Podman, AWS, Amazon Linux 2, Aug 10, 2021

How to pg_dump to AWS S3 directly

Just before we start with this tutorial, I just want to say, don’t try this on production. Streaming pg_dump backup directly to S3 bucket is a bad practice to start with, unless you a...

In PostgreSQL, AWS, Jul 29, 2021

How to join EC2 instance to ECS cluster

AWS ECS is a container orchestration tool, and it could be a great starting point as a beginner DevOps engineer before jumping on the Kubernetes hype train. Using an Auto Scaling grou...

In AWS, Jul 25, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

How to resolve AWS Elasticsearch cluster in red or yellow state

Understanding the ES cluster status state is crucial, when it comes to ES troubleshooting. If your role is to keep ES cluster healthy then you have to understand all the three states ...

In AWS, Elasticsearch, Jun 30, 2021

How to list AWS S3 bucket size from the command line

AWS S3 as a service is pretty cheap and probably the most popular one among the rest of the cloud object storage services. S3 is most often used as a database backup storage, log stor...

In AWS, Jun 29, 2021

How to stop all running EC2 instances from the command line

Stopping preproduction, staging environment EC2 instances could be described sometimes as a good practice. In the next few lines, I’ll show you how you can easily stop all running EC2...

In AWS, Jun 27, 2021

SSH into an AWS ECS Fargate-managed container

Managing servers from the developers’ side causes difficulties. To avoid such situations AWS offers Fargate, the new compute engine which will manage your ECS cluster depending on you...

In SSH, AWS, Jun 22, 2021

How to fix ECS CloudFormation template if it's stuck in the rollback state

If your microservices are using ECS services and the deployments are going through CloudFormation, that sometimes can cause weird issues. For example, if there is an application error...

In AWS, Mar 24, 2021

How to upload your local files to your AWS S3 bucket with AWS CLI

There are a lot of reasons for moving your local files into your AWS S3 bucket. Maybe you want to host your static files with S3 or you want to make a backup of your databases, etc. I...

In AWS, Oct 15, 2019

How to install AWS CLI and setup multiple named profiles on Ubuntu

AWS CLI is an efficient and powerful tool cause it enables developers and DevOps people to have a full control over their AWS cloud services by executing commands on a specified line....

In AWS, Ubuntu, Oct 09, 2019

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and DevOps, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

aws s3

AWS S3: "Read timeout on endpoint URL"

This is a sort of a second part of the “AWS S3” error series that I’ve encountered a week ago. In the previous post I had the (RequestTimeTooSkewed) The difference between the request...

In AWS, Nov 29, 2022

AWS S3: "(RequestTimeTooSkewed) The difference between the request time and the current time is too large"

There are two scenarios where I find AWS S3, the most popular object store, most fit for solutions including: Keeping DB, file backups or even any kind of backups as a cold storage s...

In AWS, Nov 28, 2022

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

How to upload files to S3 while preserving directory structure

Preserving the directory structure while uploading files to S3 could be a handy thing especially if you want to copy these files later to an EBS volume. The solution is pretty simple ...

In AWS, Mar 17, 2022

How to create an S3 bucket through AWS CloudFormation

Deploying your infrastructure through CloudFormation as an infrastructure as code tool can cause some murky situations as a beginner because AWS is facing a lack of CloudFormation doc...

In AWS, Oct 03, 2021

How to dump Elasticsearch index to S3 with Docker

Previously I’ve covered the topic around export and import the Elasticsearch index from one ES cluster to another. So now if you want to back up a particular index, instead of storing...

In Elasticsearch, Docker, AWS, Sep 21, 2021

How to pg_dump to AWS S3 directly

Just before we start with this tutorial, I just want to say, don’t try this on production. Streaming pg_dump backup directly to S3 bucket is a bad practice to start with, unless you a...

In PostgreSQL, AWS, Jul 29, 2021

How to list AWS S3 bucket size from the command line

AWS S3 as a service is pretty cheap and probably the most popular one among the rest of the cloud object storage services. S3 is most often used as a database backup storage, log stor...

In AWS, Jun 29, 2021

How to upload your local files to your AWS S3 bucket with AWS CLI

There are a lot of reasons for moving your local files into your AWS S3 bucket. Maybe you want to host your static files with S3 or you want to make a backup of your databases, etc. I...

In AWS, Oct 15, 2019

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and DevOps, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

azcopy

How to copy from AWS S3 bucket to Azure Blob Storage

When we mention public cloud and DevOps, we often think of Amazon Web Services, Microsoft’s Azure or Google Cloud Platform. As AWS becomes dominant public cloud leader through the yea...

In Azure, AWS, Oct 03, 2019

azure managed disks

How to Direct-Upload to Azure Managed Disks

A few days ago, Microsoft announced the preview of direct-upload to Azure Managed Disks. So, there are two ways you could move a VHD to the Azure cloud as a managed disk: Upload the ...

In Azure, Oct 08, 2019

aws cli

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

Install AWS CLI on Amazon Linux 2

Managing some AWS services through AWS CLI can be useful and practical, especially when you need to perform some quick actions like listing active resources or troubleshooting. Here I...

In AWS, Amazon Linux 2, Jun 02, 2022

Ways to provision infrastructure on AWS

Popular as it is, Infrastructure as Code also known as IaC, is a practice and process of managing and deploying infrastructure through code. Now, we got the flexibility to choose from...

In AWS, Oct 28, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

How to list AWS S3 bucket size from the command line

AWS S3 as a service is pretty cheap and probably the most popular one among the rest of the cloud object storage services. S3 is most often used as a database backup storage, log stor...

In AWS, Jun 29, 2021

How to stop all running EC2 instances from the command line

Stopping preproduction, staging environment EC2 instances could be described sometimes as a good practice. In the next few lines, I’ll show you how you can easily stop all running EC2...

In AWS, Jun 27, 2021

How to upload your local files to your AWS S3 bucket with AWS CLI

There are a lot of reasons for moving your local files into your AWS S3 bucket. Maybe you want to host your static files with S3 or you want to make a backup of your databases, etc. I...

In AWS, Oct 15, 2019

How to install AWS CLI and setup multiple named profiles on Ubuntu

AWS CLI is an efficient and powerful tool cause it enables developers and DevOps people to have a full control over their AWS cloud services by executing commands on a specified line....

In AWS, Ubuntu, Oct 09, 2019

ubuntu

How To Fix Busybox Initramfs Error On Ubuntu

Most likely this error can occur if you have problems with the hard drive, partitions, or file systems used by the root file system, all this can lead to initramfs errors. Let me tell...

In Ubuntu, Jul 23, 2023

How to Install Redis on Ubuntu 23.04

Redis can be installed through the apt packages. Let’s see how to install Redis on Ubuntu 23.04.

In Redis, Jun 25, 2023

How to Install Telnet on Ubuntu 23.04

Telnet can be installed quickly and easily on Ubuntu 23.04. Let’s proceed with the installation part.

In Telnet, Jun 23, 2023

How to Install Yarn on Ubuntu 23.04

Yarn is a package manager created as an alternative to the npm client, providing enhancements in terms of performance, reliability, and security. Let’s see how to install yarn on ubun...

In Yarn, Jun 21, 2023

How to Install Kubectl on Ubuntu 23.04

Kubectl is a command-line tool used to interact with Kubernetes clusters, so let’s see how to install Kubectl on Ubuntu 23.04

In Kebernetes, Jun 19, 2023

How to Install PHP 8 on Ubuntu 23.04

Installing PHP 8 on Ubuntu 23.04 can’t be done through ppa:ondrej/php because the repo is not supported on Ubuntu 23.04. The best option is to get PHP 8.1 version which is very simila...

In PHP, Jun 05, 2023

How to Install PHP 8.1 on Ubuntu 23.04

Because the Ondrej PHP PPA repo is not supported in Ubuntu 23.04, I recommend installing PHP 8.1 through the default Ubuntu 23.04 apt packages.

In PHP, May 30, 2023

How to Install Apache on Ubuntu 23.04

As a powerful and flexible server that allows you to host websites and serve web, it can be installed easily on Ubuntu 23.04.

In Apache, May 28, 2023

How to Install Podman on Ubuntu 23.04

The Podman installation on Ubuntu 23.04 is quick and easy. Let’s take a look.

In Podman, Ubuntu, May 26, 2023

How to Install Certbot on Ubuntu 23.04

Certbot can be installed under the default apt packages on Ubuntu 23.04. Let’s jump on the Installation part.

In Certbot, May 24, 2023

How to Install SQLite on Ubuntu 23.04

SQLite can be installed through the default Ubuntu 23.04 apt packages.

In SQL, May 22, 2023

How to Install git on Ubuntu 23.04

Git follows the same installation pattern as the other Ubuntu versions, but let’s see how to install git on Ubuntu 23.04.

In GIT, May 18, 2023

How to Install MySQL on Ubuntu 23.04

On Ubuntu 23.04, MySQL installation can be done using the APT package repository. Let’s jump on the installation part.

In MSQL, May 16, 2023

How to Install nslookup and dig on Ubuntu 23.04

Installing nslookup and dig on Ubuntu 23.04 can be easily done by following the installation steps.

In DNS, May 14, 2023

How to Install jq on Ubuntu 23.04

JQ is a useful tool that provides a simple and powerful way to filter, transform, and extract data from JSON documents. Let’s install jq on Ubuntu 23.04.

In JQ, May 12, 2023

How to Install Python on Ubuntu 23.04

Nowadays Python is widely used for various purposes such as web development, data analysis, artificial intelligence, and more. Here are the steps to install Python on Ubuntu 23.04.

In Python, May 08, 2023

How to Install Terraform on Ubuntu 23.04

Installing Terraform on Ubuntu 23.04 follows the same process as the other Debian-based distros. Let’s jump on the installation part.

In Terraform, May 06, 2023

How to Install Ansible on Ubuntu 23.04

To install Ansible on Ubuntu 23.04 you need to configure the PPA on your Ubuntu system and then install Ansible. Let’s check the installation part.

In Ansible, May 04, 2023

How to Install Nginx on Ubuntu 23.04

Nginx can be easily installed on Ubuntu 23.04. Let’s jump on the installation part.

In Nginx, May 02, 2023

How to Install Docker Compose on Ubuntu 23.04

To install Docker Compose on Ubuntu 23.04, you can either set up Docker’s repository on your Ubuntu system or install Compose manually. Here I will show you how to install the standal...

In Docker, Apr 30, 2023

How to Install Docker on Ubuntu 23.04

To install Docker on Ubuntu 23.04 you need to make sure that you meet the prerequisites. You need the 64-bit version of Ubuntu 23.04 and Docker Engine that is compatible with x86_64 (...

In Docker, Apr 28, 2023

How to Install Skype on Ubuntu 23.04

There are a few ways to install Skype on Ubuntu 23.04. One way is to download the Skype .deb package from the official Skype website and install it with the dpkg package manager. Anot...

In Skype, Apr 26, 2023

How to Install ufw on Ubuntu 22.04

Usually, Ubuntu comes with a pre-installed ufw firewall. But in some cases like using the Ubuntu docker image or Ubuntu server-based images can be an exception and you might see that ...

In Ubuntu, Jan 06, 2023

How to Install Redis on Ubuntu 22.04

As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.

In Redis, Ubuntu, Jan 04, 2023

Install Wget on Ubuntu 22.04

In case wget is not installed on your latest Ubuntu version 22.04 it will throw the following error wget: command not found. Today I will show you how to install wget on Ubuntu 22.04 ...

In Wget, Ubuntu, Jan 02, 2023

Install FFmpeg on Ubuntu 22.04

Recently I was playing with telegram bots deployments and got stuck on some dependencies related to FFmpeg. So I needed to install FFmpeg on Ubuntu 22.04. Let’s see how to install it.

In FFmpeg, Ubuntu, Nov 21, 2022

How to Install openfortivpn on Ubuntu 22.04

Installing openfortivpn on Ubuntu 22.04 can be done in a few steps without any complexity. Literally, the installation process is pretty much the same for every Debian based distro, b...

In VPN, Ubuntu, Aug 21, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Install Podman Compose on Ubuntu 22.04

As Podman is ramping up within the containers world, the need for Podman Compose is getting higher as well. Here I’m going to show you three ways on how to install Podman Compose on U...

In Podman, Ubuntu, May 19, 2022

How to install Podman on Ubuntu 21.10

In this tutorial, I’m going to show how to install Podman on Ubuntu 21.10 using the default Ubuntu 21.10 packages. Previously we clarified that installing Podman with the default Ubun...

In Podman, Ubuntu, Feb 28, 2022

How to install Docker Compose on Ubuntu 21.10

This article is strictly focused on installing docker-compose on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.

In Docker, Ubuntu, Feb 22, 2022

How to install Nginx on Ubuntu 21.10

Since Ubuntu 21.10 has been released there was an immediate interest in using it as an OS Server. In this tutorial, we are going to see how to install Nginx on Ubuntu 21.10.

In Nginx, Ubuntu, Feb 20, 2022

How to install DBeaver on Ubuntu 21.10

One of the great alternative for MySQL workbench is DBeaver. So instead of connecting only MySQL servers, DBeaver offers a lot of different database connections like PostgreSQL, SQLit...

In DBeaver, Ubuntu, Feb 12, 2022

How to upgrade Ubuntu 20.04 to Ubuntu 21.10

The upgrading process from Ubuntu 20.04 to Ubuntu 21.10 takes some time, but it’s a straightforward process if you stick close to the steps below. Before taking any actions please mak...

In Ubuntu, Jan 23, 2022

Install Podman Compose on Ubuntu 20.04

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and ...

In Podman, Ubuntu, Jan 09, 2022

How to install Postman on Ubuntu 20.04

There are some ways to install Postman on Ubuntu 20.04. As always, we want to keep the work simple and straight to the point. So I’m going to show you the easiest way to install Postm...

In Postman, Ubuntu, Dec 22, 2021

How to install Terragrunt on Ubuntu

Working with Terragrunt as a Terraform wrapper will ease things and simplify the Terraform templates. Here I will show you how to set up quickly on your Ubuntu machine.

In Terragrunt, Ubuntu, Nov 24, 2021

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Podman, Ubuntu, Aug 12, 2021

How to install Terraform on Ubuntu 20.04

All the cloud service providers have integrated and ease the way of using Terraform. So, using Terraform as infrastructure as code tool will efficiently minimize your code and speed u...

In Terraform, Ubuntu, Jun 25, 2021

How to install Ansible on Ubuntu

Ansible is an IT automation tool that can help you to simplify the deployments of your applications, efficiently manage your infrastructure servers, and provides a lot of features and...

In Ansible, Ubuntu, Jun 06, 2021

How to install Docker Compose on Ubuntu 19.04

Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker...

In Docker, Ubuntu, Dec 15, 2019

How to install Docker on Ubuntu 19.04

Following the steps below will let you realize that installing Docker on Ubuntu 19.04 is not that hard as it seems, so let’s see how you can do it.

In Docker, Ubuntu, Dec 13, 2019

How to install AWS CLI and setup multiple named profiles on Ubuntu

AWS CLI is an efficient and powerful tool cause it enables developers and DevOps people to have a full control over their AWS cloud services by executing commands on a specified line....

In AWS, Ubuntu, Oct 09, 2019

linux

Install Python on Debian 12

Using the Debian official repository is the best method to install Python on Debian 12.

In Debian, Aug 06, 2023

Install Apache on Debian 12

Let’s see how to install Apache HTTP Server on Debian 12 as one of the widely used open-source web servers.

In Debian, Aug 04, 2023

Install Certbot on Debian 12

Certbot can be easily installed on Debian 12.

In Debian, Aug 02, 2023

Install Smartctl on Debian 12

Let’s see how to install smartctl tool which provides a way to retrieve detailed information about the status of your storage devices, including attributes such as temperature, error ...

In Debian, Jul 31, 2023

Install Netstat on Debian 12

If you need to check the network status on your server, netstat is a great tool for that. Let’s see how to install Netstat on Debian 12.

In Debian, Jul 29, 2023

Install Wget on Debian 12

If you get bash: wget: command not found you need to install wget on Debian 12. Let’s see how to install it.

In Debian, Jul 27, 2023

Install Redis on Debian 12

Redis can be easily installed on Debian 12. Let’s take a look.

In Debian, Jul 25, 2023

How To Fix Busybox Initramfs Error On Ubuntu

Most likely this error can occur if you have problems with the hard drive, partitions, or file systems used by the root file system, all this can lead to initramfs errors. Let me tell...

In Ubuntu, Jul 23, 2023

Install Nginx on Debian 12

Let’s install our favorite Nginx web server on the newly released Debian 12.

In Debian, Jul 21, 2023

Install Ruby on Debian 12

Ruby is a known programming language for its simplicity and flexibility. Let’s install Ruby on Debian 12.

In Debian, Jul 19, 2023

Install NPM on Debian 12

To be able to install modules for node js you need to install npm as well. Let’s jump on it.

In Debian, Jul 17, 2023

Install Node JS on Debian 12

Node JS stands as one of the most popular programming languages nowadays. Let’s check how to install Node JS on Debian 12.

In Debian, Jul 15, 2023

Install ps on Debian 12

Usually inside the Debian 12 container, you will not be able to list the processes inside the container cause procps package is not installed by default. Let’s install procps on Debia...

In Debian, Jul 13, 2023

Install Ansible on Debian 12

Installing Ansible on the newly released Debian 12 is fairly easy. Let’s take a look.

In Ansible, Debian, Jul 11, 2023

Install Clang on Alpine Linux

Clang is a compiler suite developed by LLVM project. It supports multiple programming languages and is known for its focus on code quality, diagnostics, and static analysis capabiliti...

In Clang, Alpine Linux, Jul 09, 2023

Install gcc on Alpine Linux

GCC is a widely used compiler suite for compiling code written in languages such as C, C++, Objective-C, Fortran, Ada, and others. Let’s see how to install GCC on Alpine Linux.

In gcc, Alpine Linux, Jul 07, 2023

Install Awall on Alpine Linux

Awall as a lightweight Alpine firewall can help you in protecting your server and web application. Let’s install Awall on Alpine Linux.

In awall, Alpine Linux, Jul 05, 2023

Install SQLite on Alpine Linux

If you need a SQL server that uses a simple file-based database that can be accessed directly by the application then SQLite is the choice for you. Let’s see how to install SQLite on ...

In SQLite, Alpine Linux, Jul 03, 2023

Install gunzip on Alpine Linux

If gunzip it’s not available on your Alpine Linux system, the good thing is that you can install it using the package manager.

In gunzip, Alpine Linux, Jul 01, 2023

Install tar on Alpine Linux

If you get the following error: tar: package/min: not found in archive. It means that you need to install tar on Alpine Linux.

In tar, Alpine Linux, Jun 29, 2023

Install OpenVPN Client on Alpine Linux

To establish a secure and encrypted connection to a remote server running an OpenVPN server, you need to have a OpenVPN client. Let’s see how to install OpenVPN Client on Alpine Linux.

In OpenVPN, Alpine Linux, Jun 27, 2023

How to Install Redis on Ubuntu 23.04

Redis can be installed through the apt packages. Let’s see how to install Redis on Ubuntu 23.04.

In Redis, Jun 25, 2023

How to Install Telnet on Ubuntu 23.04

Telnet can be installed quickly and easily on Ubuntu 23.04. Let’s proceed with the installation part.

In Telnet, Jun 23, 2023

Display current directory from the CLI

Trying to get the current working directory is a good starting point for debugging purposes at least whenever you are ssh-ed into a CI/CD server agent or likewise. So here’s the tip.

In Shell, Jun 22, 2023

How to Install Yarn on Ubuntu 23.04

Yarn is a package manager created as an alternative to the npm client, providing enhancements in terms of performance, reliability, and security. Let’s see how to install yarn on ubun...

In Yarn, Jun 21, 2023

How to Install Kubectl on Ubuntu 23.04

Kubectl is a command-line tool used to interact with Kubernetes clusters, so let’s see how to install Kubectl on Ubuntu 23.04

In Kebernetes, Jun 19, 2023

Non-zero exit status code 127 in Linux

As with most nonzero exit status codes, they indicate that the program or command encountered an error or an exceptional condition during its execution. So, what does 127 means then?!

In Linux, Jun 18, 2023

How to Install locate on Amazon Linux 2

Let’s take a look on how to install locate on Amazon Linux 2. The steps are quick and easy.

In AWS, Amazon Linux 2, Jun 17, 2023

Install locate on Alpine Linux

To install the locate command on Alpine Linux, you can follow the installation steps.

In MLocate, Jun 15, 2023

How to Install htop on Amazon Linux 2

The procedure to install htop on Amazon Linux 2 is pretty much the same as on every Red Hat distribution. Let’s take a look.

In AWS, Amazon Linux 2, Jun 13, 2023

Install 'ps' command on Alpine Linux

If you are trying to list the processes inside the Alpine Linux and the ps command does not exist then you need to install it. Let’s see how to install ps on Alpine Linux.

In PHP, Jun 11, 2023

Install PHP 8.1 on Alpine Linux

The default Alpine package manager can offer the php 81 package, so the installation will be quick and easy.

In PHP, Jun 09, 2023

How to Install PHP 8 on Ubuntu 23.04

Installing PHP 8 on Ubuntu 23.04 can’t be done through ppa:ondrej/php because the repo is not supported on Ubuntu 23.04. The best option is to get PHP 8.1 version which is very simila...

In PHP, Jun 05, 2023

How to Install PHP 8.1 on Ubuntu 23.04

Because the Ondrej PHP PPA repo is not supported in Ubuntu 23.04, I recommend installing PHP 8.1 through the default Ubuntu 23.04 apt packages.

In PHP, May 30, 2023

How to Install Apache on Ubuntu 23.04

As a powerful and flexible server that allows you to host websites and serve web, it can be installed easily on Ubuntu 23.04.

In Apache, May 28, 2023

How to Install Podman on Ubuntu 23.04

The Podman installation on Ubuntu 23.04 is quick and easy. Let’s take a look.

In Podman, Ubuntu, May 26, 2023

How to Install Certbot on Ubuntu 23.04

Certbot can be installed under the default apt packages on Ubuntu 23.04. Let’s jump on the Installation part.

In Certbot, May 24, 2023

How to Install SQLite on Ubuntu 23.04

SQLite can be installed through the default Ubuntu 23.04 apt packages.

In SQL, May 22, 2023

Docker build and GPG keys not being available

If you ever get in stuck building a Docker image with an error saying that a public key is not available, here’s the deal.

In Docker, May 21, 2023

Install npm on Alpine Linux

Installing npm on Alpine Linux is a quick and easy procedure. Let’s jump on the installation part.

In Node, May 20, 2023

How to Install git on Ubuntu 23.04

Git follows the same installation pattern as the other Ubuntu versions, but let’s see how to install git on Ubuntu 23.04.

In GIT, May 18, 2023

How to Install MySQL on Ubuntu 23.04

On Ubuntu 23.04, MySQL installation can be done using the APT package repository. Let’s jump on the installation part.

In MSQL, May 16, 2023

How to Install nslookup and dig on Ubuntu 23.04

Installing nslookup and dig on Ubuntu 23.04 can be easily done by following the installation steps.

In DNS, May 14, 2023

How to Install jq on Ubuntu 23.04

JQ is a useful tool that provides a simple and powerful way to filter, transform, and extract data from JSON documents. Let’s install jq on Ubuntu 23.04.

In JQ, May 12, 2023

How to Install Python on Ubuntu 23.04

Nowadays Python is widely used for various purposes such as web development, data analysis, artificial intelligence, and more. Here are the steps to install Python on Ubuntu 23.04.

In Python, May 08, 2023

How to Install Terraform on Ubuntu 23.04

Installing Terraform on Ubuntu 23.04 follows the same process as the other Debian-based distros. Let’s jump on the installation part.

In Terraform, May 06, 2023

How to Install Ansible on Ubuntu 23.04

To install Ansible on Ubuntu 23.04 you need to configure the PPA on your Ubuntu system and then install Ansible. Let’s check the installation part.

In Ansible, May 04, 2023

How to Install Nginx on Ubuntu 23.04

Nginx can be easily installed on Ubuntu 23.04. Let’s jump on the installation part.

In Nginx, May 02, 2023

How to Install Docker Compose on Ubuntu 23.04

To install Docker Compose on Ubuntu 23.04, you can either set up Docker’s repository on your Ubuntu system or install Compose manually. Here I will show you how to install the standal...

In Docker, Apr 30, 2023

How to Install Docker on Ubuntu 23.04

To install Docker on Ubuntu 23.04 you need to make sure that you meet the prerequisites. You need the 64-bit version of Ubuntu 23.04 and Docker Engine that is compatible with x86_64 (...

In Docker, Apr 28, 2023

How to Install Skype on Ubuntu 23.04

There are a few ways to install Skype on Ubuntu 23.04. One way is to download the Skype .deb package from the official Skype website and install it with the dpkg package manager. Anot...

In Skype, Apr 26, 2023

How to Install Nodejs on Ubuntu 23.04

There are several ways to install Node.js on Ubuntu 23.04. One way is to use the Ubuntu repository. Another way is to use the NodeSource repository, which provides an easy-to-use bash...

In Nodejs, Apr 24, 2023

How to update the Nginx Version on webdevops/php-nginx image

Since the image webdevops/php-nginx doesn’t have the option to specify your desired Nginx version, we can adjust the Dockerfile and add that option. Let’s see the solution.

In Nginx, Apr 22, 2023

How to Install OpenSSL on Amazon Linux 2

The installation of OpenSSL on Amazon Linux 2 can be done by using the yum package manager. Let’s check it out.

In SSL, AWS, Apr 20, 2023

How to generate Let's Encrypt Certificate using Certbot on Amazon Linux 2

If you already have Certbot installed on Amazon Linux 2, then generating Let’s Encrypt shouldn’t be a problem. Let’s see what’s the solution.

In SSL, Apr 18, 2023

Fix 'ERROR [internal] load metadata for docker.io/library/alpine:latest'

The ERROR [internal] load metadata for docker.io/library/alpin:latest error occurs when Docker fails to pull the latest metadata for the Alpine image from the Docker Hub registry. Let...

In Docker, Apr 16, 2023

How to Enable Remi Repo on Amazon Linux 2

Working with up-to-date packages on Amazon Linux 2 can be achieved through Remi repo. Let’s see how to enable Remi Repo on Amazon Linux 2.

In Remi, Amazon Linux 2, Apr 14, 2023

Create an Elasticsearch Index Pattern using Kibana API

Creating an Elasticsearch Index Pattern through Kibana API can be useful if don’t have direct Kibana access but you do have a remote instance that can access it. Let’s see how to crea...

In Elasticsearch, Apr 12, 2023

How to Install Docker on Amazon Linux 2

The installation of Docker on Amazon Linux 2 consists of several simple steps, which will be listed below.

In Docker, AWS, Apr 10, 2023

How to Install PHP Xmlrpc on Amazon Linux 2

If you want to send remote XML procedure calls to be made over HTTP, php-xmlrpc library can help you to achieve that. Let’s see how to install PHP Xmlrpc on Amazon Linux 2.

In AWS, Amazon Linux 2, Apr 06, 2023

How to Install PHP CLI on Amazon Linux 2

If you want to have the ability to run PHP scripts without the need for a web server or web browser, just running them through a terminal or command-line interface you need to have th...

In AWS, Amazon Linux 2, Apr 04, 2023

Fix Nginx 'client intended to send too large body' error

If you have an Nginx server set up to handle file uploads, and a user tries to upload a file that is larger than the configured client_max_body_size directive. When this happens, Ngin...

In Nginx, Apr 02, 2023

Fix 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'

The error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Com...

In macOS, Mar 31, 2023

How to Install PHP OPcache on Amazon Linux 2

If you want to significantly improve the performance of your PHP application, especially for applications that use a large number of PHP scripts or have a high volume of requests then...

In AWS, Amazon Linux 2, Mar 29, 2023

Fix 'RecursionError: maximum recursion depth exceeded'

The RecursionError: maximum recursion depth exceeded usually occurs when a function calls itself too many times, causing the stack to overflow. The solution is to check the code for i...

In Python, Mar 27, 2023

Fix 'host key has just been changed'

Let’s see how to resolve the error below while trying to establish an SSH connection:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATIO...

In SSH, Mar 25, 2023

How to export multiple MySQL databases in a separate .sql file

The easiest way to export multiple MySQL databases in a separate .sql file is through a bash script.

In MySQL, Mar 23, 2023

Install PHP mbstring on Alpine Linux

Mbstring as a multibyte string functions provider helps you to handle multibyte encodings in PHP. Let’s see how to install PHP mbstring on Alpine Linux.

In PHP, Mar 19, 2023

How to Install PHP GMP on Amazon Linux 2

The need for complex mathematical operations playing with big numbers can be handled by the GMP PHP library. It contains a big collection of functions that can be invoked into your co...

In AWS, Amazon Linux 2, Mar 17, 2023

How to fix 'GPG keys listed for the MySQL Server repository are already installed'

Seemingly the MySQL installation might look like an easy task, but you might also face the following error The GPG keys listed for the "MySQL Community Server" repository are already ...

In MySQL, Amazon Linux, Mar 15, 2023

How to check if Redis Remote Server is running

If your Redis cluster is hosted somewhere on the cloud and you are wondering whether you can connect to your Redis cluster or not, here I will show you how you can quickly check if yo...

In Redis, Mar 13, 2023

How to check if Redis Remote Server is running

If your Redis cluster is hosted somewhere on the cloud and you are wondering whether you can connect to your Redis cluster or not, here I will show you how you can quickly check if yo...

In Redis, Mar 13, 2023

Install Kubectl on Alpine Linux

Unfortunately there is no kubectl package under apk alpine package manager but still, there is a way to install it. Let’s install kubectl on Alpine Linux.

In Kubernetes, Alpine Linux, Mar 11, 2023

How to Install PHP Soap on Amazon Linux 2

Soap as an independent platform allows you to send and receive messages on the app level. It’s a kind of communication protocol that works on the application level and can be enabled ...

In AWS, Amazon Linux 2, Mar 09, 2023

Install PHP 7.4 on Alpine Linux

Trying to set up PHP 7.4 on Alpine Linux can lead to the following error:ERROR: unable to select packages: php7 (no such package): required by: world[php7]This might get things co...

In PHP, Mar 07, 2023

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

How to Install PHP Posix on Amazon Linux 2

The Posix extension is a very useful PHP extension in terms of monitoring your PHP processes, optimizing your code, etc. The function itself returns usage information about the curren...

In AWS, Amazon Linux 2, Mar 03, 2023

How to Install PHP Iconv on Amazon Linux 2

Using the PHP function iconv() allows you to convert a string to the requested character encoding. Usually, you need to install Iconv on Amazon Linux 2 if your PHP setup is using FPM ...

In AWS, Amazon Linux 2, Mar 01, 2023

How to Install PHP Dom on Amazon Linux 2

The need of processing or parsing XML documents in PHP can be done through the DOM parser extension. Here I will show you how to install PHP Dom on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 27, 2023

How to Install PHP Ctype on Amazon Linux 2

Enabling the Ctype PHP extension will provide you with functions that are used to verify whether the characters in a string are of the correct type. Let’s install Ctype on Amazon Linu...

In AWS, Amazon Linux 2, Feb 25, 2023

Linux 101: extending volumes using `growpart` and `xfs_growfs`

Long time ago, I was in a situation where I miscalculated the volume size of an AWS EC2 instance, so I had to increase the data disk size. I’m sure this could happen to everyone once ...

In Linux, Feb 24, 2023

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

Linux 101: `free` command output explained

As a common interview question, you need to know how to check the memory of your Linux OS. And this is done by running free -mh. Usually, I add the h, so the output is displayed in hu...

In Linux, Feb 22, 2023

SonarQube How to Fix 'node.store.allow_mmapfs is no longer supported'

If you are trying to update SonarQube to a higher version you might get org.sonar.process.MessageException: Property 'node.store.allow_mmapfs' is no longer supported. Let’s see how to...

In Docker, SonarQube, Feb 21, 2023

Linux 101: Bringing processes to background and foreground

Linux processes present a running instances of a program or multiple ones, on a Linux OS. You can think of it as a program that is currently executing and performing a task on the com...

In Linux, Feb 20, 2023

How to Install PHP Punic on Amazon Linux 2

Localizing your various PHP variables can be made easy through the Punic library. Let’s install PHP Punic on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 19, 2023

Linux 101: Run shell scripts as Systemd services

Systemd is a default system and service manager for Linux OSs. It is a collection of tools and daemons designed to manage and control the startup process, the system’s services, and p...

In Linux, Feb 18, 2023

How to Install PHP pgsql on Amazon Linux 2

While establishing a PostgreSQL connection through PHP, you might get the following error: uncaught exception "could not find driver". That means you need to install PHP pgsql on Amaz...

In AWS, Amazon Linux 2, Feb 17, 2023

Linux 101: stdin, stdout and stderr

In Linux, stdin, stdout and stderr are all important standard input/output streams that are used to manage input and output from command line programs. So, here’s a quick overview for...

In Linux, Feb 16, 2023

How to Install PHP Embed on Amazon Linux 2

Like the name itself, the Embed extension will allow you to embed PHP scripts in different languages, for example in PHP extensions which are mainly written in C. Let’s jump on how to...

In AWS, Amazon Linux 2, Feb 15, 2023

How to Install PHP bcmath on Amazon Linux 2

Using PHP arithmetic functions can be achieved through bcmath package, which is a wrapper for these functions and can be even used in an object-oriented way. Let’s see how to install ...

In AWS, Amazon Linux 2, Feb 13, 2023

How to Install PHP intl on Amazon Linux 2

The Intl extension in PHP is a set of f C/C++ and Java libraries that can allow PHP programmers to perform UCA conformant collation and date-time-number formatting in their scripts. L...

In AWS, Amazon Linux 2, Feb 11, 2023

How to Install PHP XML on Amazon Linux 2

If you want to parse XML documents with PHP, then you need to install php-xml library. Let’s see how to install PHP XML on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 09, 2023

How to Install PHP Imap on Amazon Linux 2

Using the Imap functions in PHP you can fetch emails from an email account, also Imap functions can allow you to work with POP3 protocol. Working with the Imap PHP library you can cre...

In AWS, Amazon Linux 2, Feb 07, 2023

Adding Swap space on CentOS 7 Linux Cloud VMs

It feels like there is no more need of adding a swap practice, especially today, deploying VMs in the cloud, considering the abundance of memory, disk and vCPUs resources that are ava...

In CentOS, Linux, Feb 06, 2023

How to Install PHP GD on Amazon Linux 2

If you need to create or do some stuff with images in PHP, it can be done through the GD library. Here I will show you how to install PHP GD on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 05, 2023

How to Install PHP Json on Amazon Linux 2

To be able to convert your PHP objects into JSON using the PHP functions, you need to have php-json extension installed. Let’s install PHP Json on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 03, 2023

How to Install PHP Zip on Amazon Linux 2

Older PHP versions had support to enable the zip extension by using --enable-zip option. With PHP 7.4.0 and all the upper versions, the bundled libzip extension has been removed. Here...

In AWS, Amazon Linux 2, Feb 01, 2023

502 Bad Gateway, Nginx reverse proxy and Docker containers in CentOS 7

Sometimes, setting up HTTP/HTTPS GCP Firewall rule and Nginx reverse proxy to point to the Docker container port mapped as 0.0.0.0:3000 could be not enough, even though running curl 0...

In Docker, Nginx, CentOS, Jan 31, 2023

How to Install PHP Devel on Amazon Linux 2

Building PHP extensions can be done through the php-devel package which contains files needed for PHP extensions. Today’s aim is to install PHP Devel on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 30, 2023

Install PHP PDO on Amazon Linux 2

If your app is PHP based and you need to establish a database connection, you will need to have a PHP PDO extension. Let’s install the PHP PDO extension on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 28, 2023

Install PHP Curl on Amazon Linux 2

As a PHP Developer, you might need to send or receive files over HTTP. With the PHP Curl module, you can even use proxies or pass data over SSL connections. Let’s see how to install t...

In AWS, Amazon Linux 2, Jan 26, 2023

Update system timezone on Linux cloud VMs

Listing, updating and changing the system timezone in Linux servers are important operations mostly when dealing with scheduling tasks, cronjobs. In today’s post-VPS age, timezones sh...

In Linux, Jan 25, 2023

How to Associate Elastic IP to an EC2 instance

If you have allocated an Elastic IP already and you want to associate with one of your EC2 instances, the procedure can be done in a few steps. Let’s take a look on how to associate E...

In AWS, Amazon Linux 2, Jan 24, 2023

NFS mounting in /etc/fstab and verification

Using the mount command to mount a NFS disk is a good test practice. Sure, but on the next system reboot, the disk will “magically disappear”. That’s why we need to write the mount co...

In Linux, NFS, Jan 23, 2023

Install PHP CGI on Amazon Linux 2

If you want to use the PHP interpreter through CGI mode but you don’t have CGI extension installed, here I will show you how to install PHP CGI on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 22, 2023

GCP Filestore error: "mount: wrong fs type, bad option, bad superblock"

GCP Filestore is a managed file storage, the competitor equivalents being: AWS’s EFS and Azure Files. While following the great GCP documentation on how to mount the Filestore NFS man...

In GCP, Linux, NFS, Jan 21, 2023

Install php-common on Amazon Linux 2

If you get The common extension is missing. Please check your PHP configuration that means that you need to install php-common extension. The installation is very simple since you hav...

In AWS, Amazon Linux 2, Jan 20, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

How to fix Jenkins: 'dial unix /var/run/docker.sock: connect: permission denied'

Due to high Memory and CPU, I needed to spin up a new ec2 instance. After a while, tried to kick off my Jenkins CI/CD pipeline and got the following error: dial unix /var/run/docker.s...

In Jenkins, Jan 18, 2023

Install shasum on Amazon Linux 2

Shasum can be easily installed through perl-Digest-SHA packages on Amazon Linux 2. Let’s jump on the installation part.

In AWS, Amazon Linux 2, Jan 16, 2023

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Install shasum on Alpine Linux

One thing that needs to be considered while installing shasum on Alpine Linux is that the package is not available under apk. There is a way to install shasum on Alpine Linux through ...

In Alpine Linux, Jan 14, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Install sshpass on Alpine Linux

Since the sshpass is a part of the apk default packages you don’t have to install OpenSSH to get sshpass. Let’s keep it to the simple things and see the best way to install sshpass on...

In SSH, Alpine Linux, Jan 12, 2023

Get, monitor and remove the last N lines of a file in Linux

Listing and monitoring the last N lines of a log file is a common and familiar operational practice mostly to System Administrators and SRE engineers. Surely, there are better ways to...

In Linux, Parsing, Jan 11, 2023

How to Install ufw on Ubuntu 22.04

Usually, Ubuntu comes with a pre-installed ufw firewall. But in some cases like using the Ubuntu docker image or Ubuntu server-based images can be an exception and you might see that ...

In Ubuntu, Jan 06, 2023

How to Install Redis on Ubuntu 22.04

As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.

In Redis, Ubuntu, Jan 04, 2023

Install Wget on Ubuntu 22.04

In case wget is not installed on your latest Ubuntu version 22.04 it will throw the following error wget: command not found. Today I will show you how to install wget on Ubuntu 22.04 ...

In Wget, Ubuntu, Jan 02, 2023

How to Install Pip on CentOS 9 Stream

Pip is a part of the python packages for CentOS 9. So the installation is pretty simple and straight forward. Let’s see how to install Pip on CentOS 9.

In Pip, CentOS, Dec 31, 2022

Install Git on CentOS 9 Stream

Git can be easily installed on CentOS 9 within the dnf system packages. Let’s see how to install Git on CentOS 9.

In Git, CentOS, Dec 29, 2022

Install Pip on Amazon Linux 2

If you have python installed but still getting No package pip available you can easily solve this by adding the python-pip with yum. Let’s see how to install pip on Amazon Linux 2.

In AWS, Amazon Linux 2, Dec 27, 2022

Install Pip on Alpine Linux

If you get ERROR: unsatisfiable constraints: py-pip (missing) on Alpine Linux then it’s obvious that you don’t have pip installed. Let’s see how to install pip on Alpine Linux.

In Alpine Linux, Dec 25, 2022

Install dig and nslookup on Debian

Dns tools such as dig and nslookup can be easily installed on Debian using the apt package manager. Let’s jump on the installation part.

In Debian, Dec 21, 2022

Install Iptables on Alpine Linux

In this session I’m going to show you how to install Iptables on Alpine Linux. As always we want to avoid complex things, so this installation will be achieved in a maximum of two ste...

In Alpine Linux, Dec 19, 2022

Install Iptables on Amazon Linux 2

Seemingly installing iptables on Amazon Linux 2 might not be useful if you consider aws security rules. However iptables allows managing more complex scenarios, like port forwarding, ...

In Iptables, AWS, Amazon Linux 2, Dec 17, 2022

Install Wget on Alpine Linux

If you try to install and use wget on Alpine Linux you might get the error: wget: can't execute 'ssl_helper': No such file or directory. Here I’m going to show you how to fix the erro...

In Alpine Linux, Dec 15, 2022

How to Pass Api Key Header in Curl

Most of the API proxy services like AWS Gateway API are used to secure some requests with a level of authentication. To achieve that you can use either Bearer tokens or API Keys. Here...

In Curl, Dec 13, 2022

Install Yarn on Debian 11

There are multiple ways to install yarn on Debian 11. Here I’m going to show you how to install Yarn on Debian 11 via APT.

In Debian, Dec 11, 2022

Install Yarn on Centos 9 Stream

Yarn can be very useful in terms of automating the process of updating, installing, configuring, or deleting NPM packages. Here I’m going to show you how to install yarn on CentOS 9 S...

In CentOS, Dec 09, 2022

Install Smartctl on Alpine Linux

If you get the error smartctl: not found on Alpine Linux, it means that smartctl is not installed by default, so don’t let that wind you up. Let me tell you how to install smartctl on...

In Alpine Linux, Dec 07, 2022

Install htpasswd on Alpine Linux

Htpasswd installation will be easy and simple using the Alpine system packages. Let’s see how to install htpasswd on Alpine Linux.

In Alpine Linux, Dec 05, 2022

Install htpasswd on Amazon Linux 2

Setting up htpasswd to have basic-auth for your site users can be done in a few steps depending on your web server. Here I’m going to cover just the installation process of htpasswd o...

In Htpasswd, AWS, Amazon Linux 2, Dec 03, 2022

Client_loop: send disconnect: Broken pipe

Usually, you will get this kind of error client_loop: send disconnect: Broken pipe if you keep your ssh connection open more than the timeout limit. Let’s see how can we potentially f...

In SSH, Dec 01, 2022

Install Smartctl on Amazon Linux 2

If you want to monitor or analyze the health of the hard drive or check details for your ec2 hard drive, I would recommend installing smartctl command. Let’s see how to install smartc...

In Smartctl, AWS, Amazon Linux 2, Nov 29, 2022

Install build-base on Alpine Linux

Build-base is pretty much the same as the build-essentials in Debian-based systems. It will provide the tools needed for building the kernel modules. Let’s see how to install build-ba...

In Alpine Linux, Nov 25, 2022

Resolve: "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)"

As I was trying to get my Python Docker Compose stack up and running on my MacBook Pro, I’ve noticed the following message: Warning: The requested image's platform (linux/amd64) does ...

In Docker, Nov 23, 2022

Install Zlib on Amazon Linux 2

Usually, zlib comes preinstalled with most of the Amazon Linux images. But in case you get: bash: zlib: command not found then you need to install zlib on Amazon Linux 2.

In Zlib, Amazon Linux 2, Nov 19, 2022

Install Sudo on Alpine Linux

If your Alpine Linux image doesn’t support sudo it can be easily installed through the default Alpine packages. Let’s do it.

In Sudo, Alpine Linux, Nov 17, 2022

Install Sudo on Amazon Linux 2

Some of the Amazon Linux 2 images are missing very basic system commands like sudo. If you get this error /bin/sh: sudo: command not found then you definitely need to install sudo on ...

In AWS, Amazon Linux 2, Nov 15, 2022

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Install PHP-FPM on Amazon Linux 2

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

In PHP, AWS, Amazon Linux 2, Nov 11, 2022

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

Install Wget on Amazon Linux 2

Let’s resolve the issue wget command not found on Amazon Linux 2.

In Wget, AWS, Amazon Linux 2, Nov 05, 2022

Install Mbstring on Amazon Linux 2

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

In Mbstring, AWS, Amazon Linux 2, Nov 03, 2022

Install gcc on Amazon Linux 2

While compiling or running C based code on Amazon Linux 2 you might face the following issue: gcc: command not found. That means that you don’t have GCC package installed which is use...

In gcc, AWS, Amazon Linux 2, Nov 01, 2022

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

Install Python on Amazon Linux 2

Installing Python 3 from the existing Amazon Linux 2 packages should be fairly easy. If you want to install the latest Python version 3.11.0 it might be tricky, but we are going to co...

In Python, AWS, Amazon Linux 2, Oct 28, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

Install Git on Amazon Linux 2

The Git installation on Amazon Linux 2 is simple and straightforward. Let’s check it out.

In Git, AWS, Amazon Linux 2, Oct 18, 2022

Install Yarn on Alpine Linux

Getting Yarn from the apk Alpine package manager is the easiest way to install on Alpine Linux.

In Yarn, Alpine Linux, Oct 16, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

Install Podman on CentOS 9 Stream

If you are digging on Google for a Docker replacement most likely you will end up with Podman. The installation of Podman on CentOS 9 Stream is very simple and straightforward.

In Podman, CentOS, Oct 02, 2022

Install Caddy on Alpine Linux

Since Caddy exists as an Alpine package then the installation will be much easier. Let’s go to install Caddy on Alpine Linux.

In Caddy, Alpine Linux, Sep 30, 2022

Install Go on Alpine Linux

If you need a minimalistic docker image for building Go projects that’s definitely Alpine Linux. The aim here is to show you how to install Go on Alpine Linux.

In Go, Alpine Linux, Sep 28, 2022

Install Python on Alpine Linux

Today I’m going to show you how to install python on alpine linux without using a python image. You can get into the Alpine terminal and install python3 and python3-pip directly.

In Python, Alpine Linux, Sep 26, 2022

Install Caddy on Arch Linux

One of the quickest ways to install Caddy on Arch Linux is using the caddy package. You all know that this site aims to show the quickest way, so let’s see the steps for installing Ca...

In Caddy, Arch Linux, Sep 24, 2022

Install Caddy on CentOS 8

The procedure of installing Caddy Web Server on CentOS 8 is pretty much the same as on CentOS 7. Let’s jump on the installation part.

In Caddy, CentOS, Sep 22, 2022

Install Caddy on CentOS 7

If you need a scalable reverse proxy, powerful, and efficient static file server then try the caddy web server. It’s open source web server neatly crafted in Go. Today I’m going to sh...

In Caddy, CentOS, Sep 20, 2022

Install curl on CentOS 9 Stream

If something is a must to have on your Linux machine then that’s curl. It’s the most used tool on Linux and the main purpose is to interact with protocols. It’s commonly used in scrip...

In Curl, CentOS, Sep 18, 2022

Install Nano on Alpine Linux

If you are a nano fan and you are struggling to edit some config files with vim, then definitely you need to install nano. Let’s see how to install nano on Alpine Linux.

In Nano, Alpine Linux, Sep 16, 2022

Install Htop on Alpine Linux

Htop provides you to track the machine processes and to be aware of your CPU and Memory load. Today I will show you how to install htop on Alpine Linux.

In Htop, Alpine Linux, Sep 14, 2022

Install Netstat on Alpine Linux

Netstat is a useful tool if you want to troubleshoot or display network related information. You can list all the open connections, open socket, ports, etc… Let me show you how to ins...

In Netstat, Alpine Linux, Sep 12, 2022

Install Unbuffer on CentOS 9 Stream

The procedure of installing Unbuffer on CentOS 9 Stream is pretty much the same as the other RHEL distros. Let’s jump on the installation steps.

In Unbuffer, CentOS, Sep 10, 2022

Install Unbuffer on Alpine Linux

Getting rid of the output buffering using pipelines can be achieved using the unbuffer command. Let’s see how to install unbuffer on Alpine Linux.

In Unbuffer, Alpine Linux, Sep 08, 2022

Install jq on CentOS 9 Stream

If you are playing with JSON things then you may consider installing jq. It’s a simple JSON Processor which can help you to get the desired JSON output. Today I’m going to install jq ...

In jq, CentOS, Sep 06, 2022

Install Zip and Unzip on CentOS 9 Stream

Reducing the file size can be achieved with a lot of archive tools. One of them is zip who comes with a separate unzip package if you want to extract the file. Let’s see how to instal...

In Archive, CentOS, Sep 04, 2022

Install tar on CentOS 9 Stream

Tar as an archive tool comes with the default CentOS 9 packages. The installation part is easy and straightforward, so let’s see how to install tar on CentOS 9 Stream.

In Archive, CentOS, Sep 02, 2022

Install Ansible on CentOS 9 Stream

EPEL repository can provide a quick and easy way to install Ansible on CentOS 9. Let’s check it !!!

In Ansible, CentOS, Aug 31, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

How to install Python on CentOS 9 Stream

As always keeping to the minimalistic things will ease your life. Today’s aim is to install Python on CentOS 9 Stream. The installation is pretty simple and quick.

In Python, CentOS, Aug 27, 2022

How to install Terraform on CentOS 9 Stream

There are two ways to install Terraform on CentOS 9 Stream. Through Terraform Repository. Manually.

In Terraform, CentOS, Aug 25, 2022

How to install UFW on CentOS 9 Stream

If you are more familiar with the UFW firewall instead of using firewalld, first you need to stop the firewalld service: sudo systemctl stop firewalld.service and install UFW on CentO...

In Firewalls, CentOS, Aug 23, 2022

How to Install openfortivpn on Ubuntu 22.04

Installing openfortivpn on Ubuntu 22.04 can be done in a few steps without any complexity. Literally, the installation process is pretty much the same for every Debian based distro, b...

In VPN, Ubuntu, Aug 21, 2022

How to Install openfortivpn on CentOS 8

Today’s goal is to install openfortivpn on CentOS 8. It can be achieved using dnf or yum, either way it should work fine. Let’s move on to the installation part.

In VPN, CentOS, Aug 19, 2022

How to Add Swap Space on CentOS 9 Stream

If some of your services are struggling and can’t work properly then might your amount of physical memory be full? If that’s the case, adding swap space will solve the throttling issu...

In Linux, CentOS, Aug 17, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

How to check if command exist in a Bash/Shell script

Creating Bash or Shell script for validating whether some command exists or not, can be necessary in some cases. Here I’m going to give you a quick example of how can you achieve it.

In Linux, Aug 15, 2022

Install Unbuffer on Amazon Linux 2

If you need to disable the output buffering when you use complex pipelines, passing the output between multiple pipes then you can definitely use the unbuffer command. Let’s install u...

In Unbuffer, AWS, Amazon Linux 2, Aug 13, 2022

Install Telnet on Alpine Linux

Having Telnet within the Alpine Docker image can be useful in terms of quickly checking the connection between your services, like Redis, etc. So, here you can find how to install Tel...

In Telnet, Alpine Linux, Aug 09, 2022

Get current folder name in Linux without full path

As you may already know getting the relative path in Linux can be easily achieved by typing the command pwd in your terminal. You may be wondering how to get only the current working ...

In Linux, Aug 07, 2022

Install Vim on Alpine Linux

As an improved version of vi, Vim is the most used text editor for the server based environment. Today the aim is to install vim on Alpine Linux.

In Vim, Alpine Linux, Aug 05, 2022

Install Traceroute on Alpine Linux

Discovering the network packet paths or troubleshooting the connectivity issues can be easily achieved with traceroute. Today’s aim is to install traceroute on Alpine Linux.

In Traceroute, Alpine Linux, Aug 03, 2022

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Install Ruby on Alpine Linux

Installing Ruby on Alpine Linux comes fairly quick and easy as it exists within the apk package manager. Let’s jump on the crux.

In Ruby, Alpine Linux, Jul 28, 2022

Install Redis on Alpine Linux

Redis CLI is a part of the official Alpine apk packages, so it’s quick and easy to set it up. Here I’m going to show you how to install Redis CLI on Alpine Linux.

In Redis, Alpine Linux, Jul 22, 2022

Top command not found on Debian-based Docker container

Some of your Docker Debian-based containers can be killed due to heavy processes running inside the container. If your preferred choice is the top command, most likely you will get th...

In Docker, Debian, Jul 20, 2022

Install UFW on Alpine Linux

Protecting your Alpine Docker images is always a good practice, especially the vulnerable services. Today, I will install UFW on Alpine Linux.

In Firewalls, Alpine Linux, Jul 16, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

Install Node.js on Alpine Linux

Setting up a Node.js environment for development on Alpine Linux is quite easy and simple. So let’s see how to install Node.js with NPM on Alpine Linux.

In Node.js, Alpine Linux, Jul 08, 2022

Install Ansible on Alpine Linux

The Ansible installation on Alpine Linux can be achieved easily and quickly through the official Alpine packages.

In Ansible, Alpine Linux, Jul 06, 2022

Install Apache on Alpine Linux

Using Apache with Alpine Linux can be a suitable combination, because Apache comes with a lot of modules that can be useful for your application. Let’s see how to install Apache on Al...

In Apache, Alpine Linux, Jul 02, 2022

Install Nginx on Alpine Linux

Installing Nginx on Alpine Linux can be achieved easily, as it’s part of the official Alpine packages. Let’s take a look.

In Nginx, Alpine Linux, Jun 30, 2022

Resolve KernelCare `Error unpatching [255] ('default', '', '', False)` issue

Updating the latest security and stability patches using KernelCare it’s a safe and recommended way, but sometimes it can throw Error unpatching [255] ('default', '', '', False) error...

In Linux, Jun 28, 2022

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

Install Fluentd on Amazon Linux 2

Fluentd is one of the most popular open-source projects, used for gathering logs from a set of sources and forwarding them to other monitoring software. Here I’m going to show you how...

In Logging, AWS, Amazon Linux 2, Jun 24, 2022

Install Exim on Alpine Linux

If there is a need for a simple and minimalistic mail transfer agent on Alpine then Exim is a decent choice. Let’s install Exim on Alpine Linux.

In SMTP, Alpine Linux, Jun 22, 2022

Install Git on Alpine Linux

Previously git was not included in the official alpine packages. As the new Alpine versions are released, there are improvements of course. So now git is a part of the Alpine packages...

In Git, Alpine Linux, Jun 20, 2022

Install PHP 8 on Alpine Linux

The PHP 8 installation on Alpine Linux can be achieved in a few steps. Let’s do it.

In PHP, Jun 18, 2022

Install SCP on Alpine Linux

SCP as a useful transfer tool can be easily installed on Alpine Linux. Let’s see the steps needed.

In SCP, Alpine Linux, Jun 16, 2022

Install Podman Compose on Alpine Linux

If you plan to deal with Podman Compose on Alpine Linux I will show you the installation part. The aim of this tutorial is to show you how to install Podman Compose on Alpine Linux.

In Podman, Alpine Linux, Jun 14, 2022

Install Podman on Alpine Linux

Podman, as a decent Docker replacement has support from the Alpine community repository and can be installed as a podman package. Let’s see how to install Podman on Alpine Linux.

In Podman, Alpine Linux, Jun 12, 2022

Install Rsync on Alpine Linux

How can you remotely sync or transfer files? Of course, rsync is here to help even if you want to include it within the Alpine docker container. Let’s see how to install Rsync on Alpi...

In Rsync, Alpine Linux, Jun 10, 2022

Install jq on Alpine Linux

Yet another quick and easy jq installation on Alpine Linux. You can use it as a part of your Dockerfile as well.

In jq, Alpine Linux, Jun 08, 2022

Install Zip And Unzip on Alpine Linux

Here I’m going to show you how to install zip and unzip on Alpine Linux which is quite quick and easy :)

In Archive, Jun 06, 2022

Install Terraform on Alpine Linux

As a small distro Alpine Linux doesn’t have huge support regarding the APK Alpine system manager package. So today I’ve decided to show you how to install Terraform on Alpine Linux.

In Terraform, Alpine Linux, Jun 04, 2022

Install AWS CLI on Amazon Linux 2

Managing some AWS services through AWS CLI can be useful and practical, especially when you need to perform some quick actions like listing active resources or troubleshooting. Here I...

In AWS, Amazon Linux 2, Jun 02, 2022

Install PHP Composer on Amazon Linux 2

Using PHP on Amazon Linux 2 can potentially require a composer installation for some libraries. Installing Composer on Amazon Linux 2 is a quick and easy procedure. Let’s see it.

In PHP, AWS, Amazon Linux 2, May 31, 2022

Install Telnet on Amazon Linux 2

As a useful tool Telnet can help you to troubleshoot some connectivity problems, access specific port and also offers a lot of other useful stuff as well. The installation is simple a...

In Telnet, AWS, Amazon Linux 2, May 29, 2022

Install PHP 8.1 on Amazon Linux 2

If you want to hang out with the latest major update of PHP, then you should definitely try to install PHP 8.1 on Amazon Linux 2. Let’s do it.

In PHP, AWS, Amazon Linux 2, May 27, 2022

Find non-ASCII characters in Linux

ASCII as a character encoding standard that use numbers to represent characters. The original ASCII code range is 0 - 127 (7 bits) which represents the english character set including...

In Linux, May 26, 2022

Install tar on Amazon Linux 2

Yet another free cool tool for archiving files, is tar. I’m going to stick to the title itself and show you how to install tar on Amazon Linux 2.

In Archive, AWS, Amazon Linux 2, May 25, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Install Podman Compose on Ubuntu 22.04

As Podman is ramping up within the containers world, the need for Podman Compose is getting higher as well. Here I’m going to show you three ways on how to install Podman Compose on U...

In Podman, Ubuntu, May 19, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

Install Telnet on CentOS 9 Stream

Telnet as a useful tool, allows you to establish a connection or check whether some connection is allowed or not. Here I’m going to show you how to install Telnet on CentOS 9 Stream, ...

In Telnet, CentOS, May 15, 2022

Install Java on CentOS 9 Stream

As a Java developer on the new CentOS 9 Stream OS, you may wonder how to set up your java environment. The installation of Java on CentOS 9 Stream can be achieved in a few steps. Let’...

In Java, CentOS, May 13, 2022

Get memory page size in Linux

Memory page, virtual memory page, or just page is the smallest block of memory unit in terms of memory management. The page size is determined by the hardware to be exact the processo...

In Linux, May 10, 2022

Install Podman Compose on Debian 11

The growth and use of Podman is really raging higher and higher. I hope one day it will be on the same level as Docker is today. Now, assuming that you have Podman installed on Debian...

In Podman, Debian, May 09, 2022

Install Redis on CentOS 9 Stream

Redis is the most popular and most used cache, message broker, and in-memory key value database store service nowadays. So today I’m going to show you how to install Redis on CentOS 9...

In Redis, May 07, 2022

Install Nginx on CentOS 9 Stream

Nginx is one of the most used web servers nowadays and can be easily installed on the new CentOS 9 Stream OS. Let’s see how to install Nginx on CentOS 9 Stream and enable the HTTP and...

In Nginx, CentOS, May 05, 2022

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Install Screen on Amazon Linux 2

Screen is a Linux utility that allows you to run and use multiple shell sessions from a single SSH session. It’s commonly used for migrating a bunch of data through an SSH connection....

In Screen, AWS, Amazon Linux 2, Apr 23, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

Install Rsync on Amazon Linux 2

Sending files, and directories remotely can be achieved with a lot of utility tools. One of them is Rsync, which is a cool tool for remote transfer. Let’s see how to install it on Ama...

In Rsync, AWS, Amazon Linux 2, Apr 17, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

spawn, expect and send commands in Linux

spawn, expect and send commands are usually part of SSH bash scripts. So, I’m going to briefly explain them, starting with expect since the rest of them are part of it.

In Linux, Apr 10, 2022

Install Node.js on Amazon Linux 2

Node.js doesn’t exist in the default Amazon Linux 2 yum packages. So we should add the Node.js official repo and use it for the installation. Let’s see how to install Node.js on Amazo...

In Node.js, AWS, Amazon Linux 2, Apr 09, 2022

Enable EPEL on Amazon Linux 2

Using EPEL package repository can be very beneficial. EPEL contains all the common packages that you may want to install. Unfortunately, EPEL is disabled in Amazon Linux 2. Let’s see ...

In AWS, Amazon Linux 2, Apr 07, 2022

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

Install VestaCP on Debian 11

VestaCP is a free and open-source control panel based on PHP and Bash. It’s a lightweight and easy to use control panel which can save you a lot of time and money especially if you ar...

In Control Panels, Apr 03, 2022

How to install Go on Amazon Linux 2

Installing Golang on Amazon Linux 2 can be done within a few minutes since Go exists in the default Amazon Linux 2 yum packages. Let’s dive into it.

In Go, AWS, Amazon Linux 2, Apr 01, 2022

How to install SQLite on Amazon Linux 2

SQLite is one of the best minimalistic, lightweight, and powerful SQL database managers. It can be suitable for every application which doesn’t use a complex database structure. So to...

In SQLite, AWS, Amazon Linux 2, Mar 30, 2022

Check for read-only filesystem in Linux

In today’s post we are going to find out how to check for read-only filesystem in Linux from the CLI.

In Linux, Mar 29, 2022

Check last reboot time in Linux

In today’s post we are going to find out the last reboot time in Linux from the CLI.

In Linux, Mar 27, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

How to restart processes with Kill in Linux

You may ask yourself why using kill command to restart processes when here is systemctl. But some of you will get stuck in a position where you will not be able to restart some stuck ...

In Linux, Mar 06, 2022

Where to find stored syslog messages

When it comes to Syslog messages in Linux it’s important to know that they are handled by two services: systemd-journald daemon: Gathers all the messages from the kernel including bo...

In Linux, Mar 04, 2022

Fix 'fallocate failed: Operation not supported'

While creating a swap on your Linux machine, executing sudo fallocate -l 1G /swap-file-name may throw fallocate failed: Operation not supported. Here I’m going to show you a quick fix...

In Linux, Mar 02, 2022

How to install Podman on Ubuntu 21.10

In this tutorial, I’m going to show how to install Podman on Ubuntu 21.10 using the default Ubuntu 21.10 packages. Previously we clarified that installing Podman with the default Ubun...

In Podman, Ubuntu, Feb 28, 2022

How to install Redis on Ubuntu 21.10

Using Redis as popular caching storage and also persistent key value database is always a good idea. Here I’m going to show you how to install it on a fresh Ubuntu 21.10 instance.

In Redis, Ubuntu, Feb 26, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

MySQL fix: 'Waiting for table metadata lock'

Working with high load SQL queries or big transactions, you may face: Waiting for table metadata lock. Here I’m going to list some useful solutions that might help you.

In MySQL, Feb 24, 2022

How to install Docker Compose on Ubuntu 21.10

This article is strictly focused on installing docker-compose on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.

In Docker, Ubuntu, Feb 22, 2022

How to install Nginx on Ubuntu 21.10

Since Ubuntu 21.10 has been released there was an immediate interest in using it as an OS Server. In this tutorial, we are going to see how to install Nginx on Ubuntu 21.10.

In Nginx, Ubuntu, Feb 20, 2022

How to install DBeaver on Debian 11

Installing DBeaver on Debian 11 follows pretty much the same steps from Ubuntu 21.10. The two methods of installing are: snap package

In DBeaver, Debian, Feb 14, 2022

How to install DBeaver on Ubuntu 21.10

One of the great alternative for MySQL workbench is DBeaver. So instead of connecting only MySQL servers, DBeaver offers a lot of different database connections like PostgreSQL, SQLit...

In DBeaver, Ubuntu, Feb 12, 2022

How to install Apache on Amazon Linux 2

Once you have provisioned an AWS EC2 instance installing Apache on Amazon Linux 2 is a straightforward and easy process. Here I’m going to show you how to install Apache web server on...

In Apache, AWS, Amazon Linux 2, Feb 06, 2022

base64 encode and decode from the CLI

Base64 encoding and decoding has many use cases, but it’s important to understand that it’s different from encryption and decryption. While base64 encoding focuses on data usability, ...

In Encode/Decode, Jan 30, 2022

How to rotate screen position in Ubuntu through CLI

Nowadays as technology develops more and more, laptops are becoming more sophisticated. Most of today’s laptops offer a finger-sensitive screens, so you can manage to flip over the mo...

In Ubuntu, Jan 29, 2022

How to install Terragrunt on CentOS 7

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

In Terragrunt, CentOS, Jan 27, 2022

How to fix black screen on screen share in Ubuntu

During an online session, I spotted that the screen share on Ubuntu stopped working. The first thought that came to my mind was the application itself. But later I realized that no ma...

In Ubuntu, Jan 25, 2022

How to upgrade Ubuntu 20.04 to Ubuntu 21.10

The upgrading process from Ubuntu 20.04 to Ubuntu 21.10 takes some time, but it’s a straightforward process if you stick close to the steps below. Before taking any actions please mak...

In Ubuntu, Jan 23, 2022

Run Docker containers in the background

While running a docker container in detached mode d maybe you have experienced exiting the container immediately. Here I’m going to show you some ways how to keep it running in the ba...

In Docker, Jan 21, 2022

How to enable HTTP/2 in Nginx

HTTP/2 was published almost 7 years ago, HTTP/3 being an internet draft standard since October 2020, and yet here we are, most of us still using HTTP/1.1. Considering how things quick...

In Nginx, HTTP, Jan 18, 2022

How to increase the open files limit in Linux

The default open files (nofile) limit is 1024. Let’s see how we could confirm and increase it on user and system-wide level.

In Linux, Jan 16, 2022

How to install Podman Compose on CentOS 7

When it comes to installing podman-compose on CentOS 7 it follows the same procedure as on the other RHEL-based distros and there are three ways to achieve it. You only need to make s...

In Podman, CentOS, Jan 15, 2022

SFTP transfer files non-interactive through the command line

This tutorial is aimed to show you how to download files from a remote sftp server and of course how to upload files to a remote sftp server. It’s useful if you are writing a bash or ...

In SFTP, Jan 13, 2022

How to connect with SFTP through the command line

Most of the shared hosting platforms are providing SFTP access to the end-users as a secure file transfer protocol. There are a lot of free and open source GUI platforms for ftp, SFTP...

In SFTP, Jan 11, 2022

Install Podman Compose on Ubuntu 20.04

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and ...

In Podman, Ubuntu, Jan 09, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

Send Slack notifications from a Bash script

Slack is one of the most popular and used messaging apps by companies of any kind of business size, from small companies and startups to large enterprises. From DevOps point of view, ...

In Slack, Webhooks, Jan 06, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

Install dig and nslookup on Alpine Linux

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks yo...

In DNS, Alpine Linux, Jan 03, 2022

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

How to install Postman on Ubuntu 20.04

There are some ways to install Postman on Ubuntu 20.04. As always, we want to keep the work simple and straight to the point. So I’m going to show you the easiest way to install Postm...

In Postman, Ubuntu, Dec 22, 2021

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install UFW on CentOS 7

Most of the RHEL Linux distros are coming with pre-installed firewalld as a default firewall. But if you are UFW fan and you don’t want to waste your time or resources on getting fami...

In Firewalls, CentOS, Dec 08, 2021

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

How to install Firewalld on Rocky Linux 8

Keeping your services and host itself secure is crucial. Nowadays, there are a lot of attacks that can harm your host server, like brute force attacks, dictionary SSH attacks, SQL inj...

In Firewalls, Rocky Linux, Nov 30, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to generate random password from the CLI

There are a lot of ways to generate random passwords, starting from simple password generator sites found online to the most advanced password management solutions. Today’s topic will...

In Linux, Nov 27, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

File locking with flock 101

As a concept, file locking in Linux purpose is to control access to a shared resource between multiple processes, in a way to indicate which process is next in line, so it could use t...

In Linux, Nov 25, 2021

How to install Terragrunt on Ubuntu

Working with Terragrunt as a Terraform wrapper will ease things and simplify the Terraform templates. Here I will show you how to set up quickly on your Ubuntu machine.

In Terragrunt, Ubuntu, Nov 24, 2021

mtime timestamp and the 24h period simplified

For those who might be questioning, mtime or short for modified timestamp, is a Linux file timestamp which usually goes hand in hand with the find command in the most common scenarios...

In Linux, Nov 23, 2021

How to update Visual Studio Code on Debian-based distro

Some old VS Code versions are getting git issues, for instance, you are not able to pull or push to your repo due to authentication issues. If you try to authenticate through your Lin...

In VSCode, Debian, Nov 22, 2021

Which shell am I using - how to check

Linux comes with support for multiple flavors of shell, including bash, zsh, ksh, csh, or suchlike. This time I’ll be focusing on how to find out which shell you are using, which is t...

In Shell, Nov 21, 2021

How to reload shell session

In order to update and see changes made in the shell environment, most of the time reload is required. So, instead of restarting the machine and wasting a lot of time, a simple comman...

In Shell, Nov 19, 2021

How to install Logstash on Debian 11

Every data processing service needs a data processing pipeline that will help you to gather data from different sources. Nowadays, Logstash is one of the most efficient and required d...

In Logging, Debian, Nov 14, 2021

How to install Grafana on Debian 11

Seemingly some enterprise monitoring solutions look that they can be suitable for your infrastructure but afterwards it shows up that your expectations are not satisfied. There are a ...

In Monitoring, Debian, Nov 10, 2021

How to install Terraform on Debian 11

Today I’ll be writing about terraform installation on Debian 11. The steps are pretty easy, so you just have to follow them and accomplish the installation process. Let’s hop in.

In Terraform, Nov 06, 2021

How to install Nomad on Fedora-based distro

Previously I covered the Nomad installation on the most frequently used Linux distros: Amazon Linux 2 Debian RHEL

In Nomad, Fedora, Oct 27, 2021

How to change permissions for directories and files recursively

Getting to know how to fix the directories and files permissions recursively, with a quick and easy method is always a good point. The crux of this tutorial is to understand how you c...

In Linux, Oct 25, 2021

How to Setup GraphQL with Node.js on Debian-based distro

To gather information from the REST API designed app you need to send requests to multiple REST endpoints. So this kind of approach is scattered across multiple endpoints. GraphQL sol...

In GraphQL, Node.js, Debian, Oct 23, 2021

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

How to install Node.js on Debian 11

There are few methods to install Node.js on Debian 11. Using PPA Using NVM From the Debian official packages

In Node.js, Debian, Oct 21, 2021

Resolve (code=exited, status=2) in Nginx

Sometimes after Nginx service restart and you’re trying to get the service status, you might get the following status code line:Process: 10316 ExecStop=/sbin/start-stop-daemon --quiet...

In Nginx, Oct 20, 2021

How to install Terragrunt on Debian 11

If you need to simplify the Terraform structure you can achieve it through Terragrunt. The crux is that you only need to define the Terraform modules and Terragrunt will take care of ...

In Terragrunt, Debian, Oct 19, 2021

Check Internet speed from the CLI on Linux

In this day and age, experiencing a slow internet connection could be a huge deal, especially for most of us who work remotely. Since we can do almost anything from the CLI, let’s sav...

In Linux, Oct 18, 2021

How to install Nomad on RHEL-based distro

As I mentioned in the previous topics I’m going to cover the Nomad installation on all popular Linux distros. So this tutorial will be aimed to show you how to install Nomad on RHEL-b...

In Nomad, RHEL, Oct 17, 2021

Get public IP from the CLI on Linux

Let’s speedrun the tutorial on how to get your public IP address from the command line interface for any whitelisting reason, on any Linux distro.

In Linux, Oct 16, 2021

How to install Nomad on Debian-based distro

As a sequel of the Nomad installation series today I’m going to shed some light on how to install Nomad on every Debian-based distro. The installation process is quick and easy and th...

In Nomad, Debian, Oct 15, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

How to detect and free Inode usage on Linux

While I was maintaining a monitoring service for an AWS-based infrastructure the service daemon stopped working. After some digging on the host where the service was hosted, I find ou...

In Linux, Oct 09, 2021

How to install Ansible on Amazon Linux 2

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In Ansible, AWS, Amazon Linux 2, Oct 07, 2021

How to install Nginx on Amazon Linux 2

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In Nginx, AWS, Amazon Linux 2, Oct 05, 2021

Prevent accidental rm -rf /*

We’ve all heard the infamous rm -rf /* command. Now, let’s see how can we prevent from happening many times again.

In Linux, Sep 30, 2021

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Debian, Sep 29, 2021

Count files within directory in Linux

Sometimes, for some reason we need to pull up the number of files in a certain directory. As always, this could be done in a couple of ways. Let’s go through each of them.

In Linux, Sep 28, 2021

How to install Ruby on Debian 11

Ruby as a programming language belongs to the group with a high demand along with the other popular programming languages. Nowadays, his framework Ruby on Rails is highly used by deve...

In Ruby, Debian, Sep 27, 2021

Run Linux Bash commands in background

If one thing can be annoying while working on remote Terminals on daily basis, that would be waiting for a command to finish. Wasting time on waiting commands to finish is resolvable ...

In Linux, Sep 26, 2021

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Proxy, Sep 25, 2021

Remove last N characters of a string in Bash

As with most things in IT, there is always more than one way to skin a cat. In today’s blog post, we are going to test out few ways on how we could remove last n characters of a strin...

In Linux, Sep 24, 2021

Protect files from being deleted in Linux

I’m going to start by saying we have all heard of these sudo rm -rf / horror stories on the Internet. There are a bunch of ways we could protect our servers from such accidents, which...

In Linux, Sep 22, 2021

How to search for a string in multiple files on Linux

These days there are a lot of code editors which can ease your life in terms of finding some particular string in multiple files or repo. The life will get complicated if you need to ...

In Linux, Sep 19, 2021

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

How to install Docker Compose on Debian 11

We previously saw how to install Docker on Debian 11. As a sequel, I’m going to round it off with the docker compose installation on Debian 11.

In Docker, Debian, Sep 15, 2021

How to check if your web application is under DDoS attack

Nowadays, most of the web applications are vulnerable and exposed on many kinds of attacks. One of them is a DDoS attack. There are a lot of services on the internet that are offering...

In DDOS, Sep 11, 2021

How to enable CORS in Nginx

If you are trying to make API calls, and you are getting the following error from Nginx: No Access-Control-Allow-Origin header is present on the requested resource you should definite...

In Nginx, Sep 07, 2021

List processes with high memory usage in Linux

There are situations where your web application or particular software installed on your machine takes a lot of time to load. The troubleshooting process may last long but however, yo...

In Linux, Sep 05, 2021

How to check if command succeeded in Linux

As a DevOps engineer, or any other Operation roles, we sometimes need to check if a Linux command succeeded. There are many reasons, for example: our internet connection failed, a VPN...

In Linux, Aug 29, 2021

How to install Nginx on Debian 11

Installing Nginx on Debian 11 is pretty easy and straightforward. This tutorial will show you how to install it and enable HTTP traffic on your Debian server.

In Nginx, Debian, Aug 22, 2021

How to install MongoDB on Rocky Linux 8

MongoDB has an attitude to store the data in BSON, which can be searched and indexed, with a way better performance. Installing MongoDB on Rocky Linux can additionally improve the sea...

In MongoDB, Rocky Linux, Aug 20, 2021

How to install Docker on Debian 11

Finally, Debian 11 is released on August 14th, 2021, and this version is marked as a stable version. This tutorial will show you the steps on how to install Docker on a new fresh Debi...

In Docker, Debian, Aug 18, 2021

Missing sites-available directory in Nginx

As part of the Nginx series, in today’s tutorial, we are going to see on how to add that missing sites-available subdirectory. The reason behind this, is because most of us have been ...

In Nginx, Aug 17, 2021

How to disable SELinux

You may face Nginx or Apache web server blocking issues even when your firewall is disabled. SELinux is a security engine that may block some calls or permissions on your server. So, ...

In Linux, Aug 16, 2021

How to set up Nginx reverse proxy for your application

Using Nginx reverse proxy could be very useful, especially if you are developing an application with a framework that can run its own server like Node.js, Python, Ruby on Rails, etc. ...

In Nginx, Aug 14, 2021

How to block visitors by country in Nginx

In some of mine previous posts, I wrote about how you can whitelist IPs in Nginx. In today’s tutorial, we are going to see how can we block specific countries in a few steps.

In Nginx, Aug 13, 2021

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Podman, Ubuntu, Aug 12, 2021

How to install Podman on Amazon Linux 2

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m going to show you how to install...

In Podman, AWS, Amazon Linux 2, Aug 10, 2021

How to whitelist IP addresses in Nginx

We all know what firewalls are for, but sometimes they can become a pain in the arse, and we all end up opening HTTP and HTTPS port by default. Let’s say we host multiple domains via ...

In Nginx, Aug 09, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

How to install PostgreSQL on Rocky Linux 8

Installing PostgreSQL on Rocky Linux follows the same procedure as MySQL. We need to enable the PostgreSQL module, install the desired version and enable the PostgreSQL service. Follo...

In PostgreSQL, Rocky Linux, Aug 01, 2021

How to install MySQL on Rocky Linux 8

Installing MySQL on Rocky Linux it’s quite easy and quick. A lot of today’s applications are using MySQL as a web database. MySQL is an open source database and offers a lot of features.

In MySQL, Rocky Linux, Jul 30, 2021

How to determine the correct number of max children processes for PHP-FPM

Most of the PHP developers are using Nginx with PHP-FPM as the most efficient approach. Most likely Nginx will throw PHP errors as the server reached the pm.max_children number. It me...

In PHP, Jul 28, 2021

How to configure DHCP to fix the network connectivity on Rocky Linux

Some RHEL distros can cause common networking configuration issues on the first installation, so you will not be able to update the packages on a server or browse external Websites fr...

In DHCP, Rocky Linux, Jul 26, 2021

How to install Apache on Rocky Linux 8

Apache is one of the most popular, open source web servers that allows you to host your web content on Internet. Apache can be installed easily and can run on any operating system. In...

In Apache, Rocky Linux, Jul 24, 2021

How to install Nginx on Rocky Linux 8

If you need to implement a reverse proxy, load balancer or mail proxy, Nginx is the best-suited web server that can manage all of these actions. This tutorial will explain, how to ins...

In Nginx, Rocky Linux, Jul 20, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

How to install Docker Compose on ARM64

In some of the previous posts I’ve covered how you can install Docker Compose on Linux distributions like Rocky Linux for example. It’s pretty easy to set it up, right?! Usually when ...

In Docker, Jul 12, 2021

How to install Ansible on Rocky Linux 8

If there is a need to simplify the deployments of your applications, manage your infrastructure servers, etc… you can achieve it with Ansible which is one of the most popular tool for...

In Ansible, Rocky Linux, Jul 11, 2021

How to install Docker Compose on Rocky Linux 8

Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. First, you need to make sure that you have installed Docker on your Rocky Linux machine.

In Docker, Rocky Linux, Jul 06, 2021

How to install Docker on Rocky Linux 8

In the early December last year, Red Hat took us all by surprise with the CentOS 8 End Of Life (EOL) announcement, that was scheduled for the end of 2021. In response to this, the ori...

In Docker, Rocky Linux, Jul 05, 2021

How to install Terraform on Rocky Linux 8

Finally, there is a replacement on the CentOS distro. The fresh and new Rocky Linux will replace the CentOS, so the CentOS team announces that they are going to focus on the CentOS St...

In Terraform, Rocky Linux, Jul 02, 2021

How to install Terraform on Ubuntu 20.04

All the cloud service providers have integrated and ease the way of using Terraform. So, using Terraform as infrastructure as code tool will efficiently minimize your code and speed u...

In Terraform, Ubuntu, Jun 25, 2021

How to install Ansible on Ubuntu

Ansible is an IT automation tool that can help you to simplify the deployments of your applications, efficiently manage your infrastructure servers, and provides a lot of features and...

In Ansible, Ubuntu, Jun 06, 2021

How to install Docker Compose on Ubuntu 19.04

Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker...

In Docker, Ubuntu, Dec 15, 2019

How to install Docker on Ubuntu 19.04

Following the steps below will let you realize that installing Docker on Ubuntu 19.04 is not that hard as it seems, so let’s see how you can do it.

In Docker, Ubuntu, Dec 13, 2019

How to install AWS CLI and setup multiple named profiles on Ubuntu

AWS CLI is an efficient and powerful tool cause it enables developers and DevOps people to have a full control over their AWS cloud services by executing commands on a specified line....

In AWS, Ubuntu, Oct 09, 2019

azure sql database

How to backup and restore an Azure SQL database using Azure CLI

You cannot think of a SQL Server Administration or any kind of relational and non-relational database administration without the two magic words: backup and restore. Backing up a data...

In Azure, Oct 17, 2019

How to rename an Azure SQL database using Azure CLI

As a part of an Azure SQL Database administration series, this post will be a followup from the last one, where I will write about renaming Azure SQL databases, which is kind of a com...

In Azure, Oct 14, 2019

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that I’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

passwords

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

random_password and multiple Terraform resource instances

random_password is a Terraform resource used for generating as the name suggests, random passwords which could be utilized for sensitive secret’s initialization of other resources – u...

In Terraform, Jun 21, 2022

Ansible user module and password hashing

As far as I know, there are two secure ways (discussable) you could include a password as part of the Ansible user module. Let’s go through it.

In Ansible, Apr 28, 2022

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

Ansible Vault password integration with Bitwarden

Ansible Vault encrypts Ansible data files mostly variables, so you could protect things such as passwords and keys. It uses a single password for encryption and decryption which initi...

In Ansible, Mar 13, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

How to generate random password from the CLI

There are a lot of ways to generate random passwords, starting from simple password generator sites found online to the most advanced password management solutions. Today’s topic will...

In Linux, Nov 27, 2021

How to recover lost admin password for an Azure SQL database using Azure CLI

A very common task that I’m used to as a DevOps engineer working in the cloud, is resetting forgotten or lost passwords for server or database access. Although one of the best practic...

In Azure, Oct 13, 2019

backup restore

How to restore an individual table in PostgreSQL

Backup and restore operations are convenient if we are working with small and medium-sized data. But, what happens when we need to restore a single table from a large database?! Most ...

In PostgreSQL, Feb 05, 2022

How to backup and restore a MySQL database

MySQL is one of the most popular open-source database engines. Manually backing up and restoring databases for whatever reasons could be found quite easy to execute, and we can see ho...

In MySQL, Jul 14, 2021

How to backup and restore a PostgreSQL database

As an open-source databases, PostgreSQL is in the top 3 most popularly used databases which often can be found as a managed service offered by the public cloud giants. In one of the p...

In PostgreSQL, Jul 09, 2021

How to backup and restore an Azure SQL database using Azure CLI

You cannot think of a SQL Server Administration or any kind of relational and non-relational database administration without the two magic words: backup and restore. Backing up a data...

In Azure, Oct 17, 2019

azure vm

Azure VMs Auto-shutdown

Talking about VMs shutdown operation, we got few ways we could do it in Azure: Stop VMs manually from the Portal. Running the az CLI command, described in How to easily Start, Stop,...

In Azure, Sep 08, 2021

Schedule automated Start and Stop for Azure VMs

Scheduling automated start and stop for Azure VMs is almost as good as provisioning and deprovisioning infrastructure on-demand, by using Infrastructure as Code (IaC) tools, like Terr...

In Azure, Sep 04, 2021

How to easily Start, Stop, Restart or Delete Azure VMs

Managing Azure Virtual Machines through the Portal could be pretty straightforward. But, it requires multiple steps using the GUI. For example, you’ll have to login to the Portal firs...

In Azure, Oct 28, 2019

azure cloud shell

How to upload files to Azure Cloud Shell

As the name says, Azure Cloud Shell is a browser-accessible shell, which is used for managing Azure resources. It comes with two types of command shells Bash and PowerShell. It also g...

In Azure, Nov 27, 2019

docker

Resolve 'Are you trying to mount a directory onto a file (or vice-versa)?' in Docker

The error message Are you trying to mount a directory onto a file (or vice-versa)? in Docker Compose typically occurs when there is a mismatch between the source and destination paths...

In Docker, Jul 18, 2023

Docker compose multiple files in different directories and relative paths

Working with multiple Docker Compose files stored in different directories could get nasty real quick especially if you hit that edge case scenario. So, what’s the lesson here?!

In Docker, Jul 16, 2023

Docker compose build with the pull option

Running docker compose build --pull could get some of us not so much bright people bamboozled. So, what does it actually do?

In Docker, Jul 14, 2023

About having both image and build as part of a Docker Compose file

If you haven’t asked yourself yet or if you don’t read docs as many others, what would happen if you specify both image and build as part of a Docker Compose file, here’s the catch.

In Docker, Jul 04, 2023

Multiple Docker Compose files with some overlap between them

Let’s say you have two Docker Compose files that needs to be up and running, however they have some overlapping services and configs. How does that work though?!

In Docker, Jul 02, 2023

Start a particular service with one or few Docker Compose files

For development and debugging purposes sometimes we just need to start a particular service or a set of them. Here’s how is done.

In Docker, Jun 30, 2023

Overwrite image tags with Docker Compose

To overwrite the image tag specified in the Docker Compose file and use a different tag from the CLI, you can use environment variables or override the service configuration.

In Docker, Jun 28, 2023

Run commands in a stopped Docker container

I guess we have all been there trying to debug a Docker container in exited state. Without further ado here are the steps required.

In Docker, Jun 20, 2023

Route requests between Docker Compose services via Nginx

Let’s say you have to route requests from Service A to Service B via a Nginx server being part of a Docker Compose service too. Here’s a guide on how you could start at least.

In Docker, Nginx, Jun 16, 2023

Docker Compose: expose vs ports

At first sight expose and ports kinda look basically the same thing right, but there is a subtle keep difference. Here’s the deal.

In Docker, Jun 14, 2023

Docker Compose and named volumes as non-root user

Sharing named volumes or bind mounts between Docker Compose services as unprivileged / non-root user has always been tricky. By default, they all run as root. So, here are few solutio...

In Docker, Jun 12, 2023

Docker tips: run containers as non-root users

Running a Dockerfile as a non-root user is a good practice for security reasons. By default, Docker runs containers with root privileges, but you can configure your Dockerfile to run ...

In Docker, May 31, 2023

Docker tips: set memory and CPU limits

Setting memory and CPU limits to Docker containers could prevent VM instances crashing – speaking from personal experience though. Here’s how to set it up.

In Docker, May 29, 2023

Docker tips: enable DOCKER_CONTENT_TRUST

Docker Content Trust (DCT) is a Docker security feature introduced to provide an additional layer of verification and trust for container images. It ensures the integrity and authenti...

In Docker, May 27, 2023

Docker tips: Use COPY --chown instead of RUN chown

Here’s a neat tip when building a Dockerfile: make sure to use the --chown parameter when COPY-ing files into the image instead of “wasting” another layer just for the RUN chown .. op...

In Docker, May 25, 2023

Docker build and GPG keys not being available

If you ever get in stuck building a Docker image with an error saying that a public key is not available, here’s the deal.

In Docker, May 21, 2023

Docker and missing sites-enabled in Nginx

It’s not a first time to face any gotchas while building Docker images, especially when dealing with symlinks, mount volumes, permissions, etcetera. So, here are few things to check w...

In Docker, Nginx, May 17, 2023

Map a single file into a Docker container

Whenever you try to map a single file into a container you might get a directory instead. Generally, this happens because of a host path being probably not valid or absolute. So, here...

In Docker, May 03, 2023

Export docker stats to a file

Exporting containers resource usage data to a file for a later debugging session is a good thing to have, as you don’t want to get SSH timeout-ed. So, here’s how to export Docker cont...

In Docker, May 01, 2023

How to Install Docker Compose on Ubuntu 23.04

To install Docker Compose on Ubuntu 23.04, you can either set up Docker’s repository on your Ubuntu system or install Compose manually. Here I will show you how to install the standal...

In Docker, Apr 30, 2023

How to Install Docker on Ubuntu 23.04

To install Docker on Ubuntu 23.04 you need to make sure that you meet the prerequisites. You need the 64-bit version of Ubuntu 23.04 and Docker Engine that is compatible with x86_64 (...

In Docker, Apr 28, 2023

Pull Docker image using SHA256 hash

Using Docker image hash over tags must be a better option from security standpoint although having a tag is much easier to remember and manage. And here’s how to pull images using has...

In Docker, Apr 23, 2023

Docker Compose and the rolling update trick

There are few tricks you could try if you want to achieve “100%” uptime / rolling update while using Docker Compose only. Not Docker Swarm, not K8s.

In Docker, Apr 19, 2023

Fix 'ERROR [internal] load metadata for docker.io/library/alpine:latest'

The ERROR [internal] load metadata for docker.io/library/alpin:latest error occurs when Docker fails to pull the latest metadata for the Alpine image from the Docker Hub registry. Let...

In Docker, Apr 16, 2023

How to Install Docker on Amazon Linux 2

The installation of Docker on Amazon Linux 2 consists of several simple steps, which will be listed below.

In Docker, AWS, Apr 10, 2023

Dockerizing a Go application

Dockerizing a Go(lang) application is kinda similar to what we did with the Python one.

In Docker, Mar 08, 2023

Dockerizing a Python application

Python is still one of most popular high-level languages for writing APIs and various scripts to this day. And, if you are still not dockerizing everything I don’t know what are you w...

In Docker, Mar 06, 2023

Docker 101: .dockerignore

A Dockerfile specifies the instructions for building a Docker image, which is essentially a packaged version of a software application along with its dependencies. However, when build...

In Docker, Mar 04, 2023

Dockerfile: RUN vs ENTRYPOINT vs CMD

We’ve all been trying our best to build the best possible, optimal Docker image out there. But, in order to do so, we need to understand and know the difference between one of most co...

In Docker, Mar 02, 2023

Docker: volumes vs bind mounts

There are two types of Docker volumes where data could be stored outside the container’s filesystem: volumes and bind mounts. So, what’s the difference?!

In Docker, Feb 28, 2023

Docker forms: SHELL vs EXEC

Shell and exec Docker forms present two different ways of specifying the command that need to run once the container is up and running. So, what’s the difference?!

In Docker, Feb 26, 2023

SonarQube How to Fix 'node.store.allow_mmapfs is no longer supported'

If you are trying to update SonarQube to a higher version you might get org.sonar.process.MessageException: Property 'node.store.allow_mmapfs' is no longer supported. Let’s see how to...

In Docker, SonarQube, Feb 21, 2023

502 Bad Gateway, Nginx reverse proxy and Docker containers in CentOS 7

Sometimes, setting up HTTP/HTTPS GCP Firewall rule and Nginx reverse proxy to point to the Docker container port mapped as 0.0.0.0:3000 could be not enough, even though running curl 0...

In Docker, Nginx, CentOS, Jan 31, 2023

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

How to fix Jenkins: 'dial unix /var/run/docker.sock: connect: permission denied'

Due to high Memory and CPU, I needed to spin up a new ec2 instance. After a while, tried to kick off my Jenkins CI/CD pipeline and got the following error: dial unix /var/run/docker.s...

In Jenkins, Jan 18, 2023

Docker: Error response from daemon: ... unauthorized: please use personal access token to login

Last week I’ve leveled up my security game by reviewing and updating all internet services that I’m using and subscribed to, to enable 2FA, including Docker. After few days, as I was ...

In Docker, Dec 04, 2022

Docker 101: image tags

Tagging Docker images helps by providing a distinctive identity to the image itself by adding certain metadata in the following format: <docker_username>/<image_name>:<...

In Docker, Dec 02, 2022

Docker: unauthorized: authentication required

It’s all fun and games to build and run Docker images on your local machine, but when it comes to pushing to a remote registry, the authentication itself is a pain to dealt with. And ...

In Docker, Nov 30, 2022

docker: Error response from daemon: failed to create shim task

Docker errors might not always be clear, so if you face: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start...

In Docker, Nov 27, 2022

How to create a Docker image from a running container

If you find yourself connecting to a Docker container, so you could investigate an issue, update a .conf file, or whatever other reason, you are doing an anti-pattern. However, if you...

In Docker, Nov 26, 2022

Mount a single file as a Docker volume

There are few ways to mount a single file as a Docker volume whatever you are trying to spin a single container using docker run or being a part of a Docker Compose stack. This scenar...

In Docker, Nov 25, 2022

Resolve: "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)"

As I was trying to get my Python Docker Compose stack up and running on my MacBook Pro, I’ve noticed the following message: Warning: The requested image's platform (linux/amd64) does ...

In Docker, Nov 23, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

How to fix Docker: unable to start container process: exec: '/bin/bash'

If you get this kind of error: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: ...

In Docker, Jul 26, 2022

Build Docker image using custom Dockerfile

Working with multiple environments sometimes requires multiple Dockerfiles to some degree. For instance, a dev environment Docker image not necessary be in need of a multi-stage Docke...

In Docker, Jul 25, 2022

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

Top command not found on Debian-based Docker container

Some of your Docker Debian-based containers can be killed due to heavy processes running inside the container. If your preferred choice is the top command, most likely you will get th...

In Docker, Debian, Jul 20, 2022

Docker Compose and UID / GID

Although you could set a user ID and group ID as part of a Docker image, let’s see how it can be done from Docker Compose too. I’ll use the following Docker Compose code part as an ex...

In Docker, May 14, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Resolve Docker's 'Version in docker-compose.yml is unsupported' error

Let’s take a look at the not so common Docker Compose error:"Configuration error - Version in "./docker-compose.yml" is unsupported.You might be seeing this error because you're using...

In Docker, Apr 20, 2022

Disable Redis persistence in Docker

Disabling Redis persistence in Docker could be a good thing tho, if you are hosting a development environment, running low on disks space and possibly can’t afford to scale. By defaul...

In Redis, Docker, Apr 12, 2022

How to execute commands inside Docker containers

Although it may seem like manually executing commands inside Docker containers could be considered as an antipattern, actually it might be useful for instance when debugging things in...

In Docker, Apr 08, 2022

Configure Docker logging driver with Grafana Loki

Grafana Loki is a log aggregation tool inspired by Prometheus, or simply put Prometheus for logs. In this tutorial I’m going to show you how to install and configure the Loki logging ...

In Docker, Apr 06, 2022

How to fix Docker's 'error while removing network <> has active endpoints'

In today’s post we are going to list a few solutions on how to deal with the following Docker network error: ERROR: error while removing network: network <> has active endpoints...

In Docker, Apr 04, 2022

Multiple Docker Compose files in the same directory

Having multiple Docker Compose files in the same directory clearly is not a good idea, although I could see the use case if you are working on multiple different projects with custom ...

In Docker, Mar 03, 2022

How to fix 'WARNING: Connection pool is full' in Docker Compose

If you have been working with Docker Compose stacks for a while, you might have come across the following warning message: WARNING: Connection pool is full, discarding connection <...

In Docker, Feb 23, 2022

How to install Docker Compose on Ubuntu 21.10

This article is strictly focused on installing docker-compose on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.

In Docker, Ubuntu, Feb 22, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

Resolve couldn't connect to docker daemon at http+docker //localhost - is it running?

Using Docker with a non-root user can cause issues connected with the Docker daemon. The Docker daemon binds to a Unix socket, so the Docker client will try to communicate to the daem...

In Docker, Feb 08, 2022

How to monitor and restart unhealthy Docker Containers

Last week, I wrote about How to restart a single container with Docker Compose. The approach is manual, hence will be repetitive and error-prone. And since we want to automate almost ...

In Docker, Jan 24, 2022

How to restart a single container with Docker Compose

Restarting Docker Compose stack (docker-compose restart) it’s pretty easy and convenient, and if you somehow screw up something, docker-compose down/up will take care of it. But, now ...

In Docker, Jan 22, 2022

Run Docker containers in the background

While running a docker container in detached mode d maybe you have experienced exiting the container immediately. Here I’m going to show you some ways how to keep it running in the ba...

In Docker, Jan 21, 2022

How to scale docker containers

When it comes working with a master - replica services Docker offers a scaling compose command which is very useful. Here I’m going to show you how to use it with an example.

In Docker, Jan 17, 2022

Docker vs Podman

2022 might be the year of DevOps alternatives, including cloud providers, CI/CD tools and even containers. Speaking of containers, Podman looks like a promising alternative to Docker....

In Docker, Podman, Jan 14, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

Install Docker on Windows 11 without Docker Desktop

As with Windows 10, let’s see how we could install Docker on Windows 11 without GUI.

In Docker, Windows 11, Dec 27, 2021

Docker as an alias for Podman

There is a quick hack to get started with Podman just in case you are not familiar with the syntax though.

In Docker, Podman, Dec 23, 2021

Scan Docker images for Apache Log4j2 vulnerability

Docker Hub already announced public Log4jShell detection which is now live on Docker Official Images. But for those of you who are still using some old or custom images, there is a wa...

In Docker, Apache Log4j2, Dec 20, 2021

Install Docker on Windows 10 without Docker Desktop

In today’s topic I’m going to cover on how to install and run Docker on Windows 10 without Docker Desktop. This means we’ll be using WSL (Windows Subsystem for Linux).

In Docker, Windows 10, Dec 13, 2021

Access host network from inside of a Docker container

This might be a really weird or edge case scenario, but what If we need to access host service(s) from inside a Docker container. For instance, we already have configured and running ...

In Docker, Dec 11, 2021

Expose vs Publish ports in Docker

The general idea for communication between microservices (whatever is HTTP, message or event-driven communication) is related to certain protocols and ports on which each microservice...

In Docker, Dec 07, 2021

How to install PHP Composer within Dockerfile

Dockerizing your PHP application probably would require some external commands within your base Docker image. That’s why you will need to have a Dockerfile and put all the additional ...

In Docker, PHP, Dec 04, 2021

How to fix Docker error: 'Cannot start service .. network $network-id not found

If you have already created a Docker Compose stack and you are trying to start/restart the containers, you may face Docker error: Cannot start service ..: network $network-id not foun...

In Docker, Nov 18, 2021

Assign static IP to a Docker container

There are two types of static IPs, public and private IP addresses. We all know the public IP Docker mapping by now, using Nginx and port mapping. Today we are going to see how can we...

In Docker, Oct 24, 2021

How to dump Elasticsearch index to S3 with Docker

Previously I’ve covered the topic around export and import the Elasticsearch index from one ES cluster to another. So now if you want to back up a particular index, instead of storing...

In Elasticsearch, Docker, AWS, Sep 21, 2021

How to export and import Elasticsearch Index with Docker

Synchronizing the ES index data between your prod, dev and local ES cluster environment is now achievable with Docker. Moving the index data, mapping or analyzer can be done through t...

In Elasticsearch, Docker, Sep 17, 2021

How to install Docker Compose on Debian 11

We previously saw how to install Docker on Debian 11. As a sequel, I’m going to round it off with the docker compose installation on Debian 11.

In Docker, Debian, Sep 15, 2021

Filter the output of the 'docker image ls' command

Sometimes using the filter flag as a part of the docker image ls command can be useful to figure out which images are taking space, which are dangling images or unused. In this tutori...

In Docker, Aug 26, 2021

How to search Docker Hub repositories from the CLI

If you want to search for a specific Docker image on Docker Hub there is a way to do this from the CLI. The docker search command will allow you to search Docker Hub from the CLI. It ...

In Docker, Aug 24, 2021

Docker Registry vs Docker Repository

Docker is one of that technologies that will probably stay for a while. In a matter of years, the IT world went from monolith to deploying applications on the edge in a couple of seco...

In Docker, Aug 23, 2021

How to install Docker on Debian 11

Finally, Debian 11 is released on August 14th, 2021, and this version is marked as a stable version. This tutorial will show you the steps on how to install Docker on a new fresh Debi...

In Docker, Debian, Aug 18, 2021

Clean up Docker space for Jenkins jobs

Managing and deploying complex infrastructure with Jenkins sometimes can cause job failure issues. For example, if you are working with microservices and all the deployments are going...

In Docker, Jenkins, Jul 15, 2021

How to install Docker Compose on ARM64

In some of the previous posts I’ve covered how you can install Docker Compose on Linux distributions like Rocky Linux for example. It’s pretty easy to set it up, right?! Usually when ...

In Docker, Jul 12, 2021

How to copy files and folders to and from Docker Containers

There are situations when you need to copy files/folders from the container’s file system to the local machine and vice versa. You can achieve that with Docker copy command. In this t...

In Docker, Jul 08, 2021

How to install Docker Compose on Rocky Linux 8

Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. First, you need to make sure that you have installed Docker on your Rocky Linux machine.

In Docker, Rocky Linux, Jul 06, 2021

How to install Docker on Rocky Linux 8

In the early December last year, Red Hat took us all by surprise with the CentOS 8 End Of Life (EOL) announcement, that was scheduled for the end of 2021. In response to this, the ori...

In Docker, Rocky Linux, Jul 05, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

Useful Docker and docker-compose commands

Working with Docker Compose in a development environment can be challenging sometimes for the newcomers, unless you got the time on your hands to google everything from stack overflow...

In Docker, Mar 21, 2021

Build a Docker image and push it to Docker Hub

This tutorial is aimed to show you how to build and push an image to the Docker Hub repo. Let’s jump on the steps bellow.

In Docker, Feb 21, 2021

How to install Docker Compose on Ubuntu 19.04

Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker...

In Docker, Ubuntu, Dec 15, 2019

How to install Docker on Ubuntu 19.04

Following the steps below will let you realize that installing Docker on Ubuntu 19.04 is not that hard as it seems, so let’s see how you can do it.

In Docker, Ubuntu, Dec 13, 2019

containers

Resolve 'Are you trying to mount a directory onto a file (or vice-versa)?' in Docker

The error message Are you trying to mount a directory onto a file (or vice-versa)? in Docker Compose typically occurs when there is a mismatch between the source and destination paths...

In Docker, Jul 18, 2023

Docker compose multiple files in different directories and relative paths

Working with multiple Docker Compose files stored in different directories could get nasty real quick especially if you hit that edge case scenario. So, what’s the lesson here?!

In Docker, Jul 16, 2023

Docker compose build with the pull option

Running docker compose build --pull could get some of us not so much bright people bamboozled. So, what does it actually do?

In Docker, Jul 14, 2023

How to Install Podman on Ubuntu 23.04

The Podman installation on Ubuntu 23.04 is quick and easy. Let’s take a look.

In Podman, Ubuntu, May 26, 2023

Pull Docker image using SHA256 hash

Using Docker image hash over tags must be a better option from security standpoint although having a tag is much easier to remember and manage. And here’s how to pull images using has...

In Docker, Apr 23, 2023

Dockerizing a Go application

Dockerizing a Go(lang) application is kinda similar to what we did with the Python one.

In Docker, Mar 08, 2023

Dockerizing a Python application

Python is still one of most popular high-level languages for writing APIs and various scripts to this day. And, if you are still not dockerizing everything I don’t know what are you w...

In Docker, Mar 06, 2023

Docker 101: .dockerignore

A Dockerfile specifies the instructions for building a Docker image, which is essentially a packaged version of a software application along with its dependencies. However, when build...

In Docker, Mar 04, 2023

Dockerfile: RUN vs ENTRYPOINT vs CMD

We’ve all been trying our best to build the best possible, optimal Docker image out there. But, in order to do so, we need to understand and know the difference between one of most co...

In Docker, Mar 02, 2023

Docker: volumes vs bind mounts

There are two types of Docker volumes where data could be stored outside the container’s filesystem: volumes and bind mounts. So, what’s the difference?!

In Docker, Feb 28, 2023

Docker forms: SHELL vs EXEC

Shell and exec Docker forms present two different ways of specifying the command that need to run once the container is up and running. So, what’s the difference?!

In Docker, Feb 26, 2023

Docker: Error response from daemon: ... unauthorized: please use personal access token to login

Last week I’ve leveled up my security game by reviewing and updating all internet services that I’m using and subscribed to, to enable 2FA, including Docker. After few days, as I was ...

In Docker, Dec 04, 2022

Docker 101: image tags

Tagging Docker images helps by providing a distinctive identity to the image itself by adding certain metadata in the following format: <docker_username>/<image_name>:<...

In Docker, Dec 02, 2022

Docker: unauthorized: authentication required

It’s all fun and games to build and run Docker images on your local machine, but when it comes to pushing to a remote registry, the authentication itself is a pain to dealt with. And ...

In Docker, Nov 30, 2022

docker: Error response from daemon: failed to create shim task

Docker errors might not always be clear, so if you face: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start...

In Docker, Nov 27, 2022

How to create a Docker image from a running container

If you find yourself connecting to a Docker container, so you could investigate an issue, update a .conf file, or whatever other reason, you are doing an anti-pattern. However, if you...

In Docker, Nov 26, 2022

Mount a single file as a Docker volume

There are few ways to mount a single file as a Docker volume whatever you are trying to spin a single container using docker run or being a part of a Docker Compose stack. This scenar...

In Docker, Nov 25, 2022

Resolve: "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)"

As I was trying to get my Python Docker Compose stack up and running on my MacBook Pro, I’ve noticed the following message: Warning: The requested image's platform (linux/amd64) does ...

In Docker, Nov 23, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

How to fix Docker: unable to start container process: exec: '/bin/bash'

If you get this kind of error: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: ...

In Docker, Jul 26, 2022

Build Docker image using custom Dockerfile

Working with multiple environments sometimes requires multiple Dockerfiles to some degree. For instance, a dev environment Docker image not necessary be in need of a multi-stage Docke...

In Docker, Jul 25, 2022

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

Top command not found on Debian-based Docker container

Some of your Docker Debian-based containers can be killed due to heavy processes running inside the container. If your preferred choice is the top command, most likely you will get th...

In Docker, Debian, Jul 20, 2022

Install Podman Compose on Alpine Linux

If you plan to deal with Podman Compose on Alpine Linux I will show you the installation part. The aim of this tutorial is to show you how to install Podman Compose on Alpine Linux.

In Podman, Alpine Linux, Jun 14, 2022

Install Podman on Alpine Linux

Podman, as a decent Docker replacement has support from the Alpine community repository and can be installed as a podman package. Let’s see how to install Podman on Alpine Linux.

In Podman, Alpine Linux, Jun 12, 2022

Install Podman Compose on Ubuntu 22.04

As Podman is ramping up within the containers world, the need for Podman Compose is getting higher as well. Here I’m going to show you three ways on how to install Podman Compose on U...

In Podman, Ubuntu, May 19, 2022

Docker Compose and UID / GID

Although you could set a user ID and group ID as part of a Docker image, let’s see how it can be done from Docker Compose too. I’ll use the following Docker Compose code part as an ex...

In Docker, May 14, 2022

Install Podman Compose on Debian 11

The growth and use of Podman is really raging higher and higher. I hope one day it will be on the same level as Docker is today. Now, assuming that you have Podman installed on Debian...

In Podman, Debian, May 09, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Resolve Docker's 'Version in docker-compose.yml is unsupported' error

Let’s take a look at the not so common Docker Compose error:"Configuration error - Version in "./docker-compose.yml" is unsupported.You might be seeing this error because you're using...

In Docker, Apr 20, 2022

Disable Redis persistence in Docker

Disabling Redis persistence in Docker could be a good thing tho, if you are hosting a development environment, running low on disks space and possibly can’t afford to scale. By defaul...

In Redis, Docker, Apr 12, 2022

Configure Docker logging driver with Grafana Loki

Grafana Loki is a log aggregation tool inspired by Prometheus, or simply put Prometheus for logs. In this tutorial I’m going to show you how to install and configure the Loki logging ...

In Docker, Apr 06, 2022

How to fix Docker's 'error while removing network <> has active endpoints'

In today’s post we are going to list a few solutions on how to deal with the following Docker network error: ERROR: error while removing network: network <> has active endpoints...

In Docker, Apr 04, 2022

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

Multiple Docker Compose files in the same directory

Having multiple Docker Compose files in the same directory clearly is not a good idea, although I could see the use case if you are working on multiple different projects with custom ...

In Docker, Mar 03, 2022

How to install Podman on Ubuntu 21.10

In this tutorial, I’m going to show how to install Podman on Ubuntu 21.10 using the default Ubuntu 21.10 packages. Previously we clarified that installing Podman with the default Ubun...

In Podman, Ubuntu, Feb 28, 2022

How to fix 'WARNING: Connection pool is full' in Docker Compose

If you have been working with Docker Compose stacks for a while, you might have come across the following warning message: WARNING: Connection pool is full, discarding connection <...

In Docker, Feb 23, 2022

How to install Docker Compose on Ubuntu 21.10

This article is strictly focused on installing docker-compose on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.

In Docker, Ubuntu, Feb 22, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

Resolve couldn't connect to docker daemon at http+docker //localhost - is it running?

Using Docker with a non-root user can cause issues connected with the Docker daemon. The Docker daemon binds to a Unix socket, so the Docker client will try to communicate to the daem...

In Docker, Feb 08, 2022

How to monitor and restart unhealthy Docker Containers

Last week, I wrote about How to restart a single container with Docker Compose. The approach is manual, hence will be repetitive and error-prone. And since we want to automate almost ...

In Docker, Jan 24, 2022

How to restart a single container with Docker Compose

Restarting Docker Compose stack (docker-compose restart) it’s pretty easy and convenient, and if you somehow screw up something, docker-compose down/up will take care of it. But, now ...

In Docker, Jan 22, 2022

Run Docker containers in the background

While running a docker container in detached mode d maybe you have experienced exiting the container immediately. Here I’m going to show you some ways how to keep it running in the ba...

In Docker, Jan 21, 2022

Multiple ways to run Kubernetes clusters locally

Kubernetes, the most popular container orchestration platform out there, needs no introduction. Let’s explore a couple of ways and tools on deploying K8s clusters on your local machine.

In Kubernetes, Jan 20, 2022

How to scale docker containers

When it comes working with a master - replica services Docker offers a scaling compose command which is very useful. Here I’m going to show you how to use it with an example.

In Docker, Jan 17, 2022

How to install Podman Compose on CentOS 7

When it comes to installing podman-compose on CentOS 7 it follows the same procedure as on the other RHEL-based distros and there are three ways to achieve it. You only need to make s...

In Podman, CentOS, Jan 15, 2022

Docker vs Podman

2022 might be the year of DevOps alternatives, including cloud providers, CI/CD tools and even containers. Speaking of containers, Podman looks like a promising alternative to Docker....

In Docker, Podman, Jan 14, 2022

Install Podman Compose on Ubuntu 20.04

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and ...

In Podman, Ubuntu, Jan 09, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

Install Podman on Windows 11

The installation guide for running Podman on Windows 11 follows the same idea as Install Docker on Windows 11 without Docker Desktop.

In Podman, Windows 11, Dec 31, 2021

Install Docker on Windows 11 without Docker Desktop

As with Windows 10, let’s see how we could install Docker on Windows 11 without GUI.

In Docker, Windows 11, Dec 27, 2021

Docker as an alias for Podman

There is a quick hack to get started with Podman just in case you are not familiar with the syntax though.

In Docker, Podman, Dec 23, 2021

Scan Docker images for Apache Log4j2 vulnerability

Docker Hub already announced public Log4jShell detection which is now live on Docker Official Images. But for those of you who are still using some old or custom images, there is a wa...

In Docker, Apache Log4j2, Dec 20, 2021

Install Podman on Windows 10

The trick for installation and running Podman on Windows 10 follows the same idea as Install Docker on Windows 10 without Docker Desktop.

In Podman, Windows 10, Dec 15, 2021

Install Docker on Windows 10 without Docker Desktop

In today’s topic I’m going to cover on how to install and run Docker on Windows 10 without Docker Desktop. This means we’ll be using WSL (Windows Subsystem for Linux).

In Docker, Windows 10, Dec 13, 2021

Access host network from inside of a Docker container

This might be a really weird or edge case scenario, but what If we need to access host service(s) from inside a Docker container. For instance, we already have configured and running ...

In Docker, Dec 11, 2021

Expose vs Publish ports in Docker

The general idea for communication between microservices (whatever is HTTP, message or event-driven communication) is related to certain protocols and ports on which each microservice...

In Docker, Dec 07, 2021

How to install PHP Composer within Dockerfile

Dockerizing your PHP application probably would require some external commands within your base Docker image. That’s why you will need to have a Dockerfile and put all the additional ...

In Docker, PHP, Dec 04, 2021

How to fix Docker error: 'Cannot start service .. network $network-id not found

If you have already created a Docker Compose stack and you are trying to start/restart the containers, you may face Docker error: Cannot start service ..: network $network-id not foun...

In Docker, Nov 18, 2021

How to install Nomad on Fedora-based distro

Previously I covered the Nomad installation on the most frequently used Linux distros: Amazon Linux 2 Debian RHEL

In Nomad, Fedora, Oct 27, 2021

Assign static IP to a Docker container

There are two types of static IPs, public and private IP addresses. We all know the public IP Docker mapping by now, using Nginx and port mapping. Today we are going to see how can we...

In Docker, Oct 24, 2021

How to install Nomad on RHEL-based distro

As I mentioned in the previous topics I’m going to cover the Nomad installation on all popular Linux distros. So this tutorial will be aimed to show you how to install Nomad on RHEL-b...

In Nomad, RHEL, Oct 17, 2021

How to install Nomad on Debian-based distro

As a sequel of the Nomad installation series today I’m going to shed some light on how to install Nomad on every Debian-based distro. The installation process is quick and easy and th...

In Nomad, Debian, Oct 15, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

How to dump Elasticsearch index to S3 with Docker

Previously I’ve covered the topic around export and import the Elasticsearch index from one ES cluster to another. So now if you want to back up a particular index, instead of storing...

In Elasticsearch, Docker, AWS, Sep 21, 2021

How to export and import Elasticsearch Index with Docker

Synchronizing the ES index data between your prod, dev and local ES cluster environment is now achievable with Docker. Moving the index data, mapping or analyzer can be done through t...

In Elasticsearch, Docker, Sep 17, 2021

How to install Docker Compose on Debian 11

We previously saw how to install Docker on Debian 11. As a sequel, I’m going to round it off with the docker compose installation on Debian 11.

In Docker, Debian, Sep 15, 2021

Scale AKS user node pool to 0

In case you missed Configure AKS automatic upgrades.In today’s post, we are going to see how can we be cost-effective, by scaling the User node pool to 0.

In Azure, Kubernetes, Sep 06, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

Filter the output of the 'docker image ls' command

Sometimes using the filter flag as a part of the docker image ls command can be useful to figure out which images are taking space, which are dangling images or unused. In this tutori...

In Docker, Aug 26, 2021

How to search Docker Hub repositories from the CLI

If you want to search for a specific Docker image on Docker Hub there is a way to do this from the CLI. The docker search command will allow you to search Docker Hub from the CLI. It ...

In Docker, Aug 24, 2021

Docker Registry vs Docker Repository

Docker is one of that technologies that will probably stay for a while. In a matter of years, the IT world went from monolith to deploying applications on the edge in a couple of seco...

In Docker, Aug 23, 2021

How to install Docker on Debian 11

Finally, Debian 11 is released on August 14th, 2021, and this version is marked as a stable version. This tutorial will show you the steps on how to install Docker on a new fresh Debi...

In Docker, Debian, Aug 18, 2021

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Podman, Ubuntu, Aug 12, 2021

How to install Podman on Amazon Linux 2

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m going to show you how to install...

In Podman, AWS, Amazon Linux 2, Aug 10, 2021

Clean up Docker space for Jenkins jobs

Managing and deploying complex infrastructure with Jenkins sometimes can cause job failure issues. For example, if you are working with microservices and all the deployments are going...

In Docker, Jenkins, Jul 15, 2021

How to install Docker Compose on ARM64

In some of the previous posts I’ve covered how you can install Docker Compose on Linux distributions like Rocky Linux for example. It’s pretty easy to set it up, right?! Usually when ...

In Docker, Jul 12, 2021

How to copy files and folders to and from Docker Containers

There are situations when you need to copy files/folders from the container’s file system to the local machine and vice versa. You can achieve that with Docker copy command. In this t...

In Docker, Jul 08, 2021

How to install Docker Compose on Rocky Linux 8

Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. First, you need to make sure that you have installed Docker on your Rocky Linux machine.

In Docker, Rocky Linux, Jul 06, 2021

How to install Docker on Rocky Linux 8

In the early December last year, Red Hat took us all by surprise with the CentOS 8 End Of Life (EOL) announcement, that was scheduled for the end of 2021. In response to this, the ori...

In Docker, Rocky Linux, Jul 05, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

Useful Docker and docker-compose commands

Working with Docker Compose in a development environment can be challenging sometimes for the newcomers, unless you got the time on your hands to google everything from stack overflow...

In Docker, Mar 21, 2021

Build a Docker image and push it to Docker Hub

This tutorial is aimed to show you how to build and push an image to the Docker Hub repo. Let’s jump on the steps bellow.

In Docker, Feb 21, 2021

How to install Docker Compose on Ubuntu 19.04

Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker...

In Docker, Ubuntu, Dec 15, 2019

How to install Docker on Ubuntu 19.04

Following the steps below will let you realize that installing Docker on Ubuntu 19.04 is not that hard as it seems, so let’s see how you can do it.

In Docker, Ubuntu, Dec 13, 2019

ubuntu 19.04

How to install Docker Compose on Ubuntu 19.04

Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker...

In Docker, Ubuntu, Dec 15, 2019

How to install Docker on Ubuntu 19.04

Following the steps below will let you realize that installing Docker on Ubuntu 19.04 is not that hard as it seems, so let’s see how you can do it.

In Docker, Ubuntu, Dec 13, 2019

docker-compose

Docker Compose and UID / GID

Although you could set a user ID and group ID as part of a Docker image, let’s see how it can be done from Docker Compose too. I’ll use the following Docker Compose code part as an ex...

In Docker, May 14, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Resolve Docker's 'Version in docker-compose.yml is unsupported' error

Let’s take a look at the not so common Docker Compose error:"Configuration error - Version in "./docker-compose.yml" is unsupported.You might be seeing this error because you're using...

In Docker, Apr 20, 2022

Multiple Docker Compose files in the same directory

Having multiple Docker Compose files in the same directory clearly is not a good idea, although I could see the use case if you are working on multiple different projects with custom ...

In Docker, Mar 03, 2022

How to fix 'WARNING: Connection pool is full' in Docker Compose

If you have been working with Docker Compose stacks for a while, you might have come across the following warning message: WARNING: Connection pool is full, discarding connection <...

In Docker, Feb 23, 2022

How to install Docker Compose on Ubuntu 21.10

This article is strictly focused on installing docker-compose on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.

In Docker, Ubuntu, Feb 22, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

Resolve couldn't connect to docker daemon at http+docker //localhost - is it running?

Using Docker with a non-root user can cause issues connected with the Docker daemon. The Docker daemon binds to a Unix socket, so the Docker client will try to communicate to the daem...

In Docker, Feb 08, 2022

How to monitor and restart unhealthy Docker Containers

Last week, I wrote about How to restart a single container with Docker Compose. The approach is manual, hence will be repetitive and error-prone. And since we want to automate almost ...

In Docker, Jan 24, 2022

How to restart a single container with Docker Compose

Restarting Docker Compose stack (docker-compose restart) it’s pretty easy and convenient, and if you somehow screw up something, docker-compose down/up will take care of it. But, now ...

In Docker, Jan 22, 2022

How to scale docker containers

When it comes working with a master - replica services Docker offers a scaling compose command which is very useful. Here I’m going to show you how to use it with an example.

In Docker, Jan 17, 2022

How to fix Docker error: 'Cannot start service .. network $network-id not found

If you have already created a Docker Compose stack and you are trying to start/restart the containers, you may face Docker error: Cannot start service ..: network $network-id not foun...

In Docker, Nov 18, 2021

How to install Docker Compose on Debian 11

We previously saw how to install Docker on Debian 11. As a sequel, I’m going to round it off with the docker compose installation on Debian 11.

In Docker, Debian, Sep 15, 2021

How to install Docker Compose on ARM64

In some of the previous posts I’ve covered how you can install Docker Compose on Linux distributions like Rocky Linux for example. It’s pretty easy to set it up, right?! Usually when ...

In Docker, Jul 12, 2021

How to install Docker Compose on Rocky Linux 8

Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. First, you need to make sure that you have installed Docker on your Rocky Linux machine.

In Docker, Rocky Linux, Jul 06, 2021

Useful Docker and docker-compose commands

Working with Docker Compose in a development environment can be challenging sometimes for the newcomers, unless you got the time on your hands to google everything from stack overflow...

In Docker, Mar 21, 2021

How to install Docker Compose on Ubuntu 19.04

Installing Docker Compose on Ubuntu 19.04 will get some benefits in terms of the procedure of starting multiple Docker containers, creating volumes, etc. But, before installing Docker...

In Docker, Ubuntu, Dec 15, 2019

docker hub

How to search Docker Hub repositories from the CLI

If you want to search for a specific Docker image on Docker Hub there is a way to do this from the CLI. The docker search command will allow you to search Docker Hub from the CLI. It ...

In Docker, Aug 24, 2021

Build a Docker image and push it to Docker Hub

This tutorial is aimed to show you how to build and push an image to the Docker Hub repo. Let’s jump on the steps bellow.

In Docker, Feb 21, 2021

docker images

Build Docker image using custom Dockerfile

Working with multiple environments sometimes requires multiple Dockerfiles to some degree. For instance, a dev environment Docker image not necessary be in need of a multi-stage Docke...

In Docker, Jul 25, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

Filter the output of the 'docker image ls' command

Sometimes using the filter flag as a part of the docker image ls command can be useful to figure out which images are taking space, which are dangling images or unused. In this tutori...

In Docker, Aug 26, 2021

Build a Docker image and push it to Docker Hub

This tutorial is aimed to show you how to build and push an image to the Docker Hub repo. Let’s jump on the steps bellow.

In Docker, Feb 21, 2021

container registry

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

How to search Docker Hub repositories from the CLI

If you want to search for a specific Docker image on Docker Hub there is a way to do this from the CLI. The docker search command will allow you to search Docker Hub from the CLI. It ...

In Docker, Aug 24, 2021

Docker Registry vs Docker Repository

Docker is one of that technologies that will probably stay for a while. In a matter of years, the IT world went from monolith to deploying applications on the edge in a couple of seco...

In Docker, Aug 23, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

Build a Docker image and push it to Docker Hub

This tutorial is aimed to show you how to build and push an image to the Docker Hub repo. Let’s jump on the steps bellow.

In Docker, Feb 21, 2021

aws ecs

Restart ECS tasks with --force-new-deployment

If you want to update your currently running ECS tasks and launch new ones, there is a cool option --force-new-deployment which will start a new deployment of the service and recycle ...

In AWS, Jul 14, 2022

How to drain an ECS instance

While troubleshooting the ECS cluster you may notice some EC2 instances might be unhealthy due to some processes being in a stuck state. Here I’m going to show how to drain an ECS ins...

In AWS, Oct 29, 2021

How to get private IP address of Fargate ECS task with metadata

Previously I’ve explained How to SSH into an AWS ECS Fargate-managed container. In this tutorial, I will cover some steps on how can you get the private IP address of a Fargate ECS co...

In AWS, Sep 13, 2021

Define the CPU and memory values for tasks hosted on Fargate

Migrating your ec2 instances on ECS to Fargate will let you focus on building applications instead of managing servers. Maybe you will ask yourself, which size do you need to pick up ...

In AWS, Sep 09, 2021

How to remove ECS task definitions

For those who have experience with AWS ECS, we all know how frustrating is sometimes that we just can’t delete task definitions. The only option is to update all task definition revis...

In AWS, Aug 25, 2021

How to join EC2 instance to ECS cluster

AWS ECS is a container orchestration tool, and it could be a great starting point as a beginner DevOps engineer before jumping on the Kubernetes hype train. Using an Auto Scaling grou...

In AWS, Jul 25, 2021

SSH into an AWS ECS Fargate-managed container

Managing servers from the developers’ side causes difficulties. To avoid such situations AWS offers Fargate, the new compute engine which will manage your ECS cluster depending on you...

In SSH, AWS, Jun 22, 2021

How to fix ECS CloudFormation template if it's stuck in the rollback state

If your microservices are using ECS services and the deployments are going through CloudFormation, that sometimes can cause weird issues. For example, if there is an application error...

In AWS, Mar 24, 2021

cloudformation

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

How to create an S3 bucket through AWS CloudFormation

Deploying your infrastructure through CloudFormation as an infrastructure as code tool can cause some murky situations as a beginner because AWS is facing a lack of CloudFormation doc...

In AWS, Oct 03, 2021

How to fix ECS CloudFormation template if it's stuck in the rollback state

If your microservices are using ECS services and the deployments are going through CloudFormation, that sometimes can cause weird issues. For example, if there is an application error...

In AWS, Mar 24, 2021

iac

Deploy GCP CDN with Terraform

Choosing between various CDNs and deploying them has never been easier. In this tutorial, you are going to see how to deploy a Content Delivery Network (CDN) on the Google Cloud Platf...

In GCP, Terraform, Mar 30, 2023

Easy login to GCP VM instances using IAP

IAP or Identity-Aware Proxy, is a GCP service that allows for secure and fine-grained control access mostly to cloud resources such as VMs and Kubernetes clusters. Here I’m going to s...

In GCP, Mar 24, 2023

Resolve GCP googleapi Error 400: `Unparseable iamMember` in Terraform

Managing GCP infrastructure with Terraform is an uphill battle, especially if you are not familiar with any other cloud, and how they work. So, here’s my error of the week that I got ...

In GCP, Terraform, Mar 20, 2023

Terraform output GCP Service Account private key as plain JSON

Right of the bat, using GCP Service Accounts (SA) is greatly not recommended. This comes from GCP though. Service account keys are not managed properly, and present a security risk. I...

In Terraform, GCP, Feb 02, 2023

IaC vs GitOps: How they differ?

This is a good DevOps interview question: “What’s the differences between IaC and GitOps?” I could easily say that IaC carries the torch for Configuration Management while GitOps is t...

In IaC, Dec 22, 2022

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

How to install Terraform on CentOS 9 Stream

There are two ways to install Terraform on CentOS 9 Stream. Through Terraform Repository. Manually.

In Terraform, CentOS, Aug 25, 2022

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Run local commands and scripts with Terraform

Every once in a while, using built-in Terraform modules is just not enough. From time to time as new cloud features are developed and released, there is no native support yet, so it a...

In Terraform, Aug 06, 2022

Get current working directory name in Terraform

Another probably valuable Terraform nugget to share. Suppose that you want to get the current working directory name only for some reason. There are few helpful built-in references an...

In Terraform, Aug 04, 2022

Enable/Disable resources conditionally in Terraform

Since there isn’t any resource_enabled = false feature developed by Terraform yet, here’s a quick hack to enable / disable resources.

In Terraform, Aug 02, 2022

Get Azure AD Microsoft Graph API Delegated / Application permission IDs in Terraform

Getting Microsoft Graph API Delegated and Application permission IDs are definitely hard to find, if you are doing things right – the programmatic way.

In Terraform, Azure, Jul 31, 2022

google_project_iam_binding removes GCP compute engine default service accounts from IAM principals

By default, once you enable the Compute Engine API in GCP, two Google-managed service account principals will be created Compute Engine default service account and Google APIs service...

In GCP, Terraform, Jul 13, 2022

'Failed to install provider ... doesn't match checksums from dependency lock file' error in Terraform

For today’s Terraform error of the week series we are going to take a look at the following one:│ Error: Failed to install provider│ │ Error while installing terra-farm/xenorchestra v...

In Terraform, Jul 11, 2022

Terraform output with loops: count and for_each

It’s not a new thing to loop through Terraform outputs though, so here are a few solutions that could help since count can’t be used as part of the output itself.

In Terraform, Jul 09, 2022

Migrating Terraform state the other way around: remote to local

Migrating Terraform state to a remote location such as a cloud object storage is a no-brainer since it solves the shared access to state challenge when working with multiple members a...

In Terraform, Jul 07, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

'data could not be decoded from the state: unsupported attribute' error in Terraform

Another Terraform error from the vault, this time being:Error: Invalid resource instance data in state .. data could not be decoded from the state: unsupported attribute "manage_run_t...

In Terraform, Jul 03, 2022

GitHub EMU external groups with Terraform

GitHub EMU (Enterprise Managed Users) in general allows users to manage their enterprise members through IdPs (identity providers). Azure Active Directory and Okta are the only ones s...

In GitHub, Terraform, Jul 01, 2022

GCP Service Account impersonation with Terraform

The idea of GCP service account impersonation is to run and deploy Terraform infrastructure without the need of using service account keys as it introduces security risks along the wa...

In GCP, Terraform, Jun 29, 2022

Enable Google APIs with GCP and Terraform

Terraforming GCP projects from scratch could be a lot of hustle and bustle as you need to enable almost every freaking Google service (API) per project. That’s probably first and fore...

In GCP, Terraform, Jun 27, 2022

Grant Azure AD Admin Consent programmatically (with Terraform)

Admin Consent by definition enables granting access to Azure-registered applications that requires admin approval securely.

In Azure, Terraform, Jun 25, 2022

Escape PowerShell's double quotes in Terraform

To my Windows-PowerShell-Terraform-Azure users out there, I just want to share a quick nugget on how to escape the annoying double quotes.

In Terraform, PowerShell, Jun 23, 2022

random_password and multiple Terraform resource instances

random_password is a Terraform resource used for generating as the name suggests, random passwords which could be utilized for sensitive secret’s initialization of other resources – u...

In Terraform, Jun 21, 2022

'Invalid character encoding' error in Terraform

Another ez solution as part of the Terraform issue series. This time being the following one:╷│ Error: Invalid character encoding││ on providers.tf line 1:│ 1: ��provider "aws" {...

In Terraform, Jun 19, 2022

Warning: Redundant ignore_changes element in Terraform

Besides some new cool features introduced in Terraform v1.2.0 like precondition and postcondition check blocks – a new warning message was part of the release as well. While I was try...

In Terraform, Jun 17, 2022

'Argument or block definition required' error in Terraform

Continuing on my Terraform issues journey, I’m going to try to help you with resolving yet another common TF error:╷│ Error: Argument or block definition required││ on providers.tf ...

In Terraform, Jun 15, 2022

'Saved plan is stale' error in Terraform

Today I’m going to show you a quick solution on how to resolve just another TF error:╷│ Error: Saved plan is stale│ │ The given plan file can no longer be applied because the state wa...

In Terraform, Jun 13, 2022

'Failed to load tfplan as a plan file zip: not a valid zip file' error in Terraform

If you have ever tried to terraform apply tfplan.txt with tfplan.txt being a plain text terraform plan command output file (or even tfplan.tf), you’ll get the following error message:...

In Terraform, Jun 11, 2022

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

'too many command line arguments' error in Terraform

Error: too many command line arguments is one more common error which obviously points out an issue related to arguments not being interpreted correctly. Although there’s no universal...

In Terraform, Jun 07, 2022

'terraform plan' in plain text output (the right way)

Following up to the previous post terraform plan the right way with intentions to keep things simple and clean as possible, I’ll try to describe how to get a terraform plan plain text...

In Terraform, Jun 05, 2022

Install Terraform on Alpine Linux

As a small distro Alpine Linux doesn’t have huge support regarding the APK Alpine system manager package. So today I’ve decided to show you how to install Terraform on Alpine Linux.

In Terraform, Alpine Linux, Jun 04, 2022

'terraform plan' the right way

terraform plan assess the current TF configuration to decide whatever the desired state is up-to-date by comparing it with the current one, thus creating a so-called plan with all pen...

In Terraform, Jun 03, 2022

'Invalid character' error in Terraform

Yet another Terraform error-related post. For any other Terraform-related issues, browse by category here.

In Terraform, Jun 01, 2022

'Failed to install provider unsuccessful request to 403 forbidden' error in Terraform

On today’s menu we got yet another TF error to resolve. For any other Terraform-related issues, browse by category here.

In Terraform, May 24, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

required_providers vs provider in Terraform

Terraform providers are TF plugins that abstract external APIs, mostly cloud provider APIs. These providers enable the user to easily manage their cloud environments by exposing resou...

In Terraform, May 20, 2022

'Output refers to sensitive values' error in Terraform

Before Terraform ver. 0.14 you could have undoubtedly leaked any secret as being a part of an output value. This usually happens in a CI/CD pipeline. These days Terraform will throw a...

In Terraform, May 18, 2022

Show sensitive output values in Terraform

Starting from Terraform version 0.14 the output values marked as sensitive, are being obscured. I’ll take the following TF output code block as an example:output "cloudflare_access_se...

In Terraform, May 16, 2022

Resolve `Resource handler returned message: Model validation failed (#/ContainerDefinitions/0/Environment: array items are not unique)` error in CloudFormation

While updating some of my CloudFormation templates I stumbled upon the following error:Resource handler returned message: "Model validation failed (#/ContainerDefinitions/0/Environmen...

In AWS, May 11, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

How to attach AWS managed policy to an IAM role in Terraform

AWS Managed Policies are IAM policies created and managed by AWS. Today I’m going to show you how to attach a managed policy in Terraform.

In Terraform, Mar 05, 2022

How to install Terragrunt on CentOS 7

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

In Terragrunt, CentOS, Jan 27, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

Refreshing Terraform state

Refreshing Terraform state is done by adding the -refresh-only flag (since terraform refresh is deprecated) when running plan and apply operations. To start off, what does it mean, an...

In Terraform, Dec 09, 2021

How to install Terragrunt on Ubuntu

Working with Terragrunt as a Terraform wrapper will ease things and simplify the Terraform templates. Here I will show you how to set up quickly on your Ubuntu machine.

In Terragrunt, Ubuntu, Nov 24, 2021

How to find the latest Azure deployment template schema API version

Using the latest ARM templates schema API version is important only when provisioning new resources. In general, there is no need to keep up-to-date API version of the already deploye...

In Azure, Nov 17, 2021

How to install Terraform on Debian 11

Today I’ll be writing about terraform installation on Debian 11. The steps are pretty easy, so you just have to follow them and accomplish the installation process. Let’s hop in.

In Terraform, Nov 06, 2021

Ways to provision infrastructure on AWS

Popular as it is, Infrastructure as Code also known as IaC, is a practice and process of managing and deploying infrastructure through code. Now, we got the flexibility to choose from...

In AWS, Oct 28, 2021

How to install Terragrunt on Debian 11

If you need to simplify the Terraform structure you can achieve it through Terragrunt. The crux is that you only need to define the Terraform modules and Terragrunt will take care of ...

In Terragrunt, Debian, Oct 19, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

Get AWS region name in Terraform

The following tutorial will be a step-by-step guide on how to get the current AWS region name in Terraform.

In Terraform, AWS, Oct 06, 2021

How to create an S3 bucket through AWS CloudFormation

Deploying your infrastructure through CloudFormation as an infrastructure as code tool can cause some murky situations as a beginner because AWS is facing a lack of CloudFormation doc...

In AWS, Oct 03, 2021

How to make local archive_file to be available when deploying Terraform aws_lambda_function

In today’s blog post, I really need to share with you all a quick tip regarding Terraform’s aws_lambda_function resource and how to make the latest local data archive_file to be prese...

In Terraform, AWS, Sep 20, 2021

Declarative vs Imperative Infrastructure as Code

With the uprising of Terraform in the last couple of years, Infrastructure as Code (IaC) is a popular and hot topic in the DevOps world. Managing and deploying infrastructure is all w...

In IaC, Sep 16, 2021

Reusing templates in Terraform

Working with Terraform and keeping the infrastructure code DRY has always been fun. If you’ve been deploying AWS S3 policies, or IAM policies, adding variables and making them reusabl...

In Terraform, Sep 12, 2021

How to fix Terraform 'acquiring the state lock' error

A couple of days ago, I was deploying a Terraform ECS cluster, and during the terraform plan command, I forgot to add a module. Didn’t want to wait it out until the command finish, so...

In Terraform, Jul 31, 2021

How to ignore changes in Terraform

Terraform is the most popular Infrastructure as Code tool mostly used for spinning up and managing infrastructure on the public cloud giants AWS, Azure, GCP and DigitalOcean. But, som...

In Terraform, Jul 23, 2021

Restrict variable values in Terraform

If you have worked before with Terraform by provisioning a cloud infrastructure and/or writing Terraform modules, you must have stumbled upon some variable validation issues. This cou...

In Terraform, Jul 18, 2021

How to install Terraform on Rocky Linux 8

Finally, there is a replacement on the CentOS distro. The fresh and new Rocky Linux will replace the CentOS, so the CentOS team announces that they are going to focus on the CentOS St...

In Terraform, Rocky Linux, Jul 02, 2021

How to install Terraform on Ubuntu 20.04

All the cloud service providers have integrated and ease the way of using Terraform. So, using Terraform as infrastructure as code tool will efficiently minimize your code and speed u...

In Terraform, Ubuntu, Jun 25, 2021

How to fix ECS CloudFormation template if it's stuck in the rollback state

If your microservices are using ECS services and the deployments are going through CloudFormation, that sometimes can cause weird issues. For example, if there is an application error...

In AWS, Mar 24, 2021

ansible

Install Ansible on Debian 12

Installing Ansible on the newly released Debian 12 is fairly easy. Let’s take a look.

In Ansible, Debian, Jul 11, 2023

How to Install Ansible on Ubuntu 23.04

To install Ansible on Ubuntu 23.04 you need to configure the PPA on your Ubuntu system and then install Ansible. Let’s check the installation part.

In Ansible, May 04, 2023

Install Ansible on CentOS 9 Stream

EPEL repository can provide a quick and easy way to install Ansible on CentOS 9. Let’s check it !!!

In Ansible, CentOS, Aug 31, 2022

Install Ansible on Alpine Linux

The Ansible installation on Alpine Linux can be achieved easily and quickly through the official Alpine packages.

In Ansible, Alpine Linux, Jul 06, 2022

Ansible change Python interpreter

If you are getting this kind of warning:[DEPRECATION WARNING]: Distribution Ubuntu on host 2.2.2.2 should use/usr/bin/python3, but is using /usr/bin/python for backward compatibility ...

In Ansible, Python, Jul 04, 2022

Ansible user module and password hashing

As far as I know, there are two secure ways (discussable) you could include a password as part of the Ansible user module. Let’s go through it.

In Ansible, Apr 28, 2022

Ansible Vault password integration with Bitwarden

Ansible Vault encrypts Ansible data files mostly variables, so you could protect things such as passwords and keys. It uses a single password for encryption and decryption which initi...

In Ansible, Mar 13, 2022

vars_files vs include_vars in Ansible

In the last Ansible post I’ve noted that there’s a difference when choosing between vars_files and include_vars. So, let’s explore the differences on a surface level.

In Ansible, Mar 01, 2022

How to deal with 'AnsibleUndefinedVariable: ... is undefined' error

Although Ansible has a low learning curve, obviously there’s always a big difference between learning on your own versus working on a medium to large scale size (enterprise) projects....

In Ansible, Feb 27, 2022

How to install Ansible on Amazon Linux 2

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In Ansible, AWS, Amazon Linux 2, Oct 07, 2021

Reboot VMs with Ansible

Speaking of configuration management, Ansible is the most popular open-source automation tool out there. It’s mostly used for automating day to day operation activities, from installi...

In Ansible, Sep 14, 2021

How to install Ansible on Rocky Linux 8

If there is a need to simplify the deployments of your applications, manage your infrastructure servers, etc… you can achieve it with Ansible which is one of the most popular tool for...

In Ansible, Rocky Linux, Jul 11, 2021

How to install Ansible on Ubuntu

Ansible is an IT automation tool that can help you to simplify the deployments of your applications, efficiently manage your infrastructure servers, and provides a lot of features and...

In Ansible, Ubuntu, Jun 06, 2021

How to get the IP addresses of a group in Ansible

Usually when developing an Ansible role, most of the time we need to write a jinja2 template for some configuration file. Speaking from personal experience, I was writing an Elasticse...

In Ansible, Mar 28, 2021

jinja2

How to get the IP addresses of a group in Ansible

Usually when developing an Ansible role, most of the time we need to write a jinja2 template for some configuration file. Speaking from personal experience, I was writing an Elasticse...

In Ansible, Mar 28, 2021

elasticsearch

Create an Elasticsearch Index Pattern using Kibana API

Creating an Elasticsearch Index Pattern through Kibana API can be useful if don’t have direct Kibana access but you do have a remote instance that can access it. Let’s see how to crea...

In Elasticsearch, Apr 12, 2023

Fix 'illegal_argument_exception at shard' Elasticsearch error

Playing around with an existing ES cluster, I stumbled upon the following issue:Typeillegal_argument_exceptionReasonField [...] of type [text] does not support custom formatsHere I’m ...

In Elasticsearch, Oct 04, 2022

How to restore index with a different name from an Elasticsearch snapshot

You may wonder if it’s possible to rename an Elasticsearch index while doing a restore from an Elasticsearch snapshot but keeping the existing index as it is. Let’s see the scenario. ...

In Elasticsearch, Jul 10, 2022

Protect Elasticsearch stack from Apache Log4j vulnerability

As the Apache Log4j vulnerability is growing massively and its spread all over the internet a lot of worldwide companies are affected mostly on their Java-based applications. Elastics...

In Elasticsearch, Dec 16, 2021

How to dump Elasticsearch index to S3 with Docker

Previously I’ve covered the topic around export and import the Elasticsearch index from one ES cluster to another. So now if you want to back up a particular index, instead of storing...

In Elasticsearch, Docker, AWS, Sep 21, 2021

How to export and import Elasticsearch Index with Docker

Synchronizing the ES index data between your prod, dev and local ES cluster environment is now achievable with Docker. Moving the index data, mapping or analyzer can be done through t...

In Elasticsearch, Docker, Sep 17, 2021

Elasticsearch Garbage Collection

Elasticsearch, as you might already know, is a free and open-source search and analytics engine developed in Java. In today’s topic we are going to cover the Garbage Collection part o...

In Elasticsearch, Sep 10, 2021

How to check if document exist in Elasticsearch

Sometimes there is a need to check whether a document exists or not in Elasticsearch. Following the ES documentation and the best practices, you can use the HEAD method instead of the...

In Elasticsearch, Sep 03, 2021

How to create Elasticsearch index

Creating an Elasticsearch index is a quick and easy process. In practice, there is an ELK API call that requires you to think of how many shards do you want to assign and replica shar...

In Elasticsearch, Sep 02, 2021

How to check Elasticsearch cluster health

Knowing how to get statistics and understand the output from an Elasticsearch cluster can be very useful for a DevOps guy. This tutorial is aimed to show you how to check Elasticsearc...

In Elasticsearch, Aug 30, 2021

How to manually change the Elasticsearch's allocation of shards

While updating the mapping on some ES clusters or doing a full reindex which are expensive operations, you may face a data node failure. Due to the node failure, there is a possibilit...

In Elasticsearch, Jul 13, 2021

How to resolve AWS Elasticsearch cluster in red or yellow state

Understanding the ES cluster status state is crucial, when it comes to ES troubleshooting. If your role is to keep ES cluster healthy then you have to understand all the three states ...

In AWS, Elasticsearch, Jun 30, 2021

How to get the IP addresses of a group in Ansible

Usually when developing an Ansible role, most of the time we need to write a jinja2 template for some configuration file. Speaking from personal experience, I was writing an Elasticse...

In Ansible, Mar 28, 2021

networking

Install OpenVPN Client on Alpine Linux

To establish a secure and encrypted connection to a remote server running an OpenVPN server, you need to have a OpenVPN client. Let’s see how to install OpenVPN Client on Alpine Linux.

In OpenVPN, Alpine Linux, Jun 27, 2023

GCP: public vs private subnets

The main difference between public and private subnets more or less to any public cloud is their connectivity and access to the internet. Overall, it comes down to routing. However, t...

In GCP, Mar 28, 2023

How to Associate Elastic IP to an EC2 instance

If you have allocated an Elastic IP already and you want to associate with one of your EC2 instances, the procedure can be done in a few steps. Let’s take a look on how to associate E...

In AWS, Amazon Linux 2, Jan 24, 2023

Install dig and nslookup on Debian

Dns tools such as dig and nslookup can be easily installed on Debian using the apt package manager. Let’s jump on the installation part.

In Debian, Dec 21, 2022

Install Netstat on Alpine Linux

Netstat is a useful tool if you want to troubleshoot or display network related information. You can list all the open connections, open socket, ports, etc… Let me show you how to ins...

In Netstat, Alpine Linux, Sep 12, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Update private service access connection in GCP

Not trying to rant about GCP, but to sum up, you need to do a ton of somehow complex steps just to get a simple thing up and running. It’s frustrating though.

In GCP, Aug 08, 2022

Install Traceroute on Alpine Linux

Discovering the network packet paths or troubleshooting the connectivity issues can be easily achieved with traceroute. Today’s aim is to install traceroute on Alpine Linux.

In Traceroute, Alpine Linux, Aug 03, 2022

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Nginx proxy and 'an upstream response is buffered to a temporary file' warning

In today’s Nginx log message of the week, we got the following warning:2022/05/02 08:03:16 [warn] 31447#0: an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/...

In Nginx, May 08, 2022

Tweaking Nginx proxy_buffers parameters

Before setting up YOLO values for proxy_buffers and proxy_buffer_size parameters, you need to find out the average and maximum response sizes first. On a side note, the following step...

In Nginx, May 06, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

Nginx and 'using inherited sockets' notice

If you have been debugging and digging into the Nginx logs, you might have stumbled upon the following notice log message:2022/03/10 06:04:32 [notice] 31447#31447: using inherited soc...

In Nginx, Apr 24, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to fix Docker's 'error while removing network <> has active endpoints'

In today’s post we are going to list a few solutions on how to deal with the following Docker network error: ERROR: error while removing network: network <> has active endpoints...

In Docker, Apr 04, 2022

How to check Redis connection with Telnet

A lot of useful checks can be made with telnet in terms of connectivity, sending test emails, access to databases, etc. Telnet is an application protocol based on TCP, and it can allo...

In Redis, Telnet, Mar 26, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

HP Fix WI-FI driver not working in Windows 10

Installing WLAN (WiFi) driver from the HP official drivers site might cause issues and does not appear in the Windows device adapters. So if that’s the thing follow the instructions b...

In Windows 10, Mar 10, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

How to fix 'WARNING: Connection pool is full' in Docker Compose

If you have been working with Docker Compose stacks for a while, you might have come across the following warning message: WARNING: Connection pool is full, discarding connection <...

In Docker, Feb 23, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

How to send emails via Telnet

Telnet could be very useful when testing SMTP servers for email delivery. Let’s explore the steps required in order to send emails successfully.

In SMTP, Telnet, Jan 28, 2022

SFTP transfer files non-interactive through the command line

This tutorial is aimed to show you how to download files from a remote sftp server and of course how to upload files to a remote sftp server. It’s useful if you are writing a bash or ...

In SFTP, Jan 13, 2022

How to get regional Azure public IP address ranges

Public Azure cloud IP ranges and service tags could be important thing when working with services and NSGs (Network Security Groups). The list could be downloaded as a JSON file in a ...

In Azure, Jan 12, 2022

How to connect with SFTP through the command line

Most of the shared hosting platforms are providing SFTP access to the end-users as a secure file transfer protocol. There are a lot of free and open source GUI platforms for ftp, SFTP...

In SFTP, Jan 11, 2022

Install dig and nslookup on Alpine Linux

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks yo...

In DNS, Alpine Linux, Jan 03, 2022

Associate AWS VPC with a private hosted zone

Working with multiple AWS accounts can lead to timeouts between the different account services. Behind the VPC peering and the routing table connection, a very important thing is to s...

In AWS, Dec 30, 2021

How to create CNAME for root domain

Working as a cloud engineer you may ask yourself, is it possible to create a CNAME record for your root domain? The answer will be no for most of the hosting providers, but that’s not...

In DNS, Cloudflare, Dec 18, 2021

AWS|How to allow source IP addresses to access specific URL path using an Application Load Balancer

Most likely, if you use ECS as your application orchestration service it will require some basic knowledge to manage Application Load Balancers short ALBs. Essentially managing the ac...

In AWS, Dec 12, 2021

Access host network from inside of a Docker container

This might be a really weird or edge case scenario, but what If we need to access host service(s) from inside a Docker container. For instance, we already have configured and running ...

In Docker, Dec 11, 2021

Expose vs Publish ports in Docker

The general idea for communication between microservices (whatever is HTTP, message or event-driven communication) is related to certain protocols and ports on which each microservice...

In Docker, Dec 07, 2021

How to fix Docker error: 'Cannot start service .. network $network-id not found

If you have already created a Docker Compose stack and you are trying to start/restart the containers, you may face Docker error: Cannot start service ..: network $network-id not foun...

In Docker, Nov 18, 2021

Assign static IP to a Docker container

There are two types of static IPs, public and private IP addresses. We all know the public IP Docker mapping by now, using Nginx and port mapping. Today we are going to see how can we...

In Docker, Oct 24, 2021

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

Check Internet speed from the CLI on Linux

In this day and age, experiencing a slow internet connection could be a huge deal, especially for most of us who work remotely. Since we can do almost anything from the CLI, let’s sav...

In Linux, Oct 18, 2021

Get public IP from the CLI on Linux

Let’s speedrun the tutorial on how to get your public IP address from the command line interface for any whitelisting reason, on any Linux distro.

In Linux, Oct 16, 2021

Service Endpoints vs Private Links in Azure

Microsoft Azure provides many options to approach networking, starting from Azure VPN, ExpressRoute, Azure Route Server, NVAs, and others. These are more likely to be implemented in t...

In Azure, Oct 10, 2021

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Proxy, Sep 25, 2021

How to create Apache reverse proxy for your application

Creating Apache reverse proxy follows a similar procedure as Nginx. In some of the previous posts, we saw How to set up Nginx reverse proxy, so today I’m going to show you exactly the...

In Apache, Sep 23, 2021

How to get private IP address of Fargate ECS task with metadata

Previously I’ve explained How to SSH into an AWS ECS Fargate-managed container. In this tutorial, I will cover some steps on how can you get the private IP address of a Fargate ECS co...

In AWS, Sep 13, 2021

How to check if your web application is under DDoS attack

Nowadays, most of the web applications are vulnerable and exposed on many kinds of attacks. One of them is a DDoS attack. There are a lot of services on the internet that are offering...

In DDOS, Sep 11, 2021

How to set up Nginx reverse proxy for your application

Using Nginx reverse proxy could be very useful, especially if you are developing an application with a framework that can run its own server like Node.js, Python, Ruby on Rails, etc. ...

In Nginx, Aug 14, 2021

How to whitelist IP addresses in Nginx

We all know what firewalls are for, but sometimes they can become a pain in the arse, and we all end up opening HTTP and HTTPS port by default. Let’s say we host multiple domains via ...

In Nginx, Aug 09, 2021

How to configure DHCP to fix the network connectivity on Rocky Linux

Some RHEL distros can cause common networking configuration issues on the first installation, so you will not be able to update the packages on a server or browse external Websites fr...

In DHCP, Rocky Linux, Jul 26, 2021

How to get the IP addresses of a group in Ansible

Usually when developing an Ansible role, most of the time we need to write a jinja2 template for some configuration file. Speaking from personal experience, I was writing an Elasticse...

In Ansible, Mar 28, 2021

ip address

How to get regional Azure public IP address ranges

Public Azure cloud IP ranges and service tags could be important thing when working with services and NSGs (Network Security Groups). The list could be downloaded as a JSON file in a ...

In Azure, Jan 12, 2022

AWS|How to allow source IP addresses to access specific URL path using an Application Load Balancer

Most likely, if you use ECS as your application orchestration service it will require some basic knowledge to manage Application Load Balancers short ALBs. Essentially managing the ac...

In AWS, Dec 12, 2021

Assign static IP to a Docker container

There are two types of static IPs, public and private IP addresses. We all know the public IP Docker mapping by now, using Nginx and port mapping. Today we are going to see how can we...

In Docker, Oct 24, 2021

Get public IP from the CLI on Linux

Let’s speedrun the tutorial on how to get your public IP address from the command line interface for any whitelisting reason, on any Linux distro.

In Linux, Oct 16, 2021

How to get private IP address of Fargate ECS task with metadata

Previously I’ve explained How to SSH into an AWS ECS Fargate-managed container. In this tutorial, I will cover some steps on how can you get the private IP address of a Fargate ECS co...

In AWS, Sep 13, 2021

How to whitelist IP addresses in Nginx

We all know what firewalls are for, but sometimes they can become a pain in the arse, and we all end up opening HTTP and HTTPS port by default. Let’s say we host multiple domains via ...

In Nginx, Aug 09, 2021

How to get the IP addresses of a group in Ansible

Usually when developing an Ansible role, most of the time we need to write a jinja2 template for some configuration file. Speaking from personal experience, I was writing an Elasticse...

In Ansible, Mar 28, 2021

aws fargate

How to get private IP address of Fargate ECS task with metadata

Previously I’ve explained How to SSH into an AWS ECS Fargate-managed container. In this tutorial, I will cover some steps on how can you get the private IP address of a Fargate ECS co...

In AWS, Sep 13, 2021

Define the CPU and memory values for tasks hosted on Fargate

Migrating your ec2 instances on ECS to Fargate will let you focus on building applications instead of managing servers. Maybe you will ask yourself, which size do you need to pick up ...

In AWS, Sep 09, 2021

SSH into an AWS ECS Fargate-managed container

Managing servers from the developers’ side causes difficulties. To avoid such situations AWS offers Fargate, the new compute engine which will manage your ECS cluster depending on you...

In SSH, AWS, Jun 22, 2021

ssh

Fix 'host key has just been changed'

Let’s see how to resolve the error below while trying to establish an SSH connection:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATIO...

In SSH, Mar 25, 2023

Install sshpass on Alpine Linux

Since the sshpass is a part of the apk default packages you don’t have to install OpenSSH to get sshpass. Let’s keep it to the simple things and see the best way to install sshpass on...

In SSH, Alpine Linux, Jan 12, 2023

How to install sshpass on macOS

Trying to install sshpass on macOS by executing brew install sshpass I get stuck with the following message:Warning: No available formula with the name "sshpass". Did you mean sshs?We...

In macOS, Jan 10, 2023

Client_loop: send disconnect: Broken pipe

Usually, you will get this kind of error client_loop: send disconnect: Broken pipe if you keep your ssh connection open more than the timeout limit. Let’s see how can we potentially f...

In SSH, Dec 01, 2022

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

Install SCP on Alpine Linux

SCP as a useful transfer tool can be easily installed on Alpine Linux. Let’s see the steps needed.

In SCP, Alpine Linux, Jun 16, 2022

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

SFTP transfer files non-interactive through the command line

This tutorial is aimed to show you how to download files from a remote sftp server and of course how to upload files to a remote sftp server. It’s useful if you are writing a bash or ...

In SFTP, Jan 13, 2022

How to connect with SFTP through the command line

Most of the shared hosting platforms are providing SFTP access to the end-users as a secure file transfer protocol. There are a lot of free and open source GUI platforms for ftp, SFTP...

In SFTP, Jan 11, 2022

SSH into an AWS ECS Fargate-managed container

Managing servers from the developers’ side causes difficulties. To avoid such situations AWS offers Fargate, the new compute engine which will manage your ECS cluster depending on you...

In SSH, AWS, Jun 22, 2021

terraform

Terraform 'An argument named allow_classic_link_to_remote_vpc is not expected here.'

As of January 1, 2023, traffic between VPCs in different regions is automatically allowed, regardless of whether the allow_classic_link_to_remote_vpc or allow_vpc_to_remote_classic_li...

In Terraform, Jun 03, 2023

Terraform 'The argument replication_group_description is required, but no definition was found.'

While creating a new Redis instance I got the following error: The argument "replication_group_description" is required, but no definition was found.

In Terraform, Jun 01, 2023

How to Install Terraform on Ubuntu 23.04

Installing Terraform on Ubuntu 23.04 follows the same process as the other Debian-based distros. Let’s jump on the installation part.

In Terraform, May 06, 2023

Terraform ignore_changes and 'A static list expression is required.

Including dynamic blocks or a for_each resource with ignore_changes leads to: A static list expression is required. As for the solution, make sure whatever list of attributes you are ...

In Terraform, Apr 15, 2023

Resolve: 'The block type lifecycle is reserved for use by Terraform in a future version'

A common error for Terraform beginners out there is: The block type "lifecycle" is reserved for use by Terraform in a future version. in case you want to “ignore” a certain attribute ...

In Terraform, Apr 13, 2023

Terraform and Azure's 'Required property policyRule not found in JSON'

While developing and testing a TF Azure module for policies and policy initiatives (sets) I’ve received the following error:Error: creating/updating Policy Definition custom-policy-1:...

In Terraform, Azure, Apr 11, 2023

Terraform and 'The given "for_each" argument value is unsuitable.'

As a follow-up to Terraform: null values and for_each, this time we are going to see which values are (not) allowed when dealing with for_each, thus the following error:│ Error: Inval...

In Terraform, Apr 09, 2023

Fix Terraform 'Error creating Elastic IP: InvalidInstanceID.Malformed: Invalid id'

If you have a Terraform configuration that creates an EC2 instance and an Elastic IP address, you should be aware that the Elastic IP address depends on the instance. If you accidenta...

In Terraform, Apr 08, 2023

Terraform: null values and for_each

Null values don’t go well hand in hand with Terraform’s for_each, but, as always, here’s some hack on how to get through.

In Terraform, Apr 07, 2023

Terraform and 'the object type constructor requires one argument...'

Upgrading Terraform version (at least before version 1.0) to another major release, always comes with certain errors along the way, mostly for those being lazy to read any release not...

In Terraform, Apr 05, 2023

Resolve Terraform's 'Error: Duplicate required providers configuration'

Another not so common error that I’ve faced while working on a Terraform module:```bashInitializing modules…There are some problems with the configuration, described below.

In Terraform, Apr 03, 2023

Resolve Terraform's 'net/http: request canceled while waiting for connection'

Today’s error of the week is linked to the following Terraform issue:│ Error: Failed to query available provider packages││ Could not retrieve the list of available versions for provi...

In Terraform, Apr 01, 2023

Deploy GCP CDN with Terraform

Choosing between various CDNs and deploying them has never been easier. In this tutorial, you are going to see how to deploy a Content Delivery Network (CDN) on the Google Cloud Platf...

In GCP, Terraform, Mar 30, 2023

Easy login to GCP VM instances using IAP

IAP or Identity-Aware Proxy, is a GCP service that allows for secure and fine-grained control access mostly to cloud resources such as VMs and Kubernetes clusters. Here I’m going to s...

In GCP, Mar 24, 2023

Resolve GCP googleapi Error 400: `Unparseable iamMember` in Terraform

Managing GCP infrastructure with Terraform is an uphill battle, especially if you are not familiar with any other cloud, and how they work. So, here’s my error of the week that I got ...

In GCP, Terraform, Mar 20, 2023

Terraform and GCP googleapi: Error 400: Request contains an invalid argument

It would be more or less fair to say that GCP is the only Cloud hosting platform that I have disdain for and give me an urge to punch a wall. Based take, right?! While I was trying to...

In Terraform, GCP, Feb 14, 2023

Terraform output GCP Service Account private key as plain JSON

Right of the bat, using GCP Service Accounts (SA) is greatly not recommended. This comes from GCP though. Service account keys are not managed properly, and present a security risk. I...

In Terraform, GCP, Feb 02, 2023

"Error ensuring Resource Providers are registered" in Terraform Azure

Terraform Azure is pretty much a stable, mature provider. However, there are few errors that could occur for some “random” reason, and this time Error ensuring Resource Providers are ...

In Terraform, Azure, Jan 29, 2023

How to install Terraform on CentOS 9 Stream

There are two ways to install Terraform on CentOS 9 Stream. Through Terraform Repository. Manually.

In Terraform, CentOS, Aug 25, 2022

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Run local commands and scripts with Terraform

Every once in a while, using built-in Terraform modules is just not enough. From time to time as new cloud features are developed and released, there is no native support yet, so it a...

In Terraform, Aug 06, 2022

Get current working directory name in Terraform

Another probably valuable Terraform nugget to share. Suppose that you want to get the current working directory name only for some reason. There are few helpful built-in references an...

In Terraform, Aug 04, 2022

Enable/Disable resources conditionally in Terraform

Since there isn’t any resource_enabled = false feature developed by Terraform yet, here’s a quick hack to enable / disable resources.

In Terraform, Aug 02, 2022

Get Azure AD Microsoft Graph API Delegated / Application permission IDs in Terraform

Getting Microsoft Graph API Delegated and Application permission IDs are definitely hard to find, if you are doing things right – the programmatic way.

In Terraform, Azure, Jul 31, 2022

google_project_iam_binding removes GCP compute engine default service accounts from IAM principals

By default, once you enable the Compute Engine API in GCP, two Google-managed service account principals will be created Compute Engine default service account and Google APIs service...

In GCP, Terraform, Jul 13, 2022

'Failed to install provider ... doesn't match checksums from dependency lock file' error in Terraform

For today’s Terraform error of the week series we are going to take a look at the following one:│ Error: Failed to install provider│ │ Error while installing terra-farm/xenorchestra v...

In Terraform, Jul 11, 2022

Terraform output with loops: count and for_each

It’s not a new thing to loop through Terraform outputs though, so here are a few solutions that could help since count can’t be used as part of the output itself.

In Terraform, Jul 09, 2022

Migrating Terraform state the other way around: remote to local

Migrating Terraform state to a remote location such as a cloud object storage is a no-brainer since it solves the shared access to state challenge when working with multiple members a...

In Terraform, Jul 07, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

'data could not be decoded from the state: unsupported attribute' error in Terraform

Another Terraform error from the vault, this time being:Error: Invalid resource instance data in state .. data could not be decoded from the state: unsupported attribute "manage_run_t...

In Terraform, Jul 03, 2022

GitHub EMU external groups with Terraform

GitHub EMU (Enterprise Managed Users) in general allows users to manage their enterprise members through IdPs (identity providers). Azure Active Directory and Okta are the only ones s...

In GitHub, Terraform, Jul 01, 2022

GCP Service Account impersonation with Terraform

The idea of GCP service account impersonation is to run and deploy Terraform infrastructure without the need of using service account keys as it introduces security risks along the wa...

In GCP, Terraform, Jun 29, 2022

Enable Google APIs with GCP and Terraform

Terraforming GCP projects from scratch could be a lot of hustle and bustle as you need to enable almost every freaking Google service (API) per project. That’s probably first and fore...

In GCP, Terraform, Jun 27, 2022

Grant Azure AD Admin Consent programmatically (with Terraform)

Admin Consent by definition enables granting access to Azure-registered applications that requires admin approval securely.

In Azure, Terraform, Jun 25, 2022

Escape PowerShell's double quotes in Terraform

To my Windows-PowerShell-Terraform-Azure users out there, I just want to share a quick nugget on how to escape the annoying double quotes.

In Terraform, PowerShell, Jun 23, 2022

random_password and multiple Terraform resource instances

random_password is a Terraform resource used for generating as the name suggests, random passwords which could be utilized for sensitive secret’s initialization of other resources – u...

In Terraform, Jun 21, 2022

'Invalid character encoding' error in Terraform

Another ez solution as part of the Terraform issue series. This time being the following one:╷│ Error: Invalid character encoding││ on providers.tf line 1:│ 1: ��provider "aws" {...

In Terraform, Jun 19, 2022

Warning: Redundant ignore_changes element in Terraform

Besides some new cool features introduced in Terraform v1.2.0 like precondition and postcondition check blocks – a new warning message was part of the release as well. While I was try...

In Terraform, Jun 17, 2022

'Argument or block definition required' error in Terraform

Continuing on my Terraform issues journey, I’m going to try to help you with resolving yet another common TF error:╷│ Error: Argument or block definition required││ on providers.tf ...

In Terraform, Jun 15, 2022

'Saved plan is stale' error in Terraform

Today I’m going to show you a quick solution on how to resolve just another TF error:╷│ Error: Saved plan is stale│ │ The given plan file can no longer be applied because the state wa...

In Terraform, Jun 13, 2022

'Failed to load tfplan as a plan file zip: not a valid zip file' error in Terraform

If you have ever tried to terraform apply tfplan.txt with tfplan.txt being a plain text terraform plan command output file (or even tfplan.tf), you’ll get the following error message:...

In Terraform, Jun 11, 2022

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

'too many command line arguments' error in Terraform

Error: too many command line arguments is one more common error which obviously points out an issue related to arguments not being interpreted correctly. Although there’s no universal...

In Terraform, Jun 07, 2022

'terraform plan' in plain text output (the right way)

Following up to the previous post terraform plan the right way with intentions to keep things simple and clean as possible, I’ll try to describe how to get a terraform plan plain text...

In Terraform, Jun 05, 2022

Install Terraform on Alpine Linux

As a small distro Alpine Linux doesn’t have huge support regarding the APK Alpine system manager package. So today I’ve decided to show you how to install Terraform on Alpine Linux.

In Terraform, Alpine Linux, Jun 04, 2022

'terraform plan' the right way

terraform plan assess the current TF configuration to decide whatever the desired state is up-to-date by comparing it with the current one, thus creating a so-called plan with all pen...

In Terraform, Jun 03, 2022

'Invalid character' error in Terraform

Yet another Terraform error-related post. For any other Terraform-related issues, browse by category here.

In Terraform, Jun 01, 2022

'Failed to install provider unsuccessful request to 403 forbidden' error in Terraform

On today’s menu we got yet another TF error to resolve. For any other Terraform-related issues, browse by category here.

In Terraform, May 24, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

required_providers vs provider in Terraform

Terraform providers are TF plugins that abstract external APIs, mostly cloud provider APIs. These providers enable the user to easily manage their cloud environments by exposing resou...

In Terraform, May 20, 2022

'Output refers to sensitive values' error in Terraform

Before Terraform ver. 0.14 you could have undoubtedly leaked any secret as being a part of an output value. This usually happens in a CI/CD pipeline. These days Terraform will throw a...

In Terraform, May 18, 2022

Show sensitive output values in Terraform

Starting from Terraform version 0.14 the output values marked as sensitive, are being obscured. I’ll take the following TF output code block as an example:output "cloudflare_access_se...

In Terraform, May 16, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

How to attach AWS managed policy to an IAM role in Terraform

AWS Managed Policies are IAM policies created and managed by AWS. Today I’m going to show you how to attach a managed policy in Terraform.

In Terraform, Mar 05, 2022

How to install Terragrunt on CentOS 7

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

In Terragrunt, CentOS, Jan 27, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

Refreshing Terraform state

Refreshing Terraform state is done by adding the -refresh-only flag (since terraform refresh is deprecated) when running plan and apply operations. To start off, what does it mean, an...

In Terraform, Dec 09, 2021

How to install Terragrunt on Ubuntu

Working with Terragrunt as a Terraform wrapper will ease things and simplify the Terraform templates. Here I will show you how to set up quickly on your Ubuntu machine.

In Terragrunt, Ubuntu, Nov 24, 2021

How to install Terraform on Debian 11

Today I’ll be writing about terraform installation on Debian 11. The steps are pretty easy, so you just have to follow them and accomplish the installation process. Let’s hop in.

In Terraform, Nov 06, 2021

Ways to provision infrastructure on Azure

Last week I wrote about the different Ways to Provision Infrastructure on AWS, and as you might expect I’m doing another one, but this time it’s all Azure.

In Azure, Nov 01, 2021

Ways to provision infrastructure on AWS

Popular as it is, Infrastructure as Code also known as IaC, is a practice and process of managing and deploying infrastructure through code. Now, we got the flexibility to choose from...

In AWS, Oct 28, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

Get AWS region name in Terraform

The following tutorial will be a step-by-step guide on how to get the current AWS region name in Terraform.

In Terraform, AWS, Oct 06, 2021

How to make local archive_file to be available when deploying Terraform aws_lambda_function

In today’s blog post, I really need to share with you all a quick tip regarding Terraform’s aws_lambda_function resource and how to make the latest local data archive_file to be prese...

In Terraform, AWS, Sep 20, 2021

Declarative vs Imperative Infrastructure as Code

With the uprising of Terraform in the last couple of years, Infrastructure as Code (IaC) is a popular and hot topic in the DevOps world. Managing and deploying infrastructure is all w...

In IaC, Sep 16, 2021

Reusing templates in Terraform

Working with Terraform and keeping the infrastructure code DRY has always been fun. If you’ve been deploying AWS S3 policies, or IAM policies, adding variables and making them reusabl...

In Terraform, Sep 12, 2021

How to fix Terraform 'acquiring the state lock' error

A couple of days ago, I was deploying a Terraform ECS cluster, and during the terraform plan command, I forgot to add a module. Didn’t want to wait it out until the command finish, so...

In Terraform, Jul 31, 2021

How to ignore changes in Terraform

Terraform is the most popular Infrastructure as Code tool mostly used for spinning up and managing infrastructure on the public cloud giants AWS, Azure, GCP and DigitalOcean. But, som...

In Terraform, Jul 23, 2021

Restrict variable values in Terraform

If you have worked before with Terraform by provisioning a cloud infrastructure and/or writing Terraform modules, you must have stumbled upon some variable validation issues. This cou...

In Terraform, Jul 18, 2021

How to install Terraform on Rocky Linux 8

Finally, there is a replacement on the CentOS distro. The fresh and new Rocky Linux will replace the CentOS, so the CentOS team announces that they are going to focus on the CentOS St...

In Terraform, Rocky Linux, Jul 02, 2021

How to install Terraform on Ubuntu 20.04

All the cloud service providers have integrated and ease the way of using Terraform. So, using Terraform as infrastructure as code tool will efficiently minimize your code and speed u...

In Terraform, Ubuntu, Jun 25, 2021

ubuntu 20.04

How to upgrade Ubuntu 20.04 to Ubuntu 21.10

The upgrading process from Ubuntu 20.04 to Ubuntu 21.10 takes some time, but it’s a straightforward process if you stick close to the steps below. Before taking any actions please mak...

In Ubuntu, Jan 23, 2022

Install Podman Compose on Ubuntu 20.04

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and ...

In Podman, Ubuntu, Jan 09, 2022

How to install Postman on Ubuntu 20.04

There are some ways to install Postman on Ubuntu 20.04. As always, we want to keep the work simple and straight to the point. So I’m going to show you the easiest way to install Postm...

In Postman, Ubuntu, Dec 22, 2021

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Podman, Ubuntu, Aug 12, 2021

How to install Terraform on Ubuntu 20.04

All the cloud service providers have integrated and ease the way of using Terraform. So, using Terraform as infrastructure as code tool will efficiently minimize your code and speed u...

In Terraform, Ubuntu, Jun 25, 2021

aws ec2

Install Iptables on Amazon Linux 2

Seemingly installing iptables on Amazon Linux 2 might not be useful if you consider aws security rules. However iptables allows managing more complex scenarios, like port forwarding, ...

In Iptables, AWS, Amazon Linux 2, Dec 17, 2022

Install htpasswd on Amazon Linux 2

Setting up htpasswd to have basic-auth for your site users can be done in a few steps depending on your web server. Here I’m going to cover just the installation process of htpasswd o...

In Htpasswd, AWS, Amazon Linux 2, Dec 03, 2022

Install Smartctl on Amazon Linux 2

If you want to monitor or analyze the health of the hard drive or check details for your ec2 hard drive, I would recommend installing smartctl command. Let’s see how to install smartc...

In Smartctl, AWS, Amazon Linux 2, Nov 29, 2022

Install Zlib on Amazon Linux 2

Usually, zlib comes preinstalled with most of the Amazon Linux images. But in case you get: bash: zlib: command not found then you need to install zlib on Amazon Linux 2.

In Zlib, Amazon Linux 2, Nov 19, 2022

Install Sudo on Amazon Linux 2

Some of the Amazon Linux 2 images are missing very basic system commands like sudo. If you get this error /bin/sh: sudo: command not found then you definitely need to install sudo on ...

In AWS, Amazon Linux 2, Nov 15, 2022

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Install PHP-FPM on Amazon Linux 2

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

In PHP, AWS, Amazon Linux 2, Nov 11, 2022

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

Install Wget on Amazon Linux 2

Let’s resolve the issue wget command not found on Amazon Linux 2.

In Wget, AWS, Amazon Linux 2, Nov 05, 2022

Install Mbstring on Amazon Linux 2

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

In Mbstring, AWS, Amazon Linux 2, Nov 03, 2022

Install gcc on Amazon Linux 2

While compiling or running C based code on Amazon Linux 2 you might face the following issue: gcc: command not found. That means that you don’t have GCC package installed which is use...

In gcc, AWS, Amazon Linux 2, Nov 01, 2022

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

Install Python on Amazon Linux 2

Installing Python 3 from the existing Amazon Linux 2 packages should be fairly easy. If you want to install the latest Python version 3.11.0 it might be tricky, but we are going to co...

In Python, AWS, Amazon Linux 2, Oct 28, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

Install Git on Amazon Linux 2

The Git installation on Amazon Linux 2 is simple and straightforward. Let’s check it out.

In Git, AWS, Amazon Linux 2, Oct 18, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

Install Unbuffer on Amazon Linux 2

If you need to disable the output buffering when you use complex pipelines, passing the output between multiple pipes then you can definitely use the unbuffer command. Let’s install u...

In Unbuffer, AWS, Amazon Linux 2, Aug 13, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

Install Fluentd on Amazon Linux 2

Fluentd is one of the most popular open-source projects, used for gathering logs from a set of sources and forwarding them to other monitoring software. Here I’m going to show you how...

In Logging, AWS, Amazon Linux 2, Jun 24, 2022

Install AWS CLI on Amazon Linux 2

Managing some AWS services through AWS CLI can be useful and practical, especially when you need to perform some quick actions like listing active resources or troubleshooting. Here I...

In AWS, Amazon Linux 2, Jun 02, 2022

Install PHP Composer on Amazon Linux 2

Using PHP on Amazon Linux 2 can potentially require a composer installation for some libraries. Installing Composer on Amazon Linux 2 is a quick and easy procedure. Let’s see it.

In PHP, AWS, Amazon Linux 2, May 31, 2022

Install Telnet on Amazon Linux 2

As a useful tool Telnet can help you to troubleshoot some connectivity problems, access specific port and also offers a lot of other useful stuff as well. The installation is simple a...

In Telnet, AWS, Amazon Linux 2, May 29, 2022

Install PHP 8.1 on Amazon Linux 2

If you want to hang out with the latest major update of PHP, then you should definitely try to install PHP 8.1 on Amazon Linux 2. Let’s do it.

In PHP, AWS, Amazon Linux 2, May 27, 2022

Install tar on Amazon Linux 2

Yet another free cool tool for archiving files, is tar. I’m going to stick to the title itself and show you how to install tar on Amazon Linux 2.

In Archive, AWS, Amazon Linux 2, May 25, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Install Screen on Amazon Linux 2

Screen is a Linux utility that allows you to run and use multiple shell sessions from a single SSH session. It’s commonly used for migrating a bunch of data through an SSH connection....

In Screen, AWS, Amazon Linux 2, Apr 23, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

Install Rsync on Amazon Linux 2

Sending files, and directories remotely can be achieved with a lot of utility tools. One of them is Rsync, which is a cool tool for remote transfer. Let’s see how to install it on Ama...

In Rsync, AWS, Amazon Linux 2, Apr 17, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

Install Node.js on Amazon Linux 2

Node.js doesn’t exist in the default Amazon Linux 2 yum packages. So we should add the Node.js official repo and use it for the installation. Let’s see how to install Node.js on Amazo...

In Node.js, AWS, Amazon Linux 2, Apr 09, 2022

Enable EPEL on Amazon Linux 2

Using EPEL package repository can be very beneficial. EPEL contains all the common packages that you may want to install. Unfortunately, EPEL is disabled in Amazon Linux 2. Let’s see ...

In AWS, Amazon Linux 2, Apr 07, 2022

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

How to install Go on Amazon Linux 2

Installing Golang on Amazon Linux 2 can be done within a few minutes since Go exists in the default Amazon Linux 2 yum packages. Let’s dive into it.

In Go, AWS, Amazon Linux 2, Apr 01, 2022

How to install SQLite on Amazon Linux 2

SQLite is one of the best minimalistic, lightweight, and powerful SQL database managers. It can be suitable for every application which doesn’t use a complex database structure. So to...

In SQLite, AWS, Amazon Linux 2, Mar 30, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

How to install Apache on Amazon Linux 2

Once you have provisioned an AWS EC2 instance installing Apache on Amazon Linux 2 is a straightforward and easy process. Here I’m going to show you how to install Apache web server on...

In Apache, AWS, Amazon Linux 2, Feb 06, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to drain an ECS instance

While troubleshooting the ECS cluster you may notice some EC2 instances might be unhealthy due to some processes being in a stuck state. Here I’m going to show how to drain an ECS ins...

In AWS, Oct 29, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

How to install Ansible on Amazon Linux 2

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In Ansible, AWS, Amazon Linux 2, Oct 07, 2021

How to install Nginx on Amazon Linux 2

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In Nginx, AWS, Amazon Linux 2, Oct 05, 2021

Remmina can't remote into AWS EC2 Windows machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some RDP software. A few days ago I needed to access a Microsoft SQL server ...

In RDP, AWS, Oct 01, 2021

Define the CPU and memory values for tasks hosted on Fargate

Migrating your ec2 instances on ECS to Fargate will let you focus on building applications instead of managing servers. Maybe you will ask yourself, which size do you need to pick up ...

In AWS, Sep 09, 2021

How to install Podman on Amazon Linux 2

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m going to show you how to install...

In Podman, AWS, Amazon Linux 2, Aug 10, 2021

How to join EC2 instance to ECS cluster

AWS ECS is a container orchestration tool, and it could be a great starting point as a beginner DevOps engineer before jumping on the Kubernetes hype train. Using an Auto Scaling grou...

In AWS, Jul 25, 2021

How to stop all running EC2 instances from the command line

Stopping preproduction, staging environment EC2 instances could be described sometimes as a good practice. In the next few lines, I’ll show you how you can easily stop all running EC2...

In AWS, Jun 27, 2021

clusters

PostgreSQL 101: replications

In PostgreSQL, choosing a replication strategy is a big deal, depending on what you want to achieve. This can be anything from High Availability, Backup and Disaster, mullti-master an...

In PostgreSQL, Dec 14, 2022

Recover out of sync PostgreSQL slave/replica (WAL has already been removed)

WAL or Write-Ahead Logging as a method that enables PostgreSQL data integrity. Mostly used in replication as it enables High Availability (HA). Now, PostgreSQL replication is a broad ...

In PostgreSQL, Dec 06, 2022

Restart ECS tasks with --force-new-deployment

If you want to update your currently running ECS tasks and launch new ones, there is a cool option --force-new-deployment which will start a new deployment of the service and recycle ...

In AWS, Jul 14, 2022

Multiple ways to run Kubernetes clusters locally

Kubernetes, the most popular container orchestration platform out there, needs no introduction. Let’s explore a couple of ways and tools on deploying K8s clusters on your local machine.

In Kubernetes, Jan 20, 2022

Resolve RabbitMQ 'Node statistics not available' in Cluster Node

Setting up RabbitMQ cluster with master and slave instances can invoke some node destabilization like the error Node statistics not available. Here I’m going to show you few steps how...

In RabbitMQ, Nov 08, 2021

How to check Elasticsearch cluster health

Knowing how to get statistics and understand the output from an Elasticsearch cluster can be very useful for a DevOps guy. This tutorial is aimed to show you how to check Elasticsearc...

In Elasticsearch, Aug 30, 2021

How to list, remove and upgrade PostgreSQL cluster

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how can we list, remove and upgrade clusters, the easy way.

In PostgreSQL, Aug 11, 2021

How to join EC2 instance to ECS cluster

AWS ECS is a container orchestration tool, and it could be a great starting point as a beginner DevOps engineer before jumping on the Kubernetes hype train. Using an Auto Scaling grou...

In AWS, Jul 25, 2021

How to resolve AWS Elasticsearch cluster in red or yellow state

Understanding the ES cluster status state is crucial, when it comes to ES troubleshooting. If your role is to keep ES cluster healthy then you have to understand all the three states ...

In AWS, Elasticsearch, Jun 30, 2021

aws ecr

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

authentication

Easy login to GCP VM instances using IAP

IAP or Identity-Aware Proxy, is a GCP service that allows for secure and fine-grained control access mostly to cloud resources such as VMs and Kubernetes clusters. Here I’m going to s...

In GCP, Mar 24, 2023

GCP: revoking gcloud auth

In this tutorial, I’m going to show you how easy is to revoke any gcloud authentication, whatever you are dealing with multiple GCP personal or even service accounts.

In GCP, Mar 14, 2023

Docker: Error response from daemon: ... unauthorized: please use personal access token to login

Last week I’ve leveled up my security game by reviewing and updating all internet services that I’m using and subscribed to, to enable 2FA, including Docker. After few days, as I was ...

In Docker, Dec 04, 2022

Docker: unauthorized: authentication required

It’s all fun and games to build and run Docker images on your local machine, but when it comes to pushing to a remote registry, the authentication itself is a pain to dealt with. And ...

In Docker, Nov 30, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

How to connect with SFTP through the command line

Most of the shared hosting platforms are providing SFTP access to the end-users as a secure file transfer protocol. There are a lot of free and open source GUI platforms for ftp, SFTP...

In SFTP, Jan 11, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

authorization

Easy login to GCP VM instances using IAP

IAP or Identity-Aware Proxy, is a GCP service that allows for secure and fine-grained control access mostly to cloud resources such as VMs and Kubernetes clusters. Here I’m going to s...

In GCP, Mar 24, 2023

Docker: Error response from daemon: ... unauthorized: please use personal access token to login

Last week I’ve leveled up my security game by reviewing and updating all internet services that I’m using and subscribed to, to enable 2FA, including Docker. After few days, as I was ...

In Docker, Dec 04, 2022

Docker: unauthorized: authentication required

It’s all fun and games to build and run Docker images on your local machine, but when it comes to pushing to a remote registry, the authentication itself is a pain to dealt with. And ...

In Docker, Nov 30, 2022

How to refresh AWS ECR authorization token

AWS ECR is a managed container registry which allows us to store, manage and deploy container images, mostly Docker images. Similar to Docker Hub, ECR supports two types of registries...

In AWS, Jul 01, 2021

rocky linux 8

How to install Firewalld on Rocky Linux 8

Keeping your services and host itself secure is crucial. Nowadays, there are a lot of attacks that can harm your host server, like brute force attacks, dictionary SSH attacks, SQL inj...

In Firewalls, Rocky Linux, Nov 30, 2021

How to install MongoDB on Rocky Linux 8

MongoDB has an attitude to store the data in BSON, which can be searched and indexed, with a way better performance. Installing MongoDB on Rocky Linux can additionally improve the sea...

In MongoDB, Rocky Linux, Aug 20, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

How to install PostgreSQL on Rocky Linux 8

Installing PostgreSQL on Rocky Linux follows the same procedure as MySQL. We need to enable the PostgreSQL module, install the desired version and enable the PostgreSQL service. Follo...

In PostgreSQL, Rocky Linux, Aug 01, 2021

How to install MySQL on Rocky Linux 8

Installing MySQL on Rocky Linux it’s quite easy and quick. A lot of today’s applications are using MySQL as a web database. MySQL is an open source database and offers a lot of features.

In MySQL, Rocky Linux, Jul 30, 2021

How to install Apache on Rocky Linux 8

Apache is one of the most popular, open source web servers that allows you to host your web content on Internet. Apache can be installed easily and can run on any operating system. In...

In Apache, Rocky Linux, Jul 24, 2021

How to install Nginx on Rocky Linux 8

If you need to implement a reverse proxy, load balancer or mail proxy, Nginx is the best-suited web server that can manage all of these actions. This tutorial will explain, how to ins...

In Nginx, Rocky Linux, Jul 20, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

How to install Ansible on Rocky Linux 8

If there is a need to simplify the deployments of your applications, manage your infrastructure servers, etc… you can achieve it with Ansible which is one of the most popular tool for...

In Ansible, Rocky Linux, Jul 11, 2021

How to install Docker Compose on Rocky Linux 8

Installing Docker Compose on Rocky Linux follows the same procedure as the other Linux distros. First, you need to make sure that you have installed Docker on your Rocky Linux machine.

In Docker, Rocky Linux, Jul 06, 2021

How to install Docker on Rocky Linux 8

In the early December last year, Red Hat took us all by surprise with the CentOS 8 End Of Life (EOL) announcement, that was scheduled for the end of 2021. In response to this, the ori...

In Docker, Rocky Linux, Jul 05, 2021

How to install Terraform on Rocky Linux 8

Finally, there is a replacement on the CentOS distro. The fresh and new Rocky Linux will replace the CentOS, so the CentOS team announces that they are going to focus on the CentOS St...

In Terraform, Rocky Linux, Jul 02, 2021

cloud

How to Install Redis on Ubuntu 23.04

Redis can be installed through the apt packages. Let’s see how to install Redis on Ubuntu 23.04.

In Redis, Jun 25, 2023

How to Install Telnet on Ubuntu 23.04

Telnet can be installed quickly and easily on Ubuntu 23.04. Let’s proceed with the installation part.

In Telnet, Jun 23, 2023

How to Install Yarn on Ubuntu 23.04

Yarn is a package manager created as an alternative to the npm client, providing enhancements in terms of performance, reliability, and security. Let’s see how to install yarn on ubun...

In Yarn, Jun 21, 2023

How to Install Kubectl on Ubuntu 23.04

Kubectl is a command-line tool used to interact with Kubernetes clusters, so let’s see how to install Kubectl on Ubuntu 23.04

In Kebernetes, Jun 19, 2023

How to Install locate on Amazon Linux 2

Let’s take a look on how to install locate on Amazon Linux 2. The steps are quick and easy.

In AWS, Amazon Linux 2, Jun 17, 2023

How to Install htop on Amazon Linux 2

The procedure to install htop on Amazon Linux 2 is pretty much the same as on every Red Hat distribution. Let’s take a look.

In AWS, Amazon Linux 2, Jun 13, 2023

How to Install PHP 8 on Ubuntu 23.04

Installing PHP 8 on Ubuntu 23.04 can’t be done through ppa:ondrej/php because the repo is not supported on Ubuntu 23.04. The best option is to get PHP 8.1 version which is very simila...

In PHP, Jun 05, 2023

How to Install PHP 8.1 on Ubuntu 23.04

Because the Ondrej PHP PPA repo is not supported in Ubuntu 23.04, I recommend installing PHP 8.1 through the default Ubuntu 23.04 apt packages.

In PHP, May 30, 2023

How to Install Apache on Ubuntu 23.04

As a powerful and flexible server that allows you to host websites and serve web, it can be installed easily on Ubuntu 23.04.

In Apache, May 28, 2023

How to Install Certbot on Ubuntu 23.04

Certbot can be installed under the default apt packages on Ubuntu 23.04. Let’s jump on the Installation part.

In Certbot, May 24, 2023

How to Install SQLite on Ubuntu 23.04

SQLite can be installed through the default Ubuntu 23.04 apt packages.

In SQL, May 22, 2023

Install npm on Alpine Linux

Installing npm on Alpine Linux is a quick and easy procedure. Let’s jump on the installation part.

In Node, May 20, 2023

How to Install git on Ubuntu 23.04

Git follows the same installation pattern as the other Ubuntu versions, but let’s see how to install git on Ubuntu 23.04.

In GIT, May 18, 2023

How to Install MySQL on Ubuntu 23.04

On Ubuntu 23.04, MySQL installation can be done using the APT package repository. Let’s jump on the installation part.

In MSQL, May 16, 2023

How to Install nslookup and dig on Ubuntu 23.04

Installing nslookup and dig on Ubuntu 23.04 can be easily done by following the installation steps.

In DNS, May 14, 2023

How to Install jq on Ubuntu 23.04

JQ is a useful tool that provides a simple and powerful way to filter, transform, and extract data from JSON documents. Let’s install jq on Ubuntu 23.04.

In JQ, May 12, 2023

How to Install Python on Ubuntu 23.04

Nowadays Python is widely used for various purposes such as web development, data analysis, artificial intelligence, and more. Here are the steps to install Python on Ubuntu 23.04.

In Python, May 08, 2023

How to Install Terraform on Ubuntu 23.04

Installing Terraform on Ubuntu 23.04 follows the same process as the other Debian-based distros. Let’s jump on the installation part.

In Terraform, May 06, 2023

How to Install Ansible on Ubuntu 23.04

To install Ansible on Ubuntu 23.04 you need to configure the PPA on your Ubuntu system and then install Ansible. Let’s check the installation part.

In Ansible, May 04, 2023

How to Install Nginx on Ubuntu 23.04

Nginx can be easily installed on Ubuntu 23.04. Let’s jump on the installation part.

In Nginx, May 02, 2023

How to Install Docker Compose on Ubuntu 23.04

To install Docker Compose on Ubuntu 23.04, you can either set up Docker’s repository on your Ubuntu system or install Compose manually. Here I will show you how to install the standal...

In Docker, Apr 30, 2023

How to Install Docker on Ubuntu 23.04

To install Docker on Ubuntu 23.04 you need to make sure that you meet the prerequisites. You need the 64-bit version of Ubuntu 23.04 and Docker Engine that is compatible with x86_64 (...

In Docker, Apr 28, 2023

How to Install Skype on Ubuntu 23.04

There are a few ways to install Skype on Ubuntu 23.04. One way is to download the Skype .deb package from the official Skype website and install it with the dpkg package manager. Anot...

In Skype, Apr 26, 2023

How to Install Nodejs on Ubuntu 23.04

There are several ways to install Node.js on Ubuntu 23.04. One way is to use the Ubuntu repository. Another way is to use the NodeSource repository, which provides an easy-to-use bash...

In Nodejs, Apr 24, 2023

How to update the Nginx Version on webdevops/php-nginx image

Since the image webdevops/php-nginx doesn’t have the option to specify your desired Nginx version, we can adjust the Dockerfile and add that option. Let’s see the solution.

In Nginx, Apr 22, 2023

How to Install OpenSSL on Amazon Linux 2

The installation of OpenSSL on Amazon Linux 2 can be done by using the yum package manager. Let’s check it out.

In SSL, AWS, Apr 20, 2023

How to generate Let's Encrypt Certificate using Certbot on Amazon Linux 2

If you already have Certbot installed on Amazon Linux 2, then generating Let’s Encrypt shouldn’t be a problem. Let’s see what’s the solution.

In SSL, Apr 18, 2023

Fix 'ERROR [internal] load metadata for docker.io/library/alpine:latest'

The ERROR [internal] load metadata for docker.io/library/alpin:latest error occurs when Docker fails to pull the latest metadata for the Alpine image from the Docker Hub registry. Let...

In Docker, Apr 16, 2023

How to Enable Remi Repo on Amazon Linux 2

Working with up-to-date packages on Amazon Linux 2 can be achieved through Remi repo. Let’s see how to enable Remi Repo on Amazon Linux 2.

In Remi, Amazon Linux 2, Apr 14, 2023

Create an Elasticsearch Index Pattern using Kibana API

Creating an Elasticsearch Index Pattern through Kibana API can be useful if don’t have direct Kibana access but you do have a remote instance that can access it. Let’s see how to crea...

In Elasticsearch, Apr 12, 2023

How to Install Docker on Amazon Linux 2

The installation of Docker on Amazon Linux 2 consists of several simple steps, which will be listed below.

In Docker, AWS, Apr 10, 2023

How to Install PHP Xmlrpc on Amazon Linux 2

If you want to send remote XML procedure calls to be made over HTTP, php-xmlrpc library can help you to achieve that. Let’s see how to install PHP Xmlrpc on Amazon Linux 2.

In AWS, Amazon Linux 2, Apr 06, 2023

How to Install PHP CLI on Amazon Linux 2

If you want to have the ability to run PHP scripts without the need for a web server or web browser, just running them through a terminal or command-line interface you need to have th...

In AWS, Amazon Linux 2, Apr 04, 2023

Fix Nginx 'client intended to send too large body' error

If you have an Nginx server set up to handle file uploads, and a user tries to upload a file that is larger than the configured client_max_body_size directive. When this happens, Ngin...

In Nginx, Apr 02, 2023

Fix 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'

The error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Com...

In macOS, Mar 31, 2023

Deploy GCP CDN with Terraform

Choosing between various CDNs and deploying them has never been easier. In this tutorial, you are going to see how to deploy a Content Delivery Network (CDN) on the Google Cloud Platf...

In GCP, Terraform, Mar 30, 2023

How to Install PHP OPcache on Amazon Linux 2

If you want to significantly improve the performance of your PHP application, especially for applications that use a large number of PHP scripts or have a high volume of requests then...

In AWS, Amazon Linux 2, Mar 29, 2023

GCP: public vs private subnets

The main difference between public and private subnets more or less to any public cloud is their connectivity and access to the internet. Overall, it comes down to routing. However, t...

In GCP, Mar 28, 2023

Fix 'RecursionError: maximum recursion depth exceeded'

The RecursionError: maximum recursion depth exceeded usually occurs when a function calls itself too many times, causing the stack to overflow. The solution is to check the code for i...

In Python, Mar 27, 2023

GCP: Recover deleted service account

Accidentally removing default service account could just “happen” from time to time, and here’s how you can get it back.

In GCP, Mar 26, 2023

Fix 'host key has just been changed'

Let’s see how to resolve the error below while trying to establish an SSH connection:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATIO...

In SSH, Mar 25, 2023

Easy login to GCP VM instances using IAP

IAP or Identity-Aware Proxy, is a GCP service that allows for secure and fine-grained control access mostly to cloud resources such as VMs and Kubernetes clusters. Here I’m going to s...

In GCP, Mar 24, 2023

How to export multiple MySQL databases in a separate .sql file

The easiest way to export multiple MySQL databases in a separate .sql file is through a bash script.

In MySQL, Mar 23, 2023

GCP: Configure Cloud SQL Auth proxy

Cloud SQL Auth proxy is a SQL connector that enables secure and proxy access to databases. This is the recommended way to connect to managed GCP DBs, including the minimum administrat...

In GCP, Mar 22, 2023

How to send alerts to Microsoft Teams from Jenkins using Jenkinsfile

Creating webhooks from the Jenkins GUI is straightforward. So that’s why here I will explain how to create a webhook as a code to send alerts to a Teams channel. Let’s see the solution.

In Jenkins, Mar 21, 2023

Resolve GCP googleapi Error 400: `Unparseable iamMember` in Terraform

Managing GCP infrastructure with Terraform is an uphill battle, especially if you are not familiar with any other cloud, and how they work. So, here’s my error of the week that I got ...

In GCP, Terraform, Mar 20, 2023

Replicate directory structure in a GCP bucket

gsutil is a Python app developed by Google that lets you handle the GCP Cloud Storage service, anything from uploading, downloading, sync, mostly doing backup and migration operation....

In GCP, Mar 18, 2023

How to Install PHP GMP on Amazon Linux 2

The need for complex mathematical operations playing with big numbers can be handled by the GMP PHP library. It contains a big collection of functions that can be invoked into your co...

In AWS, Amazon Linux 2, Mar 17, 2023

GCP: gsutil and parallel_composite_upload_threshold

The first I tried to upload some TBs of data to a GCP bucket, I’ve received the following message:NOTE: You are uploading one or more large file(s), which would run significantly fast...

In GCP, Mar 16, 2023

How to fix 'GPG keys listed for the MySQL Server repository are already installed'

Seemingly the MySQL installation might look like an easy task, but you might also face the following error The GPG keys listed for the "MySQL Community Server" repository are already ...

In MySQL, Amazon Linux, Mar 15, 2023

GCP: revoking gcloud auth

In this tutorial, I’m going to show you how easy is to revoke any gcloud authentication, whatever you are dealing with multiple GCP personal or even service accounts.

In GCP, Mar 14, 2023

How to check if Redis Remote Server is running

If your Redis cluster is hosted somewhere on the cloud and you are wondering whether you can connect to your Redis cluster or not, here I will show you how you can quickly check if yo...

In Redis, Mar 13, 2023

Install Kubectl on Alpine Linux

Unfortunately there is no kubectl package under apk alpine package manager but still, there is a way to install it. Let’s install kubectl on Alpine Linux.

In Kubernetes, Alpine Linux, Mar 11, 2023

How to Install PHP Soap on Amazon Linux 2

Soap as an independent platform allows you to send and receive messages on the app level. It’s a kind of communication protocol that works on the application level and can be enabled ...

In AWS, Amazon Linux 2, Mar 09, 2023

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

How to Install PHP Posix on Amazon Linux 2

The Posix extension is a very useful PHP extension in terms of monitoring your PHP processes, optimizing your code, etc. The function itself returns usage information about the curren...

In AWS, Amazon Linux 2, Mar 03, 2023

How to Install PHP Iconv on Amazon Linux 2

Using the PHP function iconv() allows you to convert a string to the requested character encoding. Usually, you need to install Iconv on Amazon Linux 2 if your PHP setup is using FPM ...

In AWS, Amazon Linux 2, Mar 01, 2023

How to Install PHP Dom on Amazon Linux 2

The need of processing or parsing XML documents in PHP can be done through the DOM parser extension. Here I will show you how to install PHP Dom on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 27, 2023

How to Install PHP Ctype on Amazon Linux 2

Enabling the Ctype PHP extension will provide you with functions that are used to verify whether the characters in a string are of the correct type. Let’s install Ctype on Amazon Linu...

In AWS, Amazon Linux 2, Feb 25, 2023

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

SonarQube How to Fix 'node.store.allow_mmapfs is no longer supported'

If you are trying to update SonarQube to a higher version you might get org.sonar.process.MessageException: Property 'node.store.allow_mmapfs' is no longer supported. Let’s see how to...

In Docker, SonarQube, Feb 21, 2023

How to Install PHP Punic on Amazon Linux 2

Localizing your various PHP variables can be made easy through the Punic library. Let’s install PHP Punic on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 19, 2023

How to Install PHP pgsql on Amazon Linux 2

While establishing a PostgreSQL connection through PHP, you might get the following error: uncaught exception "could not find driver". That means you need to install PHP pgsql on Amaz...

In AWS, Amazon Linux 2, Feb 17, 2023

How to Install PHP Embed on Amazon Linux 2

Like the name itself, the Embed extension will allow you to embed PHP scripts in different languages, for example in PHP extensions which are mainly written in C. Let’s jump on how to...

In AWS, Amazon Linux 2, Feb 15, 2023

How to Install PHP bcmath on Amazon Linux 2

Using PHP arithmetic functions can be achieved through bcmath package, which is a wrapper for these functions and can be even used in an object-oriented way. Let’s see how to install ...

In AWS, Amazon Linux 2, Feb 13, 2023

How to Install PHP intl on Amazon Linux 2

The Intl extension in PHP is a set of f C/C++ and Java libraries that can allow PHP programmers to perform UCA conformant collation and date-time-number formatting in their scripts. L...

In AWS, Amazon Linux 2, Feb 11, 2023

How to Install PHP XML on Amazon Linux 2

If you want to parse XML documents with PHP, then you need to install php-xml library. Let’s see how to install PHP XML on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 09, 2023

How to Install PHP Imap on Amazon Linux 2

Using the Imap functions in PHP you can fetch emails from an email account, also Imap functions can allow you to work with POP3 protocol. Working with the Imap PHP library you can cre...

In AWS, Amazon Linux 2, Feb 07, 2023

How to Install PHP GD on Amazon Linux 2

If you need to create or do some stuff with images in PHP, it can be done through the GD library. Here I will show you how to install PHP GD on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 05, 2023

How to Install PHP Json on Amazon Linux 2

To be able to convert your PHP objects into JSON using the PHP functions, you need to have php-json extension installed. Let’s install PHP Json on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 03, 2023

How to Install PHP Zip on Amazon Linux 2

Older PHP versions had support to enable the zip extension by using --enable-zip option. With PHP 7.4.0 and all the upper versions, the bundled libzip extension has been removed. Here...

In AWS, Amazon Linux 2, Feb 01, 2023

How to Install PHP Devel on Amazon Linux 2

Building PHP extensions can be done through the php-devel package which contains files needed for PHP extensions. Today’s aim is to install PHP Devel on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 30, 2023

Install PHP PDO on Amazon Linux 2

If your app is PHP based and you need to establish a database connection, you will need to have a PHP PDO extension. Let’s install the PHP PDO extension on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 28, 2023

Install PHP Curl on Amazon Linux 2

As a PHP Developer, you might need to send or receive files over HTTP. With the PHP Curl module, you can even use proxies or pass data over SSL connections. Let’s see how to install t...

In AWS, Amazon Linux 2, Jan 26, 2023

How to Associate Elastic IP to an EC2 instance

If you have allocated an Elastic IP already and you want to associate with one of your EC2 instances, the procedure can be done in a few steps. Let’s take a look on how to associate E...

In AWS, Amazon Linux 2, Jan 24, 2023

Install PHP CGI on Amazon Linux 2

If you want to use the PHP interpreter through CGI mode but you don’t have CGI extension installed, here I will show you how to install PHP CGI on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 22, 2023

Install php-common on Amazon Linux 2

If you get The common extension is missing. Please check your PHP configuration that means that you need to install php-common extension. The installation is very simple since you hav...

In AWS, Amazon Linux 2, Jan 20, 2023

Install shasum on Amazon Linux 2

Shasum can be easily installed through perl-Digest-SHA packages on Amazon Linux 2. Let’s jump on the installation part.

In AWS, Amazon Linux 2, Jan 16, 2023

Install Pip on Amazon Linux 2

If you have python installed but still getting No package pip available you can easily solve this by adding the python-pip with yum. Let’s see how to install pip on Amazon Linux 2.

In AWS, Amazon Linux 2, Dec 27, 2022

Install Iptables on Amazon Linux 2

Seemingly installing iptables on Amazon Linux 2 might not be useful if you consider aws security rules. However iptables allows managing more complex scenarios, like port forwarding, ...

In Iptables, AWS, Amazon Linux 2, Dec 17, 2022

Install htpasswd on Amazon Linux 2

Setting up htpasswd to have basic-auth for your site users can be done in a few steps depending on your web server. Here I’m going to cover just the installation process of htpasswd o...

In Htpasswd, AWS, Amazon Linux 2, Dec 03, 2022

Install Smartctl on Amazon Linux 2

If you want to monitor or analyze the health of the hard drive or check details for your ec2 hard drive, I would recommend installing smartctl command. Let’s see how to install smartc...

In Smartctl, AWS, Amazon Linux 2, Nov 29, 2022

PS Command Not Found in Amazon Linux 2

Procps package might not be part of some Amazon Linux 2 docker images. So if you want to list the active processes you will get: ps command not found. It can be easily resolved by ins...

In PS, Amazon Linux 2, Nov 23, 2022

Install Zlib on Amazon Linux 2

Usually, zlib comes preinstalled with most of the Amazon Linux images. But in case you get: bash: zlib: command not found then you need to install zlib on Amazon Linux 2.

In Zlib, Amazon Linux 2, Nov 19, 2022

Install Sudo on Amazon Linux 2

Some of the Amazon Linux 2 images are missing very basic system commands like sudo. If you get this error /bin/sh: sudo: command not found then you definitely need to install sudo on ...

In AWS, Amazon Linux 2, Nov 15, 2022

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Install PHP-FPM on Amazon Linux 2

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

In PHP, AWS, Amazon Linux 2, Nov 11, 2022

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

Install Wget on Amazon Linux 2

Let’s resolve the issue wget command not found on Amazon Linux 2.

In Wget, AWS, Amazon Linux 2, Nov 05, 2022

Install Mbstring on Amazon Linux 2

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

In Mbstring, AWS, Amazon Linux 2, Nov 03, 2022

Install gcc on Amazon Linux 2

While compiling or running C based code on Amazon Linux 2 you might face the following issue: gcc: command not found. That means that you don’t have GCC package installed which is use...

In gcc, AWS, Amazon Linux 2, Nov 01, 2022

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

Install Python on Amazon Linux 2

Installing Python 3 from the existing Amazon Linux 2 packages should be fairly easy. If you want to install the latest Python version 3.11.0 it might be tricky, but we are going to co...

In Python, AWS, Amazon Linux 2, Oct 28, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

Install Git on Amazon Linux 2

The Git installation on Amazon Linux 2 is simple and straightforward. Let’s check it out.

In Git, AWS, Amazon Linux 2, Oct 18, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Update private service access connection in GCP

Not trying to rant about GCP, but to sum up, you need to do a ton of somehow complex steps just to get a simple thing up and running. It’s frustrating though.

In GCP, Aug 08, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

MySQL fix: 'Waiting for table metadata lock'

Working with high load SQL queries or big transactions, you may face: Waiting for table metadata lock. Here I’m going to list some useful solutions that might help you.

In MySQL, Feb 24, 2022

How to install Apache on Amazon Linux 2

Once you have provisioned an AWS EC2 instance installing Apache on Amazon Linux 2 is a straightforward and easy process. Here I’m going to show you how to install Apache web server on...

In Apache, AWS, Amazon Linux 2, Feb 06, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to find the latest Azure deployment template schema API version

Using the latest ARM templates schema API version is important only when provisioning new resources. In general, there is no need to keep up-to-date API version of the already deploye...

In Azure, Nov 17, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

5 ways to protect root account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

How to install Ansible on Amazon Linux 2

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In Ansible, AWS, Amazon Linux 2, Oct 07, 2021

How to install Nginx on Amazon Linux 2

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In Nginx, AWS, Amazon Linux 2, Oct 05, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

errors

Resolve 'fatal: detected dubious ownership in repository at' in Git

The error message fatal: detected dubious ownership in repository at.. happens when Git detects that the current user is not owner of the Git repo directory.

In Git, Sep 16, 2023

Resolve 'Are you trying to mount a directory onto a file (or vice-versa)?' in Docker

The error message Are you trying to mount a directory onto a file (or vice-versa)? in Docker Compose typically occurs when there is a mismatch between the source and destination paths...

In Docker, Jul 18, 2023

Non-zero exit status code 127 in Linux

As with most nonzero exit status codes, they indicate that the program or command encountered an error or an exceptional condition during its execution. So, what does 127 means then?!

In Linux, Jun 18, 2023

Node.js 'Unknown runtime version named '16' of nodejs.'

Increasing your node js lambda version and deploying through CodePipeline can throw an error like: Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '1...

In Node, Jun 07, 2023

Terraform 'An argument named allow_classic_link_to_remote_vpc is not expected here.'

As of January 1, 2023, traffic between VPCs in different regions is automatically allowed, regardless of whether the allow_classic_link_to_remote_vpc or allow_vpc_to_remote_classic_li...

In Terraform, Jun 03, 2023

Git error: cannot lock ref ..unable to create..

Since Stack Exchange decided to follow the same path as Reddit in terms of restricting access to the content, I’ll try to share with you as many error “hacky” solutions as possible. H...

In Git, Jun 02, 2023

Terraform 'The argument replication_group_description is required, but no definition was found.'

While creating a new Redis instance I got the following error: The argument "replication_group_description" is required, but no definition was found.

In Terraform, Jun 01, 2023

Drone CI and GitHub webhooks 'We couldn't deliver this payload: timed out' error

As the title says here’s a workaround if you find yourself in a situation where the GitHub webhook fails only for a certain repository with “no reason” or updates made regarding Drone...

In Drone, GitHub, May 19, 2023

Docker and missing sites-enabled in Nginx

It’s not a first time to face any gotchas while building Docker images, especially when dealing with symlinks, mount volumes, permissions, etcetera. So, here are few things to check w...

In Docker, Nginx, May 17, 2023

Resolve 'No newline at end of line' in GitHub

Creating the first Pull Request could be anxious, you feel like being judged by other engineers. Generally, the first thing you might notice is the GitHub red sign saying “No newline ...

In Git, Apr 29, 2023

Terraform ignore_changes and 'A static list expression is required.

Including dynamic blocks or a for_each resource with ignore_changes leads to: A static list expression is required. As for the solution, make sure whatever list of attributes you are ...

In Terraform, Apr 15, 2023

Resolve: 'The block type lifecycle is reserved for use by Terraform in a future version'

A common error for Terraform beginners out there is: The block type "lifecycle" is reserved for use by Terraform in a future version. in case you want to “ignore” a certain attribute ...

In Terraform, Apr 13, 2023

Terraform and Azure's 'Required property policyRule not found in JSON'

While developing and testing a TF Azure module for policies and policy initiatives (sets) I’ve received the following error:Error: creating/updating Policy Definition custom-policy-1:...

In Terraform, Azure, Apr 11, 2023

Terraform and 'The given "for_each" argument value is unsuitable.'

As a follow-up to Terraform: null values and for_each, this time we are going to see which values are (not) allowed when dealing with for_each, thus the following error:│ Error: Inval...

In Terraform, Apr 09, 2023

Terraform and 'the object type constructor requires one argument...'

Upgrading Terraform version (at least before version 1.0) to another major release, always comes with certain errors along the way, mostly for those being lazy to read any release not...

In Terraform, Apr 05, 2023

Resolve Terraform's 'Error: Duplicate required providers configuration'

Another not so common error that I’ve faced while working on a Terraform module:```bashInitializing modules…There are some problems with the configuration, described below.

In Terraform, Apr 03, 2023

Resolve Terraform's 'net/http: request canceled while waiting for connection'

Today’s error of the week is linked to the following Terraform issue:│ Error: Failed to query available provider packages││ Could not retrieve the list of available versions for provi...

In Terraform, Apr 01, 2023

Resolve GCP googleapi Error 400: `Unparseable iamMember` in Terraform

Managing GCP infrastructure with Terraform is an uphill battle, especially if you are not familiar with any other cloud, and how they work. So, here’s my error of the week that I got ...

In GCP, Terraform, Mar 20, 2023

Terraform and GCP googleapi: Error 400: Request contains an invalid argument

It would be more or less fair to say that GCP is the only Cloud hosting platform that I have disdain for and give me an urge to punch a wall. Based take, right?! While I was trying to...

In Terraform, GCP, Feb 14, 2023

Resolving WordPress, PHP's "Fatal error: Allowed memory size of X bytes exhausted"

If I got a dollar for every temporary, quick fix found on the Internet for any type of error, I’ll be so rich. Before else, WordPress and LAMP stacks makes the majority of websites ou...

In WordPress, PHP, Feb 08, 2023

Go(lang) and http's empty "unsupported protocol scheme" error

A bit controversial opinion, but every DevOps, Cloud engineer needs to know at least how to read application code. As I started my app development journey with Go, also known as Golan...

In Go, Feb 04, 2023

502 Bad Gateway, Nginx reverse proxy and Docker containers in CentOS 7

Sometimes, setting up HTTP/HTTPS GCP Firewall rule and Nginx reverse proxy to point to the Docker container port mapped as 0.0.0.0:3000 could be not enough, even though running curl 0...

In Docker, Nginx, CentOS, Jan 31, 2023

Resolve: "No module named psycopg2" in Python

Even though the usual ModuleNotFoundError are much obvious, sometimes there is an extra package or in this case a different package to be installed in order to get the required module...

In Python, Jan 01, 2023

macOS: xcrun: error: invalid active developer path

Yesterday I’ve tried to spin up some Git cloned Golang project for fun, and while trying to run make worker, I’ve received the following error in the console output: xcrun: error: inv...

In macOS, Dec 16, 2022

Recover out of sync PostgreSQL slave/replica (WAL has already been removed)

WAL or Write-Ahead Logging as a method that enables PostgreSQL data integrity. Mostly used in replication as it enables High Availability (HA). Now, PostgreSQL replication is a broad ...

In PostgreSQL, Dec 06, 2022

Docker: Error response from daemon: ... unauthorized: please use personal access token to login

Last week I’ve leveled up my security game by reviewing and updating all internet services that I’m using and subscribed to, to enable 2FA, including Docker. After few days, as I was ...

In Docker, Dec 04, 2022

Docker: unauthorized: authentication required

It’s all fun and games to build and run Docker images on your local machine, but when it comes to pushing to a remote registry, the authentication itself is a pain to dealt with. And ...

In Docker, Nov 30, 2022

AWS S3: "Read timeout on endpoint URL"

This is a sort of a second part of the “AWS S3” error series that I’ve encountered a week ago. In the previous post I had the (RequestTimeTooSkewed) The difference between the request...

In AWS, Nov 29, 2022

AWS S3: "(RequestTimeTooSkewed) The difference between the request time and the current time is too large"

There are two scenarios where I find AWS S3, the most popular object store, most fit for solutions including: Keeping DB, file backups or even any kind of backups as a cold storage s...

In AWS, Nov 28, 2022

Resolve: "go:linkname must refer to declared function or variable" in Go(lang)

While compiling and building a dockerized Go(lang) stack running on macOS, I’ve received the following error line(s): ../../../go/pkg/mod/golang.org/x/[email protected]...

In Go, Nov 27, 2022

docker: Error response from daemon: failed to create shim task

Docker errors might not always be clear, so if you face: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start...

In Docker, Nov 27, 2022

Resolve: "gyp verb check python checking for Python executable "python2" in the PATH"

While I was working locally on some Python project pulled from an archived Git repo, I needed few hours just to setup the environment on a Windows machine, and get it up and running. ...

In Python, Nov 24, 2022

Resolve: "No module named &#60insert-package-name-here&#62" in Python

Building and compiling Python apps could be troublesome chiefly when copy-and-pasting another code from the internet without installing or importing the module itself. Sound familiar?...

In Python, Nov 22, 2022

Resolve: "No module named oauth2client" in Python

Just like the previous post Resolve: No module named apiclient.discovery in Python this time being:ModuleNotFoundError: No module named 'oauth2client'

In Python, Nov 21, 2022

Resolve: "No module named apiclient.discovery" in Python

A few days ago I was getting the following error: ImportError: No module named apiclient.discovery.

In Python, Nov 20, 2022

Disable "InsecureRequestWarning: Unverified HTTPS request is being made" in Python

It’s not so common to be concerned about HTTPS endpoints in the development stage. Thus, it feels like suppressing warning messages is a common thing, right. So, as I was playing arou...

In Python, Nov 17, 2022

How to fix 'no basic auth credentials' AWS ECR

If you are struggling to get login credentials for ECR authentication to be able to push or pull a Docker image from ECR, then you are probably executing the aws ecr get-login command...

In AWS, Aug 11, 2022

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Update private service access connection in GCP

Not trying to rant about GCP, but to sum up, you need to do a ton of somehow complex steps just to get a simple thing up and running. It’s frustrating though.

In GCP, Aug 08, 2022

How to fix Docker: unable to start container process: exec: '/bin/bash'

If you get this kind of error: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: ...

In Docker, Jul 26, 2022

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

Fix 'No package python3-certbot-nginx available.' error

While installing some Certbot packages I stumbled upon the No package python3-certbot-nginx available. error. Let’s take a look.

In Certbot, Python, Jul 18, 2022

'Failed to install provider ... doesn't match checksums from dependency lock file' error in Terraform

For today’s Terraform error of the week series we are going to take a look at the following one:│ Error: Failed to install provider│ │ Error while installing terra-farm/xenorchestra v...

In Terraform, Jul 11, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

'data could not be decoded from the state: unsupported attribute' error in Terraform

Another Terraform error from the vault, this time being:Error: Invalid resource instance data in state .. data could not be decoded from the state: unsupported attribute "manage_run_t...

In Terraform, Jul 03, 2022

Resolve KernelCare `Error unpatching [255] ('default', '', '', False)` issue

Updating the latest security and stability patches using KernelCare it’s a safe and recommended way, but sometimes it can throw Error unpatching [255] ('default', '', '', False) error...

In Linux, Jun 28, 2022

'Invalid character encoding' error in Terraform

Another ez solution as part of the Terraform issue series. This time being the following one:╷│ Error: Invalid character encoding││ on providers.tf line 1:│ 1: ��provider "aws" {...

In Terraform, Jun 19, 2022

'Argument or block definition required' error in Terraform

Continuing on my Terraform issues journey, I’m going to try to help you with resolving yet another common TF error:╷│ Error: Argument or block definition required││ on providers.tf ...

In Terraform, Jun 15, 2022

'Saved plan is stale' error in Terraform

Today I’m going to show you a quick solution on how to resolve just another TF error:╷│ Error: Saved plan is stale│ │ The given plan file can no longer be applied because the state wa...

In Terraform, Jun 13, 2022

'Failed to load tfplan as a plan file zip: not a valid zip file' error in Terraform

If you have ever tried to terraform apply tfplan.txt with tfplan.txt being a plain text terraform plan command output file (or even tfplan.tf), you’ll get the following error message:...

In Terraform, Jun 11, 2022

'too many command line arguments' error in Terraform

Error: too many command line arguments is one more common error which obviously points out an issue related to arguments not being interpreted correctly. Although there’s no universal...

In Terraform, Jun 07, 2022

'Invalid character' error in Terraform

Yet another Terraform error-related post. For any other Terraform-related issues, browse by category here.

In Terraform, Jun 01, 2022

'Failed to install provider unsuccessful request to 403 forbidden' error in Terraform

On today’s menu we got yet another TF error to resolve. For any other Terraform-related issues, browse by category here.

In Terraform, May 24, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

'Output refers to sensitive values' error in Terraform

Before Terraform ver. 0.14 you could have undoubtedly leaked any secret as being a part of an output value. This usually happens in a CI/CD pipeline. These days Terraform will throw a...

In Terraform, May 18, 2022

Resolve `Resource handler returned message: Model validation failed (#/ContainerDefinitions/0/Environment: array items are not unique)` error in CloudFormation

While updating some of my CloudFormation templates I stumbled upon the following error:Resource handler returned message: "Model validation failed (#/ContainerDefinitions/0/Environmen...

In AWS, May 11, 2022

Resolve Docker's 'Version in docker-compose.yml is unsupported' error

Let’s take a look at the not so common Docker Compose error:"Configuration error - Version in "./docker-compose.yml" is unsupported.You might be seeing this error because you're using...

In Docker, Apr 20, 2022

How to fix Docker's 'error while removing network <> has active endpoints'

In today’s post we are going to list a few solutions on how to deal with the following Docker network error: ERROR: error while removing network: network <> has active endpoints...

In Docker, Apr 04, 2022

How to resolve Nginx 'an upstream response is buffered to a temporary file' error

After connecting Nginx with ELK stack to handle requests I spot a lot of an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/9/66/00000034785 while read...

In Nginx, Mar 08, 2022

Fix 'fallocate failed: Operation not supported'

While creating a swap on your Linux machine, executing sudo fallocate -l 1G /swap-file-name may throw fallocate failed: Operation not supported. Here I’m going to show you a quick fix...

In Linux, Mar 02, 2022

How to deal with 'AnsibleUndefinedVariable: ... is undefined' error

Although Ansible has a low learning curve, obviously there’s always a big difference between learning on your own versus working on a medium to large scale size (enterprise) projects....

In Ansible, Feb 27, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

AWS Error 1290 (HY000): The MySQL server is running with the --read-only

Using AWS Aurora auto-scaling will increase the resources to handle the workload and connections. So that way you can see a bunch of replicas that are taking care of the workload. Con...

In MySQL, Feb 10, 2022

Resolve couldn't connect to docker daemon at http+docker //localhost - is it running?

Using Docker with a non-root user can cause issues connected with the Docker daemon. The Docker daemon binds to a Unix socket, so the Docker client will try to communicate to the daem...

In Docker, Feb 08, 2022

How to fix 'type: geography does not exist' error in PostgreSQL

Restoring PostgreSQL databases could be sometimes tricky and most likely includes few errors. In today’s issue resolving series, we are going to deal with the following error: type: "...

In PostgreSQL, Feb 03, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

Resolve AWS SSM plugin with name Standard_Stream not found

AWS SSM is a nice feature if you don’t want to deal with the majority of the SSH issues along the way. Today’s topic is all about resolving the:SessionId: devcoops-<some_string>...

In AWS, Jan 02, 2022

How to fix Windows 11 'does not meet the requirements' error on VirtualBox

As with most of the new OS releases on macOS, Windows or Linux, my best practice is to test them first in a virtual environment, usually using VirtualBox. The reason you might stumble...

In Windows 11, Virtualization, Dec 17, 2021

How to fix Docker error: 'Cannot start service .. network $network-id not found

If you have already created a Docker Compose stack and you are trying to start/restart the containers, you may face Docker error: Cannot start service ..: network $network-id not foun...

In Docker, Nov 18, 2021

Solution: Ignoring GEM because its extensions are not built

Solutions to common issues in Ruby dev environment series: Solution: cannot load such file – webrick (LoadError) Solution: gem eventmachine fatal error: ‘openssl/ssl.h’ file not fou...

In Ruby, Nov 09, 2021

Resolve RabbitMQ 'Node statistics not available' in Cluster Node

Setting up RabbitMQ cluster with master and slave instances can invoke some node destabilization like the error Node statistics not available. Here I’m going to show you few steps how...

In RabbitMQ, Nov 08, 2021

Solution: Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION

As a part of the solutions to common issues in Ruby dev environment series, here’s the link to the previous ones: Solution: cannot load such file – webrick (LoadError) Solution: gem...

In Ruby, Nov 07, 2021

Solution: gem eventmachine fatal error: 'openssl/ssl.h' file not found

I’ll be doing a solution to common issues in Ruby dev environment series, so here’s the link to the first post: Solution: cannot load such file – webrick (LoadError) Solution: Unkno...

In Ruby, Nov 05, 2021

Solution: cannot load such file -- webrick (LoadError)

As a DevOps engineer myself and three years of using a MacBook Pro, I’ve noticed that updating a major release of macOS always comes with unwelcomed ruby dependencies and version errors.

In Ruby, Nov 03, 2021

How to resolve AWS Aurora ERROR 3024 (HY000)

If you hold some heavy-load AWS Aurora database tables, and you are trying to export some tables or import data, there is a big chance to face the following error ERROR 3024 (HY000): ...

In AWS, Nov 02, 2021

Resolve (code=exited, status=2) in Nginx

Sometimes after Nginx service restart and you’re trying to get the service status, you might get the following status code line:Process: 10316 ExecStop=/sbin/start-stop-daemon --quiet...

In Nginx, Oct 20, 2021

POSTGRESQL ERROR: Canceling statement due to conflict with recovery

This article is focused on resolving Canceling statement due to conflict with recovery, which is a common issue when dealing with master-slave replication.

In PostgreSQL, Oct 14, 2021

How to resolve PostgreSQL 'FATAL: sorry, too many clients already' error

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how to deal with one of the most often seen PostgreSQL errors:org.postgresql.util.PSQLException: FATAL: s...

In PostgreSQL, Aug 02, 2021

How to fix Terraform 'acquiring the state lock' error

A couple of days ago, I was deploying a Terraform ECS cluster, and during the terraform plan command, I forgot to add a module. Didn’t want to wait it out until the command finish, so...

In Terraform, Jul 31, 2021

How to fix 'kernel driver not installed (rc=-1908)' error on macOS

The first time you try to spin up a VM on macOS, you will probably go with VirtualBox as a Hypervisor, and honestly VBox is pretty good for beginners who just want to get the things d...

In macOS, Virtualization, Jul 07, 2021

How to fix Docker's login 'unknown shorthand flag' error

In some of the previous posts I’ve covered the authorization token method when authenticating to an AWS ECR private registry. If you have followed the steps as described in the post y...

In Docker, AWS, Jul 03, 2021

virtualbox

How to install Windows 11 on VirtualBox

Windows 11 has been out there for almost 3 months, so let’s see how good the VirtualBox installation will go.

In Windows 11, Virtualization, Dec 21, 2021

How to fix Windows 11 'does not meet the requirements' error on VirtualBox

As with most of the new OS releases on macOS, Windows or Linux, my best practice is to test them first in a virtual environment, usually using VirtualBox. The reason you might stumble...

In Windows 11, Virtualization, Dec 17, 2021

How to fix 'kernel driver not installed (rc=-1908)' error on macOS

The first time you try to spin up a VM on macOS, you will probably go with VirtualBox as a Hypervisor, and honestly VBox is pretty good for beginners who just want to get the things d...

In macOS, Virtualization, Jul 07, 2021

virtualization

How to enable second level quota on OpenVZ

The second level quota, commonly used per-user and per-group is a virtualization thing that allows the VS admin to limit the amount of free disk space and potentially can restrict the...

In Virtualization, Mar 22, 2022

How to install Windows 11 on VirtualBox

Windows 11 has been out there for almost 3 months, so let’s see how good the VirtualBox installation will go.

In Windows 11, Virtualization, Dec 21, 2021

How to fix Windows 11 'does not meet the requirements' error on VirtualBox

As with most of the new OS releases on macOS, Windows or Linux, my best practice is to test them first in a virtual environment, usually using VirtualBox. The reason you might stumble...

In Windows 11, Virtualization, Dec 17, 2021

How to fix 'kernel driver not installed (rc=-1908)' error on macOS

The first time you try to spin up a VM on macOS, you will probably go with VirtualBox as a Hypervisor, and honestly VBox is pretty good for beginners who just want to get the things d...

In macOS, Virtualization, Jul 07, 2021

postgresql

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

PostgreSQL 101: replications

In PostgreSQL, choosing a replication strategy is a big deal, depending on what you want to achieve. This can be anything from High Availability, Backup and Disaster, mullti-master an...

In PostgreSQL, Dec 14, 2022

PostgreSQL DB size larger than the sum of table sizes

Another issue to get off my chest. A few weeks back, I was struggling to find why the production PostgreSQL DB size was significantly larger than the sum of table sizes. I was bambooz...

In PostgreSQL, Dec 10, 2022

PostgreSQL 101: pg_table_size vs pg_relation_size vs pg_indexes_size vs pg_total_relation_size

Another good nugget to share as I was trying to find out which production DB table was bloated and why. The size was in GB, and it was ridiculous, something around 50GB. You can find ...

In PostgreSQL, Dec 08, 2022

Recover out of sync PostgreSQL slave/replica (WAL has already been removed)

WAL or Write-Ahead Logging as a method that enables PostgreSQL data integrity. Mostly used in replication as it enables High Availability (HA). Now, PostgreSQL replication is a broad ...

In PostgreSQL, Dec 06, 2022

How to export and import PostgreSQL tables using CSV

Export and Import operations in PostgreSQL and any other relation database management system for that matter, could include a couple of use-case scenarios, for instance data analysis....

In PostgreSQL, Feb 21, 2022

How to upgrade and downgrade extensions in PostgreSQL

Extensions in PostgreSQL are basically packages with additional features. The popular ones include TimescaleDB, PostGIS, pg_stat_statements, ZomboDB and postgres_fdw. Today’s focus go...

In PostgreSQL, Feb 19, 2022

How to install, enable and list TimescaleDB version in PostgreSQL

TimescaleDB is a PostgreSQL extension that enables easier approach when working with time-series data. Today we are going to see how can we install, enable/disable, get the TimescaleD...

In PostgreSQL, Feb 17, 2022

How to limit number of rows in PostgreSQL

Limiting SQL queries is most likely a useful feature especially if you want to get a sample data chunk from a big table. The LIMIT clause in PostgreSQL is pretty much the same as the ...

In PostgreSQL, Feb 15, 2022

How to list sequences in PostgreSQL

Sequences in PostgreSQL are types of objects in a database that generates sequence of integers with specific requirements. Here are few ways to list them though.

In PostgreSQL, Feb 13, 2022

How to list triggers in PostgreSQL

Triggers are types of stored procedures that run automatically whenever an event occurs, something like webhooks. And, a few ways to list them.

In PostgreSQL, Feb 11, 2022

How to list stored procedures in PostgreSQL

Stored procedures or simply put procedures are just SQL codes that can be saved for later use. There are few ways you could list them though, found below.

In PostgreSQL, Feb 09, 2022

How to list indexes in PostgreSQL

This week is all about listing things in PostgreSQL, and I’m going to start with indexes. Indexes are basically tables that points to data in other tables, therefore speeding up the q...

In PostgreSQL, Feb 07, 2022

How to restore an individual table in PostgreSQL

Backup and restore operations are convenient if we are working with small and medium-sized data. But, what happens when we need to restore a single table from a large database?! Most ...

In PostgreSQL, Feb 05, 2022

How to fix 'type: geography does not exist' error in PostgreSQL

Restoring PostgreSQL databases could be sometimes tricky and most likely includes few errors. In today’s issue resolving series, we are going to deal with the following error: type: "...

In PostgreSQL, Feb 03, 2022

Calculate PostgreSQL configuration

Fine-tuning PostgreSQL requires a lot of experience and screw-ups along the way. Luckily, there is a configuration calculator available online made just for DevOps, SysOps and DB admi...

In PostgreSQL, Dec 19, 2021

POSTGRESQL ERROR: Canceling statement due to conflict with recovery

This article is focused on resolving Canceling statement due to conflict with recovery, which is a common issue when dealing with master-slave replication.

In PostgreSQL, Oct 14, 2021

How to list, remove and upgrade PostgreSQL cluster

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how can we list, remove and upgrade clusters, the easy way.

In PostgreSQL, Aug 11, 2021

How to terminate connections in PostgreSQL

As part of the PostgreSQL series, in today’s tutorial, we are going to focus on how to list and terminate connections.

In PostgreSQL, Aug 07, 2021

How to terminate idle transactions in PostgreSQL

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how to set idle_in_transaction_session_timeout parameter and handle idle transactions, so you won’t face ...

In PostgreSQL, Aug 04, 2021

How to resolve PostgreSQL 'FATAL: sorry, too many clients already' error

As part of the PostgreSQL series, in today’s tutorial, we are going to see on how to deal with one of the most often seen PostgreSQL errors:org.postgresql.util.PSQLException: FATAL: s...

In PostgreSQL, Aug 02, 2021

How to install PostgreSQL on Rocky Linux 8

Installing PostgreSQL on Rocky Linux follows the same procedure as MySQL. We need to enable the PostgreSQL module, install the desired version and enable the PostgreSQL service. Follo...

In PostgreSQL, Rocky Linux, Aug 01, 2021

How to pg_dump to AWS S3 directly

Just before we start with this tutorial, I just want to say, don’t try this on production. Streaming pg_dump backup directly to S3 bucket is a bad practice to start with, unless you a...

In PostgreSQL, AWS, Jul 29, 2021

Basic and common PostgreSQL commands

In some of the previous posts, I’ve written about How to Backup and Restore a PostgreSQL Database and How To Show Database and table size in PostgreSQL.

In PostgreSQL, Jul 27, 2021

Show database and table size in PostgreSQL

In this tutorial, we’ll see how we can show a database and table size in PostgreSQL. Planning a backup procedure, determining server instance size, could be few reasons to keep an eye...

In PostgreSQL, Jul 19, 2021

How to backup and restore a PostgreSQL database

As an open-source databases, PostgreSQL is in the top 3 most popularly used databases which often can be found as a managed service offered by the public cloud giants. In one of the p...

In PostgreSQL, Jul 09, 2021

pg_dump

How to pg_dump to AWS S3 directly

Just before we start with this tutorial, I just want to say, don’t try this on production. Streaming pg_dump backup directly to S3 bucket is a bad practice to start with, unless you a...

In PostgreSQL, AWS, Jul 29, 2021

How to backup and restore a PostgreSQL database

As an open-source databases, PostgreSQL is in the top 3 most popularly used databases which often can be found as a managed service offered by the public cloud giants. In one of the p...

In PostgreSQL, Jul 09, 2021

pg_restore

How to restore an individual table in PostgreSQL

Backup and restore operations are convenient if we are working with small and medium-sized data. But, what happens when we need to restore a single table from a large database?! Most ...

In PostgreSQL, Feb 05, 2022

How to backup and restore a PostgreSQL database

As an open-source databases, PostgreSQL is in the top 3 most popularly used databases which often can be found as a managed service offered by the public cloud giants. In one of the p...

In PostgreSQL, Jul 09, 2021

arm64

Resolve: "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)"

As I was trying to get my Python Docker Compose stack up and running on my MacBook Pro, I’ve noticed the following message: Warning: The requested image's platform (linux/amd64) does ...

In Docker, Nov 23, 2022

Apple M1 Chip Docker Error - no matching manifest for linux/arm64/v8

Most of the Docker images are not compatible with the newest Apple Silicon M1 chip throwing no matching manifest for linux/arm64/v8. Let’s see how to resolve the issue.

In Docker, Feb 18, 2022

How to install Docker Compose on ARM64

In some of the previous posts I’ve covered how you can install Docker Compose on Linux distributions like Rocky Linux for example. It’s pretty easy to set it up, right?! Usually when ...

In Docker, Jul 12, 2021

mysql

How to Install MySQL on Ubuntu 23.04

On Ubuntu 23.04, MySQL installation can be done using the APT package repository. Let’s jump on the installation part.

In MSQL, May 16, 2023

How to export multiple MySQL databases in a separate .sql file

The easiest way to export multiple MySQL databases in a separate .sql file is through a bash script.

In MySQL, Mar 23, 2023

How to fix 'GPG keys listed for the MySQL Server repository are already installed'

Seemingly the MySQL installation might look like an easy task, but you might also face the following error The GPG keys listed for the "MySQL Community Server" repository are already ...

In MySQL, Amazon Linux, Mar 15, 2023

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

MySQL: configure innodb_buffer_pool_size

Running out of memory on small MySQL instances (less than 1GB) hosting WordPress sites was a common thing for me, for a while. Even creating swap disk didn’t help as the MySQL service...

In MySQL, Dec 12, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Install MySQL on macOS with Homebrew

If you strive to install MySQL on macOS in a few steps then brew is the right choice for it. Let’s see how to install MySQL on macOS with Homebrew.

In macOS, MySQL, Oct 06, 2022

How to kill thread or query in AWS RDS

Stopping some threads or queries that may appear in the deadlock queue or locked from the InnoDB engine on AWS RDS is a different thing than self-hosted MySQL or MariaDB. They can pot...

In AWS, Mar 24, 2022

Repair and optimize MySQL databases

In some of the previous posts, I’ve explained how to check if the MySQL tables are corrupted. So this topic will shed some light on how to auto-repair and optimize all MySQL databases...

In MySQL, Mar 20, 2022

How to export all MySQL databases

Keeping the database structure in one place and safe can sometimes be useful regarding disaster recovery. Exporting all MySQL databases into one SQL file it’s not a common thing, but ...

In MySQL, Mar 18, 2022

MySQL fix: 'Waiting for table metadata lock'

Working with high load SQL queries or big transactions, you may face: Waiting for table metadata lock. Here I’m going to list some useful solutions that might help you.

In MySQL, Feb 24, 2022

AWS Error 1290 (HY000): The MySQL server is running with the --read-only

Using AWS Aurora auto-scaling will increase the resources to handle the workload and connections. So that way you can see a bunch of replicas that are taking care of the workload. Con...

In MySQL, Feb 10, 2022

MySQL check for corrupted tables

Exporting and importing MySQL databases and tables sometimes can cause corruption. And, there are a lot of different reasons why the MySQL table can get corrupted. Here in this tutori...

In MySQL, Feb 02, 2022

firewalld allow MySQL remote access

On most of the RHEL-based distributions, firewalld comes as a default firewall, and it’s configured to pass only SSH connections by default. Therefore, in this tutorial I’m going to s...

In Firewalls, MySQL, Dec 06, 2021

How to execute MySQL DB migrations with Symfony and Doctrine

If you are working on infrastructure with a lot of microservices as a developer you may face difficulties executing SQL queries in terms of keeping database structure clean and safe c...

In MySQL, Nov 16, 2021

How to export and import all MySQL databases at once

Working with microservices will ramp up the number of MySQL databases. So, if you need to create a backup for all of them at once there is a way to do it through the CLI. Also importi...

In MySQL, Nov 12, 2021

How to import CSV file into MySQL table

Importing the data through MySQL Workbench or phpMyAdmin can cause some limitation issues, so things will get complicated. In this tutorial, I’m going to show you how to import CSV fi...

In MySQL, Aug 03, 2021

How to install MySQL on Rocky Linux 8

Installing MySQL on Rocky Linux it’s quite easy and quick. A lot of today’s applications are using MySQL as a web database. MySQL is an open source database and offers a lot of features.

In MySQL, Rocky Linux, Jul 30, 2021

How to get database and table size in MySQL

In this tutorial, we’ll see how we can show a single and multiple database and table size in MySQL. Let’s get straight to the point.

In MySQL, Jul 21, 2021

How to backup and restore a MySQL database

MySQL is one of the most popular open-source database engines. Manually backing up and restoring databases for whatever reasons could be found quite easy to execute, and we can see ho...

In MySQL, Jul 14, 2021

jenkins

git clone another repository from a Jenkins pipeline

There are some use cases where we need to reuse a config or multiple files from another Git repo in a Jenkins pipeline. As for the solution, here’s something you could try.

In Jenkins, Jul 08, 2023

Cleanup workspace directory in Jenkins

Starting a CI job with a clean empty workspace directory ensures not having to deal with flaky tests in a way. Here’s how to do it.

In Jenkins, Jul 06, 2023

Changing workspace directory in Jenkins

In Jenkins, each stage in a pipeline is executed in a separate workspace directory. The workspace is a local directory on the Jenkins agent where the pipeline is running. Each stage c...

In Jenkins, Jun 24, 2023

How to send alerts to Microsoft Teams from Jenkins using Jenkinsfile

Creating webhooks from the Jenkins GUI is straightforward. So that’s why here I will explain how to create a webhook as a code to send alerts to a Teams channel. Let’s see the solution.

In Jenkins, Mar 21, 2023

How to fix Jenkins: 'dial unix /var/run/docker.sock: connect: permission denied'

Due to high Memory and CPU, I needed to spin up a new ec2 instance. After a while, tried to kick off my Jenkins CI/CD pipeline and got the following error: dial unix /var/run/docker.s...

In Jenkins, Jan 18, 2023

How to get Jenkins environment variables

If you are playing with Jenkins, one of the first things that you might be asking yourself is how to get the default Jenkins environment variables. It’s simple and easy, so let’s jump...

In Jenkins, Dec 23, 2022

How to check Apache Log4j vulnerability in Jenkins

There are a lot of open forums and discussions due to the Log4j zero-day flaw these days. Log4j is an open-source Java-based library developed by Apache Software Foundation, as it’s u...

In Jenkins, Apache Log4j2, Dec 14, 2021

Jenkins - same workspace for multiple jobs

In order to save some space on your Jenkins instance or if you need to create some backup jobs for multiple environments, you will need to enable shared space between multiple jobs. I...

In Jenkins, Nov 20, 2021

Clean up Docker space for Jenkins jobs

Managing and deploying complex infrastructure with Jenkins sometimes can cause job failure issues. For example, if you are working with microservices and all the deployments are going...

In Docker, Jenkins, Jul 15, 2021

ci/cd

Drone CI and GitHub webhooks 'We couldn't deliver this payload: timed out' error

As the title says here’s a workaround if you find yourself in a situation where the GitHub webhook fails only for a certain repository with “no reason” or updates made regarding Drone...

In Drone, GitHub, May 19, 2023

How to get Jenkins environment variables

If you are playing with Jenkins, one of the first things that you might be asking yourself is how to get the default Jenkins environment variables. It’s simple and easy, so let’s jump...

In Jenkins, Dec 23, 2022

How to check Apache Log4j vulnerability in Jenkins

There are a lot of open forums and discussions due to the Log4j zero-day flaw these days. Log4j is an open-source Java-based library developed by Apache Software Foundation, as it’s u...

In Jenkins, Apache Log4j2, Dec 14, 2021

Jenkins - same workspace for multiple jobs

In order to save some space on your Jenkins instance or if you need to create some backup jobs for multiple environments, you will need to enable shared space between multiple jobs. I...

In Jenkins, Nov 20, 2021

Add Drone CI build status to your project

In some of the previous posts, I wrote about how to Send Drone CI build notifications with Slack.

In Drone, Oct 08, 2021

Send Drone CI build notifications with Slack

The following post will be about sending Drone CI build notification to Slack. In case you didn’t know already, since there are a dozen of CI/CD tools out there, Drone CI is an open s...

In Drone, Slack, Webhooks, Oct 04, 2021

Clean up Docker space for Jenkins jobs

Managing and deploying complex infrastructure with Jenkins sometimes can cause job failure issues. For example, if you are working with microservices and all the deployments are going...

In Docker, Jenkins, Jul 15, 2021

powershell

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Install PowerShell on Debian 11

PowerShell can be installed on Debian 11 as well. All you need is to follow the steps down below.

In PowerShell, Debian, Oct 26, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Show full history in PowerShell

PowerShell’s Get-History only lists the current session history. Now, I’m going to share with you a quick nugget on how to show the full history from all sessions.

In PowerShell, Jul 15, 2022

Escape PowerShell's double quotes in Terraform

To my Windows-PowerShell-Terraform-Azure users out there, I just want to share a quick nugget on how to escape the annoying double quotes.

In Terraform, PowerShell, Jun 23, 2022

Get Windows 10 version number from the CLI

Today’s topic going to be all about the multiple way to get the version number for Windows 10. Even though there’s a dozen ways to do it, I’m going to stick to the most basic ones wit...

In Windows 10, May 12, 2022

PowerShell equivalent of the touch command in Linux

There might be a point in your IT career where you need to switch to a Windows OS dev machine whatever you like it not because the CTO decided to put all eggs in the Microsoft Azure b...

In PowerShell, May 02, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

Get a list of all Azure regions available

Speaking of Azure regions and locations, very often we think of the commercial Azure cloud, since there is Azure Government, which basically represents a completely isolated Azure clo...

In Azure, Nov 15, 2021

How to install PowerShell on macOS

As a DevOps engineer, most likely we would prefer to work with our cool and comfy MacBook Pros. And if you are working with Azure, you will most probably need to install PowerShell at...

In PowerShell, macOS, Jul 16, 2021

redis

Install Redis on Debian 12

Redis can be easily installed on Debian 12. Let’s take a look.

In Debian, Jul 25, 2023

How to Install Redis on Ubuntu 23.04

Redis can be installed through the apt packages. Let’s see how to install Redis on Ubuntu 23.04.

In Redis, Jun 25, 2023

How to check if Redis Remote Server is running

If your Redis cluster is hosted somewhere on the cloud and you are wondering whether you can connect to your Redis cluster or not, here I will show you how you can quickly check if yo...

In Redis, Mar 13, 2023

How to Install Redis on Ubuntu 22.04

As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.

In Redis, Ubuntu, Jan 04, 2023

How to solve Redis WARNING overcommit_memory is set to 0!

As I was working on a docker-compose stack I received the following warning message that was coming from the Redis service:WARNING overcommit_memory is set to 0! Background save may f...

In Redis, Aug 18, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

How to update Redis password

By default, Redis ships the default user without any password configured, which is okay as long as you have Redis deployed in a private subnet behind a firewall. However, if you want ...

In Redis, Aug 14, 2022

How to check Redis server version

In one of the previous Redis posts I wrote about how you could authenticate and run a command in one go. Now, let’s see how to get the currently installed version of Redis. Although t...

In Redis, Aug 12, 2022

Install Redis on Alpine Linux

Redis CLI is a part of the official Alpine apk packages, so it’s quick and easy to set it up. Here I’m going to show you how to install Redis CLI on Alpine Linux.

In Redis, Alpine Linux, Jul 22, 2022

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

Install Redis on CentOS 9 Stream

Redis is the most popular and most used cache, message broker, and in-memory key value database store service nowadays. So today I’m going to show you how to install Redis on CentOS 9...

In Redis, May 07, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Disable Redis persistence in Docker

Disabling Redis persistence in Docker could be a good thing tho, if you are hosting a development environment, running low on disks space and possibly can’t afford to scale. By defaul...

In Redis, Docker, Apr 12, 2022

How to check Redis connection with Telnet

A lot of useful checks can be made with telnet in terms of connectivity, sending test emails, access to databases, etc. Telnet is an application protocol based on TCP, and it can allo...

In Redis, Telnet, Mar 26, 2022

How to install Redis on Ubuntu 21.10

Using Redis as popular caching storage and also persistent key value database is always a good idea. Here I’m going to show you how to install it on a fresh Ubuntu 21.10 instance.

In Redis, Ubuntu, Feb 26, 2022

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Debian, Sep 29, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

redis-cli

How to check if Redis Remote Server is running

If your Redis cluster is hosted somewhere on the cloud and you are wondering whether you can connect to your Redis cluster or not, here I will show you how you can quickly check if yo...

In Redis, Mar 13, 2023

How to solve Redis WARNING overcommit_memory is set to 0!

As I was working on a docker-compose stack I received the following warning message that was coming from the Redis service:WARNING overcommit_memory is set to 0! Background save may f...

In Redis, Aug 18, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

How to update Redis password

By default, Redis ships the default user without any password configured, which is okay as long as you have Redis deployed in a private subnet behind a firewall. However, if you want ...

In Redis, Aug 14, 2022

How to check Redis server version

In one of the previous Redis posts I wrote about how you could authenticate and run a command in one go. Now, let’s see how to get the currently installed version of Redis. Although t...

In Redis, Aug 12, 2022

Install Redis on Alpine Linux

Redis CLI is a part of the official Alpine apk packages, so it’s quick and easy to set it up. Here I’m going to show you how to install Redis CLI on Alpine Linux.

In Redis, Alpine Linux, Jul 22, 2022

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

Install Redis on CentOS 9 Stream

Redis is the most popular and most used cache, message broker, and in-memory key value database store service nowadays. So today I’m going to show you how to install Redis on CentOS 9...

In Redis, May 07, 2022

How to install Redis on Ubuntu 21.10

Using Redis as popular caching storage and also persistent key value database is always a good idea. Here I’m going to show you how to install it on a fresh Ubuntu 21.10 instance.

In Redis, Ubuntu, Feb 26, 2022

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Debian, Sep 29, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

cache

How to Install Redis on Ubuntu 22.04

As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.

In Redis, Ubuntu, Jan 04, 2023

How to solve Redis WARNING overcommit_memory is set to 0!

As I was working on a docker-compose stack I received the following warning message that was coming from the Redis service:WARNING overcommit_memory is set to 0! Background save may f...

In Redis, Aug 18, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

How to update Redis password

By default, Redis ships the default user without any password configured, which is okay as long as you have Redis deployed in a private subnet behind a firewall. However, if you want ...

In Redis, Aug 14, 2022

How to check Redis server version

In one of the previous Redis posts I wrote about how you could authenticate and run a command in one go. Now, let’s see how to get the currently installed version of Redis. Although t...

In Redis, Aug 12, 2022

How to flush and clear Magento cache

If you are struggling to clear the Magento cache through the Magento UI then you should consider connecting to your server and flushing it through the terminal. Here I can show you ho...

In Ecommerce, Jul 24, 2022

Install Redis on Alpine Linux

Redis CLI is a part of the official Alpine apk packages, so it’s quick and easy to set it up. Here I’m going to show you how to install Redis CLI on Alpine Linux.

In Redis, Alpine Linux, Jul 22, 2022

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

Install Redis on CentOS 9 Stream

Redis is the most popular and most used cache, message broker, and in-memory key value database store service nowadays. So today I’m going to show you how to install Redis on CentOS 9...

In Redis, May 07, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Disable Redis persistence in Docker

Disabling Redis persistence in Docker could be a good thing tho, if you are hosting a development environment, running low on disks space and possibly can’t afford to scale. By defaul...

In Redis, Docker, Apr 12, 2022

How to check Redis connection with Telnet

A lot of useful checks can be made with telnet in terms of connectivity, sending test emails, access to databases, etc. Telnet is an application protocol based on TCP, and it can allo...

In Redis, Telnet, Mar 26, 2022

How to install Redis on Ubuntu 21.10

Using Redis as popular caching storage and also persistent key value database is always a good idea. Here I’m going to show you how to install it on a fresh Ubuntu 21.10 instance.

In Redis, Ubuntu, Feb 26, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

How to configure basic caching in Nginx

As the cache need grows for a big data applications, technology market offers a lot of different caching solutions. Today I want to show you how to set up basic caching and cache your...

In Nginx, Feb 04, 2022

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Debian, Sep 29, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

message brokers

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

Install Redis on CentOS 9 Stream

Redis is the most popular and most used cache, message broker, and in-memory key value database store service nowadays. So today I’m going to show you how to install Redis on CentOS 9...

In Redis, May 07, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

How to check Redis connection with Telnet

A lot of useful checks can be made with telnet in terms of connectivity, sending test emails, access to databases, etc. Telnet is an application protocol based on TCP, and it can allo...

In Redis, Telnet, Mar 26, 2022

How to install Redis on Ubuntu 21.10

Using Redis as popular caching storage and also persistent key value database is always a good idea. Here I’m going to show you how to install it on a fresh Ubuntu 21.10 instance.

In Redis, Ubuntu, Feb 26, 2022

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Debian, Sep 29, 2021

How to install Redis on Rocky Linux 8

If you are seeking a caching solution for your application then Redis will appear on the list. Here we will show you how to install Redis on Rocky Linux which is a replacement for Cen...

In Redis, Rocky Linux, Jul 17, 2021

nginx

Install Nginx on Debian 12

Let’s install our favorite Nginx web server on the newly released Debian 12.

In Debian, Jul 21, 2023

Improve Nginx performance with worker_processes

If we want to know how many connections could be handled by Nginx the basic formula is max_clients = worker_processes * worker_connections. So, here’s a breakdown.

In Nginx, Jul 12, 2023

Improve Nginx performance with worker_processes

worker_processes is a directive that determines the number of worker processes spawned by Nginx to handle incoming requests. Simply put, a single-threaded process with default value o...

In Nginx, Jul 10, 2023

Docker and missing sites-enabled in Nginx

It’s not a first time to face any gotchas while building Docker images, especially when dealing with symlinks, mount volumes, permissions, etcetera. So, here are few things to check w...

In Docker, Nginx, May 17, 2023

Return a status code 200 with a custom header in Nginx

It might be useful sometimes for troubleshooting purposes to return a custom header from a Nginx server block. Here’s how to do it.

In Nginx, May 15, 2023

Modify Nginx load order

In Nginx, the configuration files are loaded in a specific order by default. However, you can modify the load order to customize the behavior of the server.

In Nginx, May 09, 2023

Nginx server blocks processing order of priority

In the previous post Multiple ways to test a Nginx location match I wrote about how to test the location match but here’s the thing. You need to know the order first before testing an...

In Nginx, May 07, 2023

Multiple ways to test a Nginx location match

Testing a Nginx location and order of server blocks is a challenge when dealing with various, complicated config files. So, here are few ways you could try to validate the location ma...

In Nginx, May 05, 2023

How to Install Nginx on Ubuntu 23.04

Nginx can be easily installed on Ubuntu 23.04. Let’s jump on the installation part.

In Nginx, May 02, 2023

Reference Nginx upstream config from another file

The “include” directive is used to include another file into the current Nginx configuration file. This allows you to split your Nginx configuration across multiple files, making it e...

In Nginx, Apr 25, 2023

How to update the Nginx Version on webdevops/php-nginx image

Since the image webdevops/php-nginx doesn’t have the option to specify your desired Nginx version, we can adjust the Dockerfile and add that option. Let’s see the solution.

In Nginx, Apr 22, 2023

Fix Nginx 'client intended to send too large body' error

If you have an Nginx server set up to handle file uploads, and a user tries to upload a file that is larger than the configured client_max_body_size directive. When this happens, Ngin...

In Nginx, Apr 02, 2023

502 Bad Gateway, Nginx reverse proxy and Docker containers in CentOS 7

Sometimes, setting up HTTP/HTTPS GCP Firewall rule and Nginx reverse proxy to point to the Docker container port mapped as 0.0.0.0:3000 could be not enough, even though running curl 0...

In Docker, Nginx, CentOS, Jan 31, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

nginx: [emerg] "if" directive is not allowed here

While I was trying to introduce some Nginx conditional for an “obscure” reason, I attempt reloading the config, so the changes could apply, I’ve received the following error in the CL...

In Nginx, Jan 17, 2023

Fix 'No package python3-certbot-nginx available.' error

While installing some Certbot packages I stumbled upon the No package python3-certbot-nginx available. error. Let’s take a look.

In Certbot, Python, Jul 18, 2022

Install Nginx on Alpine Linux

Installing Nginx on Alpine Linux can be achieved easily, as it’s part of the official Alpine packages. Let’s take a look.

In Nginx, Alpine Linux, Jun 30, 2022

Nginx proxy and 'an upstream response is buffered to a temporary file' warning

In today’s Nginx log message of the week, we got the following warning:2022/05/02 08:03:16 [warn] 31447#0: an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/...

In Nginx, May 08, 2022

Tweaking Nginx proxy_buffers parameters

Before setting up YOLO values for proxy_buffers and proxy_buffer_size parameters, you need to find out the average and maximum response sizes first. On a side note, the following step...

In Nginx, May 06, 2022

Install Nginx on CentOS 9 Stream

Nginx is one of the most used web servers nowadays and can be easily installed on the new CentOS 9 Stream OS. Let’s see how to install Nginx on CentOS 9 Stream and enable the HTTP and...

In Nginx, CentOS, May 05, 2022

Nginx and 'using inherited sockets' notice

If you have been debugging and digging into the Nginx logs, you might have stumbled upon the following notice log message:2022/03/10 06:04:32 [notice] 31447#31447: using inherited soc...

In Nginx, Apr 24, 2022

Add HSTS in Nginx

Increasing the website performance and decreasing the server load can be achieved by HSTS. Enabling the HSTS security headers in Nginx will tell the browser to use https instead of ht...

In Nginx, Mar 28, 2022

How to resolve Nginx 'an upstream response is buffered to a temporary file' error

After connecting Nginx with ELK stack to handle requests I spot a lot of an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/9/66/00000034785 while read...

In Nginx, Mar 08, 2022

How to install Nginx on Ubuntu 21.10

Since Ubuntu 21.10 has been released there was an immediate interest in using it as an OS Server. In this tutorial, we are going to see how to install Nginx on Ubuntu 21.10.

In Nginx, Ubuntu, Feb 20, 2022

How to configure basic caching in Nginx

As the cache need grows for a big data applications, technology market offers a lot of different caching solutions. Today I want to show you how to set up basic caching and cache your...

In Nginx, Feb 04, 2022

How to enable HTTP/2 in Nginx

HTTP/2 was published almost 7 years ago, HTTP/3 being an internet draft standard since October 2020, and yet here we are, most of us still using HTTP/1.1. Considering how things quick...

In Nginx, HTTP, Jan 18, 2022

Redirect HTTP to HTTPS in Nginx

Nowadays almost every owner of a website wants to secure his site with an SSL/TLS certificate. Once that is achieved the second step is to redirect the whole HTTP traffic to HTTPS dep...

In Nginx, HTTP, Dec 26, 2021

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

Resolve (code=exited, status=2) in Nginx

Sometimes after Nginx service restart and you’re trying to get the service status, you might get the following status code line:Process: 10316 ExecStop=/sbin/start-stop-daemon --quiet...

In Nginx, Oct 20, 2021

How to install Nginx on Amazon Linux 2

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In Nginx, AWS, Amazon Linux 2, Oct 05, 2021

How to enable CORS in Nginx

If you are trying to make API calls, and you are getting the following error from Nginx: No Access-Control-Allow-Origin header is present on the requested resource you should definite...

In Nginx, Sep 07, 2021

How to install Nginx on Debian 11

Installing Nginx on Debian 11 is pretty easy and straightforward. This tutorial will show you how to install it and enable HTTP traffic on your Debian server.

In Nginx, Debian, Aug 22, 2021

Missing sites-available directory in Nginx

As part of the Nginx series, in today’s tutorial, we are going to see on how to add that missing sites-available subdirectory. The reason behind this, is because most of us have been ...

In Nginx, Aug 17, 2021

How to set up Nginx reverse proxy for your application

Using Nginx reverse proxy could be very useful, especially if you are developing an application with a framework that can run its own server like Node.js, Python, Ruby on Rails, etc. ...

In Nginx, Aug 14, 2021

How to block visitors by country in Nginx

In some of mine previous posts, I wrote about how you can whitelist IPs in Nginx. In today’s tutorial, we are going to see how can we block specific countries in a few steps.

In Nginx, Aug 13, 2021

How to whitelist IP addresses in Nginx

We all know what firewalls are for, but sometimes they can become a pain in the arse, and we all end up opening HTTP and HTTPS port by default. Let’s say we host multiple domains via ...

In Nginx, Aug 09, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Nginx on Rocky Linux 8

If you need to implement a reverse proxy, load balancer or mail proxy, Nginx is the best-suited web server that can manage all of these actions. This tutorial will explain, how to ins...

In Nginx, Rocky Linux, Jul 20, 2021

kubernetes

Get current Kubernetes namespace

We don’t want to be deploying in another (production most likely) namespace right. So, double check which namespace you are currently using with one of the commands below.

In Kubernetes, Jun 10, 2023

Rollback Kubernetes deployment using Helm

Helm’s rollback feature allows us to revert to a previous rather “safe” state of a certain release. Here’s how to do it.

In Kubernetes, Jun 08, 2023

Get current images for a Kubernetes deployment

Another quick nugget that allows you to list and check current images for containers and pods for a Kubernetes deployment.

In Kubernetes, Jun 06, 2023

List all releases installed with Helm

Here’s a quick and nice command that lists all releases no matter the state deployed or failed installed with Helm across all namespaces in a K8s cluster.

In Kubernetes, Jun 04, 2023

Install Kubectl on Alpine Linux

Unfortunately there is no kubectl package under apk alpine package manager but still, there is a way to install it. Let’s install kubectl on Alpine Linux.

In Kubernetes, Alpine Linux, Mar 11, 2023

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

Multiple ways to run Kubernetes clusters locally

Kubernetes, the most popular container orchestration platform out there, needs no introduction. Let’s explore a couple of ways and tools on deploying K8s clusters on your local machine.

In Kubernetes, Jan 20, 2022

Scale AKS user node pool to 0

In case you missed Configure AKS automatic upgrades.In today’s post, we are going to see how can we be cost-effective, by scaling the User node pool to 0.

In Azure, Kubernetes, Sep 06, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your Kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In macOS, Kubernetes, Jul 22, 2021

container orchestration

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

Multiple ways to run Kubernetes clusters locally

Kubernetes, the most popular container orchestration platform out there, needs no introduction. Let’s explore a couple of ways and tools on deploying K8s clusters on your local machine.

In Kubernetes, Jan 20, 2022

How to install Nomad on Fedora-based distro

Previously I covered the Nomad installation on the most frequently used Linux distros: Amazon Linux 2 Debian RHEL

In Nomad, Fedora, Oct 27, 2021

How to install Nomad on RHEL-based distro

As I mentioned in the previous topics I’m going to cover the Nomad installation on all popular Linux distros. So this tutorial will be aimed to show you how to install Nomad on RHEL-b...

In Nomad, RHEL, Oct 17, 2021

How to install Nomad on Debian-based distro

As a sequel of the Nomad installation series today I’m going to shed some light on how to install Nomad on every Debian-based distro. The installation process is quick and easy and th...

In Nomad, Debian, Oct 15, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

Scale AKS user node pool to 0

In case you missed Configure AKS automatic upgrades.In today’s post, we are going to see how can we be cost-effective, by scaling the User node pool to 0.

In Azure, Kubernetes, Sep 06, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your Kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In macOS, Kubernetes, Jul 22, 2021

kubectl

How to Install Kubectl on Ubuntu 23.04

Kubectl is a command-line tool used to interact with Kubernetes clusters, so let’s see how to install Kubectl on Ubuntu 23.04

In Kebernetes, Jun 19, 2023

Install Kubectl on Alpine Linux

Unfortunately there is no kubectl package under apk alpine package manager but still, there is a way to install it. Let’s install kubectl on Alpine Linux.

In Kubernetes, Alpine Linux, Mar 11, 2023

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

How to install kubectl on macOS

Kubectl stands as a powerful command-line tool which allows you to control your Kubernetes clusters. The main role of kubectl is to deploy applications, manage your cluster recourses,...

In macOS, Kubernetes, Jul 22, 2021

apache

Install Apache on Debian 12

Let’s see how to install Apache HTTP Server on Debian 12 as one of the widely used open-source web servers.

In Debian, Aug 04, 2023

How to Install Apache on Ubuntu 23.04

As a powerful and flexible server that allows you to host websites and serve web, it can be installed easily on Ubuntu 23.04.

In Apache, May 28, 2023

Install Apache on Alpine Linux

Using Apache with Alpine Linux can be a suitable combination, because Apache comes with a lot of modules that can be useful for your application. Let’s see how to install Apache on Al...

In Apache, Alpine Linux, Jul 02, 2022

How to install Apache on Amazon Linux 2

Once you have provisioned an AWS EC2 instance installing Apache on Amazon Linux 2 is a straightforward and easy process. Here I’m going to show you how to install Apache web server on...

In Apache, AWS, Amazon Linux 2, Feb 06, 2022

Redirect HTTP to HTTPS in Apache

Securing your website by setting redirect from HTTP to HTTPS in Apache can be achieved easily if your SSL/TLS certificate is generated and ready to use. It can be done using a virtual...

In Apache, HTTP, Dec 28, 2021

Scan Docker images for Apache Log4j2 vulnerability

Docker Hub already announced public Log4jShell detection which is now live on Docker Official Images. But for those of you who are still using some old or custom images, there is a wa...

In Docker, Apache Log4j2, Dec 20, 2021

Protect Elasticsearch stack from Apache Log4j vulnerability

As the Apache Log4j vulnerability is growing massively and its spread all over the internet a lot of worldwide companies are affected mostly on their Java-based applications. Elastics...

In Elasticsearch, Dec 16, 2021

How to check Apache Log4j vulnerability in Jenkins

There are a lot of open forums and discussions due to the Log4j zero-day flaw these days. Log4j is an open-source Java-based library developed by Apache Software Foundation, as it’s u...

In Jenkins, Apache Log4j2, Dec 14, 2021

How to create Apache reverse proxy for your application

Creating Apache reverse proxy follows a similar procedure as Nginx. In some of the previous posts, we saw How to set up Nginx reverse proxy, so today I’m going to show you exactly the...

In Apache, Sep 23, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to install Apache on Rocky Linux 8

Apache is one of the most popular, open source web servers that allows you to host your web content on Internet. Apache can be installed easily and can run on any operating system. In...

In Apache, Rocky Linux, Jul 24, 2021

dhcp

How to configure DHCP to fix the network connectivity on Rocky Linux

Some RHEL distros can cause common networking configuration issues on the first installation, so you will not be able to update the packages on a server or browse external Websites fr...

In DHCP, Rocky Linux, Jul 26, 2021

rocky linux

How to configure DHCP to fix the network connectivity on Rocky Linux

Some RHEL distros can cause common networking configuration issues on the first installation, so you will not be able to update the packages on a server or browse external Websites fr...

In DHCP, Rocky Linux, Jul 26, 2021

php

Install PHP 8.1 on Alpine Linux

The default Alpine package manager can offer the php 81 package, so the installation will be quick and easy.

In PHP, Jun 09, 2023

How to Install PHP 8 on Ubuntu 23.04

Installing PHP 8 on Ubuntu 23.04 can’t be done through ppa:ondrej/php because the repo is not supported on Ubuntu 23.04. The best option is to get PHP 8.1 version which is very simila...

In PHP, Jun 05, 2023

How to Install PHP 8.1 on Ubuntu 23.04

Because the Ondrej PHP PPA repo is not supported in Ubuntu 23.04, I recommend installing PHP 8.1 through the default Ubuntu 23.04 apt packages.

In PHP, May 30, 2023

How to Install PHP Xmlrpc on Amazon Linux 2

If you want to send remote XML procedure calls to be made over HTTP, php-xmlrpc library can help you to achieve that. Let’s see how to install PHP Xmlrpc on Amazon Linux 2.

In AWS, Amazon Linux 2, Apr 06, 2023

How to Install PHP CLI on Amazon Linux 2

If you want to have the ability to run PHP scripts without the need for a web server or web browser, just running them through a terminal or command-line interface you need to have th...

In AWS, Amazon Linux 2, Apr 04, 2023

How to Install PHP OPcache on Amazon Linux 2

If you want to significantly improve the performance of your PHP application, especially for applications that use a large number of PHP scripts or have a high volume of requests then...

In AWS, Amazon Linux 2, Mar 29, 2023

Install PHP mbstring on Alpine Linux

Mbstring as a multibyte string functions provider helps you to handle multibyte encodings in PHP. Let’s see how to install PHP mbstring on Alpine Linux.

In PHP, Mar 19, 2023

How to Install PHP GMP on Amazon Linux 2

The need for complex mathematical operations playing with big numbers can be handled by the GMP PHP library. It contains a big collection of functions that can be invoked into your co...

In AWS, Amazon Linux 2, Mar 17, 2023

How to Install PHP Soap on Amazon Linux 2

Soap as an independent platform allows you to send and receive messages on the app level. It’s a kind of communication protocol that works on the application level and can be enabled ...

In AWS, Amazon Linux 2, Mar 09, 2023

Install PHP 7.4 on Alpine Linux

Trying to set up PHP 7.4 on Alpine Linux can lead to the following error:ERROR: unable to select packages: php7 (no such package): required by: world[php7]This might get things co...

In PHP, Mar 07, 2023

How to Install PHP Posix on Amazon Linux 2

The Posix extension is a very useful PHP extension in terms of monitoring your PHP processes, optimizing your code, etc. The function itself returns usage information about the curren...

In AWS, Amazon Linux 2, Mar 03, 2023

How to Install PHP Iconv on Amazon Linux 2

Using the PHP function iconv() allows you to convert a string to the requested character encoding. Usually, you need to install Iconv on Amazon Linux 2 if your PHP setup is using FPM ...

In AWS, Amazon Linux 2, Mar 01, 2023

How to Install PHP Dom on Amazon Linux 2

The need of processing or parsing XML documents in PHP can be done through the DOM parser extension. Here I will show you how to install PHP Dom on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 27, 2023

How to Install PHP Ctype on Amazon Linux 2

Enabling the Ctype PHP extension will provide you with functions that are used to verify whether the characters in a string are of the correct type. Let’s install Ctype on Amazon Linu...

In AWS, Amazon Linux 2, Feb 25, 2023

How to Install PHP Punic on Amazon Linux 2

Localizing your various PHP variables can be made easy through the Punic library. Let’s install PHP Punic on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 19, 2023

How to Install PHP pgsql on Amazon Linux 2

While establishing a PostgreSQL connection through PHP, you might get the following error: uncaught exception "could not find driver". That means you need to install PHP pgsql on Amaz...

In AWS, Amazon Linux 2, Feb 17, 2023

How to Install PHP Embed on Amazon Linux 2

Like the name itself, the Embed extension will allow you to embed PHP scripts in different languages, for example in PHP extensions which are mainly written in C. Let’s jump on how to...

In AWS, Amazon Linux 2, Feb 15, 2023

How to Install PHP bcmath on Amazon Linux 2

Using PHP arithmetic functions can be achieved through bcmath package, which is a wrapper for these functions and can be even used in an object-oriented way. Let’s see how to install ...

In AWS, Amazon Linux 2, Feb 13, 2023

How to Install PHP intl on Amazon Linux 2

The Intl extension in PHP is a set of f C/C++ and Java libraries that can allow PHP programmers to perform UCA conformant collation and date-time-number formatting in their scripts. L...

In AWS, Amazon Linux 2, Feb 11, 2023

How to Install PHP XML on Amazon Linux 2

If you want to parse XML documents with PHP, then you need to install php-xml library. Let’s see how to install PHP XML on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 09, 2023

Resolving WordPress, PHP's "Fatal error: Allowed memory size of X bytes exhausted"

If I got a dollar for every temporary, quick fix found on the Internet for any type of error, I’ll be so rich. Before else, WordPress and LAMP stacks makes the majority of websites ou...

In WordPress, PHP, Feb 08, 2023

How to Install PHP Imap on Amazon Linux 2

Using the Imap functions in PHP you can fetch emails from an email account, also Imap functions can allow you to work with POP3 protocol. Working with the Imap PHP library you can cre...

In AWS, Amazon Linux 2, Feb 07, 2023

How to Install PHP GD on Amazon Linux 2

If you need to create or do some stuff with images in PHP, it can be done through the GD library. Here I will show you how to install PHP GD on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 05, 2023

How to Install PHP Json on Amazon Linux 2

To be able to convert your PHP objects into JSON using the PHP functions, you need to have php-json extension installed. Let’s install PHP Json on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 03, 2023

How to Install PHP Zip on Amazon Linux 2

Older PHP versions had support to enable the zip extension by using --enable-zip option. With PHP 7.4.0 and all the upper versions, the bundled libzip extension has been removed. Here...

In AWS, Amazon Linux 2, Feb 01, 2023

How to Install PHP Devel on Amazon Linux 2

Building PHP extensions can be done through the php-devel package which contains files needed for PHP extensions. Today’s aim is to install PHP Devel on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 30, 2023

Install PHP PDO on Amazon Linux 2

If your app is PHP based and you need to establish a database connection, you will need to have a PHP PDO extension. Let’s install the PHP PDO extension on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 28, 2023

Install PHP Curl on Amazon Linux 2

As a PHP Developer, you might need to send or receive files over HTTP. With the PHP Curl module, you can even use proxies or pass data over SSL connections. Let’s see how to install t...

In AWS, Amazon Linux 2, Jan 26, 2023

Install PHP CGI on Amazon Linux 2

If you want to use the PHP interpreter through CGI mode but you don’t have CGI extension installed, here I will show you how to install PHP CGI on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 22, 2023

Install php-common on Amazon Linux 2

If you get The common extension is missing. Please check your PHP configuration that means that you need to install php-common extension. The installation is very simple since you hav...

In AWS, Amazon Linux 2, Jan 20, 2023

Install PHP-FPM on Amazon Linux 2

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

In PHP, AWS, Amazon Linux 2, Nov 11, 2022

Install Mbstring on Amazon Linux 2

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

In Mbstring, AWS, Amazon Linux 2, Nov 03, 2022

How to flush and clear Magento cache

If you are struggling to clear the Magento cache through the Magento UI then you should consider connecting to your server and flushing it through the terminal. Here I can show you ho...

In Ecommerce, Jul 24, 2022

Install PHP 8 on Alpine Linux

The PHP 8 installation on Alpine Linux can be achieved in a few steps. Let’s do it.

In PHP, Jun 18, 2022

Install PHP Composer on Amazon Linux 2

Using PHP on Amazon Linux 2 can potentially require a composer installation for some libraries. Installing Composer on Amazon Linux 2 is a quick and easy procedure. Let’s see it.

In PHP, AWS, Amazon Linux 2, May 31, 2022

Install PHP 8.1 on Amazon Linux 2

If you want to hang out with the latest major update of PHP, then you should definitely try to install PHP 8.1 on Amazon Linux 2. Let’s do it.

In PHP, AWS, Amazon Linux 2, May 27, 2022

Change WordPress domain URL through WP-CLI

While migrating your WordPress site or syncing the production database with staging you need to change the domain URL from the database. Instead of crawling within the WP databases, I...

In WordPress, Jan 01, 2022

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

How to install PHP Composer within Dockerfile

Dockerizing your PHP application probably would require some external commands within your base Docker image. That’s why you will need to have a Dockerfile and put all the additional ...

In Docker, PHP, Dec 04, 2021

How to execute MySQL DB migrations with Symfony and Doctrine

If you are working on infrastructure with a lot of microservices as a developer you may face difficulties executing SQL queries in terms of keeping database structure clean and safe c...

In MySQL, Nov 16, 2021

How to determine the correct number of max children processes for PHP-FPM

Most of the PHP developers are using Nginx with PHP-FPM as the most efficient approach. Most likely Nginx will throw PHP errors as the server reached the pm.max_children number. It me...

In PHP, Jul 28, 2021

php-fpm

Install PHP-FPM on Amazon Linux 2

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

In PHP, AWS, Amazon Linux 2, Nov 11, 2022

How to determine the correct number of max children processes for PHP-FPM

Most of the PHP developers are using Nginx with PHP-FPM as the most efficient approach. Most likely Nginx will throw PHP errors as the server reached the pm.max_children number. It me...

In PHP, Jul 28, 2021

csv

How to export and import PostgreSQL tables using CSV

Export and Import operations in PostgreSQL and any other relation database management system for that matter, could include a couple of use-case scenarios, for instance data analysis....

In PostgreSQL, Feb 21, 2022

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

How to import CSV file into MySQL table

Importing the data through MySQL Workbench or phpMyAdmin can cause some limitation issues, so things will get complicated. In this tutorial, I’m going to show you how to import CSV fi...

In MySQL, Aug 03, 2021

certbot

Install Certbot on Debian 12

Certbot can be easily installed on Debian 12.

In Debian, Aug 02, 2023

How to Install Certbot on Ubuntu 23.04

Certbot can be installed under the default apt packages on Ubuntu 23.04. Let’s jump on the Installation part.

In Certbot, May 24, 2023

How to generate Let's Encrypt Certificate using Certbot on Amazon Linux 2

If you already have Certbot installed on Amazon Linux 2, then generating Let’s Encrypt shouldn’t be a problem. Let’s see what’s the solution.

In SSL, Apr 18, 2023

Debugging Certbot cronjob

Quite frequently I’ve noticed some Certbot cronjobs not being able to renew certificates as I was receiving the Let’s Encrypt expiring notice emails. So, here are some things you coul...

In Certbot, Feb 12, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Fix 'No package python3-certbot-nginx available.' error

While installing some Certbot packages I stumbled upon the No package python3-certbot-nginx available. error. Let’s take a look.

In Certbot, Python, Jul 18, 2022

Certbot auto renew SSL/TLS certificate with a cron job

If you are using a free SSL/TLS certificate from Certbot, probably you are tired of the manual renewal. Here I’m going to show you how to automate the process of creating a cron job t...

In Certbot, Jan 19, 2022

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

ssl/tls

Debugging Certbot cronjob

Quite frequently I’ve noticed some Certbot cronjobs not being able to renew certificates as I was receiving the Let’s Encrypt expiring notice emails. So, here are some things you coul...

In Certbot, Feb 12, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

Certbot auto renew SSL/TLS certificate with a cron job

If you are using a free SSL/TLS certificate from Certbot, probably you are tired of the manual renewal. Here I’m going to show you how to automate the process of creating a cron job t...

In Certbot, Jan 19, 2022

Redirect HTTP to HTTPS in Apache

Securing your website by setting redirect from HTTP to HTTPS in Apache can be achieved easily if your SSL/TLS certificate is generated and ready to use. It can be done using a virtual...

In Apache, HTTP, Dec 28, 2021

Redirect HTTP to HTTPS in Nginx

Nowadays almost every owner of a website wants to secure his site with an SSL/TLS certificate. Once that is achieved the second step is to redirect the whole HTTP traffic to HTTPS dep...

In Nginx, HTTP, Dec 26, 2021

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

certificates

Debugging Certbot cronjob

Quite frequently I’ve noticed some Certbot cronjobs not being able to renew certificates as I was receiving the Let’s Encrypt expiring notice emails. So, here are some things you coul...

In Certbot, Feb 12, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

Certbot auto renew SSL/TLS certificate with a cron job

If you are using a free SSL/TLS certificate from Certbot, probably you are tired of the manual renewal. Here I’m going to show you how to automate the process of creating a cron job t...

In Certbot, Jan 19, 2022

Redirect HTTP to HTTPS in Apache

Securing your website by setting redirect from HTTP to HTTPS in Apache can be achieved easily if your SSL/TLS certificate is generated and ready to use. It can be done using a virtual...

In Apache, HTTP, Dec 28, 2021

Redirect HTTP to HTTPS in Nginx

Nowadays almost every owner of a website wants to secure his site with an SSL/TLS certificate. Once that is achieved the second step is to redirect the whole HTTP traffic to HTTPS dep...

In Nginx, HTTP, Dec 26, 2021

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

https

Debugging Certbot cronjob

Quite frequently I’ve noticed some Certbot cronjobs not being able to renew certificates as I was receiving the Let’s Encrypt expiring notice emails. So, here are some things you coul...

In Certbot, Feb 12, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

Disable "InsecureRequestWarning: Unverified HTTPS request is being made" in Python

It’s not so common to be concerned about HTTPS endpoints in the development stage. Thus, it feels like suppressing warning messages is a common thing, right. So, as I was playing arou...

In Python, Nov 17, 2022

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

Enable HTTPS redirection in Azure Functions

HTTPS redirection are quite common these days from security and SEO viewpoint. Today’s topic going to be about how to enable the redirection in Azure Functions.

In Azure, HTTP, Mar 21, 2022

Certbot auto renew SSL/TLS certificate with a cron job

If you are using a free SSL/TLS certificate from Certbot, probably you are tired of the manual renewal. Here I’m going to show you how to automate the process of creating a cron job t...

In Certbot, Jan 19, 2022

Redirect HTTP to HTTPS in Apache

Securing your website by setting redirect from HTTP to HTTPS in Apache can be achieved easily if your SSL/TLS certificate is generated and ready to use. It can be done using a virtual...

In Apache, HTTP, Dec 28, 2021

Redirect HTTP to HTTPS in Nginx

Nowadays almost every owner of a website wants to secure his site with an SSL/TLS certificate. Once that is achieved the second step is to redirect the whole HTTP traffic to HTTPS dep...

In Nginx, HTTP, Dec 26, 2021

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

let's encrypt

Debugging Certbot cronjob

Quite frequently I’ve noticed some Certbot cronjobs not being able to renew certificates as I was receiving the Let’s Encrypt expiring notice emails. So, here are some things you coul...

In Certbot, Feb 12, 2023

Certbot: The requested nginx plugin does not appear to be installed

It’s been a while since I needed to manually generate a Let’s Encrypt certificate. And God bless Certbot. However, it took no time to stumble upon a problem. So, today’s week issue is...

In Certbot, Nginx, Jan 19, 2023

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Fix 'No package python3-certbot-nginx available.' error

While installing some Certbot packages I stumbled upon the No package python3-certbot-nginx available. error. Let’s take a look.

In Certbot, Python, Jul 18, 2022

Certbot auto renew SSL/TLS certificate with a cron job

If you are using a free SSL/TLS certificate from Certbot, probably you are tired of the manual renewal. Here I’m going to show you how to automate the process of creating a cron job t...

In Certbot, Jan 19, 2022

How to list, renew and delete Certbot certificates

Managing Certbot certificates is often an underlooked operation since Certbot handles cert renewal automatically using a cronjob, so no worries there. But, what if we want to list whi...

In Certbot, Dec 03, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to secure Apache with Let's Encrypt on Rocky Linux 8

As a part of the Certbot installation in this tutorial, you will see how to secure your Apache web server with a free Let’s Encrypt SSL/TLS certificate. Let’s start.

In Apache, Let's Encrypt, Rocky Linux, Aug 08, 2021

How to secure Nginx with Let's Encrypt on Rocky Linux 8

Previously we saw How to install Certbot on Rocky Linux 8 depending on your web server, whether it’s Nginx or Apache. In this tutorial, I’m going to show you how to secure your Nginx ...

In Nginx, Let's Encrypt, Rocky Linux, Aug 06, 2021

How to install Certbot on Rocky Linux 8

Installing Certbot on your Rocky Linux server/machine is usually meant to be used to switch an existing HTTP site to work in HTTPS. It’s a helpful tool written in python which helps y...

In Certbot, Rocky Linux, Aug 05, 2021

podman

How to Install Podman on Ubuntu 23.04

The Podman installation on Ubuntu 23.04 is quick and easy. Let’s take a look.

In Podman, Ubuntu, May 26, 2023

Install Podman on CentOS 9 Stream

If you are digging on Google for a Docker replacement most likely you will end up with Podman. The installation of Podman on CentOS 9 Stream is very simple and straightforward.

In Podman, CentOS, Oct 02, 2022

Install Podman Compose on Alpine Linux

If you plan to deal with Podman Compose on Alpine Linux I will show you the installation part. The aim of this tutorial is to show you how to install Podman Compose on Alpine Linux.

In Podman, Alpine Linux, Jun 14, 2022

Install Podman on Alpine Linux

Podman, as a decent Docker replacement has support from the Alpine community repository and can be installed as a podman package. Let’s see how to install Podman on Alpine Linux.

In Podman, Alpine Linux, Jun 12, 2022

Install Podman Compose on Ubuntu 22.04

As Podman is ramping up within the containers world, the need for Podman Compose is getting higher as well. Here I’m going to show you three ways on how to install Podman Compose on U...

In Podman, Ubuntu, May 19, 2022

Install Podman Compose on Debian 11

The growth and use of Podman is really raging higher and higher. I hope one day it will be on the same level as Docker is today. Now, assuming that you have Podman installed on Debian...

In Podman, Debian, May 09, 2022

How to install Podman on Ubuntu 21.10

In this tutorial, I’m going to show how to install Podman on Ubuntu 21.10 using the default Ubuntu 21.10 packages. Previously we clarified that installing Podman with the default Ubun...

In Podman, Ubuntu, Feb 28, 2022

How to install Podman Compose on CentOS 7

When it comes to installing podman-compose on CentOS 7 it follows the same procedure as on the other RHEL-based distros and there are three ways to achieve it. You only need to make s...

In Podman, CentOS, Jan 15, 2022

Docker vs Podman

2022 might be the year of DevOps alternatives, including cloud providers, CI/CD tools and even containers. Speaking of containers, Podman looks like a promising alternative to Docker....

In Docker, Podman, Jan 14, 2022

Install Podman Compose on Ubuntu 20.04

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and ...

In Podman, Ubuntu, Jan 09, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

Install Podman on Windows 11

The installation guide for running Podman on Windows 11 follows the same idea as Install Docker on Windows 11 without Docker Desktop.

In Podman, Windows 11, Dec 31, 2021

Docker as an alias for Podman

There is a quick hack to get started with Podman just in case you are not familiar with the syntax though.

In Docker, Podman, Dec 23, 2021

Install Podman on Windows 10

The trick for installation and running Podman on Windows 10 follows the same idea as Install Docker on Windows 10 without Docker Desktop.

In Podman, Windows 10, Dec 15, 2021

How to install Podman on Ubuntu 20.04

If you try to install Podman on Ubuntu 20.04 with the default Ubuntu packages, the installation will fail with the following error: E: Unable to locate package podman. In this tutoria...

In Podman, Ubuntu, Aug 12, 2021

How to install Podman on Amazon Linux 2

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m going to show you how to install...

In Podman, AWS, Amazon Linux 2, Aug 10, 2021

amazon linux 2

How to Install locate on Amazon Linux 2

Let’s take a look on how to install locate on Amazon Linux 2. The steps are quick and easy.

In AWS, Amazon Linux 2, Jun 17, 2023

How to Install htop on Amazon Linux 2

The procedure to install htop on Amazon Linux 2 is pretty much the same as on every Red Hat distribution. Let’s take a look.

In AWS, Amazon Linux 2, Jun 13, 2023

How to Install OpenSSL on Amazon Linux 2

The installation of OpenSSL on Amazon Linux 2 can be done by using the yum package manager. Let’s check it out.

In SSL, AWS, Apr 20, 2023

How to Enable Remi Repo on Amazon Linux 2

Working with up-to-date packages on Amazon Linux 2 can be achieved through Remi repo. Let’s see how to enable Remi Repo on Amazon Linux 2.

In Remi, Amazon Linux 2, Apr 14, 2023

How to Install Docker on Amazon Linux 2

The installation of Docker on Amazon Linux 2 consists of several simple steps, which will be listed below.

In Docker, AWS, Apr 10, 2023

How to Install PHP Xmlrpc on Amazon Linux 2

If you want to send remote XML procedure calls to be made over HTTP, php-xmlrpc library can help you to achieve that. Let’s see how to install PHP Xmlrpc on Amazon Linux 2.

In AWS, Amazon Linux 2, Apr 06, 2023

How to Install PHP CLI on Amazon Linux 2

If you want to have the ability to run PHP scripts without the need for a web server or web browser, just running them through a terminal or command-line interface you need to have th...

In AWS, Amazon Linux 2, Apr 04, 2023

How to Install PHP OPcache on Amazon Linux 2

If you want to significantly improve the performance of your PHP application, especially for applications that use a large number of PHP scripts or have a high volume of requests then...

In AWS, Amazon Linux 2, Mar 29, 2023

How to Install PHP GMP on Amazon Linux 2

The need for complex mathematical operations playing with big numbers can be handled by the GMP PHP library. It contains a big collection of functions that can be invoked into your co...

In AWS, Amazon Linux 2, Mar 17, 2023

How to fix 'GPG keys listed for the MySQL Server repository are already installed'

Seemingly the MySQL installation might look like an easy task, but you might also face the following error The GPG keys listed for the "MySQL Community Server" repository are already ...

In MySQL, Amazon Linux, Mar 15, 2023

How to Install PHP Soap on Amazon Linux 2

Soap as an independent platform allows you to send and receive messages on the app level. It’s a kind of communication protocol that works on the application level and can be enabled ...

In AWS, Amazon Linux 2, Mar 09, 2023

How to Install PHP Posix on Amazon Linux 2

The Posix extension is a very useful PHP extension in terms of monitoring your PHP processes, optimizing your code, etc. The function itself returns usage information about the curren...

In AWS, Amazon Linux 2, Mar 03, 2023

How to Install PHP Iconv on Amazon Linux 2

Using the PHP function iconv() allows you to convert a string to the requested character encoding. Usually, you need to install Iconv on Amazon Linux 2 if your PHP setup is using FPM ...

In AWS, Amazon Linux 2, Mar 01, 2023

How to Install PHP Dom on Amazon Linux 2

The need of processing or parsing XML documents in PHP can be done through the DOM parser extension. Here I will show you how to install PHP Dom on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 27, 2023

How to Install PHP Ctype on Amazon Linux 2

Enabling the Ctype PHP extension will provide you with functions that are used to verify whether the characters in a string are of the correct type. Let’s install Ctype on Amazon Linu...

In AWS, Amazon Linux 2, Feb 25, 2023

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

How to Install PHP Punic on Amazon Linux 2

Localizing your various PHP variables can be made easy through the Punic library. Let’s install PHP Punic on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 19, 2023

How to Install PHP pgsql on Amazon Linux 2

While establishing a PostgreSQL connection through PHP, you might get the following error: uncaught exception "could not find driver". That means you need to install PHP pgsql on Amaz...

In AWS, Amazon Linux 2, Feb 17, 2023

How to Install PHP Embed on Amazon Linux 2

Like the name itself, the Embed extension will allow you to embed PHP scripts in different languages, for example in PHP extensions which are mainly written in C. Let’s jump on how to...

In AWS, Amazon Linux 2, Feb 15, 2023

How to Install PHP bcmath on Amazon Linux 2

Using PHP arithmetic functions can be achieved through bcmath package, which is a wrapper for these functions and can be even used in an object-oriented way. Let’s see how to install ...

In AWS, Amazon Linux 2, Feb 13, 2023

How to Install PHP intl on Amazon Linux 2

The Intl extension in PHP is a set of f C/C++ and Java libraries that can allow PHP programmers to perform UCA conformant collation and date-time-number formatting in their scripts. L...

In AWS, Amazon Linux 2, Feb 11, 2023

How to Install PHP XML on Amazon Linux 2

If you want to parse XML documents with PHP, then you need to install php-xml library. Let’s see how to install PHP XML on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 09, 2023

How to Install PHP Imap on Amazon Linux 2

Using the Imap functions in PHP you can fetch emails from an email account, also Imap functions can allow you to work with POP3 protocol. Working with the Imap PHP library you can cre...

In AWS, Amazon Linux 2, Feb 07, 2023

How to Install PHP GD on Amazon Linux 2

If you need to create or do some stuff with images in PHP, it can be done through the GD library. Here I will show you how to install PHP GD on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 05, 2023

How to Install PHP Json on Amazon Linux 2

To be able to convert your PHP objects into JSON using the PHP functions, you need to have php-json extension installed. Let’s install PHP Json on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 03, 2023

How to Install PHP Zip on Amazon Linux 2

Older PHP versions had support to enable the zip extension by using --enable-zip option. With PHP 7.4.0 and all the upper versions, the bundled libzip extension has been removed. Here...

In AWS, Amazon Linux 2, Feb 01, 2023

How to Install PHP Devel on Amazon Linux 2

Building PHP extensions can be done through the php-devel package which contains files needed for PHP extensions. Today’s aim is to install PHP Devel on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 30, 2023

Install PHP PDO on Amazon Linux 2

If your app is PHP based and you need to establish a database connection, you will need to have a PHP PDO extension. Let’s install the PHP PDO extension on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 28, 2023

Install PHP Curl on Amazon Linux 2

As a PHP Developer, you might need to send or receive files over HTTP. With the PHP Curl module, you can even use proxies or pass data over SSL connections. Let’s see how to install t...

In AWS, Amazon Linux 2, Jan 26, 2023

Install PHP CGI on Amazon Linux 2

If you want to use the PHP interpreter through CGI mode but you don’t have CGI extension installed, here I will show you how to install PHP CGI on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 22, 2023

Install php-common on Amazon Linux 2

If you get The common extension is missing. Please check your PHP configuration that means that you need to install php-common extension. The installation is very simple since you hav...

In AWS, Amazon Linux 2, Jan 20, 2023

Install shasum on Amazon Linux 2

Shasum can be easily installed through perl-Digest-SHA packages on Amazon Linux 2. Let’s jump on the installation part.

In AWS, Amazon Linux 2, Jan 16, 2023

Install Pip on Amazon Linux 2

If you have python installed but still getting No package pip available you can easily solve this by adding the python-pip with yum. Let’s see how to install pip on Amazon Linux 2.

In AWS, Amazon Linux 2, Dec 27, 2022

Install Iptables on Amazon Linux 2

Seemingly installing iptables on Amazon Linux 2 might not be useful if you consider aws security rules. However iptables allows managing more complex scenarios, like port forwarding, ...

In Iptables, AWS, Amazon Linux 2, Dec 17, 2022

Install htpasswd on Amazon Linux 2

Setting up htpasswd to have basic-auth for your site users can be done in a few steps depending on your web server. Here I’m going to cover just the installation process of htpasswd o...

In Htpasswd, AWS, Amazon Linux 2, Dec 03, 2022

Install Smartctl on Amazon Linux 2

If you want to monitor or analyze the health of the hard drive or check details for your ec2 hard drive, I would recommend installing smartctl command. Let’s see how to install smartc...

In Smartctl, AWS, Amazon Linux 2, Nov 29, 2022

PS Command Not Found in Amazon Linux 2

Procps package might not be part of some Amazon Linux 2 docker images. So if you want to list the active processes you will get: ps command not found. It can be easily resolved by ins...

In PS, Amazon Linux 2, Nov 23, 2022

Install Zlib on Amazon Linux 2

Usually, zlib comes preinstalled with most of the Amazon Linux images. But in case you get: bash: zlib: command not found then you need to install zlib on Amazon Linux 2.

In Zlib, Amazon Linux 2, Nov 19, 2022

Install Sudo on Amazon Linux 2

Some of the Amazon Linux 2 images are missing very basic system commands like sudo. If you get this error /bin/sh: sudo: command not found then you definitely need to install sudo on ...

In AWS, Amazon Linux 2, Nov 15, 2022

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Install PHP-FPM on Amazon Linux 2

Depending on your PHP version you can install FPM easily and configure it with Nginx to speed up your site performance. Let’s see how to install PHP-FPM on Amazon Linux 2.

In PHP, AWS, Amazon Linux 2, Nov 11, 2022

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

Install Wget on Amazon Linux 2

Let’s resolve the issue wget command not found on Amazon Linux 2.

In Wget, AWS, Amazon Linux 2, Nov 05, 2022

Install Mbstring on Amazon Linux 2

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

In Mbstring, AWS, Amazon Linux 2, Nov 03, 2022

Install gcc on Amazon Linux 2

While compiling or running C based code on Amazon Linux 2 you might face the following issue: gcc: command not found. That means that you don’t have GCC package installed which is use...

In gcc, AWS, Amazon Linux 2, Nov 01, 2022

Fix CloudFormation Error: 'The provided target group has target type instance, which is incompatible with the awsvpc network mode specified in the task definition'

Recently I needed to create a Network Load Balancer through CF and while creating the target group I stumbled upon this error: The provided target group has target type instance, whic...

In CloudFormation, AWS, Amazon Linux 2, Oct 30, 2022

Install Python on Amazon Linux 2

Installing Python 3 from the existing Amazon Linux 2 packages should be fairly easy. If you want to install the latest Python version 3.11.0 it might be tricky, but we are going to co...

In Python, AWS, Amazon Linux 2, Oct 28, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

Install Git on Amazon Linux 2

The Git installation on Amazon Linux 2 is simple and straightforward. Let’s check it out.

In Git, AWS, Amazon Linux 2, Oct 18, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

Install Unbuffer on Amazon Linux 2

If you need to disable the output buffering when you use complex pipelines, passing the output between multiple pipes then you can definitely use the unbuffer command. Let’s install u...

In Unbuffer, AWS, Amazon Linux 2, Aug 13, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

Install Fluentd on Amazon Linux 2

Fluentd is one of the most popular open-source projects, used for gathering logs from a set of sources and forwarding them to other monitoring software. Here I’m going to show you how...

In Logging, AWS, Amazon Linux 2, Jun 24, 2022

Install AWS CLI on Amazon Linux 2

Managing some AWS services through AWS CLI can be useful and practical, especially when you need to perform some quick actions like listing active resources or troubleshooting. Here I...

In AWS, Amazon Linux 2, Jun 02, 2022

Install PHP Composer on Amazon Linux 2

Using PHP on Amazon Linux 2 can potentially require a composer installation for some libraries. Installing Composer on Amazon Linux 2 is a quick and easy procedure. Let’s see it.

In PHP, AWS, Amazon Linux 2, May 31, 2022

Install Telnet on Amazon Linux 2

As a useful tool Telnet can help you to troubleshoot some connectivity problems, access specific port and also offers a lot of other useful stuff as well. The installation is simple a...

In Telnet, AWS, Amazon Linux 2, May 29, 2022

Install PHP 8.1 on Amazon Linux 2

If you want to hang out with the latest major update of PHP, then you should definitely try to install PHP 8.1 on Amazon Linux 2. Let’s do it.

In PHP, AWS, Amazon Linux 2, May 27, 2022

Install tar on Amazon Linux 2

Yet another free cool tool for archiving files, is tar. I’m going to stick to the title itself and show you how to install tar on Amazon Linux 2.

In Archive, AWS, Amazon Linux 2, May 25, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

Install Docker Compose on Amazon Linux 2

Installing the latest version of Docker Compose on Amazon Linux 2 is a pretty simple and straightforward process if Docker is installed previously. Let’s see the steps needed.

In Docker, AWS, Amazon Linux 2, Apr 25, 2022

Install Screen on Amazon Linux 2

Screen is a Linux utility that allows you to run and use multiple shell sessions from a single SSH session. It’s commonly used for migrating a bunch of data through an SSH connection....

In Screen, AWS, Amazon Linux 2, Apr 23, 2022

Install Redis on Amazon Linux 2

Redis CLI is a useful Terminal program that allows you to execute Redis commands, either on your local Redis or some remote Redis endpoint. Here I’m going to show you how to install R...

In Redis, AWS, Amazon Linux 2, Apr 21, 2022

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

Install Rsync on Amazon Linux 2

Sending files, and directories remotely can be achieved with a lot of utility tools. One of them is Rsync, which is a cool tool for remote transfer. Let’s see how to install it on Ama...

In Rsync, AWS, Amazon Linux 2, Apr 17, 2022

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to set up SSH keys on Amazon Linux 2

While creating Amazon Linux 2 instance through the AWS console, there is a step that will provide you with the EC2 key pairs to connect to your instance. But if you need to set up som...

In SSH, AWS, Amazon Linux 2, Apr 11, 2022

Install Node.js on Amazon Linux 2

Node.js doesn’t exist in the default Amazon Linux 2 yum packages. So we should add the Node.js official repo and use it for the installation. Let’s see how to install Node.js on Amazo...

In Node.js, AWS, Amazon Linux 2, Apr 09, 2022

Enable EPEL on Amazon Linux 2

Using EPEL package repository can be very beneficial. EPEL contains all the common packages that you may want to install. Unfortunately, EPEL is disabled in Amazon Linux 2. Let’s see ...

In AWS, Amazon Linux 2, Apr 07, 2022

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

How to install Go on Amazon Linux 2

Installing Golang on Amazon Linux 2 can be done within a few minutes since Go exists in the default Amazon Linux 2 yum packages. Let’s dive into it.

In Go, AWS, Amazon Linux 2, Apr 01, 2022

How to install SQLite on Amazon Linux 2

SQLite is one of the best minimalistic, lightweight, and powerful SQL database managers. It can be suitable for every application which doesn’t use a complex database structure. So to...

In SQLite, AWS, Amazon Linux 2, Mar 30, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How to install Kubectl on Amazon Linux 2

Installing the kubectl from the official Red Hat based distributions and adding it through the default yum packages will throw failure: repodata/repomd.xml from kubernetes: [Errno 256...

In Kubernetes, AWS, Amazon Linux 2, Mar 14, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

How to install Apache on Amazon Linux 2

Once you have provisioned an AWS EC2 instance installing Apache on Amazon Linux 2 is a straightforward and easy process. Here I’m going to show you how to install Apache web server on...

In Apache, AWS, Amazon Linux 2, Feb 06, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to secure domain with Let's Encrypt SSL/TLS certificate on Amazon Linux 2

As a sequel to the previous topic where we saw how to install Certbot on Amazon Linux 2, here I’m going to show you how to secure your domain with a free Let’s Encrypt SSL/TLS certifi...

In Let's Encrypt, AWS, Amazon Linux 2, Nov 28, 2021

How to install Certbot on Amazon Linux 2

Using AWS amazon linux 2 template for your EC2 instance is always a preferred way as an AWS-optimized and proprietary template. So if your web application requires an SSL/TLS certific...

In Certbot, AWS, Amazon Linux 2, Nov 26, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

How to install Terraform on Amazon Linux 2

There are a lot of tutorials on how to install the latest version of Terraform out there. Most of them are pointing to the Terraform official release site, so you need to get the late...

In Terraform, AWS, Amazon Linux 2, Oct 11, 2021

How to install Ansible on Amazon Linux 2

When it comes to AWS hosted infrastructure, if there is a need for managing the instances or the deployments of the application/services you can use the approach of having one EC2 ded...

In Ansible, AWS, Amazon Linux 2, Oct 07, 2021

How to install Nginx on Amazon Linux 2

Installing Nginx from the Amazon Linux repo will provide you with an exceedingly old Nginx version. Therefore, I will show you how to install it through the EPEL repo which is my pref...

In Nginx, AWS, Amazon Linux 2, Oct 05, 2021

How to install Podman on Amazon Linux 2

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m going to show you how to install...

In Podman, AWS, Amazon Linux 2, Aug 10, 2021

proxy

GCP: Configure Cloud SQL Auth proxy

Cloud SQL Auth proxy is a SQL connector that enables secure and proxy access to databases. This is the recommended way to connect to managed GCP DBs, including the minimum administrat...

In GCP, Mar 22, 2023

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Nginx proxy and 'an upstream response is buffered to a temporary file' warning

In today’s Nginx log message of the week, we got the following warning:2022/05/02 08:03:16 [warn] 31447#0: an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/...

In Nginx, May 08, 2022

Tweaking Nginx proxy_buffers parameters

Before setting up YOLO values for proxy_buffers and proxy_buffer_size parameters, you need to find out the average and maximum response sizes first. On a side note, the following step...

In Nginx, May 06, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Proxy, Sep 25, 2021

How to create Apache reverse proxy for your application

Creating Apache reverse proxy follows a similar procedure as Nginx. In some of the previous posts, we saw How to set up Nginx reverse proxy, so today I’m going to show you exactly the...

In Apache, Sep 23, 2021

How to set up Nginx reverse proxy for your application

Using Nginx reverse proxy could be very useful, especially if you are developing an application with a framework that can run its own server like Node.js, Python, Ruby on Rails, etc. ...

In Nginx, Aug 14, 2021

reverse proxy

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Nginx proxy and 'an upstream response is buffered to a temporary file' warning

In today’s Nginx log message of the week, we got the following warning:2022/05/02 08:03:16 [warn] 31447#0: an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/...

In Nginx, May 08, 2022

Tweaking Nginx proxy_buffers parameters

Before setting up YOLO values for proxy_buffers and proxy_buffer_size parameters, you need to find out the average and maximum response sizes first. On a side note, the following step...

In Nginx, May 06, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Proxy, Sep 25, 2021

How to create Apache reverse proxy for your application

Creating Apache reverse proxy follows a similar procedure as Nginx. In some of the previous posts, we saw How to set up Nginx reverse proxy, so today I’m going to show you exactly the...

In Apache, Sep 23, 2021

How to set up Nginx reverse proxy for your application

Using Nginx reverse proxy could be very useful, especially if you are developing an application with a framework that can run its own server like Node.js, Python, Ruby on Rails, etc. ...

In Nginx, Aug 14, 2021

selinux

How to disable SELinux

You may face Nginx or Apache web server blocking issues even when your firewall is disabled. SELinux is a security engine that may block some calls or permissions on your server. So, ...

In Linux, Aug 16, 2021

debian 11

Install Yarn on Debian 11

There are multiple ways to install yarn on Debian 11. Here I’m going to show you how to install Yarn on Debian 11 via APT.

In Debian, Dec 11, 2022

Install PowerShell on Debian 11

PowerShell can be installed on Debian 11 as well. All you need is to follow the steps down below.

In PowerShell, Debian, Oct 26, 2022

Install .NET on Debian 11

.NET framework allegedly is seldom used on Linux systems, but there are some exceptions when you might need it. Let’s see how to install .NET on Debian 11.

In .NET, Debian, Oct 22, 2022

Install Podman Compose on Debian 11

The growth and use of Podman is really raging higher and higher. I hope one day it will be on the same level as Docker is today. Now, assuming that you have Podman installed on Debian...

In Podman, Debian, May 09, 2022

Install VestaCP on Debian 11

VestaCP is a free and open-source control panel based on PHP and Bash. It’s a lightweight and easy to use control panel which can save you a lot of time and money especially if you ar...

In Control Panels, Apr 03, 2022

How to install DBeaver on Debian 11

Installing DBeaver on Debian 11 follows pretty much the same steps from Ubuntu 21.10. The two methods of installing are: snap package

In DBeaver, Debian, Feb 14, 2022

How to install Logstash on Debian 11

Every data processing service needs a data processing pipeline that will help you to gather data from different sources. Nowadays, Logstash is one of the most efficient and required d...

In Logging, Debian, Nov 14, 2021

How to install Grafana on Debian 11

Seemingly some enterprise monitoring solutions look that they can be suitable for your infrastructure but afterwards it shows up that your expectations are not satisfied. There are a ...

In Monitoring, Debian, Nov 10, 2021

How to install Terraform on Debian 11

Today I’ll be writing about terraform installation on Debian 11. The steps are pretty easy, so you just have to follow them and accomplish the installation process. Let’s hop in.

In Terraform, Nov 06, 2021

How to install Node.js on Debian 11

There are few methods to install Node.js on Debian 11. Using PPA Using NVM From the Debian official packages

In Node.js, Debian, Oct 21, 2021

How to install Terragrunt on Debian 11

If you need to simplify the Terraform structure you can achieve it through Terragrunt. The crux is that you only need to define the Terraform modules and Terragrunt will take care of ...

In Terragrunt, Debian, Oct 19, 2021

How to install Redis on Debian 11

Improving your site performance and caching your content can be achieved with Redis which stands as one of the most popular caching tools nowadays. How the complexity of the applicati...

In Redis, Debian, Sep 29, 2021

How to install Ruby on Debian 11

Ruby as a programming language belongs to the group with a high demand along with the other popular programming languages. Nowadays, his framework Ruby on Rails is highly used by deve...

In Ruby, Debian, Sep 27, 2021

How to install Docker Compose on Debian 11

We previously saw how to install Docker on Debian 11. As a sequel, I’m going to round it off with the docker compose installation on Debian 11.

In Docker, Debian, Sep 15, 2021

How to install Nginx on Debian 11

Installing Nginx on Debian 11 is pretty easy and straightforward. This tutorial will show you how to install it and enable HTTP traffic on your Debian server.

In Nginx, Debian, Aug 22, 2021

How to install Docker on Debian 11

Finally, Debian 11 is released on August 14th, 2021, and this version is marked as a stable version. This tutorial will show you the steps on how to install Docker on a new fresh Debi...

In Docker, Debian, Aug 18, 2021

github

GitHub Actions: multi-line shell commands

There are two different ways to run shell commands in GitHub actions: the Literal Block Scalar (run: |) and the Folded Block Scalar (run: >). Here’s the difference.

In GitHub, Oct 20, 2023

GitHub Actions: github.ref_name vs github.head_ref

GitHub has its own contexts that you could use while working with GitHub actions which you could use in certain scenarios. The most confusing thing I stumble upon was choosing between...

In GitHub, Oct 18, 2023

Drone CI and GitHub webhooks 'We couldn't deliver this payload: timed out' error

As the title says here’s a workaround if you find yourself in a situation where the GitHub webhook fails only for a certain repository with “no reason” or updates made regarding Drone...

In Drone, GitHub, May 19, 2023

Resolve 'No newline at end of line' in GitHub

Creating the first Pull Request could be anxious, you feel like being judged by other engineers. Generally, the first thing you might notice is the GitHub red sign saying “No newline ...

In Git, Apr 29, 2023

How not to get prompt for GitHub username and token everytime

Getting prompt for GitHub username and token everytime you try to pull is so annoying task. Keep in mind that PATs (Personal Access Tokens) aren’t the default solution anymore, as of ...

In GitHub, Feb 10, 2023

GitHub EMU external groups with Terraform

GitHub EMU (Enterprise Managed Users) in general allows users to manage their enterprise members through IdPs (identity providers). Azure Active Directory and Okta are the only ones s...

In GitHub, Terraform, Jul 01, 2022

GitHub hidden feature

There is a mind-blowing GitHub feature or if I can call it a “secret” that I’ve just discovered, and I need to share with you all.

In GitHub, Aug 19, 2021

mongodb

How to install MongoDB on Rocky Linux 8

MongoDB has an attitude to store the data in BSON, which can be searched and indexed, with a way better performance. Installing MongoDB on Rocky Linux can additionally improve the sea...

In MongoDB, Rocky Linux, Aug 20, 2021

jekyll

List categories with Jekyll

If you want to get a quick summary on how many blog categories you got out there including the post count number, the following code block could help you list both.

In Jekyll, Apr 17, 2023

Dynamically list posts and tags in Jekyll

As a follow-up post to Jekyll, dynamic links and JSON data, this time we are going to learn how to dynamically list posts and tags.

In Jekyll, Mar 12, 2023

Jekyll, dynamic links and JSON data

Here’s a good starting point when trying to create dynamic links from JSON data with Jekyll, being one of the most popular blog static site generator written in Ruby.

In Jekyll, Mar 10, 2023

How to show future dated posts in Jekyll

By default, Jekyll doesn’t display posts with future dates. Sometimes we want to test them before publishing, and for that reason there is a plain solution.

In Jekyll, Jan 10, 2022

How to escape double curly braces in Jekyll

If you are using Jekyll for your blog site or writing some code documentation, you may face the issue with the double curly braces. Jekyll uses liquid tags, so if you are searching ho...

In Jekyll, Aug 28, 2021

markdown

How to escape double curly braces in Jekyll

If you are using Jekyll for your blog site or writing some code documentation, you may face the issue with the double curly braces. Jekyll uses liquid tags, so if you are searching ho...

In Jekyll, Aug 28, 2021

aks

Scale AKS user node pool to 0

In case you missed Configure AKS automatic upgrades.In today’s post, we are going to see how can we be cost-effective, by scaling the User node pool to 0.

In Azure, Kubernetes, Sep 06, 2021

Configure AKS automatic upgrades

Regarding managed Kubernetes services, IMHO Azure provides the best cloud experience, for a couple of reasons. From authentication and authorization standpoint, AKS integrates well wi...

In Azure, Kubernetes, Sep 01, 2021

linux processes

How to restart processes with Kill in Linux

You may ask yourself why using kill command to restart processes when here is systemctl. But some of you will get stuck in a position where you will not be able to restart some stuck ...

In Linux, Mar 06, 2022

List processes with high memory usage in Linux

There are situations where your web application or particular software installed on your machine takes a lot of time to load. The troubleshooting process may last long but however, yo...

In Linux, Sep 05, 2021

cors

How to enable CORS in Nginx

If you are trying to make API calls, and you are getting the following error from Nginx: No Access-Control-Allow-Origin header is present on the requested resource you should definite...

In Nginx, Sep 07, 2021

ddos

How to check if your web application is under DDoS attack

Nowadays, most of the web applications are vulnerable and exposed on many kinds of attacks. One of them is a DDoS attack. There are a lot of services on the internet that are offering...

In DDOS, Sep 11, 2021

imperative

Declarative vs Imperative Infrastructure as Code

With the uprising of Terraform in the last couple of years, Infrastructure as Code (IaC) is a popular and hot topic in the DevOps world. Managing and deploying infrastructure is all w...

In IaC, Sep 16, 2021

declarative

Declarative vs Imperative Infrastructure as Code

With the uprising of Terraform in the last couple of years, Infrastructure as Code (IaC) is a popular and hot topic in the DevOps world. Managing and deploying infrastructure is all w...

In IaC, Sep 16, 2021

bash

How to export multiple MySQL databases in a separate .sql file

The easiest way to export multiple MySQL databases in a separate .sql file is through a bash script.

In MySQL, Mar 23, 2023

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

How to install Terragrunt on CentOS 7

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

In Terragrunt, CentOS, Jan 27, 2022

Send Slack notifications from a Bash script

Slack is one of the most popular and used messaging apps by companies of any kind of business size, from small companies and startups to large enterprises. From DevOps point of view, ...

In Slack, Webhooks, Jan 06, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

Which shell am I using - how to check

Linux comes with support for multiple flavors of shell, including bash, zsh, ksh, csh, or suchlike. This time I’ll be focusing on how to find out which shell you are using, which is t...

In Shell, Nov 21, 2021

How to reload shell session

In order to update and see changes made in the shell environment, most of the time reload is required. So, instead of restarting the machine and wasting a lot of time, a simple comman...

In Shell, Nov 19, 2021

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

parsing

Get, monitor and remove the last N lines of a file in Linux

Listing and monitoring the last N lines of a log file is a common and familiar operational practice mostly to System Administrators and SRE engineers. Surely, there are better ways to...

In Linux, Parsing, Jan 11, 2023

Extract XML tags and values from the CLI using sed

Extracting certain tags and values using XML is not something we do on a daily basis. In my case, I had to figure out how to extract all DevCoops blog posts titles using the sitemap.x...

In Parsing, Jan 09, 2023

head: illegal line count on macOS

Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...

In Parsing, Jan 07, 2023

Simple CLI command to extract URLs from the sitemap.xml file

I wanted to do some analytics automation so, at first I needed to pull a list of all blog post links (URLs) from the sitemap.xml file. And here’s what I came up with.

In Parsing, Jan 05, 2023

Install jq on Alpine Linux

Yet another quick and easy jq installation on Alpine Linux. You can use it as a part of your Dockerfile as well.

In jq, Alpine Linux, Jun 08, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

JSON to plain text using jq

JSON stands for JavaScript Object Notation and represents easy-to-read lightweight data format. And jq is basically described as sed for JSON data, hence used for JSON data parsing. H...

In Parsing, Mar 09, 2022

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

json

How to Install jq on Ubuntu 23.04

JQ is a useful tool that provides a simple and powerful way to filter, transform, and extract data from JSON documents. Let’s install jq on Ubuntu 23.04.

In JQ, May 12, 2023

Jekyll, dynamic links and JSON data

Here’s a good starting point when trying to create dynamic links from JSON data with Jekyll, being one of the most popular blog static site generator written in Ruby.

In Jekyll, Mar 10, 2023

How to Install PHP Json on Amazon Linux 2

To be able to convert your PHP objects into JSON using the PHP functions, you need to have php-json extension installed. Let’s install PHP Json on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 03, 2023

Install jq on CentOS 9 Stream

If you are playing with JSON things then you may consider installing jq. It’s a simple JSON Processor which can help you to get the desired JSON output. Today I’m going to install jq ...

In jq, CentOS, Sep 06, 2022

Install jq on Alpine Linux

Yet another quick and easy jq installation on Alpine Linux. You can use it as a part of your Dockerfile as well.

In jq, Alpine Linux, Jun 08, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

JSON to plain text using jq

JSON stands for JavaScript Object Notation and represents easy-to-read lightweight data format. And jq is basically described as sed for JSON data, hence used for JSON data parsing. H...

In Parsing, Mar 09, 2022

Convert Linux commands output from CSV to JSON

CSV to JSON conversion is commonly used in the Monitoring part of the DevOps cycle, usually when we need to gather some data, parse it, and ship it via some monitoring agent, like Flu...

In Parsing, Linux, Sep 18, 2021

aws lambda

How to make local archive_file to be available when deploying Terraform aws_lambda_function

In today’s blog post, I really need to share with you all a quick tip regarding Terraform’s aws_lambda_function resource and how to make the latest local data archive_file to be prese...

In Terraform, AWS, Sep 20, 2021

envoy

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Proxy, Sep 25, 2021

load balancer

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

How to setup Envoy proxy

Envoy is a minimalistic L7 proxy designed to be used along with the cloud native microservice applications. It’s an open-source container based project which can run on a minimum syst...

In Proxy, Sep 25, 2021

ruby

Install Ruby on Debian 12

Ruby is a known programming language for its simplicity and flexibility. Let’s install Ruby on Debian 12.

In Debian, Jul 19, 2023

Forcing bundler to install gems in users home directory

By default, bundler install gems under /usr/local/bundle which is the default value for $GEM_HOME and $BUNDLE_APP_CONFIG when using Ruby’s official Docker images. Here’s what you can do.

In Ruby, May 23, 2023

Install Ruby on Alpine Linux

Installing Ruby on Alpine Linux comes fairly quick and easy as it exists within the apk package manager. Let’s jump on the crux.

In Ruby, Alpine Linux, Jul 28, 2022

How to install Ruby on Amazon Linux 2

If you want to develop ruby application using some ruby frameworks like Ruby on Rails, Padrino, etc., on Amazon Linux 2 you will have to install ruby as a dependency. This topic will ...

In Ruby, AWS, Amazon Linux 2, Mar 16, 2022

How to show future dated posts in Jekyll

By default, Jekyll doesn’t display posts with future dates. Sometimes we want to test them before publishing, and for that reason there is a plain solution.

In Jekyll, Jan 10, 2022

How to check Ruby version

There are multiple ways you could find out which Ruby version you are running on your local machine.

In Ruby, Nov 11, 2021

Solution: Ignoring GEM because its extensions are not built

Solutions to common issues in Ruby dev environment series: Solution: cannot load such file – webrick (LoadError) Solution: gem eventmachine fatal error: ‘openssl/ssl.h’ file not fou...

In Ruby, Nov 09, 2021

Solution: Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION

As a part of the solutions to common issues in Ruby dev environment series, here’s the link to the previous ones: Solution: cannot load such file – webrick (LoadError) Solution: gem...

In Ruby, Nov 07, 2021

Solution: gem eventmachine fatal error: 'openssl/ssl.h' file not found

I’ll be doing a solution to common issues in Ruby dev environment series, so here’s the link to the first post: Solution: cannot load such file – webrick (LoadError) Solution: Unkno...

In Ruby, Nov 05, 2021

Solution: cannot load such file -- webrick (LoadError)

As a DevOps engineer myself and three years of using a MacBook Pro, I’ve noticed that updating a major release of macOS always comes with unwelcomed ruby dependencies and version errors.

In Ruby, Nov 03, 2021

Install Ruby on macOS

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version m...

In Ruby, macOS, Oct 30, 2021

Install Ruby on macOS

There are four ways to install Ruby on all computing platforms, including package management systems, installers, managers, and of course building from source. RVM as a Ruby version m...

In Ruby, macOS, Oct 30, 2021

How to install Ruby on Debian 11

Ruby as a programming language belongs to the group with a high demand along with the other popular programming languages. Nowadays, his framework Ruby on Rails is highly used by deve...

In Ruby, Debian, Sep 27, 2021

remmina

Remmina can't remote into AWS EC2 Windows machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some RDP software. A few days ago I needed to access a Microsoft SQL server ...

In RDP, AWS, Oct 01, 2021

rdp

Remmina can't remote into AWS EC2 Windows machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some RDP software. A few days ago I needed to access a Microsoft SQL server ...

In RDP, AWS, Oct 01, 2021

libfreerdp

Remmina can't remote into AWS EC2 Windows machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some RDP software. A few days ago I needed to access a Microsoft SQL server ...

In RDP, AWS, Oct 01, 2021

windows

Display current directory from the CLI

Trying to get the current working directory is a good starting point for debugging purposes at least whenever you are ssh-ed into a CI/CD server agent or likewise. So here’s the tip.

In Shell, Jun 22, 2023

Enable symlinks in Windows, VSCode and Git

By default while running a Windows dev machine, symlinks (symbolic links, soft links) are not shown or at least are not seen from VSCode and Git as such. Regarding the workaround… few...

In Windows, VSCode, Git, May 13, 2023

Find and list modified files of the last N days in Bash and PowerShell

Recently, as I was troubleshooting some static files sync, I wanted to know which files were changed, updated in the last 2 weeks. As with most things, if you are not doing them routi...

In Linux, macOS, Windows, Jan 15, 2023

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Resolve: "gyp verb check python checking for Python executable "python2" in the PATH"

While I was working locally on some Python project pulled from an archived Git repo, I needed few hours just to setup the environment on a Windows machine, and get it up and running. ...

In Python, Nov 24, 2022

The proper way to start and stop Redis server

In this tutorial we are going to see how to start, stop and restart the Redis service properly, which is pretty straightforward and simple to do so.

In Redis, Aug 16, 2022

Find non-ASCII characters in Windows (Notepad++)

ASCII being a character encoding standard presents a part of UTF-8. PowerShell would be a great option here but for the sake of complexity I’ll show you how to do it in Notepad++ inst...

In Windows 10, Windows 11, May 30, 2022

Get Windows 10 version number from the CLI

Today’s topic going to be all about the multiple way to get the version number for Windows 10. Even though there’s a dozen ways to do it, I’m going to stick to the most basic ones wit...

In Windows 10, May 12, 2022

PowerShell equivalent of the touch command in Linux

There might be a point in your IT career where you need to switch to a Windows OS dev machine whatever you like it not because the CTO decided to put all eggs in the Microsoft Azure b...

In PowerShell, May 02, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

HP Fix WI-FI driver not working in Windows 10

Installing WLAN (WiFi) driver from the HP official drivers site might cause issues and does not appear in the Windows device adapters. So if that’s the thing follow the instructions b...

In Windows 10, Mar 10, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

Install Podman on Windows 11

The installation guide for running Podman on Windows 11 follows the same idea as Install Docker on Windows 11 without Docker Desktop.

In Podman, Windows 11, Dec 31, 2021

Install Docker on Windows 11 without Docker Desktop

As with Windows 10, let’s see how we could install Docker on Windows 11 without GUI.

In Docker, Windows 11, Dec 27, 2021

How to install Windows 11 on VirtualBox

Windows 11 has been out there for almost 3 months, so let’s see how good the VirtualBox installation will go.

In Windows 11, Virtualization, Dec 21, 2021

How to fix Windows 11 'does not meet the requirements' error on VirtualBox

As with most of the new OS releases on macOS, Windows or Linux, my best practice is to test them first in a virtual environment, usually using VirtualBox. The reason you might stumble...

In Windows 11, Virtualization, Dec 17, 2021

Install Podman on Windows 10

The trick for installation and running Podman on Windows 10 follows the same idea as Install Docker on Windows 10 without Docker Desktop.

In Podman, Windows 10, Dec 15, 2021

Install Docker on Windows 10 without Docker Desktop

In today’s topic I’m going to cover on how to install and run Docker on Windows 10 without Docker Desktop. This means we’ll be using WSL (Windows Subsystem for Linux).

In Docker, Windows 10, Dec 13, 2021

Remmina can't remote into AWS EC2 Windows machine due to libfreerdp

If you need to access your Windows-based server through your local Linux machine you should consider using some RDP software. A few days ago I needed to access a Microsoft SQL server ...

In RDP, AWS, Oct 01, 2021

cloud costs

Save data transfer costs with Cloudflare and Azure

Cloudflare Bandwidth Alliance represents a group of cloud and network providers that are willing to help us as their customers to reduce our data transfer charges. It’s interesting to...

In Azure, Cloudflare, Mar 15, 2022

7 ways to save money in the Cloud

Cost optimization is just one of the five pillars of Well-Architected Framework, which is identical across the top 3 public cloud provider players. Although, deploying a billing alarm...

In Cloud, Oct 02, 2021

gcp

Terraform and 'The given "for_each" argument value is unsuitable.'

As a follow-up to Terraform: null values and for_each, this time we are going to see which values are (not) allowed when dealing with for_each, thus the following error:│ Error: Inval...

In Terraform, Apr 09, 2023

Terraform: null values and for_each

Null values don’t go well hand in hand with Terraform’s for_each, but, as always, here’s some hack on how to get through.

In Terraform, Apr 07, 2023

Deploy GCP CDN with Terraform

Choosing between various CDNs and deploying them has never been easier. In this tutorial, you are going to see how to deploy a Content Delivery Network (CDN) on the Google Cloud Platf...

In GCP, Terraform, Mar 30, 2023

GCP: public vs private subnets

The main difference between public and private subnets more or less to any public cloud is their connectivity and access to the internet. Overall, it comes down to routing. However, t...

In GCP, Mar 28, 2023

GCP: Recover deleted service account

Accidentally removing default service account could just “happen” from time to time, and here’s how you can get it back.

In GCP, Mar 26, 2023

Easy login to GCP VM instances using IAP

IAP or Identity-Aware Proxy, is a GCP service that allows for secure and fine-grained control access mostly to cloud resources such as VMs and Kubernetes clusters. Here I’m going to s...

In GCP, Mar 24, 2023

GCP: Configure Cloud SQL Auth proxy

Cloud SQL Auth proxy is a SQL connector that enables secure and proxy access to databases. This is the recommended way to connect to managed GCP DBs, including the minimum administrat...

In GCP, Mar 22, 2023

Resolve GCP googleapi Error 400: `Unparseable iamMember` in Terraform

Managing GCP infrastructure with Terraform is an uphill battle, especially if you are not familiar with any other cloud, and how they work. So, here’s my error of the week that I got ...

In GCP, Terraform, Mar 20, 2023

Replicate directory structure in a GCP bucket

gsutil is a Python app developed by Google that lets you handle the GCP Cloud Storage service, anything from uploading, downloading, sync, mostly doing backup and migration operation....

In GCP, Mar 18, 2023

GCP: gsutil and parallel_composite_upload_threshold

The first I tried to upload some TBs of data to a GCP bucket, I’ve received the following message:NOTE: You are uploading one or more large file(s), which would run significantly fast...

In GCP, Mar 16, 2023

GCP: revoking gcloud auth

In this tutorial, I’m going to show you how easy is to revoke any gcloud authentication, whatever you are dealing with multiple GCP personal or even service accounts.

In GCP, Mar 14, 2023

Terraform and GCP googleapi: Error 400: Request contains an invalid argument

It would be more or less fair to say that GCP is the only Cloud hosting platform that I have disdain for and give me an urge to punch a wall. Based take, right?! While I was trying to...

In Terraform, GCP, Feb 14, 2023

Terraform output GCP Service Account private key as plain JSON

Right of the bat, using GCP Service Accounts (SA) is greatly not recommended. This comes from GCP though. Service account keys are not managed properly, and present a security risk. I...

In Terraform, GCP, Feb 02, 2023

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

GCP Filestore error: "mount: wrong fs type, bad option, bad superblock"

GCP Filestore is a managed file storage, the competitor equivalents being: AWS’s EFS and Azure Files. While following the great GCP documentation on how to mount the Filestore NFS man...

In GCP, Linux, NFS, Jan 21, 2023

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Update private service access connection in GCP

Not trying to rant about GCP, but to sum up, you need to do a ton of somehow complex steps just to get a simple thing up and running. It’s frustrating though.

In GCP, Aug 08, 2022

Enable/Disable resources conditionally in Terraform

Since there isn’t any resource_enabled = false feature developed by Terraform yet, here’s a quick hack to enable / disable resources.

In Terraform, Aug 02, 2022

google_project_iam_binding removes GCP compute engine default service accounts from IAM principals

By default, once you enable the Compute Engine API in GCP, two Google-managed service account principals will be created Compute Engine default service account and Google APIs service...

In GCP, Terraform, Jul 13, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

GCP Service Account impersonation with Terraform

The idea of GCP service account impersonation is to run and deploy Terraform infrastructure without the need of using service account keys as it introduces security risks along the wa...

In GCP, Terraform, Jun 29, 2022

Enable Google APIs with GCP and Terraform

Terraforming GCP projects from scratch could be a lot of hustle and bustle as you need to enable almost every freaking Google service (API) per project. That’s probably first and fore...

In GCP, Terraform, Jun 27, 2022

5 ways to protect root account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

7 ways to save money in the Cloud

Cost optimization is just one of the five pillars of Well-Architected Framework, which is identical across the top 3 public cloud provider players. Although, deploying a billing alarm...

In Cloud, Oct 02, 2021

drone ci

Drone CI and GitHub webhooks 'We couldn't deliver this payload: timed out' error

As the title says here’s a workaround if you find yourself in a situation where the GitHub webhook fails only for a certain repository with “no reason” or updates made regarding Drone...

In Drone, GitHub, May 19, 2023

Add Drone CI build status to your project

In some of the previous posts, I wrote about how to Send Drone CI build notifications with Slack.

In Drone, Oct 08, 2021

Send Drone CI build notifications with Slack

The following post will be about sending Drone CI build notification to Slack. In case you didn’t know already, since there are a dozen of CI/CD tools out there, Drone CI is an open s...

In Drone, Slack, Webhooks, Oct 04, 2021

slack

Send Slack notifications from a Bash script

Slack is one of the most popular and used messaging apps by companies of any kind of business size, from small companies and startups to large enterprises. From DevOps point of view, ...

In Slack, Webhooks, Jan 06, 2022

Send Drone CI build notifications with Slack

The following post will be about sending Drone CI build notification to Slack. In case you didn’t know already, since there are a dozen of CI/CD tools out there, Drone CI is an open s...

In Drone, Slack, Webhooks, Oct 04, 2021

webhooks

Drone CI and GitHub webhooks 'We couldn't deliver this payload: timed out' error

As the title says here’s a workaround if you find yourself in a situation where the GitHub webhook fails only for a certain repository with “no reason” or updates made regarding Drone...

In Drone, GitHub, May 19, 2023

Send Slack notifications from a Bash script

Slack is one of the most popular and used messaging apps by companies of any kind of business size, from small companies and startups to large enterprises. From DevOps point of view, ...

In Slack, Webhooks, Jan 06, 2022

Send Drone CI build notifications with Slack

The following post will be about sending Drone CI build notification to Slack. In case you didn’t know already, since there are a dozen of CI/CD tools out there, Drone CI is an open s...

In Drone, Slack, Webhooks, Oct 04, 2021

inodes

How to detect and free Inode usage on Linux

While I was maintaining a monitoring service for an AWS-based infrastructure the service daemon stopped working. After some digging on the host where the service was hosted, I find ou...

In Linux, Oct 09, 2021

service endpoints

Service Endpoints vs Private Links in Azure

Microsoft Azure provides many options to approach networking, starting from Azure VPN, ExpressRoute, Azure Route Server, NVAs, and others. These are more likely to be implemented in t...

In Azure, Oct 10, 2021

Service Endpoints vs Private Links in Azure

Microsoft Azure provides many options to approach networking, starting from Azure VPN, ExpressRoute, Azure Route Server, NVAs, and others. These are more likely to be implemented in t...

In Azure, Oct 10, 2021

root

5 ways to protect root account in the Cloud

Security as one of the Five Pillars of the Well-Architected Framework has been underlooked, not just in the age of the cloud computing but before that as well. With cloud migration be...

In Cloud, Oct 12, 2021

nomad

How to install Nomad on Fedora-based distro

Previously I covered the Nomad installation on the most frequently used Linux distros: Amazon Linux 2 Debian RHEL

In Nomad, Fedora, Oct 27, 2021

How to install Nomad on RHEL-based distro

As I mentioned in the previous topics I’m going to cover the Nomad installation on all popular Linux distros. So this tutorial will be aimed to show you how to install Nomad on RHEL-b...

In Nomad, RHEL, Oct 17, 2021

How to install Nomad on Debian-based distro

As a sequel of the Nomad installation series today I’m going to shed some light on how to install Nomad on every Debian-based distro. The installation process is quick and easy and th...

In Nomad, Debian, Oct 15, 2021

How to install Nomad on Amazon Linux 2

Working with popular orchestration application services like Kubernetes and ECS is not that easy as it seems when it comes to scaling the app, deployments, and managing the resources ...

In Nomad, AWS, Amazon Linux 2, Oct 13, 2021

debian

Install Python on Debian 12

Using the Debian official repository is the best method to install Python on Debian 12.

In Debian, Aug 06, 2023

Install Apache on Debian 12

Let’s see how to install Apache HTTP Server on Debian 12 as one of the widely used open-source web servers.

In Debian, Aug 04, 2023

Install Certbot on Debian 12

Certbot can be easily installed on Debian 12.

In Debian, Aug 02, 2023

Install Smartctl on Debian 12

Let’s see how to install smartctl tool which provides a way to retrieve detailed information about the status of your storage devices, including attributes such as temperature, error ...

In Debian, Jul 31, 2023

Install Netstat on Debian 12

If you need to check the network status on your server, netstat is a great tool for that. Let’s see how to install Netstat on Debian 12.

In Debian, Jul 29, 2023

Install Wget on Debian 12

If you get bash: wget: command not found you need to install wget on Debian 12. Let’s see how to install it.

In Debian, Jul 27, 2023

Install Redis on Debian 12

Redis can be easily installed on Debian 12. Let’s take a look.

In Debian, Jul 25, 2023

Install Nginx on Debian 12

Let’s install our favorite Nginx web server on the newly released Debian 12.

In Debian, Jul 21, 2023

Install Ruby on Debian 12

Ruby is a known programming language for its simplicity and flexibility. Let’s install Ruby on Debian 12.

In Debian, Jul 19, 2023

Install Ansible on Debian 12

Installing Ansible on the newly released Debian 12 is fairly easy. Let’s take a look.

In Ansible, Debian, Jul 11, 2023

Install dig and nslookup on Debian

Dns tools such as dig and nslookup can be easily installed on Debian using the apt package manager. Let’s jump on the installation part.

In Debian, Dec 21, 2022

Install Yarn on Debian 11

There are multiple ways to install yarn on Debian 11. Here I’m going to show you how to install Yarn on Debian 11 via APT.

In Debian, Dec 11, 2022

Install PowerShell on Debian 11

PowerShell can be installed on Debian 11 as well. All you need is to follow the steps down below.

In PowerShell, Debian, Oct 26, 2022

Install .NET on Debian 11

.NET framework allegedly is seldom used on Linux systems, but there are some exceptions when you might need it. Let’s see how to install .NET on Debian 11.

In .NET, Debian, Oct 22, 2022

Top command not found on Debian-based Docker container

Some of your Docker Debian-based containers can be killed due to heavy processes running inside the container. If your preferred choice is the top command, most likely you will get th...

In Docker, Debian, Jul 20, 2022

How to update Visual Studio Code on Debian-based distro

Some old VS Code versions are getting git issues, for instance, you are not able to pull or push to your repo due to authentication issues. If you try to authenticate through your Lin...

In VSCode, Debian, Nov 22, 2021

How to Setup GraphQL with Node.js on Debian-based distro

To gather information from the REST API designed app you need to send requests to multiple REST endpoints. So this kind of approach is scattered across multiple endpoints. GraphQL sol...

In GraphQL, Node.js, Debian, Oct 23, 2021

How to install Nomad on Debian-based distro

As a sequel of the Nomad installation series today I’m going to shed some light on how to install Nomad on every Debian-based distro. The installation process is quick and easy and th...

In Nomad, Debian, Oct 15, 2021

internet

Check Internet speed from the CLI on Linux

In this day and age, experiencing a slow internet connection could be a huge deal, especially for most of us who work remotely. Since we can do almost anything from the CLI, let’s sav...

In Linux, Oct 18, 2021

terragrunt

Install Terragrunt on Amazon Linux 2

One of the best Terraform wrappers is Terragrunt so far. Terragrunt inherits a lot of useful commands and design structures from Terraform. Let’s see how to install Terragrunt on Amaz...

In Terragrunt, AWS, Amazon Linux 2, Apr 15, 2022

How to install Terragrunt on CentOS 7

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

In Terragrunt, CentOS, Jan 27, 2022

How to install Terragrunt on Ubuntu

Working with Terragrunt as a Terraform wrapper will ease things and simplify the Terraform templates. Here I will show you how to set up quickly on your Ubuntu machine.

In Terragrunt, Ubuntu, Nov 24, 2021

How to install Terragrunt on Debian 11

If you need to simplify the Terraform structure you can achieve it through Terragrunt. The crux is that you only need to define the Terraform modules and Terragrunt will take care of ...

In Terragrunt, Debian, Oct 19, 2021

node.js

Install Yarn on Alpine Linux

Getting Yarn from the apk Alpine package manager is the easiest way to install on Alpine Linux.

In Yarn, Alpine Linux, Oct 16, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

Auto start pm2 apps on reboot

PM2 is a process manager for Node.js that keeps apps up and running all the time. Unfortunately, this isn’t the case after a server instance reboots. So, let me show you how to do so.

In Node.js, Jul 19, 2022

Install Node.js on Alpine Linux

Setting up a Node.js environment for development on Alpine Linux is quite easy and simple. So let’s see how to install Node.js with NPM on Alpine Linux.

In Node.js, Alpine Linux, Jul 08, 2022

Install Node.js on Amazon Linux 2

Node.js doesn’t exist in the default Amazon Linux 2 yum packages. So we should add the Node.js official repo and use it for the installation. Let’s see how to install Node.js on Amazo...

In Node.js, AWS, Amazon Linux 2, Apr 09, 2022

How to Setup GraphQL with Node.js on Debian-based distro

To gather information from the REST API designed app you need to send requests to multiple REST endpoints. So this kind of approach is scattered across multiple endpoints. GraphQL sol...

In GraphQL, Node.js, Debian, Oct 23, 2021

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

How to install Node.js on Debian 11

There are few methods to install Node.js on Debian 11. Using PPA Using NVM From the Debian official packages

In Node.js, Debian, Oct 21, 2021

javascript

Auto start pm2 apps on reboot

PM2 is a process manager for Node.js that keeps apps up and running all the time. Unfortunately, this isn’t the case after a server instance reboots. So, let me show you how to do so.

In Node.js, Jul 19, 2022

Install Node.js on Alpine Linux

Setting up a Node.js environment for development on Alpine Linux is quite easy and simple. So let’s see how to install Node.js with NPM on Alpine Linux.

In Node.js, Alpine Linux, Jul 08, 2022

Install Node.js on Amazon Linux 2

Node.js doesn’t exist in the default Amazon Linux 2 yum packages. So we should add the Node.js official repo and use it for the installation. Let’s see how to install Node.js on Amazo...

In Node.js, AWS, Amazon Linux 2, Apr 09, 2022

How to Setup GraphQL with Node.js on Debian-based distro

To gather information from the REST API designed app you need to send requests to multiple REST endpoints. So this kind of approach is scattered across multiple endpoints. GraphQL sol...

In GraphQL, Node.js, Debian, Oct 23, 2021

Setup Nginx proxy for a Node.js app

Behind every major player in the cloud provider’s field, there is a hidden “magic” that makes our applications work. Most of the time, this magic is some kind of proxy, mostly Nginx. ...

In Nginx, Node.js, Oct 22, 2021

How to install Node.js on Debian 11

There are few methods to install Node.js on Debian 11. Using PPA Using NVM From the Debian official packages

In Node.js, Debian, Oct 21, 2021

graphql

How to Setup GraphQL with Node.js on Debian-based distro

To gather information from the REST API designed app you need to send requests to multiple REST endpoints. So this kind of approach is scattered across multiple endpoints. GraphQL sol...

In GraphQL, Node.js, Debian, Oct 23, 2021

aws access key

Solution: The AWS Access Key Id does not exist in our records

Working with multiple AWS account profiles could sometimes be not so pleasant experience, especially when handling different AWS named profiles for different purposes. The AWS Access ...

In AWS, Oct 26, 2021

credentials

Solution: The AWS Access Key Id does not exist in our records

Working with multiple AWS account profiles could sometimes be not so pleasant experience, especially when handling different AWS named profiles for different purposes. The AWS Access ...

In AWS, Oct 26, 2021

fedora

How to install Nomad on Fedora-based distro

Previously I covered the Nomad installation on the most frequently used Linux distros: Amazon Linux 2 Debian RHEL

In Nomad, Fedora, Oct 27, 2021

aws cloudformation

Resolve `Resource handler returned message: Model validation failed (#/ContainerDefinitions/0/Environment: array items are not unique)` error in CloudFormation

While updating some of my CloudFormation templates I stumbled upon the following error:Resource handler returned message: "Model validation failed (#/ContainerDefinitions/0/Environmen...

In AWS, May 11, 2022

Ways to provision infrastructure on AWS

Popular as it is, Infrastructure as Code also known as IaC, is a practice and process of managing and deploying infrastructure through code. Now, we got the flexibility to choose from...

In AWS, Oct 28, 2021

skype

How to Install Skype on Ubuntu 23.04

There are a few ways to install Skype on Ubuntu 23.04. One way is to download the Skype .deb package from the official Skype website and install it with the dpkg package manager. Anot...

In Skype, Apr 26, 2023

Install Skype on macOS

Skype as a world-known VoIP based software can be installed in multiple ways on macOS. Today I’m going to pick up one of the preferable ways of doing it, which is the easiest and the ...

In macOS, Oct 31, 2021

arm templates

Ways to provision infrastructure on Azure

Last week I wrote about the different Ways to Provision Infrastructure on AWS, and as you might expect I’m doing another one, but this time it’s all Azure.

In Azure, Nov 01, 2021

iam

Resolve GCP googleapi Error 400: `Unparseable iamMember` in Terraform

Managing GCP infrastructure with Terraform is an uphill battle, especially if you are not familiar with any other cloud, and how they work. So, here’s my error of the week that I got ...

In GCP, Terraform, Mar 20, 2023

Ways to provision infrastructure on Azure

Last week I wrote about the different Ways to Provision Infrastructure on AWS, and as you might expect I’m doing another one, but this time it’s all Azure.

In Azure, Nov 01, 2021

aws aurora

How to kill thread or query in AWS RDS

Stopping some threads or queries that may appear in the deadlock queue or locked from the InnoDB engine on AWS RDS is a different thing than self-hosted MySQL or MariaDB. They can pot...

In AWS, Mar 24, 2022

MySQL fix: 'Waiting for table metadata lock'

Working with high load SQL queries or big transactions, you may face: Waiting for table metadata lock. Here I’m going to list some useful solutions that might help you.

In MySQL, Feb 24, 2022

AWS Error 1290 (HY000): The MySQL server is running with the --read-only

Using AWS Aurora auto-scaling will increase the resources to handle the workload and connections. So that way you can see a bunch of replicas that are taking care of the workload. Con...

In MySQL, Feb 10, 2022

How to resolve AWS Aurora ERROR 3024 (HY000)

If you hold some heavy-load AWS Aurora database tables, and you are trying to export some tables or import data, there is a big chance to face the following error ERROR 3024 (HY000): ...

In AWS, Nov 02, 2021

aws rds

How to kill thread or query in AWS RDS

Stopping some threads or queries that may appear in the deadlock queue or locked from the InnoDB engine on AWS RDS is a different thing than self-hosted MySQL or MariaDB. They can pot...

In AWS, Mar 24, 2022

How to resolve AWS Aurora ERROR 3024 (HY000)

If you hold some heavy-load AWS Aurora database tables, and you are trying to export some tables or import data, there is a big chance to face the following error ERROR 3024 (HY000): ...

In AWS, Nov 02, 2021

vscode

Enable symlinks in Windows, VSCode and Git

By default while running a Windows dev machine, symlinks (symbolic links, soft links) are not shown or at least are not seen from VSCode and Git as such. Regarding the workaround… few...

In Windows, VSCode, Git, May 13, 2023

Removing lines selected with regex in VSCode

Removing certain repeatable lines on a blog site with almost 600 posts (at the time of drafting) is impossible task (if you do it manually of course), so you got to rely on regular ex...

In VSCode, Dec 26, 2022

Wildcard regex in VSCode

Nowadays, Visual Studio Code or just VSCode is the most commonly used IDE tool, period. For the newbies out there, just as me struggling to maintain a blog site, here’s a tip on how t...

In VSCode, Dec 24, 2022

How to update Visual Studio Code on Debian-based distro

Some old VS Code versions are getting git issues, for instance, you are not able to pull or push to your repo due to authentication issues. If you try to authenticate through your Lin...

In VSCode, Debian, Nov 22, 2021

Install Visual Studio Code on macOS

VSCode is considered as one of the most used code editors nowadays. In this brief tutorial, I will show you how to install it on macOS using Homebrew.

In VSCode, macOS, Nov 04, 2021

gem

Install Ruby on Alpine Linux

Installing Ruby on Alpine Linux comes fairly quick and easy as it exists within the apk package manager. Let’s jump on the crux.

In Ruby, Alpine Linux, Jul 28, 2022

Solution: Ignoring GEM because its extensions are not built

Solutions to common issues in Ruby dev environment series: Solution: cannot load such file – webrick (LoadError) Solution: gem eventmachine fatal error: ‘openssl/ssl.h’ file not fou...

In Ruby, Nov 09, 2021

Solution: gem eventmachine fatal error: 'openssl/ssl.h' file not found

I’ll be doing a solution to common issues in Ruby dev environment series, so here’s the link to the first post: Solution: cannot load such file – webrick (LoadError) Solution: Unkno...

In Ruby, Nov 05, 2021

rabbitmq

Resolve RabbitMQ 'Node statistics not available' in Cluster Node

Setting up RabbitMQ cluster with master and slave instances can invoke some node destabilization like the error Node statistics not available. Here I’m going to show you few steps how...

In RabbitMQ, Nov 08, 2021

grafana

Configure Docker logging driver with Grafana Loki

Grafana Loki is a log aggregation tool inspired by Prometheus, or simply put Prometheus for logs. In this tutorial I’m going to show you how to install and configure the Loki logging ...

In Docker, Apr 06, 2022

How to install Grafana on Debian 11

Seemingly some enterprise monitoring solutions look that they can be suitable for your infrastructure but afterwards it shows up that your expectations are not satisfied. There are a ...

In Monitoring, Debian, Nov 10, 2021

export

How to export and import all MySQL databases at once

Working with microservices will ramp up the number of MySQL databases. So, if you need to create a backup for all of them at once there is a way to do it through the CLI. Also importi...

In MySQL, Nov 12, 2021

import

How to export and import all MySQL databases at once

Working with microservices will ramp up the number of MySQL databases. So, if you need to create a backup for all of them at once there is a way to do it through the CLI. Also importi...

In MySQL, Nov 12, 2021

xcode

Fix 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'

The error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Com...

In macOS, Mar 31, 2023

macOS: xcrun: error: invalid active developer path

Yesterday I’ve tried to spin up some Git cloned Golang project for fun, and while trying to run make worker, I’ve received the following error in the console output: xcrun: error: inv...

In macOS, Dec 16, 2022

How to install Apple Command Line Tools

Apple Command Line Tools are part of the Xcode, the official integrated development environment (IDE) for macOS. The installation is a one-liner, so let’s just jump right into it.

In macOS, Nov 13, 2021

logstash

How to install Logstash on Debian 11

Every data processing service needs a data processing pipeline that will help you to gather data from different sources. Nowadays, Logstash is one of the most efficient and required d...

In Logging, Debian, Nov 14, 2021

symfony

How to execute MySQL DB migrations with Symfony and Doctrine

If you are working on infrastructure with a lot of microservices as a developer you may face difficulties executing SQL queries in terms of keeping database structure clean and safe c...

In MySQL, Nov 16, 2021

doctrine

How to execute MySQL DB migrations with Symfony and Doctrine

If you are working on infrastructure with a lot of microservices as a developer you may face difficulties executing SQL queries in terms of keeping database structure clean and safe c...

In MySQL, Nov 16, 2021

mtime

mtime timestamp and the 24h period simplified

For those who might be questioning, mtime or short for modified timestamp, is a Linux file timestamp which usually goes hand in hand with the find command in the most common scenarios...

In Linux, Nov 23, 2021

flock

File locking with flock 101

As a concept, file locking in Linux purpose is to control access to a shared resource between multiple processes, in a way to indicate which process is next in line, so it could use t...

In Linux, Nov 25, 2021

gpg

Docker build and GPG keys not being available

If you ever get in stuck building a Docker image with an error saying that a public key is not available, here’s the deal.

In Docker, May 21, 2023

How to generate random password from the CLI

There are a lot of ways to generate random passwords, starting from simple password generator sites found online to the most advanced password management solutions. Today’s topic will...

In Linux, Nov 27, 2021

terminal

Display current directory from the CLI

Trying to get the current working directory is a good starting point for debugging purposes at least whenever you are ssh-ed into a CI/CD server agent or likewise. So here’s the tip.

In Shell, Jun 22, 2023

Install macOS software updates from the Terminal

Working on macOS usually requires a manual intervention when applying the latest software updates. This could easily be done from the Terminal, as shown below.

In macOS, Apr 02, 2022

How to shutdown and restart macOS from the Terminal

As a DevOps engineers, we must get used to running commands from the Terminal. Let’s see how easy and fast we can shutdown and restart a macOS machine after long day of work.

In macOS, Nov 29, 2021

firewalld

firewalld allow MySQL remote access

On most of the RHEL-based distributions, firewalld comes as a default firewall, and it’s configured to pass only SSH connections by default. Therefore, in this tutorial I’m going to s...

In Firewalls, MySQL, Dec 06, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to install Firewalld on Rocky Linux 8

Keeping your services and host itself secure is crucial. Nowadays, there are a lot of attacks that can harm your host server, like brute force attacks, dictionary SSH attacks, SQL inj...

In Firewalls, Rocky Linux, Nov 30, 2021

firewalls

How to install UFW on CentOS 9 Stream

If you are more familiar with the UFW firewall instead of using firewalld, first you need to stop the firewalld service: sudo systemctl stop firewalld.service and install UFW on CentO...

In Firewalls, CentOS, Aug 23, 2022

Install UFW on Alpine Linux

Protecting your Alpine Docker images is always a good practice, especially the vulnerable services. Today, I will install UFW on Alpine Linux.

In Firewalls, Alpine Linux, Jul 16, 2022

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install UFW on CentOS 7

Most of the RHEL Linux distros are coming with pre-installed firewalld as a default firewall. But if you are UFW fan and you don’t want to waste your time or resources on getting fami...

In Firewalls, CentOS, Dec 08, 2021

firewalld allow MySQL remote access

On most of the RHEL-based distributions, firewalld comes as a default firewall, and it’s configured to pass only SSH connections by default. Therefore, in this tutorial I’m going to s...

In Firewalls, MySQL, Dec 06, 2021

How to install firewalld on Amazon Linux 2

Protecting your EC2 instance can be accomplished in multiple ways, setting up rules through the AWS security group or installing a firewall directly on your EC2 instance. Today I’m go...

In Firewalls, AWS, Amazon Linux 2, Dec 02, 2021

How to install Firewalld on Rocky Linux 8

Keeping your services and host itself secure is crucial. Nowadays, there are a lot of attacks that can harm your host server, like brute force attacks, dictionary SSH attacks, SQL inj...

In Firewalls, Rocky Linux, Nov 30, 2021

curl

Simple CLI command to extract URLs from the sitemap.xml file

I wanted to do some analytics automation so, at first I needed to pull a list of all blog post links (URLs) from the sitemap.xml file. And here’s what I came up with.

In Parsing, Jan 05, 2023

How to Pass Api Key Header in Curl

Most of the API proxy services like AWS Gateway API are used to secure some requests with a level of authentication. To achieve that you can use either Bearer tokens or API Keys. Here...

In Curl, Dec 13, 2022

Install curl on CentOS 9 Stream

If something is a must to have on your Linux machine then that’s curl. It’s the most used tool on Linux and the main purpose is to interact with protocols. It’s commonly used in scrip...

In Curl, CentOS, Sep 18, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

How to download files with curl

curl and wget are the most popular command-line tools (with curl being a library) for downloading remote content from the CLI. On one side, wget is simple to use as it gets, downloadi...

In Linux, macOS, Dec 01, 2021

php composer

Install PHP Composer on Amazon Linux 2

Using PHP on Amazon Linux 2 can potentially require a composer installation for some libraries. Installing Composer on Amazon Linux 2 is a quick and easy procedure. Let’s see it.

In PHP, AWS, Amazon Linux 2, May 31, 2022

How to install PHP Composer within Dockerfile

Dockerizing your PHP application probably would require some external commands within your base Docker image. That’s why you will need to have a Dockerfile and put all the additional ...

In Docker, PHP, Dec 04, 2021

disaster

Disaster Recovery 101: RPO vs RTO

RPO (Recovery Point Objective) and RTO (Recovery Time Objective) are two of the most crucial and key parameters as part of a disaster recovery plan. Even though RTO and RPO sound alik...

In DR, Dec 05, 2021

recovery

Disaster Recovery 101: RPO vs RTO

RPO (Recovery Point Objective) and RTO (Recovery Time Objective) are two of the most crucial and key parameters as part of a disaster recovery plan. Even though RTO and RPO sound alik...

In DR, Dec 05, 2021

rto

Disaster Recovery 101: RPO vs RTO

RPO (Recovery Point Objective) and RTO (Recovery Time Objective) are two of the most crucial and key parameters as part of a disaster recovery plan. Even though RTO and RPO sound alik...

In DR, Dec 05, 2021

rpo

Disaster Recovery 101: RPO vs RTO

RPO (Recovery Point Objective) and RTO (Recovery Time Objective) are two of the most crucial and key parameters as part of a disaster recovery plan. Even though RTO and RPO sound alik...

In DR, Dec 05, 2021

ufw

How to Install ufw on Ubuntu 22.04

Usually, Ubuntu comes with a pre-installed ufw firewall. But in some cases like using the Ubuntu docker image or Ubuntu server-based images can be an exception and you might see that ...

In Ubuntu, Jan 06, 2023

How to install UFW on CentOS 9 Stream

If you are more familiar with the UFW firewall instead of using firewalld, first you need to stop the firewalld service: sudo systemctl stop firewalld.service and install UFW on CentO...

In Firewalls, CentOS, Aug 23, 2022

Install UFW on Alpine Linux

Protecting your Alpine Docker images is always a good practice, especially the vulnerable services. Today, I will install UFW on Alpine Linux.

In Firewalls, Alpine Linux, Jul 16, 2022

How to install UFW on Amazon Linux 2

Maybe you will raise a question is it worth installing UFW on Amazon Linux 2. Some say that it’s enough to use the instance security groups but if you need some extra security on a se...

In Firewalls, AWS, Amazon Linux 2, Dec 10, 2021

How to install UFW on CentOS 7

Most of the RHEL Linux distros are coming with pre-installed firewalld as a default firewall. But if you are UFW fan and you don’t want to waste your time or resources on getting fami...

In Firewalls, CentOS, Dec 08, 2021

centos 7

Adding Swap space on CentOS 7 Linux Cloud VMs

It feels like there is no more need of adding a swap practice, especially today, deploying VMs in the cloud, considering the abundance of memory, disk and vCPUs resources that are ava...

In CentOS, Linux, Feb 06, 2023

502 Bad Gateway, Nginx reverse proxy and Docker containers in CentOS 7

Sometimes, setting up HTTP/HTTPS GCP Firewall rule and Nginx reverse proxy to point to the Docker container port mapped as 0.0.0.0:3000 could be not enough, even though running curl 0...

In Docker, Nginx, CentOS, Jan 31, 2023

Install Caddy on CentOS 7

If you need a scalable reverse proxy, powerful, and efficient static file server then try the caddy web server. It’s open source web server neatly crafted in Go. Today I’m going to sh...

In Caddy, CentOS, Sep 20, 2022

How to install Terragrunt on CentOS 7

To simplify and structure the Terraform modules you can use Terragrunt as a wrapper. In this tutorial we are going to see how to install Terragrunt on CentOS 7.

In Terragrunt, CentOS, Jan 27, 2022

How to install Podman Compose on CentOS 7

When it comes to installing podman-compose on CentOS 7 it follows the same procedure as on the other RHEL-based distros and there are three ways to achieve it. You only need to make s...

In Podman, CentOS, Jan 15, 2022

How to install UFW on CentOS 7

Most of the RHEL Linux distros are coming with pre-installed firewalld as a default firewall. But if you are UFW fan and you don’t want to waste your time or resources on getting fami...

In Firewalls, CentOS, Dec 08, 2021

tfstate

Migrating Terraform state the other way around: remote to local

Migrating Terraform state to a remote location such as a cloud object storage is a no-brainer since it solves the shared access to state challenge when working with multiple members a...

In Terraform, Jul 07, 2022

'data could not be decoded from the state: unsupported attribute' error in Terraform

Another Terraform error from the vault, this time being:Error: Invalid resource instance data in state .. data could not be decoded from the state: unsupported attribute "manage_run_t...

In Terraform, Jul 03, 2022

Refreshing Terraform state

Refreshing Terraform state is done by adding the -refresh-only flag (since terraform refresh is deprecated) when running plan and apply operations. To start off, what does it mean, an...

In Terraform, Dec 09, 2021

aws alb

AWS|How to allow source IP addresses to access specific URL path using an Application Load Balancer

Most likely, if you use ECS as your application orchestration service it will require some basic knowledge to manage Application Load Balancers short ALBs. Essentially managing the ac...

In AWS, Dec 12, 2021

load balancers

AWS|How to allow source IP addresses to access specific URL path using an Application Load Balancer

Most likely, if you use ECS as your application orchestration service it will require some basic knowledge to manage Application Load Balancers short ALBs. Essentially managing the ac...

In AWS, Dec 12, 2021

apache log4j

Scan Docker images for Apache Log4j2 vulnerability

Docker Hub already announced public Log4jShell detection which is now live on Docker Official Images. But for those of you who are still using some old or custom images, there is a wa...

In Docker, Apache Log4j2, Dec 20, 2021

Protect Elasticsearch stack from Apache Log4j vulnerability

As the Apache Log4j vulnerability is growing massively and its spread all over the internet a lot of worldwide companies are affected mostly on their Java-based applications. Elastics...

In Elasticsearch, Dec 16, 2021

How to check Apache Log4j vulnerability in Jenkins

There are a lot of open forums and discussions due to the Log4j zero-day flaw these days. Log4j is an open-source Java-based library developed by Apache Software Foundation, as it’s u...

In Jenkins, Apache Log4j2, Dec 14, 2021

elk

Protect Elasticsearch stack from Apache Log4j vulnerability

As the Apache Log4j vulnerability is growing massively and its spread all over the internet a lot of worldwide companies are affected mostly on their Java-based applications. Elastics...

In Elasticsearch, Dec 16, 2021

dns

How to Install nslookup and dig on Ubuntu 23.04

Installing nslookup and dig on Ubuntu 23.04 can be easily done by following the installation steps.

In DNS, May 14, 2023

nslookup and CNAMEs

nslookup is a CLI, utility tool that is used to query the Domain Name System (DNS) to obtain domain name or IP address info. Mostly used for testing DNS propagation, whenever there is...

In DNS, Apr 21, 2023

Install dig and nslookup on Debian

Dns tools such as dig and nslookup can be easily installed on Debian using the apt package manager. Let’s jump on the installation part.

In Debian, Dec 21, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

How to flush the DNS cache from the CLI

Clearing the DNS cache usually fixes issues related to not resolving new or updated existing domain records. Let’s see how it’s done from the command line though.

In DNS, Feb 25, 2022

Install dig and nslookup on Alpine Linux

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks yo...

In DNS, Alpine Linux, Jan 03, 2022

Associate AWS VPC with a private hosted zone

Working with multiple AWS accounts can lead to timeouts between the different account services. Behind the VPC peering and the routing table connection, a very important thing is to s...

In AWS, Dec 30, 2021

How to create CNAME for root domain

Working as a cloud engineer you may ask yourself, is it possible to create a CNAME record for your root domain? The answer will be no for most of the hosting providers, but that’s not...

In DNS, Cloudflare, Dec 18, 2021

cloudflare

Save data transfer costs with Cloudflare and Azure

Cloudflare Bandwidth Alliance represents a group of cloud and network providers that are willing to help us as their customers to reduce our data transfer charges. It’s interesting to...

In Azure, Cloudflare, Mar 15, 2022

How to create CNAME for root domain

Working as a cloud engineer you may ask yourself, is it possible to create a CNAME record for your root domain? The answer will be no for most of the hosting providers, but that’s not...

In DNS, Cloudflare, Dec 18, 2021

postman

How to install Postman on Ubuntu 20.04

There are some ways to install Postman on Ubuntu 20.04. As always, we want to keep the work simple and straight to the point. So I’m going to show you the easiest way to install Postm...

In Postman, Ubuntu, Dec 22, 2021

api

Get Azure AD Microsoft Graph API Delegated / Application permission IDs in Terraform

Getting Microsoft Graph API Delegated and Application permission IDs are definitely hard to find, if you are doing things right – the programmatic way.

In Terraform, Azure, Jul 31, 2022

google_project_iam_binding removes GCP compute engine default service accounts from IAM principals

By default, once you enable the Compute Engine API in GCP, two Google-managed service account principals will be created Compute Engine default service account and Google APIs service...

In GCP, Terraform, Jul 13, 2022

Enable Google APIs with GCP and Terraform

Terraforming GCP projects from scratch could be a lot of hustle and bustle as you need to enable almost every freaking Google service (API) per project. That’s probably first and fore...

In GCP, Terraform, Jun 27, 2022

How to install Postman on Ubuntu 20.04

There are some ways to install Postman on Ubuntu 20.04. As always, we want to keep the work simple and straight to the point. So I’m going to show you the easiest way to install Postm...

In Postman, Ubuntu, Dec 22, 2021

php 7.4

How to install PHP 7.4 on Amazon Linux 2

Setting up a PHP environment for a PHP-based project on Amazon Linux 2 it’s a straightforward process, and it can be achieved in a few steps. This tutorial is aimed to show you the st...

In PHP, AWS, Amazon Linux 2, Dec 24, 2021

oracle

Run Always Free Instances in the Oracle Cloud

I wouldn’t place Oracle Cloud in my top 5 cloud providers list, and as we know the cloud isn’t cheap nor free, but it seems that Oracle are stepping up the competitive game by offerin...

In Oracle, Dec 25, 2021

http

Go(lang) and http's empty "unsupported protocol scheme" error

A bit controversial opinion, but every DevOps, Cloud engineer needs to know at least how to read application code. As I started my app development journey with Go, also known as Golan...

In Go, Feb 04, 2023

Enable HTTP/2 for Azure App Service

HTTP/2 was released in 2015 (7 years ago) which is faster and more reliable than HTTP1. In this post I’m going to show you how easy it can get to upgrade from HTTP1 to HTTP2 for Azure...

In Azure, HTTP, Mar 25, 2022

Enable HTTPS redirection in Azure Functions

HTTPS redirection are quite common these days from security and SEO viewpoint. Today’s topic going to be about how to enable the redirection in Azure Functions.

In Azure, HTTP, Mar 21, 2022

How to enable HTTP/2 in Nginx

HTTP/2 was published almost 7 years ago, HTTP/3 being an internet draft standard since October 2020, and yet here we are, most of us still using HTTP/1.1. Considering how things quick...

In Nginx, HTTP, Jan 18, 2022

Redirect HTTP to HTTPS in Apache

Securing your website by setting redirect from HTTP to HTTPS in Apache can be achieved easily if your SSL/TLS certificate is generated and ready to use. It can be done using a virtual...

In Apache, HTTP, Dec 28, 2021

Redirect HTTP to HTTPS in Nginx

Nowadays almost every owner of a website wants to secure his site with an SSL/TLS certificate. Once that is achieved the second step is to redirect the whole HTTP traffic to HTTPS dep...

In Nginx, HTTP, Dec 26, 2021

aws iam

How to attach AWS managed policy to an IAM role in Terraform

AWS Managed Policies are IAM policies created and managed by AWS. Today I’m going to show you how to attach a managed policy in Terraform.

In Terraform, Mar 05, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

aws_iam_user_login_profile

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

encryption

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

Decrypt iam_user_login_profile password in Terraform

It’s almost always not a good idea to decrypt aws_iam_user_login_profile password to Terraform output since there are better approaches, which will not be covered in this topic today....

In Terraform, Dec 29, 2021

aws vpc

Associate AWS VPC with a private hosted zone

Working with multiple AWS accounts can lead to timeouts between the different account services. Behind the VPC peering and the routing table connection, a very important thing is to s...

In AWS, Dec 30, 2021

aws route 53

Associate AWS VPC with a private hosted zone

Working with multiple AWS accounts can lead to timeouts between the different account services. Behind the VPC peering and the routing table connection, a very important thing is to s...

In AWS, Dec 30, 2021

wordpress

Resolving WordPress, PHP's "Fatal error: Allowed memory size of X bytes exhausted"

If I got a dollar for every temporary, quick fix found on the Internet for any type of error, I’ll be so rich. Before else, WordPress and LAMP stacks makes the majority of websites ou...

In WordPress, PHP, Feb 08, 2023

Change WordPress domain URL through WP-CLI

While migrating your WordPress site or syncing the production database with staging you need to change the domain URL from the database. Instead of crawling within the WP databases, I...

In WordPress, Jan 01, 2022

wp-cli

Change WordPress domain URL through WP-CLI

While migrating your WordPress site or syncing the production database with staging you need to change the domain URL from the database. Instead of crawling within the WP databases, I...

In WordPress, Jan 01, 2022

aws ssm

Fix 'An error occurred (InvalidInstanceId) when calling the SendCommand operation: Instances not in a valid state for account'

If you try to SSH into the EC2 instance through SSM parameter or if you want to setup a RDS tunnel, you might get the following error: An error occurred (InvalidInstanceId) when calli...

In SSH, AWS, Amazon Linux 2, Nov 13, 2022

Resolve AWS SSM plugin with name Standard_Stream not found

AWS SSM is a nice feature if you don’t want to deal with the majority of the SSH issues along the way. Today’s topic is all about resolving the:SessionId: devcoops-<some_string>...

In AWS, Jan 02, 2022

dig

How to Install nslookup and dig on Ubuntu 23.04

Installing nslookup and dig on Ubuntu 23.04 can be easily done by following the installation steps.

In DNS, May 14, 2023

Install dig and nslookup on Debian

Dns tools such as dig and nslookup can be easily installed on Debian using the apt package manager. Let’s jump on the installation part.

In Debian, Dec 21, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

Install dig on Amazon Linux 2

Yet another useful DNS tool besides nslookup is dig. It can be used through the Linux command line that offers a quick check of the DNS records.

In DNS, AWS, Amazon Linux 2, Apr 29, 2022

Install dig and nslookup on Alpine Linux

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks yo...

In DNS, Alpine Linux, Jan 03, 2022

nslookup

How to Install nslookup and dig on Ubuntu 23.04

Installing nslookup and dig on Ubuntu 23.04 can be easily done by following the installation steps.

In DNS, May 14, 2023

nslookup and CNAMEs

nslookup is a CLI, utility tool that is used to query the Domain Name System (DNS) to obtain domain name or IP address info. Mostly used for testing DNS propagation, whenever there is...

In DNS, Apr 21, 2023

Install dig and nslookup on Debian

Dns tools such as dig and nslookup can be easily installed on Debian using the apt package manager. Let’s jump on the installation part.

In Debian, Dec 21, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

Install nslookup on Amazon Linux 2

The need of checking DNS records quickly, through the CLI can be achieved with nslookup. Let’s see how to install Nslookup on Amazon Linux 2.

In DNS, AWS, Amazon Linux 2, Apr 27, 2022

Install dig and nslookup on Alpine Linux

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks yo...

In DNS, Alpine Linux, Jan 03, 2022

alpine linux

Install Clang on Alpine Linux

Clang is a compiler suite developed by LLVM project. It supports multiple programming languages and is known for its focus on code quality, diagnostics, and static analysis capabiliti...

In Clang, Alpine Linux, Jul 09, 2023

Install gcc on Alpine Linux

GCC is a widely used compiler suite for compiling code written in languages such as C, C++, Objective-C, Fortran, Ada, and others. Let’s see how to install GCC on Alpine Linux.

In gcc, Alpine Linux, Jul 07, 2023

Install Awall on Alpine Linux

Awall as a lightweight Alpine firewall can help you in protecting your server and web application. Let’s install Awall on Alpine Linux.

In awall, Alpine Linux, Jul 05, 2023

Install SQLite on Alpine Linux

If you need a SQL server that uses a simple file-based database that can be accessed directly by the application then SQLite is the choice for you. Let’s see how to install SQLite on ...

In SQLite, Alpine Linux, Jul 03, 2023

Install gunzip on Alpine Linux

If gunzip it’s not available on your Alpine Linux system, the good thing is that you can install it using the package manager.

In gunzip, Alpine Linux, Jul 01, 2023

Install tar on Alpine Linux

If you get the following error: tar: package/min: not found in archive. It means that you need to install tar on Alpine Linux.

In tar, Alpine Linux, Jun 29, 2023

Install OpenVPN Client on Alpine Linux

To establish a secure and encrypted connection to a remote server running an OpenVPN server, you need to have a OpenVPN client. Let’s see how to install OpenVPN Client on Alpine Linux.

In OpenVPN, Alpine Linux, Jun 27, 2023

Install locate on Alpine Linux

To install the locate command on Alpine Linux, you can follow the installation steps.

In MLocate, Jun 15, 2023

Install 'ps' command on Alpine Linux

If you are trying to list the processes inside the Alpine Linux and the ps command does not exist then you need to install it. Let’s see how to install ps on Alpine Linux.

In PHP, Jun 11, 2023

Install PHP 8.1 on Alpine Linux

The default Alpine package manager can offer the php 81 package, so the installation will be quick and easy.

In PHP, Jun 09, 2023

Install PHP mbstring on Alpine Linux

Mbstring as a multibyte string functions provider helps you to handle multibyte encodings in PHP. Let’s see how to install PHP mbstring on Alpine Linux.

In PHP, Mar 19, 2023

Install Kubectl on Alpine Linux

Unfortunately there is no kubectl package under apk alpine package manager but still, there is a way to install it. Let’s install kubectl on Alpine Linux.

In Kubernetes, Alpine Linux, Mar 11, 2023

Install PHP 7.4 on Alpine Linux

Trying to set up PHP 7.4 on Alpine Linux can lead to the following error:ERROR: unable to select packages: php7 (no such package): required by: world[php7]This might get things co...

In PHP, Mar 07, 2023

Install shasum on Alpine Linux

One thing that needs to be considered while installing shasum on Alpine Linux is that the package is not available under apk. There is a way to install shasum on Alpine Linux through ...

In Alpine Linux, Jan 14, 2023

Install sshpass on Alpine Linux

Since the sshpass is a part of the apk default packages you don’t have to install OpenSSH to get sshpass. Let’s keep it to the simple things and see the best way to install sshpass on...

In SSH, Alpine Linux, Jan 12, 2023

Install Pip on Alpine Linux

If you get ERROR: unsatisfiable constraints: py-pip (missing) on Alpine Linux then it’s obvious that you don’t have pip installed. Let’s see how to install pip on Alpine Linux.

In Alpine Linux, Dec 25, 2022

Install Iptables on Alpine Linux

In this session I’m going to show you how to install Iptables on Alpine Linux. As always we want to avoid complex things, so this installation will be achieved in a maximum of two ste...

In Alpine Linux, Dec 19, 2022

Install Wget on Alpine Linux

If you try to install and use wget on Alpine Linux you might get the error: wget: can't execute 'ssl_helper': No such file or directory. Here I’m going to show you how to fix the erro...

In Alpine Linux, Dec 15, 2022

Install Smartctl on Alpine Linux

If you get the error smartctl: not found on Alpine Linux, it means that smartctl is not installed by default, so don’t let that wind you up. Let me tell you how to install smartctl on...

In Alpine Linux, Dec 07, 2022

Install htpasswd on Alpine Linux

Htpasswd installation will be easy and simple using the Alpine system packages. Let’s see how to install htpasswd on Alpine Linux.

In Alpine Linux, Dec 05, 2022

Install build-base on Alpine Linux

Build-base is pretty much the same as the build-essentials in Debian-based systems. It will provide the tools needed for building the kernel modules. Let’s see how to install build-ba...

In Alpine Linux, Nov 25, 2022

Install Sudo on Alpine Linux

If your Alpine Linux image doesn’t support sudo it can be easily installed through the default Alpine packages. Let’s do it.

In Sudo, Alpine Linux, Nov 17, 2022

Fix 'unable to select packages: nodejs-npm (no such package)' on Alpine Linux

If you try to install NPM on Alpine Linux through the nodejs-npm package it will throw the following error: ERROR: unable to select packages: nodejs-npm (no such package): required by...

In Alpine Linux, Nov 09, 2022

Install Yarn on Alpine Linux

Getting Yarn from the apk Alpine package manager is the easiest way to install on Alpine Linux.

In Yarn, Alpine Linux, Oct 16, 2022

Install Caddy on Alpine Linux

Since Caddy exists as an Alpine package then the installation will be much easier. Let’s go to install Caddy on Alpine Linux.

In Caddy, Alpine Linux, Sep 30, 2022

Install Go on Alpine Linux

If you need a minimalistic docker image for building Go projects that’s definitely Alpine Linux. The aim here is to show you how to install Go on Alpine Linux.

In Go, Alpine Linux, Sep 28, 2022

Install Python on Alpine Linux

Today I’m going to show you how to install python on alpine linux without using a python image. You can get into the Alpine terminal and install python3 and python3-pip directly.

In Python, Alpine Linux, Sep 26, 2022

Install Nano on Alpine Linux

If you are a nano fan and you are struggling to edit some config files with vim, then definitely you need to install nano. Let’s see how to install nano on Alpine Linux.

In Nano, Alpine Linux, Sep 16, 2022

Install Htop on Alpine Linux

Htop provides you to track the machine processes and to be aware of your CPU and Memory load. Today I will show you how to install htop on Alpine Linux.

In Htop, Alpine Linux, Sep 14, 2022

Install Netstat on Alpine Linux

Netstat is a useful tool if you want to troubleshoot or display network related information. You can list all the open connections, open socket, ports, etc… Let me show you how to ins...

In Netstat, Alpine Linux, Sep 12, 2022

Install Unbuffer on Alpine Linux

Getting rid of the output buffering using pipelines can be achieved using the unbuffer command. Let’s see how to install unbuffer on Alpine Linux.

In Unbuffer, Alpine Linux, Sep 08, 2022

Install Telnet on Alpine Linux

Having Telnet within the Alpine Docker image can be useful in terms of quickly checking the connection between your services, like Redis, etc. So, here you can find how to install Tel...

In Telnet, Alpine Linux, Aug 09, 2022

Install Vim on Alpine Linux

As an improved version of vi, Vim is the most used text editor for the server based environment. Today the aim is to install vim on Alpine Linux.

In Vim, Alpine Linux, Aug 05, 2022

Install Traceroute on Alpine Linux

Discovering the network packet paths or troubleshooting the connectivity issues can be easily achieved with traceroute. Today’s aim is to install traceroute on Alpine Linux.

In Traceroute, Alpine Linux, Aug 03, 2022

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Install Ruby on Alpine Linux

Installing Ruby on Alpine Linux comes fairly quick and easy as it exists within the apk package manager. Let’s jump on the crux.

In Ruby, Alpine Linux, Jul 28, 2022

Install Redis on Alpine Linux

Redis CLI is a part of the official Alpine apk packages, so it’s quick and easy to set it up. Here I’m going to show you how to install Redis CLI on Alpine Linux.

In Redis, Alpine Linux, Jul 22, 2022

Install UFW on Alpine Linux

Protecting your Alpine Docker images is always a good practice, especially the vulnerable services. Today, I will install UFW on Alpine Linux.

In Firewalls, Alpine Linux, Jul 16, 2022

Install Node.js on Alpine Linux

Setting up a Node.js environment for development on Alpine Linux is quite easy and simple. So let’s see how to install Node.js with NPM on Alpine Linux.

In Node.js, Alpine Linux, Jul 08, 2022

Install Ansible on Alpine Linux

The Ansible installation on Alpine Linux can be achieved easily and quickly through the official Alpine packages.

In Ansible, Alpine Linux, Jul 06, 2022

Install Apache on Alpine Linux

Using Apache with Alpine Linux can be a suitable combination, because Apache comes with a lot of modules that can be useful for your application. Let’s see how to install Apache on Al...

In Apache, Alpine Linux, Jul 02, 2022

Install Nginx on Alpine Linux

Installing Nginx on Alpine Linux can be achieved easily, as it’s part of the official Alpine packages. Let’s take a look.

In Nginx, Alpine Linux, Jun 30, 2022

Install Exim on Alpine Linux

If there is a need for a simple and minimalistic mail transfer agent on Alpine then Exim is a decent choice. Let’s install Exim on Alpine Linux.

In SMTP, Alpine Linux, Jun 22, 2022

Install Git on Alpine Linux

Previously git was not included in the official alpine packages. As the new Alpine versions are released, there are improvements of course. So now git is a part of the Alpine packages...

In Git, Alpine Linux, Jun 20, 2022

Install PHP 8 on Alpine Linux

The PHP 8 installation on Alpine Linux can be achieved in a few steps. Let’s do it.

In PHP, Jun 18, 2022

Install SCP on Alpine Linux

SCP as a useful transfer tool can be easily installed on Alpine Linux. Let’s see the steps needed.

In SCP, Alpine Linux, Jun 16, 2022

Install Podman Compose on Alpine Linux

If you plan to deal with Podman Compose on Alpine Linux I will show you the installation part. The aim of this tutorial is to show you how to install Podman Compose on Alpine Linux.

In Podman, Alpine Linux, Jun 14, 2022

Install Podman on Alpine Linux

Podman, as a decent Docker replacement has support from the Alpine community repository and can be installed as a podman package. Let’s see how to install Podman on Alpine Linux.

In Podman, Alpine Linux, Jun 12, 2022

Install Rsync on Alpine Linux

How can you remotely sync or transfer files? Of course, rsync is here to help even if you want to include it within the Alpine docker container. Let’s see how to install Rsync on Alpi...

In Rsync, Alpine Linux, Jun 10, 2022

Install jq on Alpine Linux

Yet another quick and easy jq installation on Alpine Linux. You can use it as a part of your Dockerfile as well.

In jq, Alpine Linux, Jun 08, 2022

Install Zip And Unzip on Alpine Linux

Here I’m going to show you how to install zip and unzip on Alpine Linux which is quite quick and easy :)

In Archive, Jun 06, 2022

Install Terraform on Alpine Linux

As a small distro Alpine Linux doesn’t have huge support regarding the APK Alpine system manager package. So today I’ve decided to show you how to install Terraform on Alpine Linux.

In Terraform, Alpine Linux, Jun 04, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

Install dig and nslookup on Alpine Linux

Deploying docker containers based on alpine images or using alpine on your server is always a good idea as it’s a small, simple Linux OS. But if you want to perform some DNS checks yo...

In DNS, Alpine Linux, Jan 03, 2022

pgp

Create AWS IAM User Login Profile with PGP encrypted password in Terraform

Managing and deploying AWS IAM User Login Profiles in Terraform requires a base-64 encoded PGP public key or a Keybase, as stated in the official documentation. But, there is no info ...

In Terraform, AWS, Jan 04, 2022

jq

How to Install jq on Ubuntu 23.04

JQ is a useful tool that provides a simple and powerful way to filter, transform, and extract data from JSON documents. Let’s install jq on Ubuntu 23.04.

In JQ, May 12, 2023

Install jq on CentOS 9 Stream

If you are playing with JSON things then you may consider installing jq. It’s a simple JSON Processor which can help you to get the desired JSON output. Today I’m going to install jq ...

In jq, CentOS, Sep 06, 2022

Install jq on Alpine Linux

Yet another quick and easy jq installation on Alpine Linux. You can use it as a part of your Dockerfile as well.

In jq, Alpine Linux, Jun 08, 2022

Install jq on Amazon Linux 2

jq one of my favorite lightweight and minimalistic JSON parser processor. When it comes playing with JSON outputs, and re-structuring JSON things, jq can make your impossible - possib...

In jq, AWS, Amazon Linux 2, May 17, 2022

JSON to plain text using jq

JSON stands for JavaScript Object Notation and represents easy-to-read lightweight data format. And jq is basically described as sed for JSON data, hence used for JSON data parsing. H...

In Parsing, Mar 09, 2022

Add jq and curl to an Alpine Docker image

The official Alpine Docker image doesn’t contain jq and curl by default. If you need to parse some JSON content or perform some curl checks, you can add them in the Dockerfile that’s ...

In Docker, Alpine Linux, Jan 05, 2022

podman-compose

Install Podman Compose on Alpine Linux

If you plan to deal with Podman Compose on Alpine Linux I will show you the installation part. The aim of this tutorial is to show you how to install Podman Compose on Alpine Linux.

In Podman, Alpine Linux, Jun 14, 2022

Install Podman Compose on Ubuntu 22.04

As Podman is ramping up within the containers world, the need for Podman Compose is getting higher as well. Here I’m going to show you three ways on how to install Podman Compose on U...

In Podman, Ubuntu, May 19, 2022

Install Podman Compose on Debian 11

The growth and use of Podman is really raging higher and higher. I hope one day it will be on the same level as Docker is today. Now, assuming that you have Podman installed on Debian...

In Podman, Debian, May 09, 2022

How to install Podman Compose on CentOS 7

When it comes to installing podman-compose on CentOS 7 it follows the same procedure as on the other RHEL-based distros and there are three ways to achieve it. You only need to make s...

In Podman, CentOS, Jan 15, 2022

Install Podman Compose on Ubuntu 20.04

Installation of podman-compose on Ubuntu 20.04 is pretty simple, quick, and can be achieved in three ways. Before jumping on the installation part make sure that you have python3 and ...

In Podman, Ubuntu, Jan 09, 2022

Install Podman Compose on Amazon Linux 2

As Podman is becoming a suitable way for replacing docker he also offers a compose file for managing multiple services as docker-compose. There are three ways to install it, and I’m g...

In Podman, AWS, Amazon Linux 2, Jan 07, 2022

azure portal

Configure auto logout from the Azure Portal

In case you didn’t know by now, Azure Portal offers a decent amount of customization, including option to auto logout after a period of time.

In Azure, Jan 08, 2022

sftp

SFTP transfer files non-interactive through the command line

This tutorial is aimed to show you how to download files from a remote sftp server and of course how to upload files to a remote sftp server. It’s useful if you are writing a bash or ...

In SFTP, Jan 13, 2022

How to connect with SFTP through the command line

Most of the shared hosting platforms are providing SFTP access to the end-users as a secure file transfer protocol. There are a lot of free and open source GUI platforms for ftp, SFTP...

In SFTP, Jan 11, 2022

nofile limit

How to increase the open files limit in Linux

The default open files (nofile) limit is 1024. Let’s see how we could confirm and increase it on user and system-wide level.

In Linux, Jan 16, 2022

ulimit

How to increase the open files limit in Linux

The default open files (nofile) limit is 1024. Let’s see how we could confirm and increase it on user and system-wide level.

In Linux, Jan 16, 2022

scaling

How to scale docker containers

When it comes working with a master - replica services Docker offers a scaling compose command which is very useful. Here I’m going to show you how to use it with an example.

In Docker, Jan 17, 2022

http/2

Enable HTTP/2 for Azure App Service

HTTP/2 was released in 2015 (7 years ago) which is faster and more reliable than HTTP1. In this post I’m going to show you how easy it can get to upgrade from HTTP1 to HTTP2 for Azure...

In Azure, HTTP, Mar 25, 2022

How to enable HTTP/2 in Nginx

HTTP/2 was published almost 7 years ago, HTTP/3 being an internet draft standard since October 2020, and yet here we are, most of us still using HTTP/1.1. Considering how things quick...

In Nginx, HTTP, Jan 18, 2022

tail

Run Docker containers in the background

While running a docker container in detached mode d maybe you have experienced exiting the container immediately. Here I’m going to show you some ways how to keep it running in the ba...

In Docker, Jan 21, 2022

ubuntu 21.10

How to install Podman on Ubuntu 21.10

In this tutorial, I’m going to show how to install Podman on Ubuntu 21.10 using the default Ubuntu 21.10 packages. Previously we clarified that installing Podman with the default Ubun...

In Podman, Ubuntu, Feb 28, 2022

How to install Redis on Ubuntu 21.10

Using Redis as popular caching storage and also persistent key value database is always a good idea. Here I’m going to show you how to install it on a fresh Ubuntu 21.10 instance.

In Redis, Ubuntu, Feb 26, 2022

How to install Docker Compose on Ubuntu 21.10

This article is strictly focused on installing docker-compose on Ubuntu 21.10, so please make sure that you have Docker installed before jumping on the installation steps.

In Docker, Ubuntu, Feb 22, 2022

How to install Nginx on Ubuntu 21.10

Since Ubuntu 21.10 has been released there was an immediate interest in using it as an OS Server. In this tutorial, we are going to see how to install Nginx on Ubuntu 21.10.

In Nginx, Ubuntu, Feb 20, 2022

How to install DBeaver on Ubuntu 21.10

One of the great alternative for MySQL workbench is DBeaver. So instead of connecting only MySQL servers, DBeaver offers a lot of different database connections like PostgreSQL, SQLit...

In DBeaver, Ubuntu, Feb 12, 2022

How to upgrade Ubuntu 20.04 to Ubuntu 21.10

The upgrading process from Ubuntu 20.04 to Ubuntu 21.10 takes some time, but it’s a straightforward process if you stick close to the steps below. Before taking any actions please mak...

In Ubuntu, Jan 23, 2022

monitoring

How to monitor and restart unhealthy Docker Containers

Last week, I wrote about How to restart a single container with Docker Compose. The approach is manual, hence will be repetitive and error-prone. And since we want to automate almost ...

In Docker, Jan 24, 2022

screen sharing

How to fix black screen on screen share in Ubuntu

During an online session, I spotted that the screen share on Ubuntu stopped working. The first thought that came to my mind was the application itself. But later I realized that no ma...

In Ubuntu, Jan 25, 2022

graphics

How to rotate screen position in Ubuntu through CLI

Nowadays as technology develops more and more, laptops are becoming more sophisticated. Most of today’s laptops offer a finger-sensitive screens, so you can manage to flip over the mo...

In Ubuntu, Jan 29, 2022

How to fix black screen on screen share in Ubuntu

During an online session, I spotted that the screen share on Ubuntu stopped working. The first thought that came to my mind was the application itself. But later I realized that no ma...

In Ubuntu, Jan 25, 2022

gmail

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

How to fix Gmail SMTP's 'Please log in via your web browser and then try again'

SMTP configuration has always been an annoying task, especially for the inexperienced engineers. Needless to say, setting up mail server from scratch is a whole other beast. Today’s f...

In SMTP, Jan 26, 2022

smtp

Install Exim on Alpine Linux

If there is a need for a simple and minimalistic mail transfer agent on Alpine then Exim is a decent choice. Let’s install Exim on Alpine Linux.

In SMTP, Alpine Linux, Jun 22, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

How to remove frozen emails from the Exim mail queue

Messages or emails that are sent to a non-existent email account can sit in the mail queue and maybe cause issues or stuck the relevant ones. After some period of time, usually 7 or 8...

In SMTP, Jan 31, 2022

How to send emails via Telnet

Telnet could be very useful when testing SMTP servers for email delivery. Let’s explore the steps required in order to send emails successfully.

In SMTP, Telnet, Jan 28, 2022

How to fix Gmail SMTP's 'Please log in via your web browser and then try again'

SMTP configuration has always been an annoying task, especially for the inexperienced engineers. Needless to say, setting up mail server from scratch is a whole other beast. Today’s f...

In SMTP, Jan 26, 2022

mail

Install Exim on Alpine Linux

If there is a need for a simple and minimalistic mail transfer agent on Alpine then Exim is a decent choice. Let’s install Exim on Alpine Linux.

In SMTP, Alpine Linux, Jun 22, 2022

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

How to remove frozen emails from the Exim mail queue

Messages or emails that are sent to a non-existent email account can sit in the mail queue and maybe cause issues or stuck the relevant ones. After some period of time, usually 7 or 8...

In SMTP, Jan 31, 2022

How to send emails via Telnet

Telnet could be very useful when testing SMTP servers for email delivery. Let’s explore the steps required in order to send emails successfully.

In SMTP, Telnet, Jan 28, 2022

How to fix Gmail SMTP's 'Please log in via your web browser and then try again'

SMTP configuration has always been an annoying task, especially for the inexperienced engineers. Needless to say, setting up mail server from scratch is a whole other beast. Today’s f...

In SMTP, Jan 26, 2022

telnet

How to Install Telnet on Ubuntu 23.04

Telnet can be installed quickly and easily on Ubuntu 23.04. Let’s proceed with the installation part.

In Telnet, Jun 23, 2023

Install Telnet on Alpine Linux

Having Telnet within the Alpine Docker image can be useful in terms of quickly checking the connection between your services, like Redis, etc. So, here you can find how to install Tel...

In Telnet, Alpine Linux, Aug 09, 2022

Install Telnet on Amazon Linux 2

As a useful tool Telnet can help you to troubleshoot some connectivity problems, access specific port and also offers a lot of other useful stuff as well. The installation is simple a...

In Telnet, AWS, Amazon Linux 2, May 29, 2022

Install Telnet on CentOS 9 Stream

Telnet as a useful tool, allows you to establish a connection or check whether some connection is allowed or not. Here I’m going to show you how to install Telnet on CentOS 9 Stream, ...

In Telnet, CentOS, May 15, 2022

How to check Redis connection with Telnet

A lot of useful checks can be made with telnet in terms of connectivity, sending test emails, access to databases, etc. Telnet is an application protocol based on TCP, and it can allo...

In Redis, Telnet, Mar 26, 2022

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

How to send emails via Telnet

Telnet could be very useful when testing SMTP servers for email delivery. Let’s explore the steps required in order to send emails successfully.

In SMTP, Telnet, Jan 28, 2022

base64

Terraform output GCP Service Account private key as plain JSON

Right of the bat, using GCP Service Accounts (SA) is greatly not recommended. This comes from GCP though. Service account keys are not managed properly, and present a security risk. I...

In Terraform, GCP, Feb 02, 2023

base64 encode and decode from the CLI

Base64 encoding and decoding has many use cases, but it’s important to understand that it’s different from encryption and decryption. While base64 encoding focuses on data usability, ...

In Encode/Decode, Jan 30, 2022

encoding

'Invalid character encoding' error in Terraform

Another ez solution as part of the Terraform issue series. This time being the following one:╷│ Error: Invalid character encoding││ on providers.tf line 1:│ 1: ��provider "aws" {...

In Terraform, Jun 19, 2022

'Invalid character' error in Terraform

Yet another Terraform error-related post. For any other Terraform-related issues, browse by category here.

In Terraform, Jun 01, 2022

Find non-ASCII characters in Windows (Notepad++)

ASCII being a character encoding standard presents a part of UTF-8. PowerShell would be a great option here but for the sake of complexity I’ll show you how to do it in Notepad++ inst...

In Windows 10, Windows 11, May 30, 2022

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Find non-ASCII characters in Linux

ASCII as a character encoding standard that use numbers to represent characters. The original ASCII code range is 0 - 127 (7 bits) which represents the english character set including...

In Linux, May 26, 2022

base64 encode and decode from the CLI

Base64 encoding and decoding has many use cases, but it’s important to understand that it’s different from encryption and decryption. While base64 encoding focuses on data usability, ...

In Encode/Decode, Jan 30, 2022

exim

Install Exim on Alpine Linux

If there is a need for a simple and minimalistic mail transfer agent on Alpine then Exim is a decent choice. Let’s install Exim on Alpine Linux.

In SMTP, Alpine Linux, Jun 22, 2022

Install Exim on Amazon Linux 2

Exim is a useful mail transfer agent easy to manage and set up. The installation process is easy as well, so let’s see how to install Exim on Amazon Linux 2.

In SMTP, AWS, Amazon Linux 2, May 01, 2022

How to remove frozen emails from the Exim mail queue

Messages or emails that are sent to a non-existent email account can sit in the mail queue and maybe cause issues or stuck the relevant ones. After some period of time, usually 7 or 8...

In SMTP, Jan 31, 2022

openssl

How to Install OpenSSL on Amazon Linux 2

The installation of OpenSSL on Amazon Linux 2 can be done by using the yum package manager. Let’s check it out.

In SSL, AWS, Apr 20, 2023

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

starttls

How to fix Telnet SMTP 'must issue STARTTLS command first' error

If you have already been testing the Telnet’s GMAIL SMTP, you must have seen the following error:530 5.7.0 Must issue a STARTTLS command first. - gsmtpThis means that you have didn’t ...

In SMTP, Telnet, Feb 01, 2022

dbeaver

How to install DBeaver on Debian 11

Installing DBeaver on Debian 11 follows pretty much the same steps from Ubuntu 21.10. The two methods of installing are: snap package

In DBeaver, Debian, Feb 14, 2022

How to install DBeaver on Ubuntu 21.10

One of the great alternative for MySQL workbench is DBeaver. So instead of connecting only MySQL servers, DBeaver offers a lot of different database connections like PostgreSQL, SQLit...

In DBeaver, Ubuntu, Feb 12, 2022

django

How to run Django application server

Django is a python free and open-source framework that is widely used nowadays. It offers a lot of libraries and functions that can be easily invoked. Running Django app with a local ...

In Python, Feb 16, 2022

python

Install Python on Debian 12

Using the Debian official repository is the best method to install Python on Debian 12.

In Debian, Aug 06, 2023

How to Install Python on Ubuntu 23.04

Nowadays Python is widely used for various purposes such as web development, data analysis, artificial intelligence, and more. Here are the steps to install Python on Ubuntu 23.04.

In Python, May 08, 2023

Fix 'RecursionError: maximum recursion depth exceeded'

The RecursionError: maximum recursion depth exceeded usually occurs when a function calls itself too many times, causing the stack to overflow. The solution is to check the code for i...

In Python, Mar 27, 2023

Dockerizing a Python application

Python is still one of most popular high-level languages for writing APIs and various scripts to this day. And, if you are still not dockerizing everything I don’t know what are you w...

In Docker, Mar 06, 2023

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

Resolve: "No module named psycopg2" in Python

Even though the usual ModuleNotFoundError are much obvious, sometimes there is an extra package or in this case a different package to be installed in order to get the required module...

In Python, Jan 01, 2023

How to Install Pip on CentOS 9 Stream

Pip is a part of the python packages for CentOS 9. So the installation is pretty simple and straight forward. Let’s see how to install Pip on CentOS 9.

In Pip, CentOS, Dec 31, 2022

Install Pip on Amazon Linux 2

If you have python installed but still getting No package pip available you can easily solve this by adding the python-pip with yum. Let’s see how to install pip on Amazon Linux 2.

In AWS, Amazon Linux 2, Dec 27, 2022

Install Pip on Alpine Linux

If you get ERROR: unsatisfiable constraints: py-pip (missing) on Alpine Linux then it’s obvious that you don’t have pip installed. Let’s see how to install pip on Alpine Linux.

In Alpine Linux, Dec 25, 2022

Resolve: "gyp verb check python checking for Python executable "python2" in the PATH"

While I was working locally on some Python project pulled from an archived Git repo, I needed few hours just to setup the environment on a Windows machine, and get it up and running. ...

In Python, Nov 24, 2022

Resolve: "No module named &#60insert-package-name-here&#62" in Python

Building and compiling Python apps could be troublesome chiefly when copy-and-pasting another code from the internet without installing or importing the module itself. Sound familiar?...

In Python, Nov 22, 2022

Resolve: "No module named oauth2client" in Python

Just like the previous post Resolve: No module named apiclient.discovery in Python this time being:ModuleNotFoundError: No module named 'oauth2client'

In Python, Nov 21, 2022

Resolve: "No module named apiclient.discovery" in Python

A few days ago I was getting the following error: ImportError: No module named apiclient.discovery.

In Python, Nov 20, 2022

Create, manage and remove virtual environments in Python

Dependency issues are common among every popular programming language out there including Python. Simply put, when working on multiple projects a certain package might be required by ...

In Python, Nov 19, 2022

Python: pip list vs pip freeze (-all)

The most common ways to list packages in Python is pip list and pip freeze. To see more, check List all installed packages in Python. So, what does each of them and is one of them bet...

In Python, Nov 18, 2022

Disable "InsecureRequestWarning: Unverified HTTPS request is being made" in Python

It’s not so common to be concerned about HTTPS endpoints in the development stage. Thus, it feels like suppressing warning messages is a common thing, right. So, as I was playing arou...

In Python, Nov 17, 2022

List all installed packages in Python

As with every other programming language you need to know who to manage your packages, modules and dependencies. You could always YOLO install every package globally, but as a best pr...

In Python, Nov 13, 2022

Install Python on Amazon Linux 2

Installing Python 3 from the existing Amazon Linux 2 packages should be fairly easy. If you want to install the latest Python version 3.11.0 it might be tricky, but we are going to co...

In Python, AWS, Amazon Linux 2, Oct 28, 2022

Install Python on Alpine Linux

Today I’m going to show you how to install python on alpine linux without using a python image. You can get into the Alpine terminal and install python3 and python3-pip directly.

In Python, Alpine Linux, Sep 26, 2022

How to install Python on CentOS 9 Stream

As always keeping to the minimalistic things will ease your life. Today’s aim is to install Python on CentOS 9 Stream. The installation is pretty simple and quick.

In Python, CentOS, Aug 27, 2022

Fix 'No package python3-certbot-nginx available.' error

While installing some Certbot packages I stumbled upon the No package python3-certbot-nginx available. error. Let’s take a look.

In Certbot, Python, Jul 18, 2022

Ansible change Python interpreter

If you are getting this kind of warning:[DEPRECATION WARNING]: Distribution Ubuntu on host 2.2.2.2 should use/usr/bin/python3, but is using /usr/bin/python for backward compatibility ...

In Ansible, Python, Jul 04, 2022

Resolve pip install connection error: ceritificate validate failed

In one of my previous pip posts I wrote about how to Resolve pip install package_name error: Couldn’t find a version that satisfies the requirement, and today we are going to fix anot...

In Python, Apr 22, 2022

Resolve pip install error: Couldn't find a version that satisfies the requirement</a> </h2>

There is a good reason you might stumble upon this post, so let’s see how can we resolve the following pip install some_package command error:ERROR: Could not find a version that sati...

In
Python, Apr 16, 2022 </div> </div>

How to run Django application server

Django is a python free and open-source framework that is widely used nowadays. It offers a lot of libraries and functions that can be easily invoked. Running Django app with a local ...

In Python, Feb 16, 2022

timescaledb

How to install, enable and list TimescaleDB version in PostgreSQL

TimescaleDB is a PostgreSQL extension that enables easier approach when working with time-series data. Today we are going to see how can we install, enable/disable, get the TimescaleD...

In PostgreSQL, Feb 17, 2022

warnings

Resolve: perl: warning: Falling back to the standard locale ("C").

There has to be at least one kind of issue after updating to the latest macOS major release. At first, I started noticing that recalling commands (control + R on macOS, Ctrl + R on Li...

In Perl, Dec 18, 2022

Warning: Redundant ignore_changes element in Terraform

Besides some new cool features introduced in Terraform v1.2.0 like precondition and postcondition check blocks – a new warning message was part of the release as well. While I was try...

In Terraform, Jun 17, 2022

Nginx proxy and 'an upstream response is buffered to a temporary file' warning

In today’s Nginx log message of the week, we got the following warning:2022/05/02 08:03:16 [warn] 31447#0: an upstream response is buffered to a temporary file /var/lib/nginx/proxy/1/...

In Nginx, May 08, 2022

How to fix 'WARNING: Connection pool is full' in Docker Compose

If you have been working with Docker Compose stacks for a while, you might have come across the following warning message: WARNING: Connection pool is full, discarding connection <...

In Docker, Feb 23, 2022

mariadb

Install MySQL Client on Amazon Linux 2

As a terminal fan probably you would wonder how to establish a connection to your database endpoint. The thing is that you need to have the MySQL client installed on your Amazon Linux...

In MySQL, AWS, Amazon Linux 2, Oct 12, 2022

Repair and optimize MySQL databases

In some of the previous posts, I’ve explained how to check if the MySQL tables are corrupted. So this topic will shed some light on how to auto-repair and optimize all MySQL databases...

In MySQL, Mar 20, 2022

MySQL fix: 'Waiting for table metadata lock'

Working with high load SQL queries or big transactions, you may face: Waiting for table metadata lock. Here I’m going to list some useful solutions that might help you.

In MySQL, Feb 24, 2022

swap

Adding Swap space on CentOS 7 Linux Cloud VMs

It feels like there is no more need of adding a swap practice, especially today, deploying VMs in the cloud, considering the abundance of memory, disk and vCPUs resources that are ava...

In CentOS, Linux, Feb 06, 2023

How to Add Swap Space on CentOS 9 Stream

If some of your services are struggling and can’t work properly then might your amount of physical memory be full? If that’s the case, adding swap space will solve the throttling issu...

In Linux, CentOS, Aug 17, 2022

Fix 'fallocate failed: Operation not supported'

While creating a swap on your Linux machine, executing sudo fallocate -l 1G /swap-file-name may throw fallocate failed: Operation not supported. Here I’m going to show you a quick fix...

In Linux, Mar 02, 2022

logs

Where to find stored syslog messages

When it comes to Syslog messages in Linux it’s important to know that they are handled by two services: systemd-journald daemon: Gathers all the messages from the kernel including bo...

In Linux, Mar 04, 2022

syslog

Where to find stored syslog messages

When it comes to Syslog messages in Linux it’s important to know that they are handled by two services: systemd-journald daemon: Gathers all the messages from the kernel including bo...

In Linux, Mar 04, 2022

rsyslog

Where to find stored syslog messages

When it comes to Syslog messages in Linux it’s important to know that they are handled by two services: systemd-journald daemon: Gathers all the messages from the kernel including bo...

In Linux, Mar 04, 2022

package manager

How To uninstall packages with Brew including all its dependencies

Homebrew, or the short version being brew is the most popular package manager for macOS. And, if you don’t know already, package managers are software tools used for managing apps on ...

In macOS, Linux, Mar 07, 2022

fastcgi

How to resolve Nginx 'an upstream response is buffered to a temporary file' error

After connecting Nginx with ELK stack to handle requests I spot a lot of an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/9/66/00000034785 while read...

In Nginx, Mar 08, 2022

hp

HP Fix WI-FI driver not working in Windows 10

Installing WLAN (WiFi) driver from the HP official drivers site might cause issues and does not appear in the Windows device adapters. So if that’s the thing follow the instructions b...

In Windows 10, Mar 10, 2022

wifi

HP Fix WI-FI driver not working in Windows 10

Installing WLAN (WiFi) driver from the HP official drivers site might cause issues and does not appear in the Windows device adapters. So if that’s the thing follow the instructions b...

In Windows 10, Mar 10, 2022

openvpn

Install OpenVPN Client on Alpine Linux

To establish a secure and encrypted connection to a remote server running an OpenVPN server, you need to have a OpenVPN client. Let’s see how to install OpenVPN Client on Alpine Linux.

In OpenVPN, Alpine Linux, Jun 27, 2023

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

vpn

Install OpenVPN Client on Alpine Linux

To establish a secure and encrypted connection to a remote server running an OpenVPN server, you need to have a OpenVPN client. Let’s see how to install OpenVPN Client on Alpine Linux.

In OpenVPN, Alpine Linux, Jun 27, 2023

How to Install openfortivpn on Ubuntu 22.04

Installing openfortivpn on Ubuntu 22.04 can be done in a few steps without any complexity. Literally, the installation process is pretty much the same for every Debian based distro, b...

In VPN, Ubuntu, Aug 21, 2022

How to Install openfortivpn on CentOS 8

Today’s goal is to install openfortivpn on CentOS 8. It can be achieved using dnf or yum, either way it should work fine. Let’s move on to the installation part.

In VPN, CentOS, Aug 19, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

How to install OpenVPN on Amazon Linux 2

If you try to run yum install openvpn on an Amazon Linux 2 instance you will get: No package openvpn available. It means that it doesn’t exist to the existing yum packages. Let’s see ...

In VPN, AWS, Amazon Linux 2, Mar 12, 2022

ansible vault

Ansible Vault password integration with Bitwarden

Ansible Vault encrypts Ansible data files mostly variables, so you could protect things such as passwords and keys. It uses a single password for encryption and decryption which initi...

In Ansible, Mar 13, 2022

bitwarden

Ansible Vault password integration with Bitwarden

Ansible Vault encrypts Ansible data files mostly variables, so you could protect things such as passwords and keys. It uses a single password for encryption and decryption which initi...

In Ansible, Mar 13, 2022

bc

How to install bc on Linux macOS and Windows

bc or short for basic calculator is almost 50 years old calculator scripting language which I stumble upon as a prerequisite when testing AWS S3 upload speed. Let’s cover the installa...

In bc, Linux, macOS, Windows 10, Windows 11, Mar 19, 2022

azure functions

Enable HTTPS redirection in Azure Functions

HTTPS redirection are quite common these days from security and SEO viewpoint. Today’s topic going to be about how to enable the redirection in Azure Functions.

In Azure, HTTP, Mar 21, 2022

serverless

Enable HTTPS redirection in Azure Functions

HTTPS redirection are quite common these days from security and SEO viewpoint. Today’s topic going to be about how to enable the redirection in Azure Functions.

In Azure, HTTP, Mar 21, 2022

openvz

How to enable second level quota on OpenVZ

The second level quota, commonly used per-user and per-group is a virtualization thing that allows the VS admin to limit the amount of free disk space and potentially can restrict the...

In Virtualization, Mar 22, 2022

cmd

Creating multiple directories at once

“A good engineer is a lazy engineer” is a popular saying, meaning achieving a maximum output with minimum input. One of key things is automation of course. For those lazy engineers ou...

In Linux, macOS, Windows, Jan 13, 2023

Get Windows 10 version number from the CLI

Today’s topic going to be all about the multiple way to get the version number for Windows 10. Even though there’s a dozen ways to do it, I’m going to stick to the most basic ones wit...

In Windows 10, May 12, 2022

Check system uptime in Linux macOS and Windows from the command line

The following commands will help you find the system uptime for Linux, macOS and Windows in the easiest way possible, from the command line.

In Linux, macOS, Windows 10, Windows 11, Mar 23, 2022

azure app service

Enable HTTP/2 for Azure App Service

HTTP/2 was released in 2015 (7 years ago) which is faster and more reliable than HTTP1. In this post I’m going to show you how easy it can get to upgrade from HTTP1 to HTTP2 for Azure...

In Azure, HTTP, Mar 25, 2022

hsts

Add HSTS in Nginx

Increasing the website performance and decreasing the server load can be achieved by HSTS. Enabling the HSTS security headers in Nginx will tell the browser to use https instead of ht...

In Nginx, Mar 28, 2022

filesystem

Check for read-only filesystem in Linux

In today’s post we are going to find out how to check for read-only filesystem in Linux from the CLI.

In Linux, Mar 29, 2022

sqlite

Install SQLite on Alpine Linux

If you need a SQL server that uses a simple file-based database that can be accessed directly by the application then SQLite is the choice for you. Let’s see how to install SQLite on ...

In SQLite, Alpine Linux, Jul 03, 2023

How to Install SQLite on Ubuntu 23.04

SQLite can be installed through the default Ubuntu 23.04 apt packages.

In SQL, May 22, 2023

How to install SQLite on Amazon Linux 2

SQLite is one of the best minimalistic, lightweight, and powerful SQL database managers. It can be suitable for every application which doesn’t use a complex database structure. So to...

In SQLite, AWS, Amazon Linux 2, Mar 30, 2022

go

Dockerizing a Go application

Dockerizing a Go(lang) application is kinda similar to what we did with the Python one.

In Docker, Mar 08, 2023

Go(lang) and http's empty "unsupported protocol scheme" error

A bit controversial opinion, but every DevOps, Cloud engineer needs to know at least how to read application code. As I started my app development journey with Go, also known as Golan...

In Go, Feb 04, 2023

Pull Go modules from private repositories

One of the first struggles with Go, was when I wanted to have a private repo for the app. Apparently, if you run go get, Go uses Git to pull the specific versions of your dependency p...

In Go, Dec 20, 2022

Resolve: "go:linkname must refer to declared function or variable" in Go(lang)

While compiling and building a dockerized Go(lang) stack running on macOS, I’ve received the following error line(s): ../../../go/pkg/mod/golang.org/x/[email protected]...

In Go, Nov 27, 2022

Install Go on Alpine Linux

If you need a minimalistic docker image for building Go projects that’s definitely Alpine Linux. The aim here is to show you how to install Go on Alpine Linux.

In Go, Alpine Linux, Sep 28, 2022

How to install Go on Amazon Linux 2

Installing Golang on Amazon Linux 2 can be done within a few minutes since Go exists in the default Amazon Linux 2 yum packages. Let’s dive into it.

In Go, AWS, Amazon Linux 2, Apr 01, 2022

Install Go on macOS

Go, also known as Golang is a popular open source programming language developed by Google and used for general purpose. Although the official macOS installation supports downloading ...

In Go, macOS, Mar 31, 2022

vestacp

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

Install VestaCP on Debian 11

VestaCP is a free and open-source control panel based on PHP and Bash. It’s a lightweight and easy to use control panel which can save you a lot of time and money especially if you ar...

In Control Panels, Apr 03, 2022

control panels

Install VestaCP on Amazon Linux 2

Managing your AWS ec2 instance with VestaCP comes easier if you are not familiar with Linux. Here I’m going to tell you how to install VestaCP on Amazon Linux 2.

In Control Panels, AWS, Amazon Linux 2, Apr 05, 2022

Install VestaCP on Debian 11

VestaCP is a free and open-source control panel based on PHP and Bash. It’s a lightweight and easy to use control panel which can save you a lot of time and money especially if you ar...

In Control Panels, Apr 03, 2022

grafana loki

Configure Docker logging driver with Grafana Loki

Grafana Loki is a log aggregation tool inspired by Prometheus, or simply put Prometheus for logs. In this tutorial I’m going to show you how to install and configure the Loki logging ...

In Docker, Apr 06, 2022

logging

Reference Nginx upstream config from another file

Sentry is a free and open-source, popular application monitoring tool. It’s running as a Docker Compose stack if you decide to go self-hosted. However, it’s poorly supported compared ...

In Sentry, Apr 27, 2023

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

Install Fluentd on Amazon Linux 2

Fluentd is one of the most popular open-source projects, used for gathering logs from a set of sources and forwarding them to other monitoring software. Here I’m going to show you how...

In Logging, AWS, Amazon Linux 2, Jun 24, 2022

Configure Docker logging driver with Grafana Loki

Grafana Loki is a log aggregation tool inspired by Prometheus, or simply put Prometheus for logs. In this tutorial I’m going to show you how to install and configure the Loki logging ...

In Docker, Apr 06, 2022

epel

Enable EPEL on Amazon Linux 2

Using EPEL package repository can be very beneficial. EPEL contains all the common packages that you may want to install. Unfortunately, EPEL is disabled in Amazon Linux 2. Let’s see ...

In AWS, Amazon Linux 2, Apr 07, 2022

haproxy

Install HAProxy on Alpine Linux

Creating an isolated proxy microservice can be easily achieved with the Alpine Linux Docker image and HAProxy. It can act as both proxy container or load balancer depending on the nee...

In Proxy, Alpine Linux, Jul 30, 2022

Install HAProxy on Amazon Linux 2

HAProxy is one of the best free and open source software for using high availability load balancing and reverse proxy. It’s most suitable for HTTP and TCP based applications. Let’s se...

In Proxy, AWS, Amazon Linux 2, Apr 13, 2022

openfortivpn

How to Install openfortivpn on Ubuntu 22.04

Installing openfortivpn on Ubuntu 22.04 can be done in a few steps without any complexity. Literally, the installation process is pretty much the same for every Debian based distro, b...

In VPN, Ubuntu, Aug 21, 2022

How to Install openfortivpn on CentOS 8

Today’s goal is to install openfortivpn on CentOS 8. It can be achieved using dnf or yum, either way it should work fine. Let’s move on to the installation part.

In VPN, CentOS, Aug 19, 2022

Install openfortivpn on Amazon Linux 2

openfortivpn is a really cool open-source VPN client tool. Let’s see how to install it on Amazon Linux 2 instance.

In VPN, AWS, Amazon Linux 2, Apr 14, 2022

pip

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

Resolve: "No module named psycopg2" in Python

Even though the usual ModuleNotFoundError are much obvious, sometimes there is an extra package or in this case a different package to be installed in order to get the required module...

In Python, Jan 01, 2023

How to Install Pip on CentOS 9 Stream

Pip is a part of the python packages for CentOS 9. So the installation is pretty simple and straight forward. Let’s see how to install Pip on CentOS 9.

In Pip, CentOS, Dec 31, 2022

Install Pip on Amazon Linux 2

If you have python installed but still getting No package pip available you can easily solve this by adding the python-pip with yum. Let’s see how to install pip on Amazon Linux 2.

In AWS, Amazon Linux 2, Dec 27, 2022

Install Pip on Alpine Linux

If you get ERROR: unsatisfiable constraints: py-pip (missing) on Alpine Linux then it’s obvious that you don’t have pip installed. Let’s see how to install pip on Alpine Linux.

In Alpine Linux, Dec 25, 2022

Resolve: "No module named &#60insert-package-name-here&#62" in Python

Building and compiling Python apps could be troublesome chiefly when copy-and-pasting another code from the internet without installing or importing the module itself. Sound familiar?...

In Python, Nov 22, 2022

Resolve: "No module named oauth2client" in Python

Just like the previous post Resolve: No module named apiclient.discovery in Python this time being:ModuleNotFoundError: No module named 'oauth2client'

In Python, Nov 21, 2022

Resolve: "No module named apiclient.discovery" in Python

A few days ago I was getting the following error: ImportError: No module named apiclient.discovery.

In Python, Nov 20, 2022

Create, manage and remove virtual environments in Python

Dependency issues are common among every popular programming language out there including Python. Simply put, when working on multiple projects a certain package might be required by ...

In Python, Nov 19, 2022

Python: pip list vs pip freeze (-all)

The most common ways to list packages in Python is pip list and pip freeze. To see more, check List all installed packages in Python. So, what does each of them and is one of them bet...

In Python, Nov 18, 2022

List all installed packages in Python

As with every other programming language you need to know who to manage your packages, modules and dependencies. You could always YOLO install every package globally, but as a best pr...

In Python, Nov 13, 2022

Resolve pip install connection error: ceritificate validate failed

In one of my previous pip posts I wrote about how to Resolve pip install package_name error: Couldn’t find a version that satisfies the requirement, and today we are going to fix anot...

In Python, Apr 22, 2022

Resolve pip install error: Couldn't find a version that satisfies the requirement</a> </h2>

There is a good reason you might stumble upon this post, so let’s see how can we resolve the following pip install some_package command error:ERROR: Could not find a version that sati...

In
Python, Apr 16, 2022 </div> </div>

rsync

Install Rsync on Alpine Linux

How can you remotely sync or transfer files? Of course, rsync is here to help even if you want to include it within the Alpine docker container. Let’s see how to install Rsync on Alpi...

In Rsync, Alpine Linux, Jun 10, 2022

Install Rsync on Amazon Linux 2

Sending files, and directories remotely can be achieved with a lot of utility tools. One of them is Rsync, which is a cool tool for remote transfer. Let’s see how to install it on Ama...

In Rsync, AWS, Amazon Linux 2, Apr 17, 2022

scp

Install SCP on Alpine Linux

SCP as a useful transfer tool can be easily installed on Alpine Linux. Let’s see the steps needed.

In SCP, Alpine Linux, Jun 16, 2022

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

openssh

Install SCP on Amazon Linux 2

SCP is one of the most common tool for transferring files between remote and local machines. It can be also used for moving files or directories within the same machine. It uses a min...

In SCP, AWS, Amazon Linux 2, Apr 19, 2022

screen

Install Screen on Amazon Linux 2

Screen is a Linux utility that allows you to run and use multiple shell sessions from a single SSH session. It’s commonly used for migrating a bunch of data through an SSH connection....

In Screen, AWS, Amazon Linux 2, Apr 23, 2022

linux sockets

Nginx and 'using inherited sockets' notice

If you have been debugging and digging into the Nginx logs, you might have stumbled upon the following notice log message:2022/03/10 06:04:32 [notice] 31447#31447: using inherited soc...

In Nginx, Apr 24, 2022

sha512

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

hashing

Ansible user module and password hashing

As far as I know, there are two secure ways (discussable) you could include a password as part of the Ansible user module. Let’s go through it.

In Ansible, Apr 28, 2022

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

salt

Generate SHA512 password hash with a salt from the CLI

Personally, the only time I’ve been generating a SHA512 password hashes was when I was working with ansible.builtin.user module, simply because I needed to commit a password hash for ...

In Linux, Apr 26, 2022

postfix

Install Postfix on Amazon Linux 2

Besides Exim, Postfix is another useful and free mail transfer agent that is under IBM public license. The installation is easy and simple so let’s see how to install Postfix on Amazo...

In SMTP, AWS, Amazon Linux 2, May 03, 2022

aws acm

Terraform aws_acm_certificate resource forces constant replacement

Take a look at the following Terraform code block:```bashresource “aws_acm_certificate” “devcoops” { domain_name = “devcoops.com” subject_alternative_names = [“devcoop...

In Terraform, AWS, May 04, 2022

centos 9 stream

How to Install Pip on CentOS 9 Stream

Pip is a part of the python packages for CentOS 9. So the installation is pretty simple and straight forward. Let’s see how to install Pip on CentOS 9.

In Pip, CentOS, Dec 31, 2022

Install Git on CentOS 9 Stream

Git can be easily installed on CentOS 9 within the dnf system packages. Let’s see how to install Git on CentOS 9.

In Git, CentOS, Dec 29, 2022

Install Yarn on Centos 9 Stream

Yarn can be very useful in terms of automating the process of updating, installing, configuring, or deleting NPM packages. Here I’m going to show you how to install yarn on CentOS 9 S...

In CentOS, Dec 09, 2022

Install Podman on CentOS 9 Stream

If you are digging on Google for a Docker replacement most likely you will end up with Podman. The installation of Podman on CentOS 9 Stream is very simple and straightforward.

In Podman, CentOS, Oct 02, 2022

Install curl on CentOS 9 Stream

If something is a must to have on your Linux machine then that’s curl. It’s the most used tool on Linux and the main purpose is to interact with protocols. It’s commonly used in scrip...

In Curl, CentOS, Sep 18, 2022

Install Unbuffer on CentOS 9 Stream

The procedure of installing Unbuffer on CentOS 9 Stream is pretty much the same as the other RHEL distros. Let’s jump on the installation steps.

In Unbuffer, CentOS, Sep 10, 2022

Install jq on CentOS 9 Stream

If you are playing with JSON things then you may consider installing jq. It’s a simple JSON Processor which can help you to get the desired JSON output. Today I’m going to install jq ...

In jq, CentOS, Sep 06, 2022

Install Zip and Unzip on CentOS 9 Stream

Reducing the file size can be achieved with a lot of archive tools. One of them is zip who comes with a separate unzip package if you want to extract the file. Let’s see how to instal...

In Archive, CentOS, Sep 04, 2022

Install tar on CentOS 9 Stream

Tar as an archive tool comes with the default CentOS 9 packages. The installation part is easy and straightforward, so let’s see how to install tar on CentOS 9 Stream.

In Archive, CentOS, Sep 02, 2022

Install Ansible on CentOS 9 Stream

EPEL repository can provide a quick and easy way to install Ansible on CentOS 9. Let’s check it !!!

In Ansible, CentOS, Aug 31, 2022

Install dig and nslookup on CentOS 9 Stream

If you face an issue like -bash: nslookup: command not found that means you don’t have dig and nslookup installed as a DNS tool on your CentOS 9 machine. Let’s see how to install dig ...

In DNS, CentOS, Aug 29, 2022

How to install Python on CentOS 9 Stream

As always keeping to the minimalistic things will ease your life. Today’s aim is to install Python on CentOS 9 Stream. The installation is pretty simple and quick.

In Python, CentOS, Aug 27, 2022

How to install Terraform on CentOS 9 Stream

There are two ways to install Terraform on CentOS 9 Stream. Through Terraform Repository. Manually.

In Terraform, CentOS, Aug 25, 2022

How to install UFW on CentOS 9 Stream

If you are more familiar with the UFW firewall instead of using firewalld, first you need to stop the firewalld service: sudo systemctl stop firewalld.service and install UFW on CentO...

In Firewalls, CentOS, Aug 23, 2022

How to Add Swap Space on CentOS 9 Stream

If some of your services are struggling and can’t work properly then might your amount of physical memory be full? If that’s the case, adding swap space will solve the throttling issu...

In Linux, CentOS, Aug 17, 2022

Install Telnet on CentOS 9 Stream

Telnet as a useful tool, allows you to establish a connection or check whether some connection is allowed or not. Here I’m going to show you how to install Telnet on CentOS 9 Stream, ...

In Telnet, CentOS, May 15, 2022

Install Java on CentOS 9 Stream

As a Java developer on the new CentOS 9 Stream OS, you may wonder how to set up your java environment. The installation of Java on CentOS 9 Stream can be achieved in a few steps. Let’...

In Java, CentOS, May 13, 2022

Install Redis on CentOS 9 Stream

Redis is the most popular and most used cache, message broker, and in-memory key value database store service nowadays. So today I’m going to show you how to install Redis on CentOS 9...

In Redis, May 07, 2022

Install Nginx on CentOS 9 Stream

Nginx is one of the most used web servers nowadays and can be easily installed on the new CentOS 9 Stream OS. Let’s see how to install Nginx on CentOS 9 Stream and enable the HTTP and...

In Nginx, CentOS, May 05, 2022

virtual memory

Get memory page size in Linux

Memory page, virtual memory page, or just page is the smallest block of memory unit in terms of memory management. The page size is determined by the hardware to be exact the processo...

In Linux, May 10, 2022

java

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

Install Java on CentOS 9 Stream

As a Java developer on the new CentOS 9 Stream OS, you may wonder how to set up your java environment. The installation of Java on CentOS 9 Stream can be achieved in a few steps. Let’...

In Java, CentOS, May 13, 2022

ubuntu 22.04

How to Install ufw on Ubuntu 22.04

Usually, Ubuntu comes with a pre-installed ufw firewall. But in some cases like using the Ubuntu docker image or Ubuntu server-based images can be an exception and you might see that ...

In Ubuntu, Jan 06, 2023

How to Install Redis on Ubuntu 22.04

As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.

In Redis, Ubuntu, Jan 04, 2023

Install Wget on Ubuntu 22.04

In case wget is not installed on your latest Ubuntu version 22.04 it will throw the following error wget: command not found. Today I will show you how to install wget on Ubuntu 22.04 ...

In Wget, Ubuntu, Jan 02, 2023

Install FFmpeg on Ubuntu 22.04

Recently I was playing with telegram bots deployments and got stuck on some dependencies related to FFmpeg. So I needed to install FFmpeg on Ubuntu 22.04. Let’s see how to install it.

In FFmpeg, Ubuntu, Nov 21, 2022

How to Install openfortivpn on Ubuntu 22.04

Installing openfortivpn on Ubuntu 22.04 can be done in a few steps without any complexity. Literally, the installation process is pretty much the same for every Debian based distro, b...

In VPN, Ubuntu, Aug 21, 2022

Fix VPN `Connection failed` after upgrade to Ubuntu 22.04

Since the Ubuntu 22.04 version has been released, there were a lot of rumors that there is a big improvement in terms of the Ubuntu style and features, so I decided to upgrade it. Aft...

In VPN, Ubuntu, May 21, 2022

Install Podman Compose on Ubuntu 22.04

As Podman is ramping up within the containers world, the need for Podman Compose is getting higher as well. Here I’m going to show you three ways on how to install Podman Compose on U...

In Podman, Ubuntu, May 19, 2022

Get Azure AD Microsoft Graph API Delegated / Application permission IDs in Terraform

Getting Microsoft Graph API Delegated and Application permission IDs are definitely hard to find, if you are doing things right – the programmatic way.

In Terraform, Azure, Jul 31, 2022

User-assigned vs System-assigned Managed Identities in Azure

In one of the last Azure posts, I wrote about the differences between Service Principal and Managed Identities. Since there are two types of MIs – User-assigned and System-assigned, I...

In Azure, Jul 29, 2022

Service Principal vs Managed Identities in Azure

Two more arguably confusing identity objects in Azure AD – Service Principal and Managed Identities. Let’s tackle them down by defining what they are and how they distinguish from eac...

In Azure, Jul 27, 2022

App Registrations vs Enterprise Applications in Azure AD

There are two important things to differentiate when registering and working with apps in Azure AD: App Registrations and Enterprise Applications.

In Azure, Jul 23, 2022

Grant Azure AD Admin Consent programmatically (with Terraform)

Admin Consent by definition enables granting access to Azure-registered applications that requires admin approval securely.

In Azure, Terraform, Jun 25, 2022

'could not configure AzureCli Authorizer: could not parse Azure CLI version' error in Terraform

As I continue on my Terraform issues resolving journey, I want to share yet another not quite common TF issue.

In Terraform, May 22, 2022

zip

Install Zip and Unzip on CentOS 9 Stream

Reducing the file size can be achieved with a lot of archive tools. One of them is zip who comes with a separate unzip package if you want to extract the file. Let’s see how to instal...

In Archive, CentOS, Sep 04, 2022

'Failed to load tfplan as a plan file zip: not a valid zip file' error in Terraform

If you have ever tried to terraform apply tfplan.txt with tfplan.txt being a plain text terraform plan command output file (or even tfplan.tf), you’ll get the following error message:...

In Terraform, Jun 11, 2022

Install Zip And Unzip on Alpine Linux

Here I’m going to show you how to install zip and unzip on Alpine Linux which is quite quick and easy :)

In Archive, Jun 06, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

unzip

Install Zip and Unzip on CentOS 9 Stream

Reducing the file size can be achieved with a lot of archive tools. One of them is zip who comes with a separate unzip package if you want to extract the file. Let’s see how to instal...

In Archive, CentOS, Sep 04, 2022

Install Zip And Unzip on Alpine Linux

Here I’m going to show you how to install zip and unzip on Alpine Linux which is quite quick and easy :)

In Archive, Jun 06, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

archive

Install gunzip on Alpine Linux

If gunzip it’s not available on your Alpine Linux system, the good thing is that you can install it using the package manager.

In gunzip, Alpine Linux, Jul 01, 2023

Install tar on Alpine Linux

If you get the following error: tar: package/min: not found in archive. It means that you need to install tar on Alpine Linux.

In tar, Alpine Linux, Jun 29, 2023

Install Zip and Unzip on CentOS 9 Stream

Reducing the file size can be achieved with a lot of archive tools. One of them is zip who comes with a separate unzip package if you want to extract the file. Let’s see how to instal...

In Archive, CentOS, Sep 04, 2022

Install tar on CentOS 9 Stream

Tar as an archive tool comes with the default CentOS 9 packages. The installation part is easy and straightforward, so let’s see how to install tar on CentOS 9 Stream.

In Archive, CentOS, Sep 02, 2022

Install Zip And Unzip on Alpine Linux

Here I’m going to show you how to install zip and unzip on Alpine Linux which is quite quick and easy :)

In Archive, Jun 06, 2022

Install tar on Amazon Linux 2

Yet another free cool tool for archiving files, is tar. I’m going to stick to the title itself and show you how to install tar on Amazon Linux 2.

In Archive, AWS, Amazon Linux 2, May 25, 2022

Install Zip and Unzip on Amazon Linux 2

Although the usage of zip and unzip is very simple there is at least one moment in our life when we are forced to use them. It may happen when you are migrating a website or some data...

In Archive, AWS, Amazon Linux 2, May 23, 2022

403

'Failed to install provider unsuccessful request to 403 forbidden' error in Terraform

On today’s menu we got yet another TF error to resolve. For any other Terraform-related issues, browse by category here.

In Terraform, May 24, 2022

tar

Install tar on Alpine Linux

If you get the following error: tar: package/min: not found in archive. It means that you need to install tar on Alpine Linux.

In tar, Alpine Linux, Jun 29, 2023

Install tar on CentOS 9 Stream

Tar as an archive tool comes with the default CentOS 9 packages. The installation part is easy and straightforward, so let’s see how to install tar on CentOS 9 Stream.

In Archive, CentOS, Sep 02, 2022

Install tar on Amazon Linux 2

Yet another free cool tool for archiving files, is tar. I’m going to stick to the title itself and show you how to install tar on Amazon Linux 2.

In Archive, AWS, Amazon Linux 2, May 25, 2022

ascii

'Invalid character' error in Terraform

Yet another Terraform error-related post. For any other Terraform-related issues, browse by category here.

In Terraform, Jun 01, 2022

Find non-ASCII characters in Windows (Notepad++)

ASCII being a character encoding standard presents a part of UTF-8. PowerShell would be a great option here but for the sake of complexity I’ll show you how to do it in Notepad++ inst...

In Windows 10, Windows 11, May 30, 2022

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Find non-ASCII characters in Linux

ASCII as a character encoding standard that use numbers to represent characters. The original ASCII code range is 0 - 127 (7 bits) which represents the english character set including...

In Linux, May 26, 2022

one-liners

How to check Redis server version

In one of the previous Redis posts I wrote about how you could authenticate and run a command in one go. Now, let’s see how to get the currently installed version of Redis. Although t...

In Redis, Aug 12, 2022

Redis one-liner: AUTH and execute a command

Given that Redis supports optional authentication, it would be outrageous to deploy it to a public subnet hence exposing to the Internet. So, once you setup and configure Redis in a p...

In Redis, Jul 17, 2022

Find non-ASCII characters in macOS

In these modern days, ASCII as a character encoding standard is a subset of UTF-8. As for the other OS-related posts refer to: Find non-ASCII characters in Linux Find non-ASCII char...

In macOS, May 28, 2022

Find non-ASCII characters in Linux

ASCII as a character encoding standard that use numbers to represent characters. The original ASCII code range is 0 - 127 (7 bits) which represents the english character set including...

In Linux, May 26, 2022

php 8.1

Install PHP 8.1 on Alpine Linux

The default Alpine package manager can offer the php 81 package, so the installation will be quick and easy.

In PHP, Jun 09, 2023

How to Install PHP 8.1 on Ubuntu 23.04

Because the Ondrej PHP PPA repo is not supported in Ubuntu 23.04, I recommend installing PHP 8.1 through the default Ubuntu 23.04 apt packages.

In PHP, May 30, 2023

Install PHP 8.1 on Amazon Linux 2

If you want to hang out with the latest major update of PHP, then you should definitely try to install PHP 8.1 on Amazon Linux 2. Let’s do it.

In PHP, AWS, Amazon Linux 2, May 27, 2022

notepad++

Find non-ASCII characters in Windows (Notepad++)

ASCII being a character encoding standard presents a part of UTF-8. PowerShell would be a great option here but for the sake of complexity I’ll show you how to do it in Notepad++ inst...

In Windows 10, Windows 11, May 30, 2022

utf-8

'Invalid character encoding' error in Terraform

Another ez solution as part of the Terraform issue series. This time being the following one:╷│ Error: Invalid character encoding││ on providers.tf line 1:│ 1: ��provider "aws" {...

In Terraform, Jun 19, 2022

'Invalid character' error in Terraform

Yet another Terraform error-related post. For any other Terraform-related issues, browse by category here.

In Terraform, Jun 01, 2022

aws dynamodb

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

scripts

How to check if command exist in a Bash/Shell script

Creating Bash or Shell script for validating whether some command exists or not, can be necessary in some cases. Here I’m going to give you a quick example of how can you achieve it.

In Linux, Aug 15, 2022

Terraform ./init.sh script for AWS backend state

terraform init initialize the current Terraform working directory. I guess it does a lot under the hood which unfortunately won’t be the topic for today. Instead, I’ll share with you ...

In Terraform, AWS, Jun 09, 2022

php 8

How to Install PHP 8 on Ubuntu 23.04

Installing PHP 8 on Ubuntu 23.04 can’t be done through ppa:ondrej/php because the repo is not supported on Ubuntu 23.04. The best option is to get PHP 8.1 version which is very simila...

In PHP, Jun 05, 2023

Install PHP 8 on Alpine Linux

The PHP 8 installation on Alpine Linux can be achieved in a few steps. Let’s do it.

In PHP, Jun 18, 2022

fluentd

Install Fluentd on Amazon Linux 2

Fluentd is one of the most popular open-source projects, used for gathering logs from a set of sources and forwarding them to other monitoring software. Here I’m going to show you how...

In Logging, AWS, Amazon Linux 2, Jun 24, 2022

fluent bit

Install Fluent Bit on Amazon Linux 2

Same as Fluentd, Fluent Bit doesn’t belong in the official Amazon Linux yum repositories as well. The installation will be pretty much the same through fluent bit shell script. So let...

In Logging, AWS, Amazon Linux 2, Jun 26, 2022

kernel

Resolve KernelCare `Error unpatching [255] ('default', '', '', False)` issue

Updating the latest security and stability patches using KernelCare it’s a safe and recommended way, but sometimes it can throw Error unpatching [255] ('default', '', '', False) error...

In Linux, Jun 28, 2022

gcp iam

GCP: Recover deleted service account

Accidentally removing default service account could just “happen” from time to time, and here’s how you can get it back.

In GCP, Mar 26, 2023

Terraform output GCP Service Account private key as plain JSON

Right of the bat, using GCP Service Accounts (SA) is greatly not recommended. This comes from GCP though. Service account keys are not managed properly, and present a security risk. I...

In Terraform, GCP, Feb 02, 2023

google_project_iam_binding removes GCP compute engine default service accounts from IAM principals

By default, once you enable the Compute Engine API in GCP, two Google-managed service account principals will be created Compute Engine default service account and Google APIs service...

In GCP, Terraform, Jul 13, 2022

GCP Service Account impersonation with Terraform

The idea of GCP service account impersonation is to run and deploy Terraform infrastructure without the need of using service account keys as it introduces security risks along the wa...

In GCP, Terraform, Jun 29, 2022

python 3

Install Python on Amazon Linux 2

Installing Python 3 from the existing Amazon Linux 2 packages should be fairly easy. If you want to install the latest Python version 3.11.0 it might be tricky, but we are going to co...

In Python, AWS, Amazon Linux 2, Oct 28, 2022

Install Python on Alpine Linux

Today I’m going to show you how to install python on alpine linux without using a python image. You can get into the Alpine terminal and install python3 and python3-pip directly.

In Python, Alpine Linux, Sep 26, 2022

Fix 'No package python3-certbot-nginx available.' error

While installing some Certbot packages I stumbled upon the No package python3-certbot-nginx available. error. Let’s take a look.

In Certbot, Python, Jul 18, 2022

Ansible change Python interpreter

If you are getting this kind of warning:[DEPRECATION WARNING]: Distribution Ubuntu on host 2.2.2.2 should use/usr/bin/python3, but is using /usr/bin/python for backward compatibility ...

In Ansible, Python, Jul 04, 2022

gcloud cli

SERVICE_NETWORKING_NOT_ENABLED error in Terraform

Another GCP Terraform issue I was facing this week to share. It was related to not having API enabled as with most of them. This time the error I saw in the default console output was...

In GCP, Terraform, Aug 10, 2022

Update private service access connection in GCP

Not trying to rant about GCP, but to sum up, you need to do a ton of somehow complex steps just to get a simple thing up and running. It’s frustrating though.

In GCP, Aug 08, 2022

'Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist' error in Terraform

One more issue from the Terraform error list that I want to share with y’all. While I was struggling with GCP on a day-to-day basis, I tried to initialize the remote TF state file sto...

In GCP, Terraform, Jul 05, 2022

migration

Migrating Terraform state the other way around: remote to local

Migrating Terraform state to a remote location such as a cloud object storage is a no-brainer since it solves the shared access to state challenge when working with multiple members a...

In Terraform, Jul 07, 2022

npm

Install NPM on Debian 12

To be able to install modules for node js you need to install npm as well. Let’s jump on it.

In Debian, Jul 17, 2023

Install npm on Alpine Linux

Installing npm on Alpine Linux is a quick and easy procedure. Let’s jump on the installation part.

In Node, May 20, 2023

Fix 'unable to select packages: nodejs-npm (no such package)' on Alpine Linux

If you try to install NPM on Alpine Linux through the nodejs-npm package it will throw the following error: ERROR: unable to select packages: nodejs-npm (no such package): required by...

In Alpine Linux, Nov 09, 2022

Install Node.js on Alpine Linux

Setting up a Node.js environment for development on Alpine Linux is quite easy and simple. So let’s see how to install Node.js with NPM on Alpine Linux.

In Node.js, Alpine Linux, Jul 08, 2022

loops

Terraform output with loops: count and for_each

It’s not a new thing to loop through Terraform outputs though, so here are a few solutions that could help since count can’t be used as part of the output itself.

In Terraform, Jul 09, 2022

traceroute

Install Traceroute on Alpine Linux

Discovering the network packet paths or troubleshooting the connectivity issues can be easily achieved with traceroute. Today’s aim is to install traceroute on Alpine Linux.

In Traceroute, Alpine Linux, Aug 03, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

tcp

Install Traceroute on Alpine Linux

Discovering the network packet paths or troubleshooting the connectivity issues can be easily achieved with traceroute. Today’s aim is to install traceroute on Alpine Linux.

In Traceroute, Alpine Linux, Aug 03, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

icmp

Install Traceroute on Alpine Linux

Discovering the network packet paths or troubleshooting the connectivity issues can be easily achieved with traceroute. Today’s aim is to install traceroute on Alpine Linux.

In Traceroute, Alpine Linux, Aug 03, 2022

Install Traceroute on Amazon Linux 2

Traceroute is a suitable option in a situation where you need to troubleshoot some network connection issues. The tool displays all the possible routes and packet loss over the Intern...

In Traceroute, AWS, Amazon Linux 2, Jul 12, 2022

pm2

Auto start pm2 apps on reboot

PM2 is a process manager for Node.js that keeps apps up and running all the time. Unfortunately, this isn’t the case after a server instance reboots. So, let me show you how to do so.

In Node.js, Jul 19, 2022

top

Top command not found on Debian-based Docker container

Some of your Docker Debian-based containers can be killed due to heavy processes running inside the container. If your preferred choice is the top command, most likely you will get th...

In Docker, Debian, Jul 20, 2022

x509

Docker and 'x509: certificate has expired or is not yet valid' error

It’s been a while since I’ve encountered any issues and errors related to Docker. It has to do with one of two things. Docker became more stable, or I’m not spending time on it as I w...

In Docker, Jul 21, 2022

service principal

Service Principal vs Managed Identities in Azure

Two more arguably confusing identity objects in Azure AD – Service Principal and Managed Identities. Let’s tackle them down by defining what they are and how they distinguish from eac...

In Azure, Jul 27, 2022

App Registrations vs Enterprise Applications in Azure AD

There are two important things to differentiate when registering and working with apps in Azure AD: App Registrations and Enterprise Applications.

In Azure, Jul 23, 2022

magento

How to flush and clear Magento cache

If you are struggling to clear the Magento cache through the Magento UI then you should consider connecting to your server and flushing it through the terminal. Here I can show you ho...

In Ecommerce, Jul 24, 2022

ecommerce

How to flush and clear Magento cache

If you are struggling to clear the Magento cache through the Magento UI then you should consider connecting to your server and flushing it through the terminal. Here I can show you ho...

In Ecommerce, Jul 24, 2022

managed identity

User-assigned vs System-assigned Managed Identities in Azure

In one of the last Azure posts, I wrote about the differences between Service Principal and Managed Identities. Since there are two types of MIs – User-assigned and System-assigned, I...

In Azure, Jul 29, 2022

Service Principal vs Managed Identities in Azure

Two more arguably confusing identity objects in Azure AD – Service Principal and Managed Identities. Let’s tackle them down by defining what they are and how they distinguish from eac...

In Azure, Jul 27, 2022

microsoft graph

Get Azure AD Microsoft Graph API Delegated / Application permission IDs in Terraform

Getting Microsoft Graph API Delegated and Application permission IDs are definitely hard to find, if you are doing things right – the programmatic way.

In Terraform, Azure, Jul 31, 2022

certificate

Install Certbot on Alpine Linux

Generating an SSL certificate using Alpine Linux can be easily done through Certbot. So let’s see how to install Certbot on Alpine Linux.

In Certbot, Alpine Linux, Aug 01, 2022

vim

10 Vim commands to start with

Vim (VI IMproved), as a common text editor based on Vi, since the early 90s cause headaches to every beginner and junior Ops engineer out there, whatever is a DevOps, SysOps, Cloud Ad...

In Vim, Jan 03, 2023

The best way to exit Vim

Trying to wrap up this very challenging year by adding a little fun post. So, this one is for all poor souls trying to exit Vim for first time whether by mistake (the text editor on t...

In Vim, Dec 30, 2022

Set / unset number lines in Vim

Vim, the most loved and hated, controversial text editor ever. As a fellow normie, second best editor in my book, behind VSCode of course. Along with 5 other basic commands that I’ve ...

In Vim, Dec 28, 2022

Install Vim on Alpine Linux

As an improved version of vi, Vim is the most used text editor for the server based environment. Today the aim is to install vim on Alpine Linux.

In Vim, Alpine Linux, Aug 05, 2022

text editors

10 Vim commands to start with

Vim (VI IMproved), as a common text editor based on Vi, since the early 90s cause headaches to every beginner and junior Ops engineer out there, whatever is a DevOps, SysOps, Cloud Ad...

In Vim, Jan 03, 2023

The best way to exit Vim

Trying to wrap up this very challenging year by adding a little fun post. So, this one is for all poor souls trying to exit Vim for first time whether by mistake (the text editor on t...

In Vim, Dec 30, 2022

Set / unset number lines in Vim

Vim, the most loved and hated, controversial text editor ever. As a fellow normie, second best editor in my book, behind VSCode of course. Along with 5 other basic commands that I’ve ...

In Vim, Dec 28, 2022

Install Nano on Alpine Linux

If you are a nano fan and you are struggling to edit some config files with vim, then definitely you need to install nano. Let’s see how to install nano on Alpine Linux.

In Nano, Alpine Linux, Sep 16, 2022

Install Vim on Alpine Linux

As an improved version of vi, Vim is the most used text editor for the server based environment. Today the aim is to install vim on Alpine Linux.

In Vim, Alpine Linux, Aug 05, 2022

unbuffer

Install Unbuffer on CentOS 9 Stream

The procedure of installing Unbuffer on CentOS 9 Stream is pretty much the same as the other RHEL distros. Let’s jump on the installation steps.

In Unbuffer, CentOS, Sep 10, 2022

Install Unbuffer on Alpine Linux

Getting rid of the output buffering using pipelines can be achieved using the unbuffer command. Let’s see how to install unbuffer on Alpine Linux.

In Unbuffer, Alpine Linux, Sep 08, 2022

Install Unbuffer on Amazon Linux 2

If you need to disable the output buffering when you use complex pipelines, passing the output between multiple pipes then you can definitely use the unbuffer command. Let’s install u...

In Unbuffer, AWS, Amazon Linux 2, Aug 13, 2022

memory

How to Add Swap Space on CentOS 9 Stream

If some of your services are struggling and can’t work properly then might your amount of physical memory be full? If that’s the case, adding swap space will solve the throttling issu...

In Linux, CentOS, Aug 17, 2022

centos 8

Install Caddy on CentOS 8

The procedure of installing Caddy Web Server on CentOS 8 is pretty much the same as on CentOS 7. Let’s jump on the installation part.

In Caddy, CentOS, Sep 22, 2022

How to Install openfortivpn on CentOS 8

Today’s goal is to install openfortivpn on CentOS 8. It can be achieved using dnf or yum, either way it should work fine. Let’s move on to the installation part.

In VPN, CentOS, Aug 19, 2022

parser

Install jq on CentOS 9 Stream

If you are playing with JSON things then you may consider installing jq. It’s a simple JSON Processor which can help you to get the desired JSON output. Today I’m going to install jq ...

In jq, CentOS, Sep 06, 2022

netstat

Install Netstat on Debian 12

If you need to check the network status on your server, netstat is a great tool for that. Let’s see how to install Netstat on Debian 12.

In Debian, Jul 29, 2023

Install Netstat on Alpine Linux

Netstat is a useful tool if you want to troubleshoot or display network related information. You can list all the open connections, open socket, ports, etc… Let me show you how to ins...

In Netstat, Alpine Linux, Sep 12, 2022

htop

How to Install htop on Amazon Linux 2

The procedure to install htop on Amazon Linux 2 is pretty much the same as on every Red Hat distribution. Let’s take a look.

In AWS, Amazon Linux 2, Jun 13, 2023

Install Htop on Alpine Linux

Htop provides you to track the machine processes and to be aware of your CPU and Memory load. Today I will show you how to install htop on Alpine Linux.

In Htop, Alpine Linux, Sep 14, 2022

nano

Install Nano on Alpine Linux

If you are a nano fan and you are struggling to edit some config files with vim, then definitely you need to install nano. Let’s see how to install nano on Alpine Linux.

In Nano, Alpine Linux, Sep 16, 2022

caddy

Install Caddy on Alpine Linux

Since Caddy exists as an Alpine package then the installation will be much easier. Let’s go to install Caddy on Alpine Linux.

In Caddy, Alpine Linux, Sep 30, 2022

Install Caddy on Arch Linux

One of the quickest ways to install Caddy on Arch Linux is using the caddy package. You all know that this site aims to show the quickest way, so let’s see the steps for installing Ca...

In Caddy, Arch Linux, Sep 24, 2022

Install Caddy on CentOS 8

The procedure of installing Caddy Web Server on CentOS 8 is pretty much the same as on CentOS 7. Let’s jump on the installation part.

In Caddy, CentOS, Sep 22, 2022

Install Caddy on CentOS 7

If you need a scalable reverse proxy, powerful, and efficient static file server then try the caddy web server. It’s open source web server neatly crafted in Go. Today I’m going to sh...

In Caddy, CentOS, Sep 20, 2022

arch linux

Install Caddy on Arch Linux

One of the quickest ways to install Caddy on Arch Linux is using the caddy package. You all know that this site aims to show the quickest way, so let’s see the steps for installing Ca...

In Caddy, Arch Linux, Sep 24, 2022

web server

Fix Nginx 'client intended to send too large body' error

If you have an Nginx server set up to handle file uploads, and a user tries to upload a file that is larger than the configured client_max_body_size directive. When this happens, Ngin...

In Nginx, Apr 02, 2023

Install Caddy on Alpine Linux

Since Caddy exists as an Alpine package then the installation will be much easier. Let’s go to install Caddy on Alpine Linux.

In Caddy, Alpine Linux, Sep 30, 2022

opensearch

Fix 'illegal_argument_exception at shard' Elasticsearch error

Playing around with an existing ES cluster, I stumbled upon the following issue:Typeillegal_argument_exceptionReasonField [...] of type [text] does not support custom formatsHere I’m ...

In Elasticsearch, Oct 04, 2022

java 11

Install Java 11 on Amazon Linux 2

Since the amazon-linux-extras repository supports the OpenJDK 11 package, the installation of Java 11 on Amazon Linux 2 is literally one simple command. Let’s reveal the magical command.

In Java, AWS, Amazon Linux 2, Oct 08, 2022

java 8

Install Java 8 on Amazon Linux 2

As a distinction from Java 11, OpenJDK 8 package can be found under default yum repositories. Let’s install Java 8 on Amazon Linux 2.

In Java, AWS, Amazon Linux 2, Oct 10, 2022

yarn

How to Install Yarn on Ubuntu 23.04

Yarn is a package manager created as an alternative to the npm client, providing enhancements in terms of performance, reliability, and security. Let’s see how to install yarn on ubun...

In Yarn, Jun 21, 2023

Install Yarn on Debian 11

There are multiple ways to install yarn on Debian 11. Here I’m going to show you how to install Yarn on Debian 11 via APT.

In Debian, Dec 11, 2022

Install Yarn on Centos 9 Stream

Yarn can be very useful in terms of automating the process of updating, installing, configuring, or deleting NPM packages. Here I’m going to show you how to install yarn on CentOS 9 S...

In CentOS, Dec 09, 2022

Install Yarn on Alpine Linux

Getting Yarn from the apk Alpine package manager is the easiest way to install on Alpine Linux.

In Yarn, Alpine Linux, Oct 16, 2022

Install Yarn on Amazon Linux 2

As a reliable and advanced package manager Yarn can handle your Node.js application dependencies. Let’s install Yarn on Amazon Linux 2.

In Yarn, AWS, Amazon Linux 2, Oct 14, 2022

.NET

Install .NET on Debian 11

.NET framework allegedly is seldom used on Linux systems, but there are some exceptions when you might need it. Let’s see how to install .NET on Debian 11.

In .NET, Debian, Oct 22, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

dotnet

Install .NET on Debian 11

.NET framework allegedly is seldom used on Linux systems, but there are some exceptions when you might need it. Let’s see how to install .NET on Debian 11.

In .NET, Debian, Oct 22, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

microsoft net framework

Install PowerShell on Debian 11

PowerShell can be installed on Debian 11 as well. All you need is to follow the steps down below.

In PowerShell, Debian, Oct 26, 2022

Install PowerShell on Amazon Linux 2

Performing or testing cross-compatibility tools on Amazon Linux 2 can be sort of a challenging task. PowerShell packages are not taking part of the Amazon Linux 2 packages, so that’s ...

In PowerShell, AWS, Amazon Linux 2, Oct 24, 2022

Install .NET on Debian 11

.NET framework allegedly is seldom used on Linux systems, but there are some exceptions when you might need it. Let’s see how to install .NET on Debian 11.

In .NET, Debian, Oct 22, 2022

Install .NET on Amazon Linux 2

Building your .NET project on Amazon Linux can cause issues regarding the packages and dependencies. Today I’m going to show you how to install the .NET package on Amazon Linux 2.

In .NET, AWS, Amazon Linux 2, Oct 20, 2022

gcc

Install gcc on Alpine Linux

GCC is a widely used compiler suite for compiling code written in languages such as C, C++, Objective-C, Fortran, Ada, and others. Let’s see how to install GCC on Alpine Linux.

In gcc, Alpine Linux, Jul 07, 2023

Install gcc on Amazon Linux 2

While compiling or running C based code on Amazon Linux 2 you might face the following issue: gcc: command not found. That means that you don’t have GCC package installed which is use...

In gcc, AWS, Amazon Linux 2, Nov 01, 2022

compiler

Install Clang on Alpine Linux

Clang is a compiler suite developed by LLVM project. It supports multiple programming languages and is known for its focus on code quality, diagnostics, and static analysis capabiliti...

In Clang, Alpine Linux, Jul 09, 2023

Install gcc on Amazon Linux 2

While compiling or running C based code on Amazon Linux 2 you might face the following issue: gcc: command not found. That means that you don’t have GCC package installed which is use...

In gcc, AWS, Amazon Linux 2, Nov 01, 2022

mbstring

Install PHP mbstring on Alpine Linux

Mbstring as a multibyte string functions provider helps you to handle multibyte encodings in PHP. Let’s see how to install PHP mbstring on Alpine Linux.

In PHP, Mar 19, 2023

Install Mbstring on Amazon Linux 2

As a PHP extension, Mbstring can be required for some application functionalities as a dependency. Let’s see how to install mbstring on Amazon Linux 2.

In Mbstring, AWS, Amazon Linux 2, Nov 03, 2022

wget

Install Wget on Debian 12

If you get bash: wget: command not found you need to install wget on Debian 12. Let’s see how to install it.

In Debian, Jul 27, 2023

Install Wget on Ubuntu 22.04

In case wget is not installed on your latest Ubuntu version 22.04 it will throw the following error wget: command not found. Today I will show you how to install wget on Ubuntu 22.04 ...

In Wget, Ubuntu, Jan 02, 2023

Install Wget on Alpine Linux

If you try to install and use wget on Alpine Linux you might get the error: wget: can't execute 'ssl_helper': No such file or directory. Here I’m going to show you how to fix the erro...

In Alpine Linux, Dec 15, 2022

Install Wget on Amazon Linux 2

Let’s resolve the issue wget command not found on Amazon Linux 2.

In Wget, AWS, Amazon Linux 2, Nov 05, 2022

sshpass

Install sshpass on Alpine Linux

Since the sshpass is a part of the apk default packages you don’t have to install OpenSSH to get sshpass. Let’s keep it to the simple things and see the best way to install sshpass on...

In SSH, Alpine Linux, Jan 12, 2023

How to install sshpass on macOS

Trying to install sshpass on macOS by executing brew install sshpass I get stuck with the following message:Warning: No available formula with the name "sshpass". Did you mean sshs?We...

In macOS, Jan 10, 2023

Install Sshpass on Amazon Linux 2

With sshpass you can automate cron jobs and execute one-line commands to copy remote files to different systems or perform other actions. Here I want to show you how to install sshpas...

In Sshpass, AWS, Amazon Linux 2, Nov 07, 2022

node js

Install NPM on Debian 12

To be able to install modules for node js you need to install npm as well. Let’s jump on it.

In Debian, Jul 17, 2023

Install Node JS on Debian 12

Node JS stands as one of the most popular programming languages nowadays. Let’s check how to install Node JS on Debian 12.

In Debian, Jul 15, 2023

Node.js 'Unknown runtime version named '16' of nodejs.'

Increasing your node js lambda version and deploying through CodePipeline can throw an error like: Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '1...

In Node, Jun 07, 2023

Fix 'unable to select packages: nodejs-npm (no such package)' on Alpine Linux

If you try to install NPM on Alpine Linux through the nodejs-npm package it will throw the following error: ERROR: unable to select packages: nodejs-npm (no such package): required by...

In Alpine Linux, Nov 09, 2022

alpine

Install npm on Alpine Linux

Installing npm on Alpine Linux is a quick and easy procedure. Let’s jump on the installation part.

In Node, May 20, 2023

Fix 'unable to select packages: nodejs-npm (no such package)' on Alpine Linux

If you try to install NPM on Alpine Linux through the nodejs-npm package it will throw the following error: ERROR: unable to select packages: nodejs-npm (no such package): required by...

In Alpine Linux, Nov 09, 2022

sudo

Install Sudo on Alpine Linux

If your Alpine Linux image doesn’t support sudo it can be easily installed through the default Alpine packages. Let’s do it.

In Sudo, Alpine Linux, Nov 17, 2022

Install Sudo on Amazon Linux 2

Some of the Amazon Linux 2 images are missing very basic system commands like sudo. If you get this error /bin/sh: sudo: command not found then you definitely need to install sudo on ...

In AWS, Amazon Linux 2, Nov 15, 2022

zlib

Install Zlib on Amazon Linux 2

Usually, zlib comes preinstalled with most of the Amazon Linux images. But in case you get: bash: zlib: command not found then you need to install zlib on Amazon Linux 2.

In Zlib, Amazon Linux 2, Nov 19, 2022

ffmpeg

Install FFmpeg on Ubuntu 22.04

Recently I was playing with telegram bots deployments and got stuck on some dependencies related to FFmpeg. So I needed to install FFmpeg on Ubuntu 22.04. Let’s see how to install it.

In FFmpeg, Ubuntu, Nov 21, 2022

ps

Install ps on Debian 12

Usually inside the Debian 12 container, you will not be able to list the processes inside the container cause procps package is not installed by default. Let’s install procps on Debia...

In Debian, Jul 13, 2023

Install 'ps' command on Alpine Linux

If you are trying to list the processes inside the Alpine Linux and the ps command does not exist then you need to install it. Let’s see how to install ps on Alpine Linux.

In PHP, Jun 11, 2023

PS Command Not Found in Amazon Linux 2

Procps package might not be part of some Amazon Linux 2 docker images. So if you want to list the active processes you will get: ps command not found. It can be easily resolved by ins...

In PS, Amazon Linux 2, Nov 23, 2022

process

PS Command Not Found in Amazon Linux 2

Procps package might not be part of some Amazon Linux 2 docker images. So if you want to list the active processes you will get: ps command not found. It can be easily resolved by ins...

In PS, Amazon Linux 2, Nov 23, 2022

build-base

Install build-base on Alpine Linux

Build-base is pretty much the same as the build-essentials in Debian-based systems. It will provide the tools needed for building the kernel modules. Let’s see how to install build-ba...

In Alpine Linux, Nov 25, 2022

smartctl

Install Smartctl on Debian 12

Let’s see how to install smartctl tool which provides a way to retrieve detailed information about the status of your storage devices, including attributes such as temperature, error ...

In Debian, Jul 31, 2023

How to install smartctl on macOS

Getting some of your macOS system preferences can be easily achieved with smartmontools. Let’s see how to install smartctl on macOS.

In macOS, Jan 08, 2023

Install Smartctl on Alpine Linux

If you get the error smartctl: not found on Alpine Linux, it means that smartctl is not installed by default, so don’t let that wind you up. Let me tell you how to install smartctl on...

In Alpine Linux, Dec 07, 2022

Install Smartctl on Amazon Linux 2

If you want to monitor or analyze the health of the hard drive or check details for your ec2 hard drive, I would recommend installing smartctl command. Let’s see how to install smartc...

In Smartctl, AWS, Amazon Linux 2, Nov 29, 2022

timeout

Client_loop: send disconnect: Broken pipe

Usually, you will get this kind of error client_loop: send disconnect: Broken pipe if you keep your ssh connection open more than the timeout limit. Let’s see how can we potentially f...

In SSH, Dec 01, 2022

htpasswd

Install htpasswd on Alpine Linux

Htpasswd installation will be easy and simple using the Alpine system packages. Let’s see how to install htpasswd on Alpine Linux.

In Alpine Linux, Dec 05, 2022

Install htpasswd on Amazon Linux 2

Setting up htpasswd to have basic-auth for your site users can be done in a few steps depending on your web server. Here I’m going to cover just the installation process of htpasswd o...

In Htpasswd, AWS, Amazon Linux 2, Dec 03, 2022

replications

PostgreSQL 101: replications

In PostgreSQL, choosing a replication strategy is a big deal, depending on what you want to achieve. This can be anything from High Availability, Backup and Disaster, mullti-master an...

In PostgreSQL, Dec 14, 2022

Recover out of sync PostgreSQL slave/replica (WAL has already been removed)

WAL or Write-Ahead Logging as a method that enables PostgreSQL data integrity. Mostly used in replication as it enables High Availability (HA). Now, PostgreSQL replication is a broad ...

In PostgreSQL, Dec 06, 2022

wal

PostgreSQL 101: replications

In PostgreSQL, choosing a replication strategy is a big deal, depending on what you want to achieve. This can be anything from High Availability, Backup and Disaster, mullti-master an...

In PostgreSQL, Dec 14, 2022

Recover out of sync PostgreSQL slave/replica (WAL has already been removed)

WAL or Write-Ahead Logging as a method that enables PostgreSQL data integrity. Mostly used in replication as it enables High Availability (HA). Now, PostgreSQL replication is a broad ...

In PostgreSQL, Dec 06, 2022

iptables

Install Iptables on Alpine Linux

In this session I’m going to show you how to install Iptables on Alpine Linux. As always we want to avoid complex things, so this installation will be achieved in a maximum of two ste...

In Alpine Linux, Dec 19, 2022

Install Iptables on Amazon Linux 2

Seemingly installing iptables on Amazon Linux 2 might not be useful if you consider aws security rules. However iptables allows managing more complex scenarios, like port forwarding, ...

In Iptables, AWS, Amazon Linux 2, Dec 17, 2022

perl

Install shasum on Alpine Linux

One thing that needs to be considered while installing shasum on Alpine Linux is that the package is not available under apk. There is a way to install shasum on Alpine Linux through ...

In Alpine Linux, Jan 14, 2023

Resolve: perl: warning: Falling back to the standard locale ("C").

There has to be at least one kind of issue after updating to the latest macOS major release. At first, I started noticing that recalling commands (control + R on macOS, Ctrl + R on Li...

In Perl, Dec 18, 2022

gitops

IaC vs GitOps: How they differ?

This is a good DevOps interview question: “What’s the differences between IaC and GitOps?” I could easily say that IaC carries the torch for Configuration Management while GitOps is t...

In IaC, Dec 22, 2022

regex

Removing lines selected with regex in VSCode

Removing certain repeatable lines on a blog site with almost 600 posts (at the time of drafting) is impossible task (if you do it manually of course), so you got to rely on regular ex...

In VSCode, Dec 26, 2022

Wildcard regex in VSCode

Nowadays, Visual Studio Code or just VSCode is the most commonly used IDE tool, period. For the newbies out there, just as me struggling to maintain a blog site, here’s a tip on how t...

In VSCode, Dec 24, 2022

database

How to export multiple MySQL databases in a separate .sql file

The easiest way to export multiple MySQL databases in a separate .sql file is through a bash script.

In MySQL, Mar 23, 2023

How to Install Redis on Ubuntu 22.04

As the need for application caching is ramping up, Redis is getting more and more used. That’s why I decided to show you how to install Redis on Ubuntu 22.04.

In Redis, Ubuntu, Jan 04, 2023

sed

Extract XML tags and values from the CLI using sed

Extracting certain tags and values using XML is not something we do on a daily basis. In my case, I had to figure out how to extract all DevCoops blog posts titles using the sitemap.x...

In Parsing, Jan 09, 2023

head: illegal line count on macOS

Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...

In Parsing, Jan 07, 2023

Simple CLI command to extract URLs from the sitemap.xml file

I wanted to do some analytics automation so, at first I needed to pull a list of all blog post links (URLs) from the sitemap.xml file. And here’s what I came up with.

In Parsing, Jan 05, 2023

sitemap.xml

Extract XML tags and values from the CLI using sed

Extracting certain tags and values using XML is not something we do on a daily basis. In my case, I had to figure out how to extract all DevCoops blog posts titles using the sitemap.x...

In Parsing, Jan 09, 2023

head: illegal line count on macOS

Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...

In Parsing, Jan 07, 2023

Simple CLI command to extract URLs from the sitemap.xml file

I wanted to do some analytics automation so, at first I needed to pull a list of all blog post links (URLs) from the sitemap.xml file. And here’s what I came up with.

In Parsing, Jan 05, 2023

firewall

Install Awall on Alpine Linux

Awall as a lightweight Alpine firewall can help you in protecting your server and web application. Let’s install Awall on Alpine Linux.

In awall, Alpine Linux, Jul 05, 2023

How to Install ufw on Ubuntu 22.04

Usually, Ubuntu comes with a pre-installed ufw firewall. But in some cases like using the Ubuntu docker image or Ubuntu server-based images can be an exception and you might see that ...

In Ubuntu, Jan 06, 2023

head: illegal line count on macOS

Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...

In Parsing, Jan 07, 2023

ghead

head: illegal line count on macOS

Yesterday, I’ve received the following error: head: illegal line count -- -4 as I was trying to remove the last 4 lines from a sitemap.xml file. This is called negative arguments. It ...

In Parsing, Jan 07, 2023

smartmontools

How to install smartctl on macOS

Getting some of your macOS system preferences can be easily achieved with smartmontools. Let’s see how to install smartctl on macOS.

In macOS, Jan 08, 2023

disk

How to install smartctl on macOS

Getting some of your macOS system preferences can be easily achieved with smartmontools. Let’s see how to install smartctl on macOS.

In macOS, Jan 08, 2023

mac

How to install sshpass on macOS

Trying to install sshpass on macOS by executing brew install sshpass I get stuck with the following message:Warning: No available formula with the name "sshpass". Did you mean sshs?We...

In macOS, Jan 10, 2023

shasum

Install shasum on Amazon Linux 2

Shasum can be easily installed through perl-Digest-SHA packages on Amazon Linux 2. Let’s jump on the installation part.

In AWS, Amazon Linux 2, Jan 16, 2023

Install shasum on Alpine Linux

One thing that needs to be considered while installing shasum on Alpine Linux is that the package is not available under apk. There is a way to install shasum on Alpine Linux through ...

In Alpine Linux, Jan 14, 2023

php-common

Install php-common on Amazon Linux 2

If you get The common extension is missing. Please check your PHP configuration that means that you need to install php-common extension. The installation is very simple since you hav...

In AWS, Amazon Linux 2, Jan 20, 2023

nfs

NFS mounting in /etc/fstab and verification

Using the mount command to mount a NFS disk is a good test practice. Sure, but on the next system reboot, the disk will “magically disappear”. That’s why we need to write the mount co...

In Linux, NFS, Jan 23, 2023

GCP Filestore error: "mount: wrong fs type, bad option, bad superblock"

GCP Filestore is a managed file storage, the competitor equivalents being: AWS’s EFS and Azure Files. While following the great GCP documentation on how to mount the Filestore NFS man...

In GCP, Linux, NFS, Jan 21, 2023

php-cgi

Install PHP CGI on Amazon Linux 2

If you want to use the PHP interpreter through CGI mode but you don’t have CGI extension installed, here I will show you how to install PHP CGI on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 22, 2023

elastic ip

How to Associate Elastic IP to an EC2 instance

If you have allocated an Elastic IP already and you want to associate with one of your EC2 instances, the procedure can be done in a few steps. Let’s take a look on how to associate E...

In AWS, Amazon Linux 2, Jan 24, 2023

ec2

How to Associate Elastic IP to an EC2 instance

If you have allocated an Elastic IP already and you want to associate with one of your EC2 instances, the procedure can be done in a few steps. Let’s take a look on how to associate E...

In AWS, Amazon Linux 2, Jan 24, 2023

php curl

Install PHP Curl on Amazon Linux 2

As a PHP Developer, you might need to send or receive files over HTTP. With the PHP Curl module, you can even use proxies or pass data over SSL connections. Let’s see how to install t...

In AWS, Amazon Linux 2, Jan 26, 2023

cloud sql

GCP: Configure Cloud SQL Auth proxy

Cloud SQL Auth proxy is a SQL connector that enables secure and proxy access to databases. This is the recommended way to connect to managed GCP DBs, including the minimum administrat...

In GCP, Mar 22, 2023

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

sql

Install SQLite on Alpine Linux

If you need a SQL server that uses a simple file-based database that can be accessed directly by the application then SQLite is the choice for you. Let’s see how to install SQLite on ...

In SQLite, Alpine Linux, Jul 03, 2023

How to Install MySQL on Ubuntu 23.04

On Ubuntu 23.04, MySQL installation can be done using the APT package repository. Let’s jump on the installation part.

In MSQL, May 16, 2023

How to export multiple MySQL databases in a separate .sql file

The easiest way to export multiple MySQL databases in a separate .sql file is through a bash script.

In MySQL, Mar 23, 2023

GCP: Configure Cloud SQL Auth proxy

Cloud SQL Auth proxy is a SQL connector that enables secure and proxy access to databases. This is the recommended way to connect to managed GCP DBs, including the minimum administrat...

In GCP, Mar 22, 2023

How to stop a cloud_sql_proxy connection

GCP has this cloud_sql_proxy tool that provides conceivably secure connection to your Cloud SQL instances, PostgreSQL, MySQL, SQL, whatever it might be the case. Think of it as an aut...

In GCP, Cloud SQL, Jan 27, 2023

php-pdo

Install PHP PDO on Amazon Linux 2

If your app is PHP based and you need to establish a database connection, you will need to have a PHP PDO extension. Let’s install the PHP PDO extension on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 28, 2023

php-devel

How to Install PHP Devel on Amazon Linux 2

Building PHP extensions can be done through the php-devel package which contains files needed for PHP extensions. Today’s aim is to install PHP Devel on Amazon Linux 2.

In AWS, Amazon Linux 2, Jan 30, 2023

php-zip

How to Install PHP Zip on Amazon Linux 2

Older PHP versions had support to enable the zip extension by using --enable-zip option. With PHP 7.4.0 and all the upper versions, the bundled libzip extension has been removed. Here...

In AWS, Amazon Linux 2, Feb 01, 2023

service account

GCP: Recover deleted service account

Accidentally removing default service account could just “happen” from time to time, and here’s how you can get it back.

In GCP, Mar 26, 2023

Terraform output GCP Service Account private key as plain JSON

Right of the bat, using GCP Service Accounts (SA) is greatly not recommended. This comes from GCP though. Service account keys are not managed properly, and present a security risk. I...

In Terraform, GCP, Feb 02, 2023

php-json

How to Install PHP Json on Amazon Linux 2

To be able to convert your PHP objects into JSON using the PHP functions, you need to have php-json extension installed. Let’s install PHP Json on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 03, 2023

php-gd

How to Install PHP GD on Amazon Linux 2

If you need to create or do some stuff with images in PHP, it can be done through the GD library. Here I will show you how to install PHP GD on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 05, 2023

php-imap

How to Install PHP Imap on Amazon Linux 2

Using the Imap functions in PHP you can fetch emails from an email account, also Imap functions can allow you to work with POP3 protocol. Working with the Imap PHP library you can cre...

In AWS, Amazon Linux 2, Feb 07, 2023

imap

How to Install PHP Imap on Amazon Linux 2

Using the Imap functions in PHP you can fetch emails from an email account, also Imap functions can allow you to work with POP3 protocol. Working with the Imap PHP library you can cre...

In AWS, Amazon Linux 2, Feb 07, 2023

php-xml

How to Install PHP XML on Amazon Linux 2

If you want to parse XML documents with PHP, then you need to install php-xml library. Let’s see how to install PHP XML on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 09, 2023

xml

How to Install PHP XML on Amazon Linux 2

If you want to parse XML documents with PHP, then you need to install php-xml library. Let’s see how to install PHP XML on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 09, 2023

php-intl

How to Install PHP intl on Amazon Linux 2

The Intl extension in PHP is a set of f C/C++ and Java libraries that can allow PHP programmers to perform UCA conformant collation and date-time-number formatting in their scripts. L...

In AWS, Amazon Linux 2, Feb 11, 2023

intl

How to Install PHP intl on Amazon Linux 2

The Intl extension in PHP is a set of f C/C++ and Java libraries that can allow PHP programmers to perform UCA conformant collation and date-time-number formatting in their scripts. L...

In AWS, Amazon Linux 2, Feb 11, 2023

php-bcmath

How to Install PHP bcmath on Amazon Linux 2

Using PHP arithmetic functions can be achieved through bcmath package, which is a wrapper for these functions and can be even used in an object-oriented way. Let’s see how to install ...

In AWS, Amazon Linux 2, Feb 13, 2023

bcmath

How to Install PHP bcmath on Amazon Linux 2

Using PHP arithmetic functions can be achieved through bcmath package, which is a wrapper for these functions and can be even used in an object-oriented way. Let’s see how to install ...

In AWS, Amazon Linux 2, Feb 13, 2023

php-embed

How to Install PHP Embed on Amazon Linux 2

Like the name itself, the Embed extension will allow you to embed PHP scripts in different languages, for example in PHP extensions which are mainly written in C. Let’s jump on how to...

In AWS, Amazon Linux 2, Feb 15, 2023

embed

How to Install PHP Embed on Amazon Linux 2

Like the name itself, the Embed extension will allow you to embed PHP scripts in different languages, for example in PHP extensions which are mainly written in C. Let’s jump on how to...

In AWS, Amazon Linux 2, Feb 15, 2023

php-pgsql

How to Install PHP pgsql on Amazon Linux 2

While establishing a PostgreSQL connection through PHP, you might get the following error: uncaught exception "could not find driver". That means you need to install PHP pgsql on Amaz...

In AWS, Amazon Linux 2, Feb 17, 2023

pgsql

How to Install PHP pgsql on Amazon Linux 2

While establishing a PostgreSQL connection through PHP, you might get the following error: uncaught exception "could not find driver". That means you need to install PHP pgsql on Amaz...

In AWS, Amazon Linux 2, Feb 17, 2023

php-punic

How to Install PHP Punic on Amazon Linux 2

Localizing your various PHP variables can be made easy through the Punic library. Let’s install PHP Punic on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 19, 2023

punic

How to Install PHP Punic on Amazon Linux 2

Localizing your various PHP variables can be made easy through the Punic library. Let’s install PHP Punic on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 19, 2023

sonarqube

SonarQube How to Fix 'node.store.allow_mmapfs is no longer supported'

If you are trying to update SonarQube to a higher version you might get org.sonar.process.MessageException: Property 'node.store.allow_mmapfs' is no longer supported. Let’s see how to...

In Docker, SonarQube, Feb 21, 2023

python3

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

boto

Install Boto3 on Amazon Linux 2

To be able to manage your AWS infrastructure through python you need to install boto3, which is python SDK for AWS. If you want to proceed with the installation step, you need to have...

In AWS, Amazon Linux 2, Feb 23, 2023

php-ctype

How to Install PHP Ctype on Amazon Linux 2

Enabling the Ctype PHP extension will provide you with functions that are used to verify whether the characters in a string are of the correct type. Let’s install Ctype on Amazon Linu...

In AWS, Amazon Linux 2, Feb 25, 2023

ctype

How to Install PHP Ctype on Amazon Linux 2

Enabling the Ctype PHP extension will provide you with functions that are used to verify whether the characters in a string are of the correct type. Let’s install Ctype on Amazon Linu...

In AWS, Amazon Linux 2, Feb 25, 2023

php-dom

How to Install PHP Dom on Amazon Linux 2

The need of processing or parsing XML documents in PHP can be done through the DOM parser extension. Here I will show you how to install PHP Dom on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 27, 2023

dom

How to Install PHP Dom on Amazon Linux 2

The need of processing or parsing XML documents in PHP can be done through the DOM parser extension. Here I will show you how to install PHP Dom on Amazon Linux 2.

In AWS, Amazon Linux 2, Feb 27, 2023

php-iconv

How to Install PHP Iconv on Amazon Linux 2

Using the PHP function iconv() allows you to convert a string to the requested character encoding. Usually, you need to install Iconv on Amazon Linux 2 if your PHP setup is using FPM ...

In AWS, Amazon Linux 2, Mar 01, 2023

iconv

How to Install PHP Iconv on Amazon Linux 2

Using the PHP function iconv() allows you to convert a string to the requested character encoding. Usually, you need to install Iconv on Amazon Linux 2 if your PHP setup is using FPM ...

In AWS, Amazon Linux 2, Mar 01, 2023

php-posix

How to Install PHP Posix on Amazon Linux 2

The Posix extension is a very useful PHP extension in terms of monitoring your PHP processes, optimizing your code, etc. The function itself returns usage information about the curren...

In AWS, Amazon Linux 2, Mar 03, 2023

posix

How to Install PHP Posix on Amazon Linux 2

The Posix extension is a very useful PHP extension in terms of monitoring your PHP processes, optimizing your code, etc. The function itself returns usage information about the curren...

In AWS, Amazon Linux 2, Mar 03, 2023

pypdf

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

error

Fix Terraform 'Error creating Elastic IP: InvalidInstanceID.Malformed: Invalid id'

If you have a Terraform configuration that creates an EC2 instance and an Elastic IP address, you should be aware that the Elastic IP address depends on the instance. If you accidenta...

In Terraform, Apr 08, 2023

Fix Nginx 'client intended to send too large body' error

If you have an Nginx server set up to handle file uploads, and a user tries to upload a file that is larger than the configured client_max_body_size directive. When this happens, Ngin...

In Nginx, Apr 02, 2023

Fix 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)'

The error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun can occur when the Com...

In macOS, Mar 31, 2023

Fix 'RecursionError: maximum recursion depth exceeded'

The RecursionError: maximum recursion depth exceeded usually occurs when a function calls itself too many times, causing the stack to overflow. The solution is to check the code for i...

In Python, Mar 27, 2023

PyPDF error 'PyCryptodome is required for AES algorithm'

The automation of encrypting PDF files or decrypting them can be achieved through the PyPDF Python library. You might face the following error: pypdf.errors.DependencyError: PyCryptod...

In Python, Mar 05, 2023

php 7

Install PHP 7.4 on Alpine Linux

Trying to set up PHP 7.4 on Alpine Linux can lead to the following error:ERROR: unable to select packages: php7 (no such package): required by: world[php7]This might get things co...

In PHP, Mar 07, 2023

php7.4

Install PHP mbstring on Alpine Linux

Mbstring as a multibyte string functions provider helps you to handle multibyte encodings in PHP. Let’s see how to install PHP mbstring on Alpine Linux.

In PHP, Mar 19, 2023

Install PHP 7.4 on Alpine Linux

Trying to set up PHP 7.4 on Alpine Linux can lead to the following error:ERROR: unable to select packages: php7 (no such package): required by: world[php7]This might get things co...

In PHP, Mar 07, 2023

php-soap

How to Install PHP Soap on Amazon Linux 2

Soap as an independent platform allows you to send and receive messages on the app level. It’s a kind of communication protocol that works on the application level and can be enabled ...

In AWS, Amazon Linux 2, Mar 09, 2023

soap

How to Install PHP Soap on Amazon Linux 2

Soap as an independent platform allows you to send and receive messages on the app level. It’s a kind of communication protocol that works on the application level and can be enabled ...

In AWS, Amazon Linux 2, Mar 09, 2023

amazon linux

How to fix 'GPG keys listed for the MySQL Server repository are already installed'

Seemingly the MySQL installation might look like an easy task, but you might also face the following error The GPG keys listed for the "MySQL Community Server" repository are already ...

In MySQL, Amazon Linux, Mar 15, 2023

gsutil

Replicate directory structure in a GCP bucket

gsutil is a Python app developed by Google that lets you handle the GCP Cloud Storage service, anything from uploading, downloading, sync, mostly doing backup and migration operation....

In GCP, Mar 18, 2023

GCP: gsutil and parallel_composite_upload_threshold

The first I tried to upload some TBs of data to a GCP bucket, I’ve received the following message:NOTE: You are uploading one or more large file(s), which would run significantly fast...

In GCP, Mar 16, 2023

php-gmp

How to Install PHP GMP on Amazon Linux 2

The need for complex mathematical operations playing with big numbers can be handled by the GMP PHP library. It contains a big collection of functions that can be invoked into your co...

In AWS, Amazon Linux 2, Mar 17, 2023

gmp

How to Install PHP GMP on Amazon Linux 2

The need for complex mathematical operations playing with big numbers can be handled by the GMP PHP library. It contains a big collection of functions that can be invoked into your co...

In AWS, Amazon Linux 2, Mar 17, 2023

gcloud

Replicate directory structure in a GCP bucket

gsutil is a Python app developed by Google that lets you handle the GCP Cloud Storage service, anything from uploading, downloading, sync, mostly doing backup and migration operation....

In GCP, Mar 18, 2023

teams

How to send alerts to Microsoft Teams from Jenkins using Jenkinsfile

Creating webhooks from the Jenkins GUI is straightforward. So that’s why here I will explain how to create a webhook as a code to send alerts to a Teams channel. Let’s see the solution.

In Jenkins, Mar 21, 2023

jenkinsfile

How to send alerts to Microsoft Teams from Jenkins using Jenkinsfile

Creating webhooks from the Jenkins GUI is straightforward. So that’s why here I will explain how to create a webhook as a code to send alerts to a Teams channel. Let’s see the solution.

In Jenkins, Mar 21, 2023

microsoft

How to send alerts to Microsoft Teams from Jenkins using Jenkinsfile

Creating webhooks from the Jenkins GUI is straightforward. So that’s why here I will explain how to create a webhook as a code to send alerts to a Teams channel. Let’s see the solution.

In Jenkins, Mar 21, 2023

rsa

Fix 'host key has just been changed'

Let’s see how to resolve the error below while trying to establish an SSH connection:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATIO...

In SSH, Mar 25, 2023

known_hosts

Fix 'host key has just been changed'

Let’s see how to resolve the error below while trying to establish an SSH connection:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATIO...

In SSH, Mar 25, 2023

recursion

Fix 'RecursionError: maximum recursion depth exceeded'

The RecursionError: maximum recursion depth exceeded usually occurs when a function calls itself too many times, causing the stack to overflow. The solution is to check the code for i...

In Python, Mar 27, 2023

php-opcache

How to Install PHP OPcache on Amazon Linux 2

If you want to significantly improve the performance of your PHP application, especially for applications that use a large number of PHP scripts or have a high volume of requests then...

In AWS, Amazon Linux 2, Mar 29, 2023

opcache

How to Install PHP OPcache on Amazon Linux 2

If you want to significantly improve the performance of your PHP application, especially for applications that use a large number of PHP scripts or have a high volume of requests then...

In AWS, Amazon Linux 2, Mar 29, 2023

php-cli

How to Install PHP CLI on Amazon Linux 2

If you want to have the ability to run PHP scripts without the need for a web server or web browser, just running them through a terminal or command-line interface you need to have th...

In AWS, Amazon Linux 2, Apr 04, 2023

php-xmlrpc

How to Install PHP Xmlrpc on Amazon Linux 2

If you want to send remote XML procedure calls to be made over HTTP, php-xmlrpc library can help you to achieve that. Let’s see how to install PHP Xmlrpc on Amazon Linux 2.

In AWS, Amazon Linux 2, Apr 06, 2023

xmlrpc

How to Install PHP Xmlrpc on Amazon Linux 2

If you want to send remote XML procedure calls to be made over HTTP, php-xmlrpc library can help you to achieve that. Let’s see how to install PHP Xmlrpc on Amazon Linux 2.

In AWS, Amazon Linux 2, Apr 06, 2023

kibana

Create an Elasticsearch Index Pattern using Kibana API

Creating an Elasticsearch Index Pattern through Kibana API can be useful if don’t have direct Kibana access but you do have a remote instance that can access it. Let’s see how to crea...

In Elasticsearch, Apr 12, 2023

remi

How to Enable Remi Repo on Amazon Linux 2

Working with up-to-date packages on Amazon Linux 2 can be achieved through Remi repo. Let’s see how to enable Remi Repo on Amazon Linux 2.

In Remi, Amazon Linux 2, Apr 14, 2023

letsencrypt

How to generate Let's Encrypt Certificate using Certbot on Amazon Linux 2

If you already have Certbot installed on Amazon Linux 2, then generating Let’s Encrypt shouldn’t be a problem. Let’s see what’s the solution.

In SSL, Apr 18, 2023

ssl

How to Install Certbot on Ubuntu 23.04

Certbot can be installed under the default apt packages on Ubuntu 23.04. Let’s jump on the Installation part.

In Certbot, May 24, 2023

How to Install OpenSSL on Amazon Linux 2

The installation of OpenSSL on Amazon Linux 2 can be done by using the yum package manager. Let’s check it out.

In SSL, AWS, Apr 20, 2023

How to generate Let's Encrypt Certificate using Certbot on Amazon Linux 2

If you already have Certbot installed on Amazon Linux 2, then generating Let’s Encrypt shouldn’t be a problem. Let’s see what’s the solution.

In SSL, Apr 18, 2023

webdevops

How to update the Nginx Version on webdevops/php-nginx image

Since the image webdevops/php-nginx doesn’t have the option to specify your desired Nginx version, we can adjust the Dockerfile and add that option. Let’s see the solution.

In Nginx, Apr 22, 2023

nodejs

How to Install Nodejs on Ubuntu 23.04

There are several ways to install Node.js on Ubuntu 23.04. One way is to use the Ubuntu repository. Another way is to use the NodeSource repository, which provides an easy-to-use bash...

In Nodejs, Apr 24, 2023

node ubuntu

How to Install Nodejs on Ubuntu 23.04

There are several ways to install Node.js on Ubuntu 23.04. One way is to use the Ubuntu repository. Another way is to use the NodeSource repository, which provides an easy-to-use bash...

In Nodejs, Apr 24, 2023

web servers

Reference Nginx upstream config from another file

The “include” directive is used to include another file into the current Nginx configuration file. This allows you to split your Nginx configuration across multiple files, making it e...

In Nginx, Apr 25, 2023

sentry

Reference Nginx upstream config from another file

Sentry is a free and open-source, popular application monitoring tool. It’s running as a Docker Compose stack if you decide to go self-hosted. However, it’s poorly supported compared ...

In Sentry, Apr 27, 2023

docker compose

Resolve 'Are you trying to mount a directory onto a file (or vice-versa)?' in Docker

The error message Are you trying to mount a directory onto a file (or vice-versa)? in Docker Compose typically occurs when there is a mismatch between the source and destination paths...

In Docker, Jul 18, 2023

Docker compose multiple files in different directories and relative paths

Working with multiple Docker Compose files stored in different directories could get nasty real quick especially if you hit that edge case scenario. So, what’s the lesson here?!

In Docker, Jul 16, 2023

Docker compose build with the pull option

Running docker compose build --pull could get some of us not so much bright people bamboozled. So, what does it actually do?

In Docker, Jul 14, 2023

About having both image and build as part of a Docker Compose file

If you haven’t asked yourself yet or if you don’t read docs as many others, what would happen if you specify both image and build as part of a Docker Compose file, here’s the catch.

In Docker, Jul 04, 2023

Multiple Docker Compose files with some overlap between them

Let’s say you have two Docker Compose files that needs to be up and running, however they have some overlapping services and configs. How does that work though?!

In Docker, Jul 02, 2023

Start a particular service with one or few Docker Compose files

For development and debugging purposes sometimes we just need to start a particular service or a set of them. Here’s how is done.

In Docker, Jun 30, 2023

Overwrite image tags with Docker Compose

To overwrite the image tag specified in the Docker Compose file and use a different tag from the CLI, you can use environment variables or override the service configuration.

In Docker, Jun 28, 2023

Route requests between Docker Compose services via Nginx

Let’s say you have to route requests from Service A to Service B via a Nginx server being part of a Docker Compose service too. Here’s a guide on how you could start at least.

In Docker, Nginx, Jun 16, 2023

Docker Compose: expose vs ports

At first sight expose and ports kinda look basically the same thing right, but there is a subtle keep difference. Here’s the deal.

In Docker, Jun 14, 2023

Docker Compose and named volumes as non-root user

Sharing named volumes or bind mounts between Docker Compose services as unprivileged / non-root user has always been tricky. By default, they all run as root. So, here are few solutio...

In Docker, Jun 12, 2023

How to Install Docker Compose on Ubuntu 23.04

To install Docker Compose on Ubuntu 23.04, you can either set up Docker’s repository on your Ubuntu system or install Compose manually. Here I will show you how to install the standal...

In Docker, Apr 30, 2023

node

Install Node JS on Debian 12

Node JS stands as one of the most popular programming languages nowadays. Let’s check how to install Node JS on Debian 12.

In Debian, Jul 15, 2023

Node.js 'Unknown runtime version named '16' of nodejs.'

Increasing your node js lambda version and deploying through CodePipeline can throw an error like: Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '1...

In Node, Jun 07, 2023

Install npm on Alpine Linux

Installing npm on Alpine Linux is a quick and easy procedure. Let’s jump on the installation part.

In Node, May 20, 2023

databases

How to Install SQLite on Ubuntu 23.04

SQLite can be installed through the default Ubuntu 23.04 apt packages.

In SQL, May 22, 2023

gems

Forcing bundler to install gems in users home directory

By default, bundler install gems under /usr/local/bundle which is the default value for $GEM_HOME and $BUNDLE_APP_CONFIG when using Ruby’s official Docker images. Here’s what you can do.

In Ruby, May 23, 2023

bundler

Forcing bundler to install gems in users home directory

By default, bundler install gems under /usr/local/bundle which is the default value for $GEM_HOME and $BUNDLE_APP_CONFIG when using Ruby’s official Docker images. Here’s what you can do.

In Ruby, May 23, 2023

ubuntu 23.04

How to Install Redis on Ubuntu 23.04

Redis can be installed through the apt packages. Let’s see how to install Redis on Ubuntu 23.04.

In Redis, Jun 25, 2023

How to Install Telnet on Ubuntu 23.04

Telnet can be installed quickly and easily on Ubuntu 23.04. Let’s proceed with the installation part.

In Telnet, Jun 23, 2023

How to Install Yarn on Ubuntu 23.04

Yarn is a package manager created as an alternative to the npm client, providing enhancements in terms of performance, reliability, and security. Let’s see how to install yarn on ubun...

In Yarn, Jun 21, 2023

How to Install Podman on Ubuntu 23.04

The Podman installation on Ubuntu 23.04 is quick and easy. Let’s take a look.

In Podman, Ubuntu, May 26, 2023

server

How to Install Apache on Ubuntu 23.04

As a powerful and flexible server that allows you to host websites and serve web, it can be installed easily on Ubuntu 23.04.

In Apache, May 28, 2023

helm

Rollback Kubernetes deployment using Helm

Helm’s rollback feature allows us to revert to a previous rather “safe” state of a certain release. Here’s how to do it.

In Kubernetes, Jun 08, 2023

List all releases installed with Helm

Here’s a quick and nice command that lists all releases no matter the state deployed or failed installed with Helm across all namespaces in a K8s cluster.

In Kubernetes, Jun 04, 2023

lambda

Node.js 'Unknown runtime version named '16' of nodejs.'

Increasing your node js lambda version and deploying through CodePipeline can throw an error like: Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '1...

In Node, Jun 07, 2023

react

Node.js 'Unknown runtime version named '16' of nodejs.'

Increasing your node js lambda version and deploying through CodePipeline can throw an error like: Phase context status code: YAML_FILE_ERROR Message: Unknown runtime version named '1...

In Node, Jun 07, 2023

procps

Install ps on Debian 12

Usually inside the Debian 12 container, you will not be able to list the processes inside the container cause procps package is not installed by default. Let’s install procps on Debia...

In Debian, Jul 13, 2023

Install 'ps' command on Alpine Linux

If you are trying to list the processes inside the Alpine Linux and the ps command does not exist then you need to install it. Let’s see how to install ps on Alpine Linux.

In PHP, Jun 11, 2023

locate

How to Install locate on Amazon Linux 2

Let’s take a look on how to install locate on Amazon Linux 2. The steps are quick and easy.

In AWS, Amazon Linux 2, Jun 17, 2023

Install locate on Alpine Linux

To install the locate command on Alpine Linux, you can follow the installation steps.

In MLocate, Jun 15, 2023

mlocate

How to Install locate on Amazon Linux 2

Let’s take a look on how to install locate on Amazon Linux 2. The steps are quick and easy.

In AWS, Amazon Linux 2, Jun 17, 2023

Install locate on Alpine Linux

To install the locate command on Alpine Linux, you can follow the installation steps.

In MLocate, Jun 15, 2023

k8

How to Install Kubectl on Ubuntu 23.04

Kubectl is a command-line tool used to interact with Kubernetes clusters, so let’s see how to install Kubectl on Ubuntu 23.04

In Kebernetes, Jun 19, 2023

cicd

GitHub Actions: multi-line shell commands

There are two different ways to run shell commands in GitHub actions: the Literal Block Scalar (run: |) and the Folded Block Scalar (run: >). Here’s the difference.

In GitHub, Oct 20, 2023

GitHub Actions: github.ref_name vs github.head_ref

GitHub has its own contexts that you could use while working with GitHub actions which you could use in certain scenarios. The most confusing thing I stumble upon was choosing between...

In GitHub, Oct 18, 2023

git clone another repository from a Jenkins pipeline

There are some use cases where we need to reuse a config or multiple files from another Git repo in a Jenkins pipeline. As for the solution, here’s something you could try.

In Jenkins, Jul 08, 2023

Cleanup workspace directory in Jenkins

Starting a CI job with a clean empty workspace directory ensures not having to deal with flaky tests in a way. Here’s how to do it.

In Jenkins, Jul 06, 2023

Changing workspace directory in Jenkins

In Jenkins, each stage in a pipeline is executed in a separate workspace directory. The workspace is a local directory on the Jenkins agent where the pipeline is running. Each stage c...

In Jenkins, Jun 24, 2023

gunzip

Install gunzip on Alpine Linux

If gunzip it’s not available on your Alpine Linux system, the good thing is that you can install it using the package manager.

In gunzip, Alpine Linux, Jul 01, 2023

gzip

Install gunzip on Alpine Linux

If gunzip it’s not available on your Alpine Linux system, the good thing is that you can install it using the package manager.

In gunzip, Alpine Linux, Jul 01, 2023

awall

Install Awall on Alpine Linux

Awall as a lightweight Alpine firewall can help you in protecting your server and web application. Let’s install Awall on Alpine Linux.

In awall, Alpine Linux, Jul 05, 2023

c

Install gcc on Alpine Linux

GCC is a widely used compiler suite for compiling code written in languages such as C, C++, Objective-C, Fortran, Ada, and others. Let’s see how to install GCC on Alpine Linux.

In gcc, Alpine Linux, Jul 07, 2023

c++

Install gcc on Alpine Linux

GCC is a widely used compiler suite for compiling code written in languages such as C, C++, Objective-C, Fortran, Ada, and others. Let’s see how to install GCC on Alpine Linux.

In gcc, Alpine Linux, Jul 07, 2023

clang

Install Clang on Alpine Linux

Clang is a compiler suite developed by LLVM project. It supports multiple programming languages and is known for its focus on code quality, diagnostics, and static analysis capabiliti...

In Clang, Alpine Linux, Jul 09, 2023

debian 12

Install Python on Debian 12

Using the Debian official repository is the best method to install Python on Debian 12.

In Debian, Aug 06, 2023

Install Apache on Debian 12

Let’s see how to install Apache HTTP Server on Debian 12 as one of the widely used open-source web servers.

In Debian, Aug 04, 2023

Install Certbot on Debian 12

Certbot can be easily installed on Debian 12.

In Debian, Aug 02, 2023

Install Smartctl on Debian 12

Let’s see how to install smartctl tool which provides a way to retrieve detailed information about the status of your storage devices, including attributes such as temperature, error ...

In Debian, Jul 31, 2023

Install Netstat on Debian 12

If you need to check the network status on your server, netstat is a great tool for that. Let’s see how to install Netstat on Debian 12.

In Debian, Jul 29, 2023

Install Wget on Debian 12

If you get bash: wget: command not found you need to install wget on Debian 12. Let’s see how to install it.

In Debian, Jul 27, 2023

Install Redis on Debian 12

Redis can be easily installed on Debian 12. Let’s take a look.

In Debian, Jul 25, 2023

Install Nginx on Debian 12

Let’s install our favorite Nginx web server on the newly released Debian 12.

In Debian, Jul 21, 2023

Install Ruby on Debian 12

Ruby is a known programming language for its simplicity and flexibility. Let’s install Ruby on Debian 12.

In Debian, Jul 19, 2023

Install NPM on Debian 12

To be able to install modules for node js you need to install npm as well. Let’s jump on it.

In Debian, Jul 17, 2023

Install Node JS on Debian 12

Node JS stands as one of the most popular programming languages nowadays. Let’s check how to install Node JS on Debian 12.

In Debian, Jul 15, 2023

Install ps on Debian 12

Usually inside the Debian 12 container, you will not be able to list the processes inside the container cause procps package is not installed by default. Let’s install procps on Debia...

In Debian, Jul 13, 2023

Install Ansible on Debian 12

Installing Ansible on the newly released Debian 12 is fairly easy. Let’s take a look.

In Ansible, Debian, Jul 11, 2023

busybox

How To Fix Busybox Initramfs Error On Ubuntu

Most likely this error can occur if you have problems with the hard drive, partitions, or file systems used by the root file system, all this can lead to initramfs errors. Let me tell...

In Ubuntu, Jul 23, 2023

initramfs

How To Fix Busybox Initramfs Error On Ubuntu

Most likely this error can occur if you have problems with the hard drive, partitions, or file systems used by the root file system, all this can lead to initramfs errors. Let me tell...

In Ubuntu, Jul 23, 2023

github actions

GitHub Actions: multi-line shell commands

There are two different ways to run shell commands in GitHub actions: the Literal Block Scalar (run: |) and the Folded Block Scalar (run: >). Here’s the difference.

In GitHub, Oct 20, 2023

GitHub Actions: github.ref_name vs github.head_ref

GitHub has its own contexts that you could use while working with GitHub actions which you could use in certain scenarios. The most confusing thing I stumble upon was choosing between...

In GitHub, Oct 18, 2023
</div> </div> </div>