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).  

 » Read more..

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.  

 » Read more..

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. 

 » Read more..

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. 

 » Read more..

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,

 » Read more..

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

 » Read more..

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

 » Read more..

How Do You Install Apache Thrift on Ubuntu Linux?

Problem scenario
You want to install Apache Thrift for a Apache Parquet.  How do you install Apache Thrift?

Solution
Run this command:
sudo apt -y install thrift-compiler

 » Read more..

How Do You Check If Apache Thrift Is Installed?

Problem scenario
You want to know if you have Apache Thrift correctly installed.  What do you do?

Solution
Run this command:  thrift -version

 » Read more..

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.  Edit the kubernetes.list file so the correct .deb packages are installed.

 » Read more..