-
-
Save aelkz/0b209eb62d916f61fb263893d77a338a to your computer and use it in GitHub Desktop.
Install Psensor on Fedora 28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment