How Do You Install Java on Any Type of Linux with a Script?

Problem scenario
You want a Bash script to install Java on Linux.  (If you want to install Java on Windows, see this posting.)  You want it to work regardless if it is a Linux that is part of the Debian/Ubuntu family, RedHat family (e.g., CentOS/Fedora), or SUSE.  What do you do to write a universal script to make it easy for other systems administrators to install Java (or potentially automate the process across several servers)?

What Are the Different Acronym Stacks in I.T.?

Question
What are the different acronym stacks in I.T.?

Answer
There are many open source combinations of technologies that are in wide use.  These acronyms referred to as “full stacks” or “stacks” appear in articles and job descriptions.  A full stack is a bundle of software that (includes an OS and) can create a complete and functional product when properly configured. 

How Do You Install jps?

Problem scenario
You want to list the instrumented JVMs on your Linux OS.  Therefore you want to run the command jps.  What package(s) do you need to install?

Solution
For CentOS/RedHat/Fedora run this:
sudo yum -y install java-1.8.0-openjdk-devel

For Linux SUSE run this:
sudo zypper -n install java-1_8_0-openjdk-devel

For Ubuntu/Debian Linux run this:
sudo apt-get -y install openjdk-8-jdk-headless default-jre

If you want to learn more about the Java process status tool,

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

How Do You Install node and npm on Any Distribution of Linux Server?

Updated on 5/1/20

Problem scenario
You have a Linux server with 1 GB of RAM.  You want to install node and npm because you want to try out the latest JavaScript technologies.  (You were persuaded to not use Gulp or Grunt to manage build scripts.  You want to use npm because of this link.)  You want to use the same copy of the bash script on CentOS/RedHat/Fedora,

How Do You Use Python to Process (and Thereby Clean) a Flat File That Is a List of Email Addresses with Extraneous Symbols?

Problem scenario
You have an input file (.txt) that is a list of email addresses.  The file is guaranteed to have one of the following: one or more spaces between each email address or there is certainly a new line between the each email address.  Beyond that there can be one or two commas after the email address.  There could also be one or two semicolons after the email address. 

How Do You Install the Go Programming Language on an Ubuntu Linux Server?

Problem scenario
You want to use the Go programming language.  There are various directions online that involve downloading files and modifying configuration files.  You just want simple directions to install Go to an Ubuntu Linux server.  What do you do?

Solution
Run these two commands:
sudo apt-get -y update
sudo apt -y install golang-go