Zero Filling a Disk in Linux

Zero Filling a Disk in Linux

The simple way to wipe or zerofill a disk is: dd if=/dev/zero of=/dev/sd? bs=1M However I found an article describing how to zero-fill with a progress indicator using pipebench, installed on Debian/Ubuntu ...

Increasing CentOS LVM under VMWare

Increasing CentOS LVM under VMWare

Background: I had an existing CentOS machine as a virtual machine running on VMWare ESX Server and it was running out of space so for future reference I did the ...

SquidGuard LDAP User Search and Special Characters

SquidGuard LDAP User Search and Special Characters

So I had a problem with the ldapusersearch string as some eejit has created an OU with spaces and an apostrophe in the name. So the characters are represented as: comma ...

Flushing local client DNS cache

Flushing local client DNS cache

From info I found here. This is how to flush the local client DNS cache. Windows: ipconfig /flushdns Linux: sudo /etc/init.d/networking restart Mac: lookupd -flushcache

Browsing all articles from February, 2011

Dansguardian Randomise Rules

If you plan to use URLBlacklist.com or Shalla rules in Dansguardian you may suffer from very slow (or impossible) restarts of the daemon. Dansguardian prefers the rules randomized rather than [...]

Screen – Watching 2 log files at once

I needed to tail two log files in one terminal so on the server I was using: yum install screen  [or apt-get install screen]screenCtrl-A  c        [create new session]Ctrl-A Shift-s [spilt [...]

Building an RPM Package (DansGuardian 2.10)

After putting together an RPM for DansGuardian v2.10.1.1 I thought I would make a few notes. The version of DansGuardian in the repositories is currently version 2.8 and the only [...]

Business Value of Open Source Software – Mark Shuttleworth

I was at the Enterprise Ireland ‘The Business Value of Open Source Software’ event yesterday. The speakers included: Simon Phipps (Open Source Initiative) Tim Willoughby and Tom Mackey (Limerick City [...]

Text mangling with Grep, Sed and Awk

Just an example for future reference of text mangling on unix/linux making use of sed, awk, and grep on a CSV/text file containing names, email addresses etc delimited with a [...]

PHP Reporting Errors

To get PHP error reporting for a file or web application use one of the following methods:1. Add the following to the PHP code in the file: error_reporting(E_ALL);ini_set(‘display_errors’, ’1′); 2. [...]

Firefox Windows 7 and Linux proxy.pac

Had a problem today with Firefox on Windows 7 and Firefox on Linux. Upon reading our proxy.pac (wpad) file the if statements were not working: if(isInNet(myIpAddress(), “123.111.123.0″,”255.255.254.0″)) According to this [...]