How Do You Install pqxx on an AWS Instance of Ubuntu?

Problem scenario
You try to compile a C++ program (i.e., a .cpp file).  You get this message:  “fatal error:  pqxx/pqxx: No such file or directory.”  You want to install pqxx on your Ubuntu server in AWS.  What do you do?

Solution
#1  Log into the server.  Run this command as root or with a sudo in front it:

add-apt-repository ppa:jtv/ppa 
#Press enter in response to the prompt from the command above.

 » Read more..

How Do You Combine Several PDF Files into One File for Free?

Problem scenario
You have several .pdf files.  You want to combine them into one file for free.  How do you do this?

Solution
Use PDF Combine.  You can download it here.

 » Read more..

How Do You Find the Version of Postgres without Running a SQL Command?

Problem scenario
To find the version of Postgres when you can enter the SQL database, you would run this SQL command with no quotes: “SELECT version();”

In this situation you cannot enter the Postgres database (and therefore can run no SQL commands).  You want to know more about the installation of Postgres to troubleshoot why you cannot enter it.  How do you find the version of Postgresql that is installed?

 » Read more..

How Do You Install Docker on an AWS Instance of Ubuntu?

Problem scenario
You want to install Docker on an AWS instance of Ubuntu.  But you do not know how.  How can you quickly do this?

Solution
Run these two commands:
sudo apt-get -y update
sudo apt -y install docker.io

An alternative set of directions is here.  For a variety of different directions for all different types of Linux,

 » Read more..

What Directory in the OS Are the .Repo Files in Linux SUSE?

Problem scenario
You are using Linux SUSE.  You want to configure a new repository for your Linux server to pull from.  You have a new .repo file drafted out.  Where should this file go?

Solution
/etc/zypp/repos.d/

 » Read more..

Using Ubuntu, How Do You Install a C++ Compiler and Run a Basic C++ Program?

Problem scenario
You want to install a C++ compiler in Ubuntu.  You want to write a basic C++ program and run it.  How do you do these things?

Solution
1. As root, install a C++ compiler with this command:

apt install g++

2. Create a basic program.  Here is an example.  Name this file hello.cpp and put this as the content:

#include <iostream>

 » Read more..

How Do You Deploy Docker to Ubuntu Linux Servers Using Puppet?

Problem scenario
You want to deploy Docker to Ubuntu Linux using Puppet.  How do you write a manifest to install Docker an Ubuntu server?

Solution
This solution demonstrates transferring a file with Puppet.  

1.  Install Puppet master on an Ubuntu Server.  See this link if you want directions.
2.  Install Puppet agent on a different Ubuntu server.  See this link if you want directions.

 » Read more..

How Do You Deploy Docker to RedHat Linux Servers Using Puppet?

Problem scenario
You want to use Puppet to deploy Docker to a RHEL server in AWS.  How do you do this?

Solution
Warning: This may not work for Puppet versions 5 or higher. It should work for Puppet version 4 or lower. This solution is not a best practice.  It is quick way to deploy a version of Docker made for CentOS to RHEL instances. 

 » Read more..

How Do You Install Puppet Master on a Linux SUSE Server (an AWS Instance)?

Problem scenario
You want to install Puppet Master on SUSE 12.x running in AWS.  You only have five minutes to complete this task.  How do you install Puppet Master immediately?

Solution
1.  Create this file: /etc/zypp/repos.d/puppet.repo

2.  The content of the above file should be the following:

How Do You Install a Kitchen or Bath Faucet Aerator When It Does Not Want to Screw On?

Problem scenario
When replacing an aerator to a kitchen or bathroom sink, you cannot easily install a new one.  What is the problem?

Possible solution #1
There is a gasket attached to the new aerator that needs to be removed.

Possible solution #2
The new aerator is a male aerator and you need a female aerator.

 » Read more..