Author Archives: Carl

find and awk for httpd owned files (with count and average)

These are not very efficient (two sorts in one line for example) but for my needs work fine (improvements welcomed). Create a list of “filenames|size in bytes” of all httpd owned files sorted by reverse size: find "/path/to/examine/" -user httpd -type f -printf '%p|%s\n' | sort -t \| +1 -2 > httpd.usage.txt results: /path/to/examine/some/user/files/file0.jpg|99995 /path/to/examine/some/user/files/file7.jpg|99994 [...]
Posted in code snippets, geek, servers & tech | Leave a comment

Siemens Gigaset C475 handset <> handset transfer

There seems to be some problems transferring calls between Siemens Gigaset C467 handsets when on the same base station. It’s not a perfect fix but #3 does what we needed. There are three ways to try transfer inbound calls on the Gigaset C475 handset: 1) Doesn’t work for transfers to/from handsets on same basestation: options [...]
Posted in geek, servers & tech | Leave a comment

Configure sendmail with saslauthd for SMTP AUTH

Install: wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm rpm -Uv rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm yum install sendmail sendmail-cf cyrus-sasl-plain cd /etc/mail vi sendmail.mc change from: DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl change to: DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl add: define(`confAUTH_MECHANISMS’, `LOGIN PLAIN’)dnl add: TRUST_AUTH_MECH(`LOGIN PLAIN')dnl make sendmail.cf -C /etc/mail chkconfig sendmail on chkconfig saslauthd on /etc/init.d/sendmail start /etc/init.d/saslauthd start adduser someusername (the username to allow relay) passwd someusername (the username [...]
Posted in code snippets, geek, servers & tech | Leave a comment

roundcube add subject to smtp_log

vi program/steps/mail/func.inc change: if ($CONFIG['smtp_log']) { write_log('sendmail', sprintf("User %s [%s]; Message for %s; %s", $RCMAIL->user->get_username(), $_SERVER['REMOTE_ADDR'], $mailto, !empty($smtp_response) ? join('; ', $smtp_response) : '')); } to: if ($CONFIG['smtp_log']) { write_log('sendmail', sprintf("User %s [%s]; Message for %s; Subject: %s %s", $RCMAIL->user->get_username(), $_SERVER['REMOTE_ADDR'], $mailto, $headers['Subject'], !empty($smtp_response) ? join('; ', $smtp_response) : '')); }
Posted in code snippets | Leave a comment

Install Dell OpenManage 6.1 / omsa / omreport into Citrix XenServer dom0

UPDATE 17/06/2010: Please also see the comment from David below and blog post about Dells supplemental package for XenServer 5.6 which may be a better method. A quick guide to getting openmanage installed for RAID monitoring on a Xen node. OM 6.2 has an error with “Error: Missing Dependency: libxslt.so.1″ which is with the Dell [...]
Posted in geek, servers & tech | 4 Comments

Modifications to www.carlheaton.co.uk

I’ve been making a few modifications to *.carlheaton.co.uk like re-introducing the core Carl Heaton index page with a list of projects and other on-going ideas. I will still post tutorials/dumps here where appropriate for code, server and electronics related things, but I’ll be posting no further ‘random links’ on this Slog because it’s too much [...]
Posted in projects | Leave a comment

Converting 32bit RRD to 64bit RRD (moving cacti between architectures)

While migrating cacti over to a new virtual machine I got “ERROR: This RRD was created on another architecture” in /var/log/httpd/error_log when the crontab ran resulting in blank graphs.
Posted in code snippets, geek, servers & tech | 1 Comment

Management

A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon further and shouts to get directions, “Excuse me, can you tell me where I am?” The man below says: “Yes, you’re in a hot air balloon, hovering 30 feet above [...]
Posted in business, geek, servers & tech | Leave a comment

Mexican Fisherman

An American investment banker was at the pier of a small coastal Mexican village when a small boat with just one fisherman docked.  Inside the small boat were several large yellowfin tuna.  The American complimented the Mexican on the quality of his fish and asked how long it took to catch them. The Mexican replied, [...]
Posted in business | Leave a comment

Arduino network support sounder

This project needs properly documenting, but in short it’s a Diecimila with a network module a 6V buzzer and tri-colour LED connected to PWM which provides an audible and visible alert upon the receipt of specific new emails. I run Ubuntu and Evolution mail on a wireless laptop which has a filter configured to pipe [...]
Posted in geek, servers & tech | Tagged , | Leave a comment