How Do You Test the “mount -a” Command to Verify Sufficient Permissions on a Linux VM?

Problem scenario
You want to test “mount -a” to verify your user has sufficient permissions. You cannot add a physical device to the Linux server. How do you confirm “mount” will work?

Solution
Create a directory to be a mount point:
sudo mkdir /aaa
Find a block device to mount. One way would be to run this: sudo cat /proc/partitions
Once found,

 » Read more..

How Do You Install Erlang on a Debian/Ubuntu Server?

Problem scenario
You want to install Erlang on a Debian or Ubuntu Server (e.g., Linux Mint or Kali Linux). What should you do?

Solution
Run this script with sudo (e.g., sudo bash /tmp/erlang.sh):

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

echo “This script can take 20 minutes to run”
apt -y update
apt -y install autoconf
apt -y install libncurses5-dev
apt -y install libncursesw5-dev
apt -y install gcc
apt -y install python3
apt -y install make
cd /bin/
git clone https://github.com/erlang/otp.git
cd otp
./otp_build autoconf
./configure
echo “This next portion may take 15 minutes”
date /tmp/datetime.txt
make
make install
ln -s /usr/local/lib/erlang/bin/erl /usr/bin/erl
ln -s /usr/local/bin/erlc /usr/bin/erlc
ln -s /etc/alternatives/python3 /usr/bin/python
echo “Script run completed.”
echo ” ”
echo “Many errors above (if there are any) may be ignorable”
echo “try the ‘erl’ command with no quotes to see if Erlang was installed”
echo ‘If you get to a carrot prompt,  » Read more..

How Do You Install StackStorm?

Problem scenario
You want to try this automation tool called Stack Storm. How do you install it on Linux?

Solution
Prerequisites

  • We recommend a server with four CPUs. The load on a server with one CPU can be above 20 when trying to install it — if it is possible to install it correctly on a server with one CPU.

 » Read more..

How Do You Get conjure-up To Provide an Option for AWS, Azure or GCP when Deploying Kubernetes?

Problem scenario
You run “conjure-up kubernetes”, but on the page “Where would you like to deploy?” you do not see an option for AWS, Azure, or GCP (Google Cloud Platform).

You see options for maas, openstack, and vsphere. But the public cloud options are missing. What should you do?

Solution
With newer versions of conjure-up, you need to first configure a public cloud.

 » Read more..

How Do You Disable the Knock Code Security Feature on an Android Tablet or Phone?

Problem scenario
You want to change the knock code itself or totally disable it on your Android tablet or phone. What do you do?

Solution
To remove the knock code:
Go to Settings -Display -Lock Screen -Select screen lock
Enter the knock code and click “next”.
Click on “None”.
You are done.

 » Read more..

How Do You Find Your Email Distribution List in WordPress?

Problem scenario
You know you have subscribers to your blog or email newsletter via your website. Your website is powered by WordPress. How do you browse to the email addresses that signed up through your website?

Solution
Log into the WordPress dashboard. Go to “Email Subscribers” and click on “Audience.”

 » Read more..

How Do You Troubleshoot an Ansible Playbook Failing with “The filter … is invalid…AttributeError: Client Error object has no attribute message”?

Problem scenario
Your playbook fails with the following message: “The filter … is invalid…AttributeError: Client Error object has no attribute message”?

What should you do?

Solution
Remove the word “filter” and try your playbook again.

 » Read more..

How Do You Install Erlang on a Linux SUSE Server?

Problem scenario
You want to install Erlang on a Linux SUSE machine. What should you do?

Solution
Run this script with sudo (e.g., sudo bash /tmp/erlang.sh):

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

widgetversion=3.0.4

echo “This script can take 20 minutes to complete”

zypper -n install ncurses gcc-c++ autoconf make git python3 bzip2 gtk2 gtk3 gtk2-devel ncurses-utils ncurses-devel
cd /tmp/
curl -Ls https://github.com/wxWidgets/wxWidgets/releases/download/v$widgetversion/wxWidgets-$widgetversion.tar.bz2 /tmp/wxWidgets-$widgetversion.tar.bz2
cp /tmp/wxWidgets-$widgetversion.tar.bz2 /bin/
cd /bin/
bzip2 -d wxWidgets-$widgetversion.tar.bz2
tar -xf wxWidgets-$widgetversion.tar
#cd wxWidgets-$widgetversion

cd /bin/
git clone https://github.com/erlang/otp.git
cd otp
./otp_build autoconf
./configure
echo “This next portion may take 15 minutes”
date /tmp/datetime.txt
make
make install
ln -s /usr/local/lib/erlang/bin/erl /usr/bin/erl
ln -s /usr/local/bin/erlc /usr/bin/erlc
ln -s /etc/alternatives/python3 /usr/bin/python
echo “Script run completed.”
echo ” ”
echo “Many errors above (if there are any) may be ignorable”
echo “try the ‘erl’ command with no quotes to see if Erlang was installed”
echo ‘If you get to a carrot prompt,  » Read more..

How Do You Modify a Footer in WordPress?

Problem scenario
You want to modify a footer in your WordPress website. What do you do?

Solution

  1. Log into WordPress
  2. Go to Dashboard -> Appearance -> Theme Editor
  3. Find “footer.php” and click on it.
  4. Modify it.

 » Read more..

How Do You Install the docker.service File on RHEL 8.x?

One of the following problems occurs:

Problem scenario #1
You run some systemctl commands to start the Docker service, but you get this error: “Failed to enable unit: Unit file docker.service does not exist.”
Or you run some other command and see this:
“Unit docker.service not found.”
What should you do to get the docker.service file on a RHEL 8.x server?

Problem scenario #2
You are running a kubeadm command on RHEL 8,

 » Read more..