How to define multiple when conditions in AnsiblenixCraft
Sometimes we need to evaluate multiple when conditions in Ansible playbooks. Let us see how to define multiple when conditions in Ansible for a single task.The post How to define multiple when...
View ArticleHow to define multiple when conditions in AnsiblenixCraft
Sometimes we need to evaluate multiple when conditions in Ansible playbooks. Let us see how to define multiple when conditions in Ansible for a single task.Love this? sudo share_on: Twitter - Facebook...
View ArticleHow to set up Redis sentinel cluster on Ubuntu or Debian LinuxOpensource Flare✨
{nixCraft Patreon supporters content}This guide explains how to set up Redis sentinel failover cluster for caching database or any other data type in high availability node.Software and hardware...
View ArticleHow To Set Up SSH Keys With YubiKey as two-factor authentication...
{nixCraft Patreon supporters content}All Linux and Unix servers are managed manually or by automation tools such as Ansible using ssh. For example, say you have a server at Linode or AWS. Then you copy...
View ArticleHow to find the number of RAM Slots in LinuxnixCraft
Sometimes Linux sysadmins or developers need to determine the number of RAM slots on their servers or desktop/laptop without opening the case. Then, it is helpful to upgrade or install new RAM. Let us...
View ArticleHow to find and replace ALL IP addresses with a new onenixCraft
At a certain point, I needed to change the VLAN IP address such as 172.0.0.2 with 172.0.0.1 for ease of use. As you know, Linux and Unix-like operating system stores all IP addresses and config in...
View ArticleHow to change hostname on Debian 10 LinuxnixCraft Updated Tutorials/Posts
{Updated} How do I change the hostname of a Debian Linux 10 'Buster' operating system permanently using the command line tools?The post How to change hostname on Debian 10 Linux appeared first on...
View ArticleHow to upgrade Debian 10 to Debian 11 Bullseye using the CLInixCraft
I have Debian 10.10 installed on the AWS EC2 and Linode server. How do I upgrade Debian 10 Buster to Debian 11 Bullseye using the apt command or apt-get command safely? How can I upgrade Debian 10 to...
View Articlecat command in Linux / Unix with ExamplesnixCraft Updated Tutorials/Posts
{Updated} I am a new Linux and Unix system user. How do I use cat command on Linux or Unix-like operating systems? Can you provide basic examples and syntax usage for cat command?The post cat command...
View ArticleHow to disable core dumps in Linux including systemdnixCraft
Core dumps created for diagnosing and debugging errors in Linux apps. They are also known as memory dump, crash dump, system dump, or ABEND dump. However, core dumps may contain sensitive info—for...
View ArticleFreeBSD bhyve, OpenSSL, GEOM & libfetch security fixes releasednixCraft
All supported versions of FreeBSD are affected by various security bugs that need to be applied ASAP. For example, a memory corruption bug exists in the bhyve hypervisor. Another overwrite the stack of...
View ArticleHow to switch boot target to text or GUI in systemd LinuxnixCraft
Most modern Linux distro uses systemd as init replacement. It is a suite of basic building blocks for Linux distros such as RHEL/CentOS & co, OpenSUSE/SUSE, Fedora, Arch, Debian, Ubuntu, and more....
View ArticleHow to set up Mariadb Galera cluster on Ubuntu or Debian LinuxOpensource Flare✨
{nixCraft Patreon supporters content}This guide explains how to set up MariaDB high-availability cluster for the database using the Galera library, which provides a virtual mater-to-master three-node...
View ArticleHow To Put Multi-Line Comment in Shell ScriptnixCraft Updated Tutorials/Posts
{Updated} This page describes various methods developers and sysadmin can use to put a multi-Line comment in shell script (bash/ksh) running on a Unix or Linux box.The post How To Put Multi-Line...
View ArticleHow to Set or Change Hostname in Amazon Linux EC2 InstancenixCraft
I am a new Amazon Linux 2 EC2 instance user. My EC2 name was set to 'ip-172-26-7-134' during instance creation. But now, I would like to change the EC2 hostname to 'stats1'. Can you tell me how do I...
View ArticleHow to see grep output in color with highlighting featurenixCraft Updated...
{Updated} The grep command is the de facto tool for searching text files. However, finding the requested text in the search results can be difficult when there are too many matches. So how do you grep...
View ArticleHow to see grep output in color with highlighting featurenixCraft Updated...
{Updated} The grep command is the de facto tool for searching text files. However, finding the requested text in the search results can be difficult when there are too many matches. So how do you grep...
View ArticleLinux Execute Cron Job After System RebootnixCraft Updated Tutorials/Posts
{Updated} crontab is the program used to install, deinstall, or list the tables used to drive the cron daemon in Vixie Cron. You can run a cron job after Linux or Unix system rebooted. Handy for tasks...
View ArticleHow to install Docker on Amazon Linux 2nixCraft
How do I install docker and docker-compose using the yum command on Amazon Linux 2 running on the EC2 or Lightsail cloud instance?Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp -...
View ArticleHow to use htmlq to extract content from HTML files on Linux, macOS or...
Most of us use love and use the jq command. It works on Linux or Unix-like systems to extract data from JSON documents. Recently I found htmlq, which is like jq and written in Rust lang. Imagine being...
View Article