Archive for the ‘Linux’ Category

I hate vi. (aka Changing your default crontab editor)

Wednesday, May 7th, 2008
No Gravatar

I’m trekking into the unknown - CentOS, but thats off topic. For some reason, even the latest version stuck in 1982 - vi as the default editor for cron etc. Argh! I hate vi!

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Find text within files

Thursday, May 1st, 2008
No Gravatar

Stuck trying to find text within files on Linux?

cd /directory_tree_you_want_to_search
find . -type f -exec grep -l "string to find" {} \; -print

Easy!

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


.htaccess redirect based on requested domain

Monday, April 28th, 2008
No Gravatar

Imagine you have a selection of domain names that point to the same site, are some of those domains specific to certain areas of your site?

Here’s how I redirect a domain name to a specific area on a site

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?cubecartexperts\.co.uk
Rewriterule ^(.*)$ http://www.i9000networks.com/landing-page/cubecart-experts/ [L]

You’ll also need the domain set in your virtualhost config like this

ServerName www.i9000networks.com
ServerAlias www.cubecartexperts.co.uk
ServerAlias cubecartexperts.co.uk

It is a much more helpful way of helping your users navigate your site.

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Using rsync to maintain backups on Linux

Tuesday, April 22nd, 2008
No Gravatar

Following on from my previous article, regarding Setting up and using NFS on Ubuntu, here’s how I keep backups for quite a few clients.

On a particular site I maintain a single backup server that several clients backup to on a nightly basis.
(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Redirecting WordPress index.php to root

Sunday, April 20th, 2008
No Gravatar

If you check the Page Rank of http://bloke.org against http://bloke.org/index.php, which are both, to a human, obviously the same page you’ll see two different results. My domain carries a PR3 whilst the latter carries a PR0.

We know they are both the same, but do the crawlers? No, they don’t. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Setting up and using NFS on Ubuntu

Thursday, April 10th, 2008
No Gravatar

Network File System, NFS, has been around since Noah first networked his ark.

Setting up and using NFS on Ubuntu is surprisingly easy. i9000 Networks needed a slightly revised backup solution in one of it’s sites.

Obviously you’ll need two or more servers. One I’ll refer to as the server which will host the backups and the second/subsequent servers, which are the clients, ie. the live servers that need backing up.

Here’s how I did it.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Auto Updating GeoIP Binary Databases

Monday, January 14th, 2008
No Gravatar

Here’s how I keep on top of updating the GeoIP binary databases used by various scripts and applications I use.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Installing VMware Server & MUI on Ubuntu 7.10

Thursday, November 15th, 2007
No Gravatar

Installing VMware on Ubuntu 7.10 isn’t as easy as Ubuntu usually makes things out to be. None the less, my handy how to will sort you out. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


FuzzyOCR inspired PDF scanning for SpamAssassin

Tuesday, October 16th, 2007
No Gravatar

I’ve just stumbled over a PDF scanning engine for SpamAssassin. In light of the recent PDF spam making it’s way round the internet I figured I’d give it a try.

This plug in scans the PDF pdf body and embedded images. Great, huh?

Here’s how I did it. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


FuzzyOCR for SpamAssassin on Ubuntu

Wednesday, October 10th, 2007
No Gravatar

FuzzyOCR is a plugin for SpamAssassin that analyzes the content and properties of images to distinguish between normal mail and spam.

I’ve been running it on some mail servers for a few months now and I’m very happy with the results. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo