# Prerequisites:
# Kernel >= 2.6.5 with I2C and hardware monitoring enabled
# Perl (for sensors-detect)
# rrdtool (optional; for sensord)
# libsysfs
cd
test -f installed/lm_sensors-3.1.2.tar.bz2 &&
mv installed/lm_sensors-3.1.2.tar.bz2 .
test ! -f lm_sensors-3.1.2.tar.bz2 &&
wget http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-3.1.2.tar.bz2
# Verify tarball w/ md5sum:
# (this came from my gpg-verifed tarball)
echo "58a9a225808ac4587c4c8cbd12b40b5c lm_sensors-3.1.2.tar.bz2" | md5sum -c
# Verify tarball w/ sha1sum:
# (this also came from my gpg-verifed tarball)
echo "4a3b13e4f9c18c29e7f853739bdd88ca7799fcc7 lm_sensors-3.1.2.tar.bz2" \
| sha1sum -c
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lm_sensors-*" -exec rm -r {} \;
tar xjvf ~/lm_sensors-3.1.2.tar.bz2
cd lm_sensors-3.1.2
test $UID = 0 && chown -R root:root .
# See README and INSTALL for details, CHANGES if this is an upgrade
# (...and the web site)
#
# If you want to change anything about where it's installed or other
# build/install options, look through the variables in the Makefile
# Build it
make
# Become root to install it
su
# Remove the Slackware package, if there is one
# Clean up shared library files from old versions to avoid issues
test -x /sbin/removepkg && /sbin/removepkg lm_sensors
rm -f /usr/local/lib/libsensors.*
# If you have a configuration file from a previous version installed,
# it will not overwrite it (/etc/sensors3.conf). You can find the latest
# sample one in the source directory (etc/sensors.conf.default).
# Install it
make install
ldconfig
# If you like, you can install the latest version of the sensors-detect
# script:
test -f /usr/local/sbin/sensors-detect &&
( cd /usr/local/sbin ; mv -f sensors-detect sensors-detect.old )
wget http://dl.lm-sensors.org/lm-sensors/files/sensors-detect \
-O /usr/local/sbin/sensors-detect
chmod 700 /usr/local/sbin/sensors-detect
# Make sure your kernel has support for all I2C bus drivers and 'i2c device
# interface'. If you use a Slackware or other distribution kernel, you're
# probably OK - they tend to enable all of them.
# Run this to find out what modules need to be loaded:
sensors-detect
# Load them (add to /etc/rc.d/rc.local) and run this:
sensors
# Fix /etc/sensors3.conf if necessary then run
sensors -s