How to set and use sudo password for Ansible Vault

Ansible Vault allows you to encrypt sensitive data such as passwords, certificates, and keys, so that they can be stored safely in version control. To set a sudo password for Ansible Vault, you need to use the ansible-vault command as follows: Create an encrypted file: ansible-vault create secret.yml Enter a password for the vault. Enter … Read more

How to install KVM on CentOS 7 / RHEL 7 Headless Server

To install KVM on a headless CentOS 7 / RHEL 7 server, follow these steps: Verify Hardware: Check if your hardware supports virtualization. Run the following command to check: egrep -c ‘(vmx|svm)’ /proc/cpuinfo If the output is greater than 0, your hardware supports virtualization. Install KVM and QEMU: sudo yum install qemu-kvm qemu-img virt-manager libvirt … Read more

How to add network bridge with nmcli (NetworkManager) on Linux

To add a network bridge using the nmcli command-line tool with the NetworkManager service in Linux, follow these steps: Install the NetworkManager command line tool: sudo yum install NetworkManager-cli or sudo apt-get install NetworkManager-cli Create a bridge interface: sudo nmcli connection add type bridge ifname <bridge_interface_name> con-name <connection_name> Replace <bridge_interface_name> with a unique name for … Read more

How to redirect standard (stderr) error in bash

You can redirect standard error (stderr) in bash to a file, or to another standard stream, such as standard output (stdout), using the following syntax: command 2> file.txt This will redirect the standard error stream from the “command” to the file “file.txt”. To redirect standard error to standard output, which can then be redirected to … Read more

How to build Perl module rpm file with cpanspec on RHEL/CentOS Linux

To build a Perl module RPM file using cpanspec on RHEL/CentOS Linux, you can follow the steps below: Install cpanspec: # yum install cpanspec Download the Perl module from CPAN: # cpan <Module-Name> Convert the Perl module to an RPM package: # cpanspec <Module-Name> Build the RPM package: # rpmbuild –define “_sourcedir `pwd`” –define “_srcrpmdir … Read more

How to install Skype application on Linux

There are several ways to install Skype on Linux, including the following: Install using Snap: You can install Skype on Linux using the Snap package manager. To do this, follow these steps: sudo snap install skype –classic Install using Flathub: Flathub is another package manager for Linux, and it provides a Skype package. To install … Read more