Linux Logo

Linux server with incorrect date [FIXED]

Every now and again, a server may lose its date and time. One pesky server is continuously using the incorrect date and time. If there was only a way to change the system date. There is, and the easiest way to correct this is by using a simple little command called – date. There are a couple of ways to…

Read More »

How to uninstall Java for LInux

If the native Java for Linux has been installed and the goal is to remove it from the system and install the Oracle Java JDK. Here are the steps to do just that. This is here for reference, I have not fully tested this, in that the installation I was verifying did not have JRE as indicated in the original…

Read More »

How to mount a Windows share from Linux

To access a Microsoft Windows share from a CentOS Linux server there are a few commands that worked for this configuration: Microsoft Windows Server 2003 and CentOS 5.8. This is a quick and dirty guide assumes that a Windows share already exists and uses root. In a production environment, an alternate user would be more appropriate. From the Linux server….

Read More »

Use forefiles.exe and 7zip to archive files older than X number of days

On a Microsoft Windows server, there is a folder that contains 1000s of logfiles. Each logfile varies by name and size. I wanted a script that would compress all logfiles into a single zip file that were older than seven days. After the compression is completed and the zip file is created, all logs older than seven days will be…

Read More »

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 »

Hack the Nook Color

There are many different approaches to hacking the Nook Color, some are quite elaborate, some only detailing Linux or Windows procedures from one degree to another. This approach, from what I have read, should not void the warranty of the product. It will allow for either booting into the the original Nook or booting into the Android OS. This is…

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 »

Webtrends Report Exporter fails on Windows 7.

Where once things had worked, a user had upgraded from a Microsoft Windows XP to Microsoft Windows 7 operating system. In doing so, the Webtrends Report Exporter that was prepackaged with a slightly older version of Webtrends failed to install. Once the installation issues seemed to iron out after much trial and error with permissions and with running as administrator…

Read More »

Windows command for file size only

I needed a list of files from a folder with only filesize. The first choice of commands was the DIR command, however, there is no command line switch or combination that will allow for this type of output. I didn’t want to have to install any third party application or Microsoft extras to get the desired result. Since, I am…

Read More »

How to synchronize the time with Windows Time service in Windows

Recently discovered that some servers were not reporting the correct time. I originally decided to use a freeware utility called tSync, an Internet and network time synchronization utility. While this little utility works great, I wanted something a little cleaner. Microsoft offers a couple of ways to resync the times. How to synchronize the time on a member computer in…

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 »

Delete Files That Are Older Than X Days in Windows

There was a need to delete log files that were older than a certain date from a folder on a Microsoft Windows based computer. This proved to be a difficult task to develop the proper command line that would accomplish this task. However there is a native Microsoft Windows command that does provide the necessary tools to delete files that…

Read More »