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 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 ReadingIncreasing 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 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 ReadingSquidGuard 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 %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 ReadingFlushing 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
Continue ReadingFinding, Searching, Replacing & Deleting Strings in Files
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 ReadingBusiness 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 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
Recent Comments
Thanks - worked for me....
30 days agoyou can use partprobe command to eliminate the need for reboot....
51 days agoThanks alot for this simple and solid post....
56 days agoI'm using this company services (ssl2buy) since long and purchased man...
56 days ago