How Do You Fix an Error “no repomd file” When Trying To Run a Yum Command?

Problem scenario:  You try to use yum commands.  You get an error about “no repomd file” and the desired yum command does not work.  What should you do?

Solution

If you are using Fedora Linux, run this command:

cat /etc/*-release

Look at the output of the above command to find the version of Fedora.  Verify you are using a recent version of Fedora (released within the past two years).

…

How do you handle a “ENOMEM” error when trying to run a Chef command?

Problem scenario:  You recently installed Chef server on a Linux t2.micro instance (an AWS virtual server with 1 vCPU and 1 GB of RAM).  You ran this command “chef-server-ctl reconfigure” and received this error:

“Errno::ENOMEM occurred in delayed notification: runit_service[opscode-solr4] ( private-chef::opscode-solr4 line 37) had an error: Errno::ENOMEM: Cannot allocate memory – fork(2)”

What should you do?

Solution
Root cause:  A t2.micro instance has insufficient RAM. 

…

Troubleshooting An Initial Run Chef Client

Problem scenario
When you are configuring a server to be a Chef client, you run this command:

/usr/bin/chef-client

But you get this error:

“Chef encountered an error attempting to create the client <hostnameOfChefClientServer>”

Solution

Verify you have a client.pem file in this directory on the server you are running the command on: /etc/chef/

The Chef documentation says this:
“Every request made by the chef-client to the Chef server must be an authenticated request using the Chef server API and a private key.

…

Infrastructure as Code and Architecting Server Environments for Automatic Replication

Infrastructure as Code is often associated with “Continuous Configuration Automation.”  We think the term should be “Continual Configuration Automation.”

There are four popular tools to rapidly provision cloud infrastructure using templates: Azure Resource Manager, CloudFormation, Terraform, and Heat.  Three of these tools each support two different types of template files for provisioning servers.

…

How Do You Redirect The Output of Lynx to a Regular File?

Problem scenario:  You are using Lynx and you want to redirect the downloaded web page to a file.  You do not want it to be sent to standard out (also referred to as printed to the screen).  What do you do?

Solution

You should use the “-dump” flag between the “lynx” utility word and the URL.  Then use the regular POSIX redirect symbol “>” at the end of the Linux command. 

…

How Do You Get Lynx (in Linux) to Automatically Accept Cookies?

Problem scenario
You are using Lynx, and the prompt to accept cookies is tedious or disruptive to a non-interactive process you want to develop.  How do you get Lynx (running on Linux) to automatically accept cookies?

Answer
To configure Lynx to always accept cookies, do these steps:

1.  Find lynx.cfg with this command:  find / -name lynx.cfg

2.

…

A List of Books Related to Puppet (configuration management software)

Here is an alphabetized list of Puppet books. 

Beginning Puppet by Spencer Krum, William Van Hevelingen, Daniele Sluijters
DevOps: Puppet, Docker, and Kubernetes by Packt Publishing
Extending Puppet by Alessandro Franceschi
Instant Puppet 3 Starter by Jo Rhett
Learning MCollective: Parallel Server Management in Puppet and Chef by Jo Rhett
Learning Puppet by Bill Ward
Learning Puppet 2nd Edition by Jussi Heinonen
Learning Puppet 4: A Guide to Configuration Management and Automation by Jo Rhett
Learning Puppet for Windows Server by Fuat Ulugay
Learning Puppet Security by Jason Slagle
Mastering Puppet by Thomas Uphill
Mastering Puppet 5: Optimize enterprise-grade environment performance with Puppet by Packt Publishing
Pro Puppet 2nd Edition by Spencer Krum,

…

A Long List of Docker Books

We found Docker Cookbook to be a good reference book about Docker.  The author, via O’Reilly Customer Service, responded to us saying that on page 79 near the top of Figure 3-1, the open curly brace “{” should be removed.  We were impressed the author took that the time to respond.

A shorter book written by two authors (neither of whom authored the Docker Cookbook) is called Docker Up &

…

How Do You Find Logs on a Linux Server That Pertain to a Failed mount Command?

Problem scenario
You want to set up a file share through Oracle VirtualBox.  You are trying to mount a file share on a Linux guest running via Oracle VirtualBox on a Windows host.   The mount command fails and you want to find relevant logs.  What do you do?

Solution
To find logs that are appropriate to debugging a mount command that does not work,

…