Archive for Linux

CentOS5 and PHP52 upgrade rpms

We encounter many scenarios where using the latest version of PHP is required. No great way, aside from downloading the PHP5 source and compiling, is available. That is, until you discover then IUS Community Project.

Read more

Upgrade Urchin5 from RHEL3 to RHEL5

Just a quick note about upgrading the operating system, or migrating your Urchin 5 installation from RedHat 3 -> RedHat 5 (or CentOS5).
You think you’ve done everything properly, and you probably did.  But you are getting some DNS resolution error messages like:

Read more

Installing IonCube in cPanel

To install IonCube loading in cPanel, run the following as root:
# /scripts/phpextensionmgr install IonCubeLoader
You can then check if ionCube was installed by running:
# php -v

Read more

Great security and auditing resource for your network

The Center for Internet Security  has a great list of security configuration and audit guidelines.
A great resource comprised of 40+ consensus Security Configuration Benchmarks for Operating Systems, Middleware, Software Applications and Network Devices.
The Benchmarks are:

Recommended technical control rules/values for hardening operating systems, middleware and software applications, and network devices;
Unique, because the recommendations are defined via [...]

Read more

Python password generator

Here is a simple few liner password generator written in compact python.

import string as s; from random import choice as c
x=10; print ”.join([c(s.letters + s.digits) for i in range(x)])

# python pw.py
Bz7DKuzqCL

Read more

Amazon EC2 benchmark – performance

“Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers”, according to to Amazon.
All EC2 instances are sold based on hourly usage and instance type.  Each instances type consists of a certain number of EC2 Compute Units [...]

Read more

CUPS Purging not-completed print jobs older than..

When working with CUPS using remote print queues, you may find that the remote printer is not always available, has timed out, ran out of paper, has a paper jam, etc. Sometimes this causes a job to ‘not-complete’ and when running ‘lpstat -o’, you see old print jobs.
We put together a quick script to auto-purge [...]

Read more

RHEL4 Kernel – PowerPath – OCFS2 upgrade procedure

We have been working on a project for a customer to upgrade the kernel, PowerPath, OCFS2 and other operating system patches.  The project was interesting as no single source of information existed on the appropriate process.
The procedure issue comes in because OCFS2 relies on seeing the disks which PowerPath presents.  PowerPath and OCFS2 are reliant [...]

Read more

Red Hat, Fedora openssh security compromise

Many of you may have already read the news, but for those of you that have not here is a recap. But first, let me state that we have tested all of our customer’s servers, and none have been compromised.
An email was sent to the fedora-announce mailing list, it started with, “Last week [...]

Read more

Extracting files from rpm and deb packages

We ran into an issue where an init script was missing and we needed to restore the file.  The backup (of course) did not include the file we needed.  We had to download the package, extract the contents, and move the init script back into place.  Below are the commands used:
DEB:
$ dpkg-deb -x <package.deb> /restore/dir
RPM:
$ [...]

Read more