How Do You Use Tripwire Commands without the “Keyfile Read/Write error”?

Problem scenario
You created a tripwire keyfile.  You perform a tripwire (e.g., twprint) command but you get this error:

### Error: Keyfile Read/Write error.
### /etc/tripwire/site.key
### Exiting…

What should you do?

Solution
Use sudo before the tripwire command.  This error can happen when the Linux user has insufficient permissions to perform the tripwire (e.g., twprint) command

How Do You Install the AWS CLI on an Ubuntu Server?

Problem scenario
You want to use the AWS CLI on an Ubuntu server.  You want to rapidly create EC-2 servers or use S3.   You want to be able to script AWS management commands for rapid provisioning etc. from an Ubuntu Linux server.  What do you do to install AWS CLI on an Ubuntu Linux server?

Solution
This works on an Azure server, an AWS EC-2 instance,

How Do You Deploy the WildFly Application Server in Docker?

Problem scenario
You want to prepare for WildFly Swarm to run Java EE programs.  You want to deploy Red Hat’s WildFly application server in a Docker container.  You are running a Linux server.  What do you do?

Solution
Background
The regular JBoss Application server was renamed to Wildfly.  Do not confuse the JBoss application server with the JBoss web server. 

How Do You Solve the Problem of the “docker login” Command Seeming to Work but Hanging for a Long Period of Time and/or Erroring out with “connection refused”?

Problem scenario
“docker login” is challenging you for a username and password.  But after you enter the credentials and press enter, it hangs.  You are not logging into the Docker registry.  What is wrong?

Solution
It may be surprising, but you can be challenged for a username and password when the Docker registry is turned off.  If a firewall blocks a necessary port to the Docker registry or if the Docker registry’s server is off completely,

How Do You Troubleshoot “Permission Denied” When Trying to Use “Docker Login” to Authenticate with a Docker Registry?

Problem scenario
You are trying to log into a Docker registry but you get this message:

“Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.29/auth: dial unix /var/run/docker.sock: connect: permission denied”

You know the credentials are correct.  What is wrong?

Root cause
It could be that your user account is not a member of the “docker” group on the Linux system. 

How Do You Troubleshoot the Problem “No package ‘Luajit’ Found” When Attempting to Install Snort?

Problem scenario
You install the Lua Just-In-Time package named luajit (e.g., with sudo apt-get -y install luajit).  You are trying to install Snort.  When you run the ./configure script, you get this error:


— Checking for module ‘luajit’
—   No package ‘luajit’ found
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):

/usr/bin/luajit-2.0.4
/usr/share/luajit-2.0.4/jit

You tried this:

./configure_cmake.sh –with-luajit-libraries=/usr/share/luajit-2.0.4/jit/ –with-luajit-includes=/usr/bin

But that command failed too.

How Do You Deploy Puppet Agent to a RedHat Linux Instance in AWS?

Problem scenario
You installed Puppet Master on an AWS instance of RedHat Enterprise Linux.  (See this link if you want to install Puppet Master.) You now want another AWS instance of RHEL 7.x to be configured as a Puppet Agent node. You want to run a manifest to make sure that this new Puppet Agent node (i.e., server) is working with your Puppet Master server.  What do you do to install Puppet Agent 5.x on a RedHat Linux server and configure it to work with Puppet Master?

How Do You Control, Manage, List, Upload and Download Files to and from S3 without Using the GUI?

Problem scenario
You are using a Debian distribution of Linux.  You want to upload and download files to S3 without using the GUI.  You want to be able to automate processes with scripts that interact with S3 from your Ubuntu Linux server.  How do you do this?

Solution
The procedures have two parts after you have the prerequisites met.

Prerequisites
i.

What is a Build?

Question
In DevOps engineering you hear the term “build”, what is it?

Answer
A build is usually a binary file which is an executable application. In DevOps engineering a build is usually compiled from a specific version of source code. In the context of Jenkins it is the “[r]esult of a single execution” of a Jenkins project (previously known as a Jenkins job).