OpenLDAP: Bootstrapping a minimal cn=config

Here is how to bootstrap OpenLDAP’s slapd with an absolutely minimal configuration, without needing an intermediate slapd.conf, with one feature — the local root user (uid=0/gid=0) has “manage” access.  From this point, ldapmodify can be used via ldapi to continue … Continue reading

read more

Need a quick proxy via SSH?

Need access to a web site, tucked behind a firewall?  Do you already have a public SSH server set up to allow access, but not sure how to tunnel your HTTP session?  It’s easy! ssh -N -D 127.0.0.1:8000 <user>@<ssh server … Continue reading

read more

When Linux Hangs or Completely Freezes

There’s a great post about using special keyboard combinations to unjam a frozen Linux box here. Also, the same information is available in Wikipedia.

read more

July 1 2012 Linux problems? High CPU/Load? Probably caused by the Leap Second!

(Update posted, see below) As posted in multiple places around the web: Debian /etc/init.d/ntp stop date `date +”%m%d%H%M%C%y.%S”` Red Hat /etc/init.d/ntpd stop date `date +”%m%d%H%M%C%y.%S”` Update: This first manifested itself for us in our Java stacks — all of our … Continue reading

read more

Build a PaaS using Open Source Software

Discussion about OpenShift.  OpenShift has been fully open-sourced, available on GitHub for local deployment, or directly usable as a hosted solution. Rule #1: IaaS != PaaS Virtual machines : Application is not necessarily 1:1 Rule #2: PaaS is not a silver … Continue reading

read more

KVM Technology Review and Roadmap Update

KVM is a relatively small piece of code, leveraging Linux for much functionality.  This makes KVM easy to secure and very flexible in meeting future needs. Leveraging Linux means that KVM automatically gains the power of Linux’s hardware support, memory … Continue reading

read more

Application High Availability in Virtual Environments

http://www.redhat.com/summit/sessions/index.html#394 Great discussion around Red Hat’s solutions for clustering, fencing, etc, in virtualized environments. Fencing is /very/ important for shared resources, especially disk.  In a virtualized world (RHEV, VMWare, etc), fencing tools can reach right into the hypervisor to kill … Continue reading

read more

Distributed File System Choices: Red Hat Storage, GFS2, & pNFS

Red Hat has several options for storage needs — GFS2, CIFS, (p)NFS, Gluster.  It’s all about right tool for the job. http://www.redhat.com/summit/sessions/index.html#103 RHEL Resilient Storage – GFS2 Shared storage, scales up to 100TB per instance, supports 2-16 nodes in the … Continue reading

read more

PHP Debugging: Displaying Error Message in HTML output

When debugging PHP code, it can be useful to display PHP errors within the output. Normally, PHP error messages are written to the Apache log. To have PHP errors in your browser output, you can use this command in your … Continue reading

read more

Starting Google Apps and GAM (Google Apps Manager)

GAM is a command-line tool for manipulating Google Apps accounts. It is written in Python, and uses Google’s gdata Python module. GAM is documented at http://code.google.com/p/google-apps-manager/. The gdata Python module is documented at http://code.google.com/p/gdata-python-client/. Installing GAM When you install GAM, … Continue reading

read more