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

mysqldump

Basic Usage: mysqldump -u root -pSECRET –quote-names –databases  mydatabasename > mydatabasename.sql If find it best to include the –databases switch as this will add the ‘DROP DATABASE’ and ‘CREATE DATABASE’ [...]

Redirecting Mobile Web Users

There are a few potential methods for this, but the first worked fine for me.1. Apache Mod_Rewrite RewriteEngine On#redirect mobile browser using HTTP_ACCEPT headerRewriteCond %{HTTP_ACCEPT} “text/vnd.wap.wml|application/vnd.wap.xhtml+xml” [NC]RewriteCond %{HTTP_HOST} “!m.yourmobileurl.com” [NC]RewriteRule [...]

Anonymous Firefox and Vuze (Azureus) on Ubuntu

Great instructions for anonymising torrents on Ubuntu here.

Opera Mini on Ubuntu

I’m using Ubuntu 9.04 and I wanted to be able to run Opera Mini for testing web sites: Download MicroEmulator from here (or direct version 2.0.3) Extract the tar file [...]

Apache DirectoryMatch for Intranet-Style Access

I needed to ensure that within a rather large directory structure any directory named ‘intranet’ was only accessible by internal IP addresses. Although from a security perspective this is not [...]

Shutting Down Solaris 8

I was trying to shutdown an old solaris box with: shutdown now Obviously not the right thing to do as I got output similar to this: Shutdown started.    Mon Oct [...]

Apache DirectoryMatch for Intranet-Style Access

I needed to ensure that within a rather large directory structure any directory named ‘intranet’ was only accessible by internal IP addresses. Although from a security perspective this is not [...]

Install RealPlayer on Ubuntu (9.04)

I wanted to try out Real Player on a radio station stream so … Visit: http://www.real.com/linux Click the Deb download link and Open with the GDebi Package Installer as prompted. [...]

Easy Peasy on the eeepc

I decided to have a play installing Easy Peasy on the 7″ eeepc I borrowed from my sister.Setting it up was quite easy:1. Download the iso (at a whopping 800Mb)2. [...]

Shell Script: Search for Strings in Web Files

I used this shell script to search through some web directories for references to particular strings – just for future reference.The find command only greps in html, php and pdf [...]