Setting up lm sensors: Difference between revisions
No edit summary |
m (minor layout changes) |
||
Line 2: | Line 2: | ||
Install the neccessary packages. You will need perl to run the sensors-detect script. | Install the neccessary packages. You will need perl to run the sensors-detect script. | ||
{{Cmd|apk_add lm_sensors perl}} | |||
Load the i2c-dev module: | Load the i2c-dev module: | ||
Line 11: | Line 11: | ||
Run sensors detect: | Run sensors detect: | ||
{{Cmd|sensors-detect}} | |||
On the question to scan ISA bus and Super I/O sensors, select "no". Grsec will not allow you to access /proc/port. On all other questions select the default. | On the question to scan ISA bus and Super I/O sensors, select "no". Grsec will not allow you to access /proc/port. On all other questions select the default. | ||
You will not need perl anymore. Remove it before you forget. | You will not need perl anymore. Remove it before you forget. | ||
{{Cmd|apk_delete perl}} | |||
Make services start during next reboot. | Make services start during next reboot. | ||
{{Cmd|rc_add -k lm_sensors sensord}} | |||
Start services: | Start services: | ||
{{Cmd|/etc/init.d/lm_sensors start && /etc/init.d/sensord start}} | |||
Save config using {{Cmd|lbu commit}}. | |||
[[Category:Monitoring]] |
Revision as of 09:25, 15 June 2011
This document is a short note on how to set up lm_sensors in Alpine.
Install the neccessary packages. You will need perl to run the sensors-detect script.
apk_add lm_sensors perl
Load the i2c-dev module:
echo i2c-dev >> /etc/modules modprobe i2c-dev
Note: If you already know the name of the sensor module, you can modprobe it now, and skip the sensors-detect and perl install.
Run sensors detect:
sensors-detect
On the question to scan ISA bus and Super I/O sensors, select "no". Grsec will not allow you to access /proc/port. On all other questions select the default.
You will not need perl anymore. Remove it before you forget.
apk_delete perl
Make services start during next reboot.
rc_add -k lm_sensors sensord
Start services:
/etc/init.d/lm_sensors start && /etc/init.d/sensord start
Save config using
lbu commit
.