# Install smokeping and sendmail (the latter is required to be present because of a smokeping bug)
sudo apt-get install smokeping sendmail
# Link in the smokeping apache config (apache2 was installed above as a req for smokeping)
cd /etc/apache2/conf-available
sudo ln -s ../../smokeping/apache2.conf smokeping.conf
# Enable the config and mod_cgi
sudo a2enconf smokeping
sudo a2enmod cgid
service apache2 restart