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

Extracting ISO files

Needing to extract the contents of a CentOS iso file so that it could be used to http / kickstart installs: mkdir tmp_mntmkdir ./5.3mount -o loop ./CentOS-5.3-x86_64-bin-DVD.iso ./tmp_mntcp -R ./tmp_mnt/* [...]

Grepping MailboxFolderStatistics

I am trying to get the the mailbox folder sizes for a user with many folders. Wouldn’t it be great if I could just: get-mailboxfolderstatistics USER | grep “foldernamepattern” | [...]

Items Stuck in OWA Outbox

We had an Exchange user with message items appearing in her OWA outbox but which did not display in Outlook. Attempts to delete these items failed and the items kept [...]

Exchange server address list service failed to respond

Attempting to move a mailbox from one database to another and received the following error: The address list service on the server ‘SERVERNAME’ is not running. The Exchange server address [...]

Linux Web Filtering with OpenDNS and a Dynamic IP Address

Motivation Parental Control / Protecting my kids from some of the nastier stuff on the web is my motivation. On M$ Windows there are commercial offerings such as NetNanny. On [...]

echo with new lines

For future reference: echo “This does not give \n a new line” does not work. I had used printf sometimes but the -e switch also works for echo: echo -e [...]

Gimp and Layer Styles

Great guide here about using photoshop plug-ins in gimp, installing Layer Styles plug-in (Drop Shadows, Glows etc) in gimp and more.

Shell Script Spaces in Filenames

I was using a for loop to read the filenames in a directory but received errors on files with spaces in the names. For future reference the following worked: #!/bin/bashls [...]

htaccess symlink problem

I doubt this will be of any help to anyone else but for future reference.Problem:A content management system writes the URLs in <a> tags with a path e.g.: /sites/mysite/AboutUs but [...]

PhotoRec Easy Linux File Recovery

I was copying some photos from my wife’s Fuji camera when the photos disappeared from view – obviously not something I caused!Anyway after the initial panic I found PhotoRec which [...]