Created
May 18, 2018 04:41
-
-
Save pgnunes/46c7bf9e6877f8c7b0f2a5f3f0669e8d to your computer and use it in GitHub Desktop.
Install Psensor on Fedora 28
This file contains hidden or 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