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, …

How Do You Create an EC-2 Instance Running RHEL 8.x in the AWS Web UI?

Problem scenario
You want to use the AWS Management Console to create a server. What do you do?

Solution
Prerequisite

This assumes you have already configured a .ppk file, and you know its password. If you need assistance, see this posting.

Procedures

  1. Log into the AWS management console (aws.amazon.com).

How Do You Troubleshoot “yum-config-manager command not found”?

Problem scenario
You run a “yum-config-manager” on a Linux server, but you get an error about the command not being found. What should you do?

Possible solution
Run this: sudo yum -y install yum-utils

This should install it. If it doesn’t, you may not have a “yum” distribution of Linux. You may be using SUSE, Debian or Ubuntu Linux.

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.

How Do You Troubleshoot the Python3 Error “No such file or directory: ‘/usr/local/lib/python3.6/site-packages/” on RHEL 8.x?

One or more of the following problems are happening to you:

Problem scenario #1
You run python3 setup.py install on RHEL 8.x, but you get an error message like this:

running install
error: can’t create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

[Errno 2] No such file or directory: ‘/usr/local/lib/python3.6/site-packages/test-easy-install-52191.write-test’

The installation directory you specified (via –install-dir, …

How Do You Install Puppet Master Version 6 on a RHEL Version 8.x Server?

Problem scenario
You want to install Puppet Master version 6.x on a RHEL version 8.x server. What do you do?

Solution
Run this script:

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

yum -y update
rpm -ivh https://yum.puppetlabs.com/puppet6/puppet6-release-el-8.noarch.rpm
# rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-el-8.noarch.rpm
# To install a legacy version of Puppet (3.x), comment out the first rpm stanza and uncomment out the second.

yum -y install puppetserver
ln -s /opt/puppetlabs/puppet/bin/puppet /usr/bin/puppet …

How Do You Get Screws to Remain in Place when the Holes Are Too Big?

Problem scenario
The threads of the door frame hinges in your house have been stripped. The door latch is not secure to the frame now. Is there an affordable method to secure the door latch to the frame/wall?

Solution
Push a part of a cleanex or tissue paper into the hole. Use a skinny screwdriver or ice pick to jam the tissue paper into the hole.