hardinfo
hardinfo copied to clipboard
How to Install
hi i'm new in linux or ubuntu, and i wanted to know how i can install this program thx
use the package manager from your distribution... or read the README t the repository!
if you are new in linux you must READ a lot, and always analize before doing anything, that are not just "click click click" ok
@mckaygerhard Hey, there's no need to be this offensive. @dan83m only asked a question.
@dan83m, it's been a while since there was a proper HardInfo release, so your distribution might not carry an up-to-date version. There has been quite a lot of improvements since then, both in stability and new features. Your best bet would be obtaining HardInfo from source and compiling it yourself. Don't hesitate to ask if you need help with that.
thx i come from windows so for me installation mean clikcing only on file exe, so it's kind new for me "compiling" things, so yes would be wonderful if i have help to make this work thx
umm was not an attemp to be offensive, was a advertisement i'll explain:
i am from america and travel to japan, if i pretent to that people and myselft will make things like i does in my country i'm very f¿wrong! that's the point!
So the installation is a little longer and is not as straight forward as the README would like you to believe. If you don't have all the necessary packages, you're going to have a bad time. Here's what I did.
Assuming you're running from a fresh version of Ubuntu 18.04 (haven't tested others) this is what I had done.
1 sudo apt install git
2 cd Downloads/
3 git clone https://github.com/lpereira/hardinfo.git
4 cd hardinfo/
5 mkdir build
6 cd build/
7 sudo apt-get update
8 sudo apt install cmake
9 sudo apt-get install -y build-essential
10 sudo apt-get install pkg-config
11 cmake ..
12 make
umm makes sense @tisaconundrum2 that we need build tools and cmake.. umm ok.. so REAME must include gcc
and cmake
and that's all i think!
To build/install/run from the latest source in Ubuntu:
sudo apt-get install build-essential git cmake libgtk2.0-dev
git clone https://github.com/lpereira/hardinfo.git
cd hardinfo
mkdir build
cd build
cmake ..
make -j
sudo make install
hardinfo
Note that libgtk2.0-dev requires the "universe" repo in Ubuntu 19.04 (disco).
currently today now in readme must be includes two kind of requirements.. the runtime requirements and buildtime requirements... as i read recently seems udisk2 are now required
@mckaygerhard udisks2 is not required. If udisks2 is not present or fails to detect any storage devices, hardinfo will fallback to another method to detect drives. However udisks2 is recommended as fallback methods cannot detect NVMe drives nor provide all information about storage devices.
If you're using Ubuntu, you can use a PPA with up-to-date packages: https://launchpad.net/~lafp/+archive/ubuntu/hardinfo
Recent notes about this:
- That PPA no longer has up-to-date packages
- Building in Ubuntu also required installing this package:
apt install libjson-glib-dev