How Do You Install Apache ActiveMQ on Any Distribution of Linux?

Problem scenario
You want a Bash script that will install ActiveMQ on CentOS/RedHat/Fedora, Debian/Ubuntu, and SUSE Linux distributions.  How do you write a script that will work on different distributions of Linux to install Apache ActiveMQ?

Solution
With a “sudo bash” command, run a script with the following content (e.g., call the script below “installactivemq.sh” and run “sudo bash installactivemq.sh“):

#!/bin/bash
# Written by www.continualintegration.com

activemqversion=5.15.12 

How Do You Install the Latest Version of Apache Ant?

Problem scenario
You want to use the same Bash script to install Apache Ant on CentOS/RedHat/Fedora, Debian/Ubuntu, or Linux SUSE.  How do you install the latest version of Apache Ant on to any distribution of Linux? 

Solution
Updated 4/8/21
With a “sudo bash” command, run a script with the following content (e.g., call the script below “installant.sh” and run “sudo bash installant.sh“):

#!/bin/bash
# Written by www.continualintegration.com

antversion=1.10.9  # Change this version as necessary

distro=$(cat /etc/*-release | grep NAME)

debflag=$(echo $distro | grep -i “ubuntu”)
if [ -z “$debflag” ]
then  

How Do You Deploy a Kubernetes Cluster in Google Cloud Platform?

Updated on 8/18/19

Problem Scenario
How do you deploy a Kubernetes cluster in Google Cloud Platform?

Solution
There are three ways to do this.  (You could use the console in a web browser.  A second way is with a command line interface method.  A third way is with a REST API.)

Possible solution #1
One way is with the console.

How Do You Get Kubernetes to Work as a Test Instance?

Problem scenario
You want to set up Kubernetes on a server as quickly as possible as a proof-of-concept.  You want to create pods without the best practice security mechanisms because you are behind a firewall and in a development environment.  How do you quickly install and configure Kubernetes as a development deployment on a single host server?

Solution
1.  Install and configure kubelet, kubeadm, kubectl,

How Do You Run Ansible Playbooks on Managed Nodes That Run Shell Scripts That Require sudo?

Problem scenario
You run an Ansible playbook on a server as a remote user that is a sudoer on that same server.  But you get this error when you run the playbook: “sudo: a password is required\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1}”   How do you troubleshoot this error?

You want to run Bash scripts via Ansible playbooks.  But these scripts will install packages and modify sensitive files.