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
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 (126.96.36.199-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 | egrep -i --color 'core|fan|temp'
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