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

autofs mounting WIndows Shares on CentOS 5

Create a directory for the mountpoint: mkdir /mnt/mywinserver Temporarily mount: mount -t cifs //1.2.3.4/LogFiles /mnt/mywinserver -o username=jonny,password=letmein For a more permanent mount  edit /etc/auto.master file add a line like: /mnt/mywinserver [...]

Ubuntu ATI Graphics Driver

I had a few difficulties with playing video on Ubuntu with false/inverted colours so the reds were blue, and also so jitters in the video play.I followed the instructions here: [...]

Netstat Number of Connections

Useful for monitoring DoS  attacks: netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

cPanel and mod_security

cPanel allows for adding some apache and PHP modules using the web interface (and a script they call easyapache). This can be found under Software > Apache UpdateAfter installing mod_security [...]

Using Several Servers with phpMyAdmin

To use the same phpMyAdmin installation to service several MySQL servers edit the config.inc.php file and add the following lines – don't forget the $i++ line: $i++;$cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['host'] [...]