Category: Tips and Tricks

Add SMTP STARTTLS Support in Sendmail

Configure Sendmail email server to use SSL encryption for sending/receiving email. This is an example of using a CA certificate rather than a self-signed certificate.  This article assumes that the CA certificate is already in place and ready to go. Modify the /etc/mail/sendmail.mc file.  Find the section with similar variables that is commented out and copy this under it. At…

Read More »

Add Java JDK 8 Support to Confluence 5.6.1

Since the release of Atlassian Confluence 5.7, Java JDK 8 is officially supported. However, legacy versions of Confluence, in this particular case, version 5.6.1 is only officially supported through Java JDK 7.  From my reading only supported through Java JDK 7 Build 75. From java 7u767 and Java 8 onward, -Xloggc no longer accepts filenames with a “:” in it. …

Read More »

Create a logon banner in Linux

One file that may be edited is the /etc/motd file. To create a nice custom /etc/motd using ASCII / ANSI fonts, there is a little gem that can be installed on the local Linux box to allow you create some spectacular fonts, it is called figlet. Once you have added the epel repository to your system, it is as simple…

Read More »

How to Build the latest mod_jk RPM

mod_jk is an Apache module used to connect the Tomcat servlet container with web servers such as Apache. It has come increasingly difficult to find a an apache2-mod_jk-1.2.37-4.1.src.rpm or apache2-mod_jk-1.2.37-4.1.rpm as some of the links are now dead.  However, after tracking down a copy of the apache2-mod_jk-1.2.37-4.1.src.rpm, a modification or two to the .spec file along with the official .tar.gz…

Read More »

How to Build a Better haproxy RPM

There are several RPM builds of haproxy that can be found throughout the Internet.  There are GitHub repositories with customized .spec files to build your own RPM.  In fact, there is an haproxy.spec file that may be found in the official .tar.gz file under examples.  However, here is a unique way to build one as close to the original, haproxy-1.5.4-2.el6.rpm,…

Read More »

SSLPoke Revisited

SSLPoke tests against the truststore to determine if it contains the right certificates.  It will let you connect to a SSL service, send a byte of input, and prints the response.  The tool should be simple enough to use, however, over the years there have been modifications made to it that effected it’s ability to simply work.  In some cases,…

Read More »
MySQL

Change Forgotten root password in MySQL 5.7.10

After trying several iterations from multiple websites, a combined effort between them made it possible to change the root password to a MySQL install for MysQL 5.7.10 which has changed over the more recent versions.  Anyway, if you were unsuccessful using other approaches, maybe you found this because you didn’t give up.  Hopefully, it will work for you as it…

Read More »

ScreenFetch

ScreenFetch is a Bash Screenshot Information Tool, that generates terminal information and ASCII distribution logos.  After seeing it somewhere, I thought I would have to try it out.  I’m glad I did. There are several ways that this can be installed, here is one I elected to use. After ensuring that it runs, I updated the man page and added…

Read More »

Windows 10 post install clean-up

This may not be the opinion of many, but Microsoft Windows 10 is an attractive theme.  More compelling reasons to upgrade to it include critical updates and product support. That being said, having upgraded a computer or two to Microsoft Windows 10, I have noted that there are additional applications that I consider as bloatware.  Removing this bloatware through the…

Read More »

Manually update the Garmin nuvi 1100

For one reason or another a Garmin nuvi 1100 would not update. It kept rebooting itself repeatedly to where it would not be recognized by the computer long enough to perform the simplest of tasks. I tried the Garmin Express, Garmin WebUpdater, and the GarminMapUpdater for PC. With the Garmin WebUpdater, there was enough time to update the system from…

Read More »

Install and upgrade nginx on CentOS6

Nginx is a web server. It can act as a reverse proxy server, as well as a load balancer and an HTTP cache. There was a need for an nginx reverse proxy (RP), so found a set of instructions that worked. However, after implementing those instructions, and getting everything configured, it was a determined a newer version of Nginx was…

Read More »

Display Man pages in color

While learning about the creation of man pages, I came across something that I had not considered before, man page in color?  This can be done with a little installation of most. Using a CentOS 6 minimal install, most can be installed via yum. Add most to the environment. Check out the man pages in color. Source(s) https://www.cyberciti.biz/faq/unix-linux-color-man-pages-configuration/

Read More »

Msys2 a Cygwin alternative

Cygwin has served well over the years and still does; however, recently on a Microsoft Windows 10 computer, cygwin did not cooperate.  Removing all remnants and services related to cygwin and then reinstalling from scratch seemed to resolve any issue that I was encountering.  There was an issue that still remained that could not be fully resolved.  The issue, whenever…

Read More »

Linux: Running Processes Display UID instead of Username

Running the command ps to display a list of currently running processes may display a UID instead of the username. There is a reasonable explanation for that. An example command may look like this May return something like 501 28373 15080 0 … You may have expected a return like thisismyuser 28373 15080 0 … This behavior occurs because: Why…

Read More »

Group Permissions Look Good But Permission Denied

A situation existed where a user needed access to a CentOS 6 server to provide support for a specific application. This application is associated with a unique username to that application. For the sake of argument, an application xyz has a user xyz which automatically puts that user in a group of the same name, xyz. The additional user whom…

Read More »

Change GUI to NON-GUI mode in CentOS7

The preference for me is to work on a Linux box in a terminal.  However, recently encountered the need for GUI.  I happened to have a CentOS 7 install with GUI, but the default boot will boot into NON-GUI. GUI to CLI to GUI Commands # Check the current settings systemctl get-default # Change to GUI mode. systemctl set-default graphical.target…

Read More »