Linux - Getting an up-to-date version of lm-sensors onto Mint 19.3

From The TinkerNet Wiki
Jump to navigation Jump to search
  1. Download the source
    • wget https://github.com/lm-sensors/lm-sensors/archive/V3-6-0/lm-sensors-3-6-0.tar.gz
  2. Extract it
    • tar xzf lm-sensors-3-6-0.tar.gz
  3. Go into the directory
    • cd lm-sensors-3-6-0/
  4. Compile it
    • If you see make: *** No rule to make target 'sys/io.h' DON'T PANIC!!!
    • make all
  5. Install it
    • sudo make install
  6. Use it
    • Note: This version installs to /usr/local/bin while the outdated one in the repository is installed in /usr/bin
    • (You might want to remove the older version...)
    • For the Node-Red Machine Monitoring tab
    • sudo crontab -e
    • * * * * * /usr/bin/mosquitto_pub -h skynet.tinkernow.net -t Lise -m "`/usr/local/bin/sensors -j`"