Month: March 2016

How to escape double quotes in sed

A recent attempt to replace a string within double quotes “string value” while using sed resulted in much trial and error. A quick Internet search revealed a working answer.  It is here for my reference. I wanted to replace “this value” with “that one” in a file, we’ll call testfile.  According to multiple sources, the sed command allows the use…

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 »

Install VMware tools on CentOS

There is a great deal of material on this subject.  However, this guide is a simplistic one for my reference.  If anyone should find it useful, that would be great too. Here are the steps to install VMware tools on Linux CentOS 6 and Linux CentOS 7. CentOS 6: Install VMware tools From within the VMware  vSPhere Client: From within…

Read More »

RDP into CentOS 7 with XRDP

From the man page, xrdp is a remote desktop protocol (RDP) server. Unlike Windows, xrdp will not display a Windows desktop but an X window desktop to the user. To install on a CentOS 7 Linux box with a GUI installed, turns out to be quite simple. A prerequisite will be the EPEL repository. yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm Now that EPEL…

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 »

Monitor multiple logs simultaneously

One way to monitor multiple logs simultaneous is to use tail.  Although this works, and works well, if the logs are modified frequently, they seem to scroll endlessly and messily.  What is meant by messily. As a log file is modified, it takes precedence over the previous log as it updates the terminal. One way around this is with multitail….

Read More »

Real time Web Log analyzer using GoAccess

Scrolling through log files is unrealistic.  Using ‘awk’, ‘grep’, ‘sed’, and ‘cut’ to parse through them can be quite a chore – and still has it’s place for specific searches.  However, here is an interesting tool called GoAccess.  GoAccess is a real time web log analyzer tool. Running a CentOS 6, minimal installation, to install. To use, for example to…

Read More »