Skip to content

Instantly share code, notes, and snippets.

@aelkz
Forked from pgnunes/psensor-install-f28.sh
Created March 18, 2019 18:11
Show Gist options
  • Save aelkz/0b209eb62d916f61fb263893d77a338a to your computer and use it in GitHub Desktop.
Save aelkz/0b209eb62d916f61fb263893d77a338a to your computer and use it in GitHub Desktop.
Install Psensor on Fedora 28
#/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