How Do You Upgrade the Flavor of Your EC2 Instance with Only 15 Minutes of down Time?

Problem scenario
The needs for a server have changed.  You now want your AWS EC-2 virtual server to have more CPU and RAM, but you do not want to  migrate to a new instance.  You can only afford 15 minutes of down time.  What should you do to resize the server’s capacity  to have more processors and greater memory?

Solution
These basic steps will work if you want to downgrade your server too (to save money).

How Do You Install Jenkins 2.x on Debian Linux in Google Cloud Platform?

Problem scenarios
#1  You have a Debian server in GCP with roughly 0.592 GB of RAM.  You want to install Jenkins on it.  How do you do this?

OR

#2  You have a nano flavor of an EC2 instance running Ubuntu Linux (i.e., 0.5 GB of RAM).  You want to install Jenkins on it.  How do you install Jenkins 2.x on Ubuntu Linux in AWS?  (If you do not want to install a “apt-transport-https” package,

How Do You Get Jenkins 2.x Running on Linux to Do Code Deployments to Windows Servers?

Problem scenario
You are trying to set up a CI/CD pipeline in your heterogeneous enterprise server network.  You want to push down files (integrate code) from your Jenkins 2.x server running on Linux to your Windows 2016 Servers.  How do you get builds to be controlled by Jenkins on Linux to be deployed to other Windows servers?

Prerequisites
This solution assumes that Jenkins is running on Linux. 

How Do You SSH to a Windows Server or How Do You Install Cygwin on a Windows 2016 Server?

Problem scenario
You want to install Cygwin to allow for SSH connections (from Linux servers) to your Windows server.  How do you do this?

Solution
1.  If the server is new, skip step #1.

  a)  Log in and go to Control Panel -> System and Security -> System.  Click on “Advanced system settings” on the left.

  b)  Go to the Advanced tab and click on “Environment Variables…”

 

How Do You Install Terraform on any Type of Linux?

Problem scenario
You want to quickly install Terraform on any type of Linux.  How do you write a single script that will work on Debian/Ubuntu, CentOS/RedHat/Fedora, or Linux SUSE?

Solution
1.  Create a file called terra.sh in /tmp/ with the content below.

#!/bin/bash
# Written by www.continualintegration.com
# Updated in January of 2022

tfv=0.15.5 # Change this version as necessary

distro=$(cat /etc/*-release | grep NAME)

debflag=$(echo $distro | grep -i “ubuntu”)
if [ …

How Do You Keep a User from Logging off Unexpectedly?

Problem scenario
You have a Bash script that keeps logging out the user unexpectedly.  You have done research and nothing seems to work.  Your script does not use the reboot command.  Your script does use the exit command.

What do you do to keep the user from logging off while still using this script with the exit command?

Solution
This solution below is for one specific root cause. 

How Do You Set up an FTP Server on an RHEL Server Running in AWS?

Problem scenario
You want to use a Red Hat Enterprise Linux server to be an FTP server.  You have a RHEL instance in AWS.  How do you configure this server to serve as an FTP server?

Solution
1.  Run this command: sudo yum -y install vsftpd

2.  Run the commands below but replace contint with the username of your choice.  You will need to respond to a password prompt too.

How Do You Connect to an Amazon RDS Instance?

Problem scenario
You created an Amazon RDS instance that uses PostgreSQL.  How do you connect to it without using the AWS CLI or AWS API from a Windows workstation?

Solution

Prerequisites

  • Install HeidiSQL on your Windows machine.  (Toad or other SQL front-end applications can work too.)
  • You need a username and password for the PostgreSQL instance.  These are entered when you create the RDS instance. 

Reputations of Cryptocurrency Exchange Companies in the U.S.

Question
What ratings do U.S. based cryptocurrency exchange companies have with the Better Business Bureau?

Answer
Updated on 3/6/24.
Updated on 12/4/20.
Some bitcoin and altcoin enthusiasts are not interested in purchasing cryptocurrencies from non-American companies.  Some people argue that the Better Business Bureau is run by the businesses themselves, and thus protector of businesses.  Arbitrators want to be picked by the member businesses when a consumer raises a dispute;

How Do You Create an Amazon RDS Database Instance?

Problem scenario
You want to test out an Amazon RDS database instance.  (You want to use a database PaaS offering and VPC as opposed to EC-2.)  What do you do?

Solution
1.  Log into the AWS console.  
2.  Click “Launch a DB instance”
3.  Choose the database engine you want (e.g., PostgreSQL). Click “Next”.
4.  Click the option for “Dev/Test” and click “Next”.
5.