How to tell and force Composer to use a specific PHP version such as 7.x or 8.x

You can tell Composer to use a specific PHP version by specifying the version in the composer command. For example, to use PHP version 7. (simpleeverydaymom.com) 4: php7.4 /usr/local/bin/composer <composer command> You can also configure Composer to use a specific PHP version by creating a composer.json file in the root of your project and add … Read more

How to install Chromium browser on Ubuntu Linux

Chromium is an open-source version of the Google Chrome web browser. You can install Chromium on Ubuntu Linux using the package manager apt. Here’s an example of how to install Chromium on Ubuntu Linux: Update package list: Before installing Chromium, you should first update your package list by running the command: sudo apt update Install … Read more

How to trim leading and trailing white space in bash

In bash, you can trim leading and trailing white spaces from a string using parameter expansion. Trim leading white spaces: To trim leading white spaces from a string, you can use the following syntax: string=” leading white spaces ” string=”${string#”${string%%[![:space:]]*}”}” This will remove any whitespace characters (spaces and tabs) at the beginning of the string. … Read more

How to on enable kernel crash dump on Debian Linux

Enabling kernel crash dump on Debian Linux involves several steps, here is an overview of the process: Install the kexec-tools package: sudo apt update sudo apt install kexec-tools Configure the kernel to use the kdump feature by adding the following line to the /etc/default/grub file: GRUB_CMDLINE_LINUX_DEFAULT=”crashkernel=128M” Update the grub configuration: sudo update-grub Configure the kdump … Read more

How To Convert AWS Route53 to Cloudflare Let’s Encrypt DNS challenge with acme.sh

acme.sh is a command-line utility that can be used to issue and manage Let’s Encrypt SSL certificates. You can use acme.sh to convert an AWS Route53-managed domain to a Cloudflare-managed domain and complete the Let’s Encrypt DNS challenge. Here’s an example of how to do this: Install acme.sh: To get started, you will need to … Read more

How to install YubiKey Manager GUI on Linux

The YubiKey Manager GUI is a graphical user interface for managing YubiKey devices on Linux. Here is how to install it on different Linux distributions: Ubuntu, Debian, Linux Mint: sudo apt install yubikey-manager-gui Fedora, CentOS, RHEL: sudo dnf install yubikey-manager-gui Arch Linux: sudo pacman -S yubikey-manager-gui Please note that the package name may vary depending … Read more

How to install whois on Ubuntu / Debian Linux

Whois is a command-line utility that allows you to look up information about domain names and IP addresses. On Ubuntu and Debian Linux, you can install whois using the package manager apt. Here’s an example of how to install whois on Ubuntu or Debian Linux: Update package list: Before installing whois, you should first update … Read more

Ubuntu 22.04 LTS Set Up OpenVPN Server

Setting up an OpenVPN server on Ubuntu 22.04 LTS can be done in just a few minutes by following these steps: Install OpenVPN: sudo apt update sudo apt install openvpn Generate the necessary encryption keys and certificates: sudo easyrsa init-pki sudo easyrsa build-ca sudo easyrsa build-server-full server nopass This will create the necessary keys and … Read more