hddtemp is a utility to read the temperature of hard disk. It only works if the hard disk has a temperature sensor. hddtemp will read Self-Monitoring Analysis and Reporting Technology (S.M.A.R.T) information on your hard disk. hddtemp can work as simple command line tool or as a daemon.
Before you start the installation process, make sure that you are connected to the internet.
Open your Ubuntu Terminal (Applications > Accessories > Terminal), and type ‘sudo apt-get install hddtemp‘.