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

Test SMTP with Telnet

Useful for finding problems with new installations. telnet examplemailserver.com 25. Key in “EHLO examplemailserver.com” and press enter. Key in “MAIL FROM: sender@mydomain.com” and press enter. Key in “RCPT TO: recipient@examplemailserver.com” [...]

Slow SSH Logins

On a new CentOS 5.1 install there was a dleay while logging in via SSH. Using the -v option i.e. # ssh -v jonny@servername gave more verbose output with the [...]

MySQL Logging Notes

Enabling some extra logging options on MySQL is useful for temporary close analysis of what is actually going on with your server and applications. Logging Slow Queries To switch on [...]

SSH Tunneling with a MySQL Example

SSH tunnelling can be used to secure communications of non-secure protocols between two computers. For the purposes of this example I have a server running MySQL which I will call [...]

Apache Proxy Pass on Ubuntu

The Apache module mod_proxy can be used to 'reverse proxy' requests through an Apache server to another server. This is most useful when proxying requests to a server behind a [...]

MySQL Collation and Character Set

Importing databases from MySQL 3.2 to MySQL 5 – When I create a database using Plesk it creates it as utf8 (Character Set) and utf8_general_ci(Collation) but when I create a [...]

Apache MaxRequestsPerChild 10000

We found that Apache 1.3 was periodically using up all the memory and swap space on a machine and stumbling on the post below we decided to reduce MaxRequestsPerChild from [...]

Plesk Horde Issues with Sending Mail

For future reference …Had a few issues related to Horde sending mail. Although it appeared as though the mails were sent there was an issue with Horde using Sendmail.One proposed [...]

PHP LDAP Search Root of Active Directory

Using PHP to query Active Directory resulted in a few problems e.g. Warning: ldap_search() [function.ldap-search]: Search: Can’t contact LDAP server in … ldap_search(): Search: Operations errorWarning: ldap_search() [function.ldap-search]: Search: Partial [...]

Prettifying Nagios

The default installation of Nagios is pretty ugly but can be tarted up with the Nuvola icons and some stylesheets from the following page:http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1723.html;d=1 Scroll down the page to the [...]