Category: Linux

Install Java JDK on CentOS without prompts using an automated script!

If you have ever installed Java Development Kit (“JDK”) on a Red Hat Enterprise Linux (“RHEL”) 5.x or CentOS 5.x operating system (“OS”), then you are aware of how manual the installation can be. Prompt after prompt to install. After a lot of research and testing, here is a completely automated script to install JDK on a CentOS or RHEL…

Read More »

Map a drive or access a CentOS Samba Share from Windows

The goal is to create a network share on a Linux server using Samba that will be available to a Windows workstation with the ability to map a drive to that Linux share. There are many, many articles with a procedure, most are dated and incomplete, however, here is a procedure that worked for this test using CentOS 5.7 and…

Read More »

Change a Linux Network Configuration from DHCP to Static IP Address

If you CentOS network configuration is set at DHCP and you want to change your network configuration to a static IP address, then read on. The network configuration settings are generatlly found and edited in two places. Edit the /etc/sysconfig/network-scripts/ifcfg-eth0 to resemble the following (replace the network addresses with your own). Edit the /etc/sysconfig/network to resemble the following (replace the…

Read More »

Icinga – How to add the check_yum plugin

Icinga, an open source monitoring tool, monitors networks and its resource, can send notifications, and generate reports. Icinga is scalable and can monitor small to large network environments. Icinga is a fork of Nagios and is backward compatible. Nagios configurations, plugins and addons can be used with Icinga. Icinga has retained the existing features of Nagios, however, is actively maintained…

Read More »

Install and Run Beyond Compare 3 on Linux

Scooter Software has a fantastic program called Beyond Compare. It is available in both Windows and Linux. Having used this in Windows, I wanted to give it a shot in Linux. All the instructions are available on the vendor’s website; however, after reading through them, here is a simplified set of instructions. This was a fresh install of CentOS 5.7…

Read More »
Linux Logo

Command to Check if Linux is Running in VMware or not

Only having terminal access to a server running CentOS 5.7, I had to determine if the server was actually a physical or virtual machine. There are a few methods to do this, however, here are a couple of the easier methods. Vendor: VMware Model: Virtual disk Rev: 1.0 Vendor: VMware Model: Virtual disk Rev: 1.0 Vendor: VMware Model: Virtual disk…

Read More »

Linux: RedHat / CentOS Command to Check Version

To check for the version that CentOS and RedHat Enterprise Linux (“RHEL”) there are a couple of commands that are useful and will provide the desired results. CentOS release 5.7 (Final) CentOS release 5.7 (Final) Release: CentOS release 5.7 (Final) If lsb_release is not available then use yum install to install it. yum install redhat-lsb CentOS release 5.7 (Final) Kernel…

Read More »

Useful Tools that May Help Determine and Fix Hacked WordPress Installations

For one reason or another, your WordPress site may get hacked. Code may be attached to various files throughout the site that could do a wide range of things including site redirection. There are many different types of hacks, however, there are several tools and commands that may prove useful for remediation. If these tools do not re-mediate, then these…

Read More »

Google Books Downloader versus Pysheng to Download Google Books

Google Books Downloader is a little software that allows Google Books to be saved in PDF or JPEG format. It is a Windows based utility that will allow the downloading of a single book as a PDF, JPG or PNG in one of many resolutions ranging from 350px to 1280px. The default is 800px. The utility is a very effective…

Read More »

Automated Scripted Install of WordPress on CentOS/RHEL Linux

Many WordPress users have enjoyed WordPress using an Internet host provider or on an XAMPP installation on a Windows installation. This exercise is a combination of several guides with some personal tweaks to install WordPress 3.5.1 on a fresh install of of CentOS 5/6 or Red Hat Enterprise Linux (RHEL) 5/6 using PHP 5.2.4+. Install Packages Using yum install MySQL,…

Read More »

Linux: Count the number of processes running.

There was a need to determine the number of processes that was running on a Linux installation, specifically CentOS 5.6. I can’t find the source of this again, however, did use Google to find this information. Anyway, here is the command line needed. This command returned the desired results. The result will be a number, the number of processes that…

Read More »

Upgrade Java JDK on CentOS RHEL 5.5

This guide will detail the upgrade of the Java Development Kit (JDK) on a Red Hat Enterprise Linux (RHEL) 5.54 and CentOS 5.5 operating system. This example is accomplished through the use of PuTTY and XMing. In our example the following guide was used to install the original JAVA JDK. Install Java and Set Environment Variables Download JDK6 Note: The…

Read More »

Apache Logs Fail to Logrotate – RESOLVED

A server running Red Hat Enterprise Linux (RHEL) 5.5 after a period of time of successful log rotation, failed to logrotate the Apache logs. The Apache logs grew into the GBs. There didn’t seem to be any apparent or logical reason for this behavior, as the log rotation scripts were identical to other comparable servers. However, a command to debug…

Read More »

SARDU, the Antivirus Rescue Disk Utility

When it comes to the removal of a virus, Trojan, pest, or some other malicious application, it has been my practice to isolate the problem by removing it from the equation. What is meant by that is that there are cases where the system is inoperable or where several applications have been hijacked like Task Manager, Registry Editor, and other…

Read More »

Linux: Recursively Unzip All Files Into Their Existing Directory

A backup of every file in every sub-directory created zipped archives of each individual file. This was not the intended result. To resolve this each file must be restored to it’s original location and remove the created archive. Research directed me into a couple of different routes, that didn’t really work for me or produce the desired result. Here is…

Read More »

Automatic JBoss log compression using Linux

JBoss logs can take up gigabytes of space. The log rotation works well, however, there is no (not that I could find) means to compress in real-time. However, with a little work, this may be accomplished with a cron job. I am not going to go into too much detail or background, there are many sites that do this well….

Read More »

Linux: How to find a directory size?

Using Red Hat Enterprise Linux 5.x (“RHEL”) and / or CentOS 5.x, I wanted to know the size of the existing folder. There is a utility that will summarize disk usage for each file, recursively for directories. It is called du. As it turns out, this utility is also applicable for other distributions of Linux including Ubuntu. This command line…

Read More »