#/bin/bash if [[ $EUID -ne 0 ]]; then echo "Please run this script as root" exit 1 fi dnf install -y gcc wget gtk3-devel GConf2-devel cppcheck libatasmart-devel libcurl-devel json-c-devel libmicrohttpd-devel help2man libnotify-devel libgtop2-devel make wget -O /tmp/psensor-last-stable.tar.gz http://wpitchoune.net/psensor/files/psensor-last-stable.tar.gz tar -xf /tmp/psensor-last-stable.tar.gz -C /tmp rm -rf /tmp/psensor-last-stable.tar.gz cd /tmp/psensor-* sed -i s/\!is_error\(obj\)/true/g src/rsensor.c ./configure make make install sensors-detect --auto sensors echo " " echo "Run Psensor from the desktop Application Menu to get the graphical view" cd -