To install the lm-sensors
package on Ubuntu or Debian, you can use the following steps:
- Open a terminal window.
- Update the package list by running the following command:
sudo apt-get update
- Install the
lm-sensors
package by running the following command:sudo apt-get install lm-sensors
- Once the installation is complete, run the following command to detect and configure the sensors on your system:
sudo sensors-detect
This command will run a series of tests to determine which sensors are present on your system, and it will automatically configure them for use with the lm-sensors
package.
- After the configuration is complete, you can use the
sensors
command to view information about the sensors on your system. For example:sensors
This will display the current temperature readings for all detected sensors, along with information about fan speeds and voltage readings, if available.
Note: The sensors-detect
command may prompt you with several questions during the configuration process. It is recommended to accept the default settings by pressing.