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

Windows 7 ATI Mobility Radeon 1600

So my laptop graphics card is legacy! And on a Windows 7 install the graphics were poor – not sure whether to blame AMD or Microsoft because it was all [...]

BIND Convert Slave Raw Format

In Bind v9.9.0 the default option for zone file format on a slave is a raw binary format. For troubleshooting these can be converted back to text using named-compilezone. An [...]

ProFTPd CentOS 6: PAM unable to dlopen /lib64/security/pam_stack.so

Installed ProFTPd on CentOS 6 and found that users could not log in. The proftpd logs showed: USER jonny (Login failed): Incorrect password. The /var/log/secure log showed: proftpd: PAM unable [...]

WordPress Galleries

The quick way to add Galleries to WordPress is illustrated below: First create a new Page (with the Gallery page as a parent if necessary) Click the Upload/Insert icon above [...]

Web Screenshots with Xvfb and Khtml2Png2

To get that headless Linux server capturing screenshots of web pages we need: Xvfb e.g. apt-get install xvfb Khtml2png2 (and dependencies) After installation of the above the steps are below [...]

Beginning PostgreSQL

As a MySQL user for a number of years I needed a translation tutorial from MySQL to PostgreSQL. So to get started on CentOS: Installation yum install postgresql-server If you [...]

Crossover Cable

My first crossover cable. I used the following diagram from Tournas Dimitrios’ Blog: So the normal ends of the cable is wired as T-568B as shown above on the right. [...]

Image data does not exist. Please re-upload the image

I had this error message when uploading images in WordPress. Image dimensions were set to 0×0 and the thumbnails did not appear. A quick scan of the Apache logs PHP [...]

LAMP Performance

The following scripts can help in determining good values for Apache and MySQL configurations based on the amount of memory available: MySQL Tuner Apache Tuner Apache Buddy The following will [...]

Remove Line Breaks with tr

I had a text file with multiple lines of input that I was manipulating using awk and sed but I found the following ‘tr’ command easiest to remove the line [...]