How Do You Install Kubernetes on an AWS Instance of RedHat Linux?

Problem scenario:  You are using RHEL 7.x via AWS.  You want to install Kubernetes.  What do you do?

Solution
1.  Log into the Linux server as ec2-user.  Then run this command:
sudo yum-config-manager –enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

2.  Create this file: /etc/yum.repos.d/kubernetes.repo
3.  Have this be the content of the file (with the first line being “[kubernetes]” and the last line ending in “…

How Do You Deploy a Kubernetes Cluster in AWS Using an Ubuntu Linux Instance?

Updated on 10/13/20.

Problem scenario
You want to deploy a Kubernetes cluster in AWS.  You have an Ubuntu server (e.g., with a nano flavor in AWS or a minimally powered Azure instance).  It has no software packages installed on it (e.g., it does not have Docker or Kubernetes).  How do you deploy Kubernetes in AWS?

Solution
Warning:  This will automatically create EC2 servers in you AWS account behind the scenes. 

How Do You Compile a C++ Program When You Get “Gcc: Error Trying to Exec ‘cc1plus’: Execvp: No Such File or Directory”?

Problem scenario:  When trying to compile a C++ program (e.g., $ gcc hello.cpp), you receive this error:
“gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory”

What do you do?

Solution
Install gcc-c++.  For a RedHat distribution of Linux, use this command:

yum -y install gcc-c++

How Do You Enable Virtualization Technology (VTx) with an HP Probook?

Problem scenario:  You want to use Oracle VirtualBox or some other hosted hypervisor with your HP Probook laptop.  You need “Virtualization Technology (VTx)” enabled.  How do you do this?

Solution

1.  Boot up.  When you see the “HP” splash screen (a blue image with a black background), press F10.

2.  At the prompt, “Log in as a Guest User” choose “Yes.” (This step may be crucial to your success.)

3.

How Do You Write a C Program to Writes Hexadecimal Numbers 1 Through F Each on New Lines of a New File?

Problem scenario:  Using the C programming language, you want to write a program that produces a file (we’ll call it contint.txt) that has the following content:

1
2
3
4
5
6
7
8
9
a
b
c
d
e
f

Solution
Overview of the approach:  Hexadecimal numbers use base 16. 

How Do You Comment out a Line in PHP?

Problem scenario
You want to try some .php scripts or web pages without certain lines of code.  How do you comment out an individual line?

Solution
Use this at the beginning of a line of code: //

Example:  //this text will do nothing in the .php script

To comment out multiple lines, use this at the beginning of the first line: /*
Then conclude the multi-line comment with this: 

How Do You Troubleshoot Connecting to a Postgres Database When You Get the Error “FATAL: Ident Authentication Failed”?

Problem scenario
You are trying to establish a connection with a username and password to a Postgres database using PHP.  You have a PHP file like this:  

<?php
   $host        = “host=127.0.0.1”;
   $port        = “port=5432”;
   $dbname      = “dbname=contint”;
   $credentials = “user=contint password=excellent”;

   $db = pg_connect( “$host $port $dbname $credentials”  );
   if(!$db){
      echo “Error : Unable to open database\n”;

The Latest News on The Law and Technology

The news below is focused on the legal issues of computing, intellectual property (copyrights, patents and trademarks), science and technology.  The external links are to reputable websites.

How Do You Troubleshoot Mounting a Vboxsf Folder Share on a Linux Guest Running via Oracle VirtualBox on a Windows Host?

Problem scenario:  You are trying to mount a file share using Oracle VirtualBox.  You have a Windows host and a Linux CentOS guest.  (For complete directions on how to set up a folder share for this scenario, see this link.) 

You are trying to run this command:  “mount -t vboxsf contint /mnt/windows-share”
# where “contint” is the name of the folder share in the Oracle VirtualBox GUI.

How Do You Get the Apache Web Service to Start after a Cold Reboot?

Problem scenario
You want the Apache web service to start automatically after a Linux server is rebooted.  You want it to start automatically when you turn on a Linux server (after being off completely).  On Linux CentOS you have this entry in /etc/crontab:

@reboot            root         apachectl start

You notice that on reboots (warm or soft) it works.  But when you turn on your server after it has been off,