How To Install lm-sensors on a Ubuntu / Debian Linux

Fig.03: Install lm-sensors using apt-get

Fig.03: Install lm-sensors using apt-get

To install lm-sensors on a a Ubuntu or Debian Linux to monitor fan speed and cpu temp info, type:
$ sudo apt-get install lm-sensors
Sample outputs:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  fancontrol sensord read-edid i2c-tools
The following NEW packages will be installed:
  lm-sensors
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 84.6 kB of archives.
After this operation, 423 kB of additional disk space will be used.
Get:1 http://mirrors.service.networklayer.com/ubuntu/ trusty/universe lm-sensors amd64 1:3.3.4-2ubuntu1 [84.6 kB]
Fetched 84.6 kB in 0s (0 B/s)         
Selecting previously unselected package lm-sensors.
(Reading database ... 95040 files and directories currently installed.)
Preparing to unpack .../lm-sensors_1%3a3.3.4-2ubuntu1_amd64.deb ...
Unpacking lm-sensors (1:3.3.4-2ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up lm-sensors (1:3.3.4-2ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...

How to use to use lm-sensors on a Ubuntu or Debian?

Run the following command first time only and simply press ENTER to accept the defaults:
$ sudo sensors-detect
Simply run the following command to see CPU temp and fan speed and other data:
$ sensors
or
$ sensors | egrep -i --color 'core|fan|temp'
Outputs:

coretemp-isa-0000
Core 0:       +39.0°C  (crit = +100.0°C)
Core 1:       +39.0°C  (crit = +100.0°C)
fan1:        1328 RPM  (min =   -1 RPM)  ALARM
fan2:           0 RPM  (min =   -1 RPM)  ALARM
fan3:           0 RPM  (min =  329 RPM)  ALARM
temp1:        +58.0°C  (low  =  +0.0°C, high =  +0.0°C)  ALARM  sensor = thermal diode
temp2:        +58.0°C  (low  =  +0.0°C, high = +64.0°C)  sensor = thermal diode
temp3:        +49.0°C  (low  =  +0.0°C, high =  +0.0°C)  ALARM  sensor = thermistor

Sample outputs:

Examples and usage: Linux Read CPU Temperature Sensor Chip Data Including Voltage and Fan Speed With lm-sensors