To install the lm-sensors
package (which provides tools for monitoring hardware sensors, such as temperature and fan speed) on Ubuntu or Debian Linux, you can use the following steps:
lm-sensors
package:sudo apt-get update sudo apt-get install lm-sensors
This will install the lm-sensors
package and its dependencies.
sudo sensors-detect
This will scan your system for sensors and prompt you to enable support for each type of sensor. Follow the prompts to enable support for the sensors you want to use.
sensors
This will print the current readings of the sensors on your system, indicating that lm-sensors
is installed and working correctly.