Category: Scripts

Zabbix: Python3 script to export all Templates to individual XML files

By default, Zabbix permits the export of all templates, but what if I wanted to download all the templates as individual XML files. Someone wrote a fantastic python script to export all Zabbix templates to individual XML files, seven years before I needed to use it. A lot has changed in seven years. Zabbix versions to Python versions. This script…

Read More »

Git Clone Fails

Git clone fails with fatal unexpected and invalid messages. The git repository is over 1GB and there is a work-a-round that made it possible to finally clone the repository successfully. Error Suggestions Some sites suggested using SSH clone rather than http. That wasn’t an option. Another suggesting using git debugging to diagnose the problem. This wasn’t very helpful. Resolution Execute…

Read More »

Automated Scripted Install of WordPress on CentOS8/RHEL8 Linux

I have written a couple of installation scripts to install WordPress throughout the years.  This is the latest in that series to install WordPress 5 on a minimal install of CentOS8. Among the differences between this script and previous ones, is that this will be installed in it’s own directory /wordpress rather than /. Basically, write the script as seen below,…

Read More »

Create an Ansible script for DISA STIG and execute it in CentOS 7

Securing a CentOS 7 install doesn’t have to be tough.  Code already exists, we just have to find it and execute it. Prerequisites yum install openscap scap-security-guide -y Verification The version of the scap-security-guide that was tested is 0.1.40. Version 0.1.43 has removed the DISA STIG from the CentOS guide ssg-centos7-ds.xml; however, there is a work-a-round. Article coming soon. scap-security-guide.noarch…

Read More »

Ansible TRANSFORM_INVALID_GROUP_CHARS settings warning [resolution]

I have an ansible playbook that has worked for months.  It still works but, now has a DEPRECATION WARNING that looks ominous along with a python error. Problem BECOME password[defaults to SSH password]: [DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable on deprecation. This…

Read More »

NFL Pick ‘Em buildSchedule.php for any season

I have been playing around with the buildSchedule.php component of NFL PHP Pick ‘Em as this is the component that makes it all possible to generate tables needed to create the SQL script to import into the new season.  My previous post on this subject required a spreadsheet, which never really was necessary.  Even though the output filename contains a…

Read More »

NFL Pick ‘Em for 2019 Season

NFL PHP Pick ‘Em is a free php web app that allows you to host a weekly NFL pick ’em football pool on your website.  This fantastic tool replaced the use of spreadsheets.  There was a time that this tool was not supported.  However, I just checked out the www.phpickem.org website it is is updated for 2019. I wish I…

Read More »
VMWare Logo

VMware Expand Hard Drive Size and Extend in CentOS 7 Linux

One approach to adding space to an existing Linux hard drive that is using Linux LVM is to add space to the drive. This can easily be accomplished in VMware. This has been tested using VMware vSphere Client for Windows with CentOS 7.5 (minimal install). To demonstrate a before and after, here are a few commands that can be used…

Read More »

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 »

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 »

Using shc to compile a shell script

Not being a programmer, I do write a descent shell script from time to time.  In the Microsoft world, there are all sorts of script compilers that will compile a batch, visual basic, or any number of other scripts into an executable.  A benefit of an executable could be the files portability or even an attempt to obfuscate the code. …

Read More »

Windows Vista Default Folder Template Patch (AutoIT Script)

In 2008,I put together several solutions to prevent Windows Vista from automatically selecting a default view, which was generally inconsistent with the folder content. The purpose of this article is to take the first solution of that article that was found on vistax64.com and create a nice little utility using AutoIT. It hasn’t been fully burned in but there may…

Read More »

Vsftpd FTP Server With Virtual Users (CentOS 7)

vsftpd (“Very Secure FTP Daemon”) is an FTP server for Linux and supports PAM (“pluggable authentication modules”). A virtual user cannot login to the Linux system and is considered more secure than using a “real” user whom can login to a Linux system. This guide offers a script that demonstrates one way to setup a vsftpd server using PAM with…

Read More »
drupal

Automated Scripted Install for Drupal on CentOS7/RHEL7 Linux

To get an instance of Drupal running on a fresh and minimal install of CentOS7/RHEL7 is the goal. Here is an automated scripted install for Drupal on CentOS7/RHEL7 Linux. It is not all inclusive. It doesn’t take into accounts a MariaDB password or MariaDB hardening. Just a quick script to get things running rather quickly, preferably on a development environment….

Read More »
drupal

Automated Scripted Install for Drupal on CentOS6/RHEL6 Linux

Every now and again, you get the urge to try something new. Drupal is the project for today. The goal is to create an automated script to install Drupal on a fresh and minimal install of CentOS 6. Here is an automated scripted install for Drupal and drush, a command line supplement, on CentOS6/RHEL6 Linux. The script is not all…

Read More »

Automated Scripted Install of WordPress on CentOS7/RHEL7 Linux

Sometime ago, I wrote an automated script to install WordPress on a CentOS 5 install of Linux. Over the years, the repos and WordPress requirements changed as did CentOS upgrades through CentOS 6. The script was modified accordingly. The script had to be modified considerably for CentOS 7 which facilitates the need for a new article. Here is an automated…

Read More »