Featured image of post Tutorial for Installing the Sensors Module for System Temperature Monitoring on Linux

Tutorial for Installing the Sensors Module for System Temperature Monitoring on Linux

Installing the lm-sensors tool allows you to easily read sensor information and monitor hardware temperatures, including CPU and hard drive temperatures. Below are the general steps for installing lm-sensors on a Linux system...

Installing the lm-sensors tool makes it easy to read sensor information and monitor hardware temperatures, including those of the CPU and hard drive. Here are the general steps to install lm-sensors on a Linux system:

Tutorial for Installing the Sensors Module for System Temperature Monitoring on Linux

  1. Open the terminal (command line interface).
  2. Check if lm-sensors is already installed on your system by running the following command: sudo sensors-detect --version. If you see a message indicating that the sensors-detect command does not exist, it means lm-sensors is not installed on your system.
  3. Install lm-sensors using your package manager. Different Linux distributions use different package managers, so choose the appropriate command for your distribution:
    • For Debian or Ubuntu systems: sudo apt-get install lm-sensors
    • For CentOS or RHEL systems: sudo yum install lm_sensors
    • For Arch Linux systems: sudo pacman -S lm_sensors
  4. After installation is complete, run the following command to configure it: sudo sensors-detect. This command will scan your system and detect supported sensor devices.
  5. During the configuration process, you will be prompted with a series of questions. You can simply press the Enter key to accept the default settings or configure it according to your needs. Note: When asked β€œDo you want to add these lines automatically to /etc/modules? (yes/NO)”, select β€œyes” to ensure the sensor modules load automatically at system startup.
  6. Once configuration is complete, run the following command to update sensor information: sudo sensors-detect --auto.
  7. Now you can run the following command to view sensor information and temperatures: sensors. The output will display the actual temperatures of various sensor devices in your system.

Tutorial for Installing the Sensors Module for System Temperature Monitoring on Linux

With this, you have successfully installed lm-sensors and configured the sensors. You can run the sensors command anytime to check hardware temperatures. Please remember to run the relevant commands with administrative privileges (using sudo).

Licensed under CC BY-NC-SA 4.0