How Do You Find the Different Logging Levels of the /var/log/syslog?

Problem scenario
You have heard about different operating system events being classified in different levels.  Lesser events can be captured with logging is verbose.  Major events can render a system useless.  You know system logging is normally done in a file called /var/log/syslog.  How do you find out which levels there are from most significant to least significant?

Solution
Use this command: man syslog

Search for the word “level” by typing this: /level <press enter>

How Do You Find the Most Recent Exit Code in Linux?

Problem scenario
When a command stops, it returns an exit code. You want to learn more about exit codes starting with the variable that stores the most recently completed Linux command’s exit code.  Every time you use $? in Linux, you get 0. Why is this?

Solution
There are four links that can help you learn more.  Two are from The Linux Documentation Project (one here and another here). 

How Do You Troubleshoot an s3cmd Error About “.s3cfg: None”?

Problem scenario
You are trying to run an s3cmd command (e.g., s3cmd ls), but it is not working.  You run an s3cmd command and you get this:

ERROR: /home/jdoe/.s3cfg: None
ERROR: Configuration file not available.
ERROR: Consider using –configure parameter to create one.

What do you do?

Possible Solution #1
1.  sudo find / -name .s3cfg
2. 

How Do You Troubleshoot a Network Problem?

Note:  This posting should help you troubleshoot many different network problems (not just those described in the problem scenario below).  Possible solutions 1 through 5 are ideal for erratic nmap results (inconsistent or discrepant output). 

Problem scenario
A port seems blocked on a Linux server given the results of nmap. The host appears to be down. You know this port is not blocked by intermediate routers and/or firewalls.  You know the server is turned on. 

New Year’s Eve in America and around the World

Happy New Years!

In Scotland New Year’s Eve is called “Hogmanay.”  In other countries outside the U.S. it is called “Old Year’s Day” or “Saint Sylvester’s Day.”  In America New Year’s Eve is celebrated with a variety of different traditions.  Many states have their own unique traditions of dropping or lowering of different objects (e.g., a large ball in Times Square in New York City).  

How Do You Change the Duration of Re-Prompting a User to Enter the Password after Running a sudo Command in Ubuntu Linux?

Problem scenario
When users run a command with “sudo ” in front of it, they are prompted for a password.  They are not prompted for a password again for a while.  They can go  15 minutes of using “sudo ” commands with no prompt for a password.  

You want to harden your environment and make them re-enter the password every three minutes in case they leave their desk shortly after they have used sudo.  

How Do You Change a User’s Password When You Cannot Log into Your Azure Linux VM?

Problem scenario
You have a Linux VM in Azure but you cannot log in.  You cannot remember a single password for the username you were using.  What do you do when you forgot all the credentials of a Linux VM except one username?  How can you log into this server?

Solution
Prerequisite
To reset access to the VM in the following way, you will need to know one username. 

How Do You Install Angular 5 on Any Type of Linux?

Problem scenario
You want to install Angular on Linux.  You want steps to install on any Linux distribution including CentOS/RedHat/Fedora, Debian/Ubuntu, and SUSE.  What should you do?

Solution
1. Install npm and node.  If you need directions see this posting.

2.  Run this command (and be prepared to wait for 60 minutes or more):  sudo npm install -g @angular/cli

3. 

How Do You Get the Binaries for kube-proxy, kube-apiserver, kube-controller-manager, and kube-scheduler?

Problem scenario
You want to install kube-proxy, kube-apiserver, kube-controller-manager, and kube-scheduler on a Linux server.  You want to be able to run these commands. How do you do this?

Solution

Prerequisite
This requires the Linux server to have access to the internet.

Procedures
1.  Download the first tar ball.

cd /usr/bin
sudo wget https://github.com/kubernetes/kubernetes/releases/download/v1.8.6/kubernetes.tar.gz
# To get the latest version,

How Do You Know If Maven Has a Plugin for Apache Parquet?

Problem scenario
You have Maven installed.  You want to know if it has the plugin for Apache Parquet from the Linux terminal.  You do not want to use the Maven GUI.  What do you do?

Solution
1.  sudo find / -name pom.xml  
2.  Change to the directory of the pom.xml with Apache Parquet.
3.  Run this command:
mvn help:effective-pom | grep -i parquet