Using PowerShell Version 3, How Do You Determine If a Port Is Open for a given IP Address?

Problem scenario
You are using Windows 7 and PowerShell version 3.  You want to test if a port is open to a given IP address.  (If you are using a modern version of PowerShell, use the Test-NetConnection command.)   How do you find out if a port of an IP address is open or not?

Solution
Use the PowerShell function Test-TCPPortConnection written by Jonathan Medd.  

You Cannot Apply Security Updates to Ubuntu Due to Errors about vim. What Should You Do?

Problem scenario:  You are running Ubuntu 16.10. When you log in you see this message:
65 packages can be updates. 33 updates are security updates.
As root you run this: apt-get upgrade
However you get this ominous message:
“The following packages have unmet dependencies: vim: Depends: vim-common (= 2:7.4.1829-1ubuntu2.1 2:7.4.1829-1ubuntu2 is to be installed vim-runtime (= 2.7.4.1829-1ubuntu2.1) but 2:7.4.1829-1ubuntu2 is installed
vim-tiny : Depends vim-common (= 2:7.4.1829-1ubuntu2.1) but 2:7.4.1829-1ubuntu2 is installed”

You tried to install aptitude to address this problem,

How Do You Get a Script with Yum Commands That Rely on a Public Website to Work when you have No Access to the Internet?

Problem scenario
You have a Bash script that cannot be modified that runs yum commands.  The script runs on a RedHat distribution of Linux and uses URLs with SSL (e.g., https://continualintegration.com).  The script expects a yum repository to be set up at this URL.  This script must run without access to the Internet due to enterprise security policies.  What do you do if you are behind enough security to not need SSL to be set up properly (given that you have no Internet access) and need to get the script to work immediately?

Software Firewall and Anti-Virus Program

Looking for a downloadable anti-virus or anti-spyware solution on Amazon?  You will not find this on Amazon: The latest Lavasoft Ad-Aware Total Security is an all-in-one solution for Windows computers.  Ad-Aware Total Security has a great OS firewall and strong anti-spyware capabilities. Its virus database and scanning technology provides great all-around protection.  To learn more about this under-rated security solution for Windows computers or to buy it, click on this link.

How To Resolve “Certificate_Verify_Failed” error when trying an AWS CLI command?

Problem Scenario  You try to use an AWS CLI command, but you get an error.  The error says “[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:…)”

Possible solutions

#1  Redo the AWS configuration.  Issue this command: aws configure
Leave the AWS Access Key ID and the AWS Secret Access Key the way they are.  Look at the “Default region name.”  Verify there is no letter at the end. 

How Do You Troubleshoot a Puppet Manifest when The Errors and Logging Do Not Help You?

Updated on 6/8/20
This version is the unabridged version. For the abridged version, you may click here.

Problem scenario
A Puppet manifest is not working, but there are no obvious error messages.  When running the puppet agent command, you use the -d flag for debugging.  In your manifest, you use logoutput => true stanza.  But still, you cannot figure out why your manifest is not working.

What Should Be Done About the Discrepancies Between Local Group Policy Editor and the Registry Settings?

Question:  What Should Be Done About the Discrepancies Between Local Group Policy Editor and the Registry Settings?

Solution:  Nothing.  To open the Local Group Policy Editor in Windows Server 2012, either go to PowerShell and type “gpedit.msc” with no quotes. Or without PowerShell go to the Windows button on the desktop and go to the search field.  Search for “gpedit” with no quotes.  Click on the result (usually just one). 

How do you run Windows Malicious Software Removal Tool?

Problem scenario:  You go to the Start menu and type in the box “malicious” or “Windows Malicious Software Removal Tool” and no program shows up.  You go to “Programs and Features” in the “Control Panel” but you cannot find anything with the word “Malicious” in it.  How do you run Windows Malicious Software Removal Tool?

Solution from a command prompt:  Open a command prompt (hold the Windows button and tap “r”). 

How to Install Suricata on an AWS Instance of SUSE Linux

These “directions” to install Suricata on SUSE Linux include a script and how to run it.  The script was designed to install Suricata 3.1dev on an AWS instance of SUSE 12 SP1.  This script was based on these here. This script requires that your AWS SUSE Linux server is in a security group that has access to the Internet.  The script takes approximately five minutes to run.  But bandwidth and resources on your instance may vary.

How Do You Get All the Security Updates and OS Updates for Your Ubuntu Server to Be Applied?

Problem scenario
When you log into Ubuntu, you see a message like this:

8 packages can be updated.
5 updates are security updates.

You run this: sudo apt-get -y update

This completes.  But next time you log in, you see the same message about 8 packages can be updated.  What do you do?

Solution
Run this command:  sudo apt-get -y upgrade

If you are looking for deploying Hadoop to Ubuntu,