Compile smartmontools

#!/bin/bash

sudo apt-get update
sudo apt-get -y install build-essential

# download
wget http://heanet.dl.sourceforge.net/project/smartmontools/smartmontools/6.2/smartmontools-6.2.tar.gz -P /tmp/

# extract
tar xzf /tmp/smartmontools-*.tar.gz -C /tmp/
cd /tmp/smartmontools-*

# compile
./configure
make

# install
sudo make install
>

check smartctl version

smartctl -V

Old vesion

# Install required software
apt-get update
apt-get install -y subversion build-essential automake
 
# Get smartmontools from repository
svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools smartmontools
 
# Compile
cd smartmontools
./autogen.sh
./configure
make
make install

Links
http://sourceforge.net/apps/trac/smartmontools/wiki/Download
http://sourceforge.net/projects/smartmontools/files/smartmontools/
http://sourceforge.net/apps/trac/smartmontools/wiki/Download#Installprecompiledpackage