Month: January 2014

Linux: A Homemade script to monitor your websites

It was discovered days later that one of my websites was offline displaying only 500 error messages. As it turned out, it was as a result of the .htaccess files. The .htaccess files did not include <IfModule XXXXX> </IfModule> around the directives. Tracking down the offending lines, it was determined that the lines were all part of the mod_headers.c module….

Read More »

A Quick Guide to VNC Server on CentOS 6

After searching through several guides, all complete in one way or another, however, not complete enough, I put the pieces together into this guide. This particular configuration is a basic VNC server with two users. After creating the second user, the process can be repeated for additional users. Install the VNC Server Edit the /etc/sysconfig/vncservers file. Note that on the…

Read More »

Windows XP: Blue Screen After Installing SP3

On a relatively fresh installation of Windows XP with SP2 on a Compaq Presqrio desktop running an AMD processor, Windows XP SP3 was applied. After an apparently successful installation, upon reboot, at the Windows XP logo, the system quickly flashed a blue screen of death and rebooted. Fortunately, I was able to login to the computer in safe mode to…

Read More »

Convert a CentOS 6 install to a Scientific Linux 6 install

CentOS, Scientific Linux (“SL”), and Oracle Linux are all based on the Red Hat Enterprise Linux (“RHEL”) code base. Though there are differences between them, the similarities are more than not. For whatever the reason, there are documented processes that permit the conversion from one of the aforementioned Linux distros to another. This conversion will document another approach based on…

Read More »

RPM –import vs GPG –import

GPG keys are stored in the /etc/pki/rpm-gpg directory, as part of the CentOS 6/RHEL 6 install. Looking though the contents of this directory, files like RPM-GPG-KEY-CentOS-release exist. To actually use the key to verify packages, it must be imported. The following command provides the contents of /etc/pki/rpm-gpg There are two seemingly independent methods to import the keys: one using gpg,…

Read More »

Embed an Image Into A Shell Script

Instead of having to distribute an image file with a shell script that called for the file, an idea came to mind to embed the image into the shell script. Although one way was found, I devised an alternate simpler method to distribute the image file embedded in the script. The first method uses four lines of code. This method…

Read More »

Vsftpd FTP Server With Virtual Users ( MySQL + PAM )

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 yet another way to setup a vsftpd server using PAM…

Read More »