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,

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

How Do You Install a Pythonic Implementation of Apache Thrift?

Problem
You want thriftpy installed to deploy Apache Parquet.  How do you install thriftpy?

Solution
Prerequisite

Install pip.  If you need assistance, click on the link according to your distribution of Linux:
CentOS/RHEL/Fedora (most newer versions)
RHEL 6.x
Debian/Ubuntu
SUSE

Procedure
Run this command:  pip install thriftpy

How Do You Install These Kubernetes-Related Commands kubelet, kubeadm, kubectl, and etcd on an Ubuntu Server?

Problem scenario
You want to install kubelet, kubeadm, kubectl, and etcd on an Ubuntu server.  How do you do this?

Solution
1.  Run these five commands:

sudo apt-get -y update
sudo apt -y install docker.io
sudo su –
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add –
exit

2.  Use either Method A or Method B.

How Do You Get PowerShell’s Invoke-Webrequest to Work Consistently (Instead of “command not found”)?

Problem scenario
You use invoke-webrequest and it works fine with some websites. But sometimes you find that PowerShell says “command not found.”  What is wrong?

Solution
invoke-webrequest will work to download html and htm files.  Depending on the source file on the web server, the command needs a flag to work properly.  For an image file with a .jpeg extension, the invoke-webrequest needs a flag “-ContentType ‘image/jpg'” or something similar to work.