Enabling SMART monitoring for your harddrives

Install: sudo apt-get install smartmontools

List SMART status, whether enabled:
sudo smartctl -i /dev/sda (change drive device here)

Run test for a drive:
smartctl -t long /dev/sda

You can view a drive’s test statistics by typing:
smartctl -l selftest /dev/sda

To display detailed SMART information for an IDE drive, type:
sudo smartctl -a /dev/hda

To display detailed SMART information for a SATA drive, type:
sudo smartctl -a -d ata /dev/sda

Securing a directory on Apache with Digest Authentication

<Directory>
       Options FollowSymLinks
       AllowOverride None
       #authentification
       AuthType Digest
       AuthName "munin"
       AuthDigestFile /var/www/munin/.htpasswd
       #people using apache 2.2 will use instead:
       #AuthUserFile  /var/www/munin/.htpasswd
       require valid-user
</Directory>

sudo htdigest -c /var/www/dirname/.htpasswd realmname username