Zero Filling a Disk in Linux

Posted 675 days ago | 1 Comments

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 with: sudo apt-get install pipebench then use: tr ‘\000′ ‘\377′ < /dev/zero | pipebench | sudo dd of=/dev/sd? Substitute the question mark for [...]

Continue Reading

Increasing CentOS LVM under VMWare

Posted 688 days ago | 7 Comments

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 following. Incidentally my disk is sda with the new partition create on the extra space as sda3. I first increased the disk using the vSphere [...]

Continue Reading

SquidGuard LDAP User Search and Special Characters

Posted 740 days ago | 2 Comments

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 %2c space %20 apostrophe %27 For example (entirely fictional organisation): src staff { ldapusersearch  ldap://dc.ads.domain.uk:3268/dc=ads,dc=domain,dc=uk?sAMAccountName?sub?(&(sAMAccountName=%s)(memberOf=cn=All%20Staff%2cOU=King%27s%20College%20Dublin%2cdc=ads%2cdc=domain%2cdc=uk)) }  

Continue Reading

Flushing local client DNS cache

Posted 855 days ago | 0 Comments

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

Continue Reading

Finding, Searching, Replacing & Deleting Strings in Files

Posted 883 days ago | 0 Comments

To find a text string within files in all sub-directories: find . -type f | xargs -r0 grep -F ‘dodgystring’ or find . -type f -exec grep -l “dodgystring” {} \; To replace a string within files in all sub-directories: find ./ -type f -exec sed -i ‘s#fromstring#tostring#’ {} \; From within vi replacing all [...]

Continue Reading

Business Value of Open Source Software – Mark Shuttleworth

Posted 945 days ago | 0 Comments

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 Council) Ronan Kirby (Red Hat) David Coallier (Open Source Programmer) Mark Shuttleworth (Canonical/Ubuntu) Simon Phipps provided the overview of software freedom(gratis vs libre) including the [...]

Continue Reading